@vkontakte/videoplayer 1.1.74-dev.7dc0bee9.0 → 1.1.74-dev.b423ec75.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.cjs.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.74-dev.7dc0bee9.0
3
- * Fri, 10 Oct 2025 13:05:48 GMT
2
+ * @vkontakte/videoplayer v1.1.74-dev.b423ec75.0
3
+ * Mon, 27 Oct 2025 11:29:15 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-74/doc/
5
5
  */
6
- "use strict";var q0=Object.create;var Hl=Object.defineProperty;var Q0=Object.getOwnPropertyDescriptor;var G0=Object.getOwnPropertyNames;var j0=Object.getPrototypeOf,Y0=Object.prototype.hasOwnProperty;var Kv=t=>{throw TypeError(t)};var Z0=(t,e,i)=>e in t?Hl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var X0=(t,e)=>{for(var i in e)Hl(t,i,{get:e[i],enumerable:!0})},qv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of G0(e))!Y0.call(t,n)&&n!==i&&Hl(t,n,{get:()=>e[n],enumerable:!(o=Q0(e,n))||o.enumerable});return t};var Qv=(t,e,i)=>(i=t!=null?q0(j0(t)):{},qv(e||!t||!t.__esModule?Hl(i,"default",{value:t,enumerable:!0}):i,t)),J0=t=>qv(Hl({},"__esModule",{value:!0}),t);var Xn=(t,e,i)=>Z0(t,typeof e!="symbol"?e+"":e,i),fp=(t,e,i)=>e.has(t)||Kv("Cannot "+i);var Pi=(t,e,i)=>(fp(t,e,"read from private field"),i?i.call(t):e.get(t)),As=(t,e,i)=>e.has(t)?Kv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Wa=(t,e,i,o)=>(fp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Gv=(t,e,i)=>(fp(t,e,"access private method"),i);var m5={};X0(m5,{ControlButtonType:()=>zd,GridTypes:()=>Ur,InterfaceLanguage:()=>Dl.InterfaceLanguage,MenuItemType:()=>yl,PlayerPhase:()=>ns,VERSION:()=>ma,VKNumericLanguage:()=>Dl.VKNumericLanguage,VideoFormat:()=>rp.VideoFormat,VideoQuality:()=>rp.VideoQuality,loadVKLangPack:()=>Dl.loadVKLangPack,registerPlayerWebComponent:()=>f5});module.exports=J0(m5);var Ps="[",Ms="[!",Ys="]",Yr={};var Gi=Symbol(),Nn=Symbol("filename"),jv=Symbol("hmr"),Yv="http://www.w3.org/1999/xhtml",Ic="http://www.w3.org/2000/svg";var mp="@attach";var kc=!0;var Xv,Jv,Zv=(Jv=(Xv=globalThis.process)==null?void 0:Xv.env)==null?void 0:Jv.NODE_ENV,Me=Zv&&!Zv.toLowerCase().startsWith("prod");var Jn=Array.isArray,eg=Array.prototype.indexOf,Fl=Array.from,vp=Object.keys,to=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,Ac=Object.getOwnPropertyDescriptors,gp=Object.prototype,tg=Array.prototype,Zs=Object.getPrototypeOf,hp=Object.isExtensible;function Ls(t){return typeof t=="function"}var ae=()=>{};function ig(t){return t()}function Vs(t){for(var e=0;e<t.length;e++)t[e]()}var Do=Symbol("$state"),Ka=Symbol("legacy props"),og=Symbol(""),Pc=Symbol("proxy path"),Mc=1,qa=3,er=8;function Lc(t){return t===this.v}function Qa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ng(t,e){return t!==e}function Ga(t){return!Qa(t,this.v)}function rg(){if(Me){let t=new Error(`derived_references_self
6
+ "use strict";var s_=Object.create;var Wl=Object.defineProperty;var a_=Object.getOwnPropertyDescriptor;var l_=Object.getOwnPropertyNames;var d_=Object.getPrototypeOf,c_=Object.prototype.hasOwnProperty;var dg=t=>{throw TypeError(t)};var u_=(t,e,i)=>e in t?Wl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var p_=(t,e)=>{for(var i in e)Wl(t,i,{get:e[i],enumerable:!0})},cg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of l_(e))!c_.call(t,n)&&n!==i&&Wl(t,n,{get:()=>e[n],enumerable:!(o=a_(e,n))||o.enumerable});return t};var ug=(t,e,i)=>(i=t!=null?s_(d_(t)):{},cg(e||!t||!t.__esModule?Wl(i,"default",{value:t,enumerable:!0}):i,t)),f_=t=>cg(Wl({},"__esModule",{value:!0}),t);var tr=(t,e,i)=>u_(t,typeof e!="symbol"?e+"":e,i),Cp=(t,e,i)=>e.has(t)||dg("Cannot "+i);var Ri=(t,e,i)=>(Cp(t,e,"read from private field"),i?i.call(t):e.get(t)),As=(t,e,i)=>e.has(t)?dg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Wa=(t,e,i,o)=>(Cp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),pg=(t,e,i)=>(Cp(t,e,"access private method"),i);var V5={};p_(V5,{ControlButtonType:()=>Qd,GridTypes:()=>Ur,InterfaceLanguage:()=>Dl.InterfaceLanguage,MenuItemType:()=>yl,PlayerPhase:()=>zr,VERSION:()=>va,VKNumericLanguage:()=>Dl.VKNumericLanguage,VideoFormat:()=>mp.VideoFormat,VideoQuality:()=>mp.VideoQuality,loadVKLangPack:()=>Dl.loadVKLangPack,registerPlayerWebComponent:()=>M5});module.exports=f_(V5);var Ps="[",Ls="[!",Xs="]",es={};var ji=Symbol(),On=Symbol("filename"),fg=Symbol("hmr"),mg="http://www.w3.org/1999/xhtml",Oc="http://www.w3.org/2000/svg";var Tp="@attach";var Bc=!0;var gg,hg,vg=(hg=(gg=globalThis.process)==null?void 0:gg.env)==null?void 0:hg.NODE_ENV,ke=vg&&!vg.toLowerCase().startsWith("prod");var ir=Array.isArray,_g=Array.prototype.indexOf,Kl=Array.from,Ep=Object.keys,io=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,Dc=Object.getOwnPropertyDescriptors,Ip=Object.prototype,bg=Array.prototype,Js=Object.getPrototypeOf,kp=Object.isExtensible;function Ms(t){return typeof t=="function"}var le=()=>{};function $g(t){return t()}function Vs(t){for(var e=0;e<t.length;e++)t[e]()}var zo=Symbol("$state"),Ka=Symbol("legacy props"),yg=Symbol(""),Fc=Symbol("proxy path"),Hc=1,qa=3,or=8;function Uc(t){return t===this.v}function Qa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function xg(t,e){return t!==e}function Ga(t){return!Qa(t,this.v)}function wg(){if(ke){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
- https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function sg(t){if(Me){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 Sg(t){if(ke){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
10
- https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function ag(){if(Me){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 lg(t){if(Me){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 Cg(){if(ke){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Tg(t){if(ke){let e=new Error(`effect_orphan
11
11
  \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function dg(){if(Me){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 Eg(){if(ke){let t=new Error(`effect_update_depth_exceeded
13
13
  Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
14
- https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function cg(){if(Me){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 Ig(){if(ke){let t=new Error(`hydration_failed
15
15
  Failed to hydrate the application
16
- https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function ug(){if(Me){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 pg(t){if(Me){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 kg(){if(ke){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Ag(t){if(ke){let e=new Error(`props_invalid_value
17
17
  Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
18
- https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function fg(t){if(Me){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 Pg(t){if(ke){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function mg(t){if(Me){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 Lg(t){if(ke){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function vg(){if(Me){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 gg(){if(Me){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 hg(){if(Me){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 Zr=!1,Xr=!1;function _g(){Zr=!0}var Ul=null;function ms(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
22
+ https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Mg(){if(ke){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vg(){if(ke){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rg(){if(ke){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 Ng(){ts=!0}var ql=null;function us(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;to(e,"stack",{value:n.join(`
25
- `)}),to(e,"name",{value:`${t}Error`})}return e}function Rr(t,e){return t.label=e,Vc(t.v,e),t}function Vc(t,e){var i;return(i=t==null?void 0:t[Pc])==null||i.call(t,e),t}function ja(t){if(Me){let e=new Error(`lifecycle_outside_component
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;io(e,"stack",{value:n.join(`
25
+ `)}),io(e,"name",{value:`${t}Error`})}return e}function Vr(t,e){return t.label=e,zc(t.v,e),t}function zc(t,e){var i;return(i=t==null?void 0:t[Fc])==null||i.call(t,e),t}function ja(t){if(ke){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 Rt=null;function zl(t){Rt=t}var tr=null;function Wl(t){tr=t}function Ya(t){return $p("getContext").get(t)}function Za(t,e){return $p("setContext").set(t,e),e}function Kl(){return $p("getAllContexts")}function U(t,e=!1,i){var o=Rt={p:Rt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Zr&&!e&&(Rt.l={s:null,u:null,r1:[],r2:br(!1)}),Ho(()=>{o.d=!0}),Me&&(Rt.function=i,tr=i)}function z(t){var l,d;let e=Rt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=_t,o=It;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];io(s.effect),Ui(s.reaction),So(s.fn)}}finally{io(i),Ui(o)}}Rt=e.p,Me&&(tr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Jr(){return!Zr||Rt!==null&&Rt.l===null}function $p(t){var e;return Rt===null&&ja(t),(e=Rt.c)!=null?e:Rt.c=new Map(t_(Rt)||void 0)}function t_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var i_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ti(t){if(typeof t!="object"||t===null||Do in t)return t;let e=Zs(t);if(e!==gp&&e!==tg)return t;var i=new Map,o=Jn(t),n=Y(0),s=Me&&Xr?ms("CreatedAt"):null,l=It,d=f=>{var m=It;Ui(l);var u=f();return Ui(m),u};o&&i.set("length",Y(t.length,s));var a="";function p(f){a=f,Rr(n,`${a} version`);for(let[m,u]of i)Rr(u,Xs(a,m))}return new Proxy(t,{defineProperty(f,m,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&vg();var y=i.get(m);return y===void 0?y=d(()=>{var w=Y(u.value,s);return i.set(m,w),Me&&typeof m=="string"&&Rr(w,Xs(a,m)),w}):B(y,u.value,!0),!0},deleteProperty(f,m){var u=i.get(m);if(u===void 0){if(m in f){let x=d(()=>Y(Gi,s));i.set(m,x),yp(n),Me&&Rr(x,Xs(a,m))}}else{if(o&&typeof m=="string"){var y=i.get("length"),w=Number(m);Number.isInteger(w)&&w<y.v&&B(y,w)}B(u,Gi),yp(n)}return!0},get(f,m,u){var S;if(m===Do)return t;if(Me&&m===Pc)return p;var y=i.get(m),w=m in f;if(y===void 0&&(!w||(S=tn(f,m))!=null&&S.writable)&&(y=d(()=>{var T=ti(w?f[m]:Gi),E=Y(T,s);return Me&&Rr(E,Xs(a,m)),E}),i.set(m,y)),y!==void 0){var x=r(y);return x===Gi?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!==Gi)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return u},has(f,m){var x;if(m===Do)return!0;var u=i.get(m),y=u!==void 0&&u.v!==Gi||Reflect.has(f,m);if(u!==void 0||_t!==null&&(!y||(x=tn(f,m))!=null&&x.writable)){u===void 0&&(u=d(()=>{var S=y?ti(f[m]):Gi,T=Y(S,s);return Me&&Rr(T,Xs(a,m)),T}),i.set(m,u));var w=r(u);if(w===Gi)return!1}return y},set(f,m,u,y){var V;var w=i.get(m),x=m in f;if(o&&m==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,Gi):S in f&&(T=d(()=>Y(Gi,s)),i.set(S+"",T),Me&&Rr(T,Xs(a,S)))}if(w===void 0)(!x||(V=tn(f,m))!=null&&V.writable)&&(w=d(()=>Y(void 0,s)),B(w,ti(u)),i.set(m,w),Me&&Rr(w,Xs(a,m)));else{x=w.v!==Gi;var E=d(()=>ti(u));B(w,E)}var L=Reflect.getOwnPropertyDescriptor(f,m);if(L!=null&&L.set&&L.set.call(y,u),!x){if(o&&typeof m=="string"){var k=i.get("length"),I=Number(m);Number.isInteger(I)&&I>=k.v&&B(k,I+1)}yp(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!==Gi});for(var[u,y]of i)y.v!==Gi&&!(u in f)&&m.push(u);return m},setPrototypeOf(){gg()}})}function Xs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:i_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function yp(t,e=1){B(t,t.v+e)}function Xa(t){try{if(t!==null&&typeof t=="object"&&Do in t)return t[Do]}catch(e){}return t}function xp(t,e){return Object.is(Xa(t),Xa(e))}function Nr(t){var e=2050,i=It!==null&&(It.f&2)!==0?It:null;_t===null||i!==null&&(i.f&256)!==0?e|=256:_t.f|=1048576;let o={ctx:Rt,deps:null,effects:null,equals:Lc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:_t};return Me&&Xr&&(o.created=ms("CreatedAt")),o}function g(t){let e=Nr(t);return Oc(e),e}function Or(t){let e=Nr(t);return e.equals=Ga,e}function Rc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)zi(e[i])}}var wp=[];function o_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Tp(t){var e,i=_t;if(io(o_(t)),Me){let o=Js;Sp(new Set);try{wp.includes(t)&&rg(),wp.push(t),Rc(t),e=Nc(t)}finally{io(i),Sp(o),wp.pop()}}else try{Rc(t),e=Nc(t)}finally{io(i)}return e}function Ep(t){var e=Tp(t);if(t.equals(e)||(t.v=e,t.wv=ql()),!vs){var i=(gs||(t.f&256)!==0)&&t.deps!==null?4096:1024;yn(t,i)}}var Js=new Set,Ja=new Map;function Sp(t){Js=t}function br(t,e){var i={f:0,v:t,reactions:null,equals:Lc,rv:0,wv:0};return Me&&Xr&&(i.created=e!=null?e:ms("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Y(t,e){let i=br(t,e);return Oc(i),i}function es(t,e=!1,i=!0){var n,s;let o=br(t);return e||(o.equals=Ga),Zr&&i&&Rt!==null&&Rt.l!==null&&((s=(n=Rt.l).s)!=null?s:n.s=[]).push(o),o}function B(t,e,i=!1){var n;It!==null&&(!nr||(It.f&262144)!==0)&&Jr()&&(It.f&262162)!==0&&!((n=Uo)!=null&&n[1].includes(t)&&Uo[0]===It)&&hg();let o=i?ti(e):e;return Me&&Vc(o,t.label),el(t,o)}function el(t,e){if(!t.equals(e)){var i=t.v;if(vs?Ja.set(t,e):Ja.set(t,i),t.v=e,Me&&Xr&&(t.updated=ms("UpdatedAt"),_t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Tp(t),yn(t,(t.f&256)===0?1024:4096)),t.wv=ql(),$g(t,2048),Jr()&&_t!==null&&(_t.f&1024)!==0&&(_t.f&96)===0&&(or===null?yg([t]):or.push(t)),Me&&Js.size>0){let o=Array.from(Js);for(let n of o)(n.f&1024)!==0&&yn(n,4096),ta(n)&&tl(n);Js.clear()}}return e}function $g(t,e){var i=t.reactions;if(i!==null)for(var o=Jr(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===_t)){if(Me&&(d&262144)!==0){Js.add(l);continue}yn(l,e),(d&1280)!==0&&((d&2)!==0?$g(l,4096):Gl(l))}}}var il="font-weight: bold",ol="font-weight: normal";function xg(t,e,i){Me?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 Nt=null;function Ql(t){Nt=t}var nr=null;function Gl(t){nr=t}function Ya(t){return Lp("getContext").get(t)}function Za(t,e){return Lp("setContext").set(t,e),e}function jl(){return Lp("getAllContexts")}function U(t,e=!1,i){var o=Nt={p:Nt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ts&&!e&&(Nt.l={s:null,u:null,r1:[],r2:wr(!1)}),Wo(()=>{o.d=!0}),ke&&(Nt.function=i,nr=i)}function z(t){var l,d;let e=Nt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=xt,o=Pt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];oo(s.effect),Hi(s.reaction),Io(s.fn)}}finally{oo(i),Hi(o)}}Nt=e.p,ke&&(nr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function os(){return!ts||Nt!==null&&Nt.l===null}function Lp(t){var e;return Nt===null&&ja(t),(e=Nt.c)!=null?e:Nt.c=new Map(v_(Nt)||void 0)}function v_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var g_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ii(t){if(typeof t!="object"||t===null||zo in t)return t;let e=Js(t);if(e!==Ip&&e!==bg)return t;var i=new Map,o=ir(t),n=X(0),s=ke&&is?us("CreatedAt"):null,l=Pt,d=f=>{var m=Pt;Hi(l);var u=f();return Hi(m),u};o&&i.set("length",X(t.length,s));var a="";function p(f){a=f,Vr(n,`${a} version`);for(let[m,u]of i)Vr(u,ea(a,m))}return new Proxy(t,{defineProperty(f,m,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Mg();var y=i.get(m);return y===void 0?y=d(()=>{var w=X(u.value,s);return i.set(m,w),ke&&typeof m=="string"&&Vr(w,ea(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(ji,s));i.set(m,x),Mp(n),ke&&Vr(x,ea(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,ji),Mp(n)}return!0},get(f,m,u){var T;if(m===zo)return t;if(ke&&m===Fc)return p;var y=i.get(m),w=m in f;if(y===void 0&&(!w||(T=Zo(f,m))!=null&&T.writable)&&(y=d(()=>{var S=ii(w?f[m]:ji),E=X(S,s);return ke&&Vr(E,ea(a,m)),E}),i.set(m,y)),y!==void 0){var x=r(y);return x===ji?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!==ji)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return u},has(f,m){var x;if(m===zo)return!0;var u=i.get(m),y=u!==void 0&&u.v!==ji||Reflect.has(f,m);if(u!==void 0||xt!==null&&(!y||(x=Zo(f,m))!=null&&x.writable)){u===void 0&&(u=d(()=>{var T=y?ii(f[m]):ji,S=X(T,s);return ke&&Vr(S,ea(a,m)),S}),i.set(m,u));var w=r(u);if(w===ji)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 S=i.get(T+"");S!==void 0?O(S,ji):T in f&&(S=d(()=>X(ji,s)),i.set(T+"",S),ke&&Vr(S,ea(a,T)))}if(w===void 0)(!x||(B=Zo(f,m))!=null&&B.writable)&&(w=d(()=>X(void 0,s)),O(w,ii(u)),i.set(m,w),ke&&Vr(w,ea(a,m)));else{x=w.v!==ji;var E=d(()=>ii(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"),P=Number(m);Number.isInteger(P)&&P>=I.v&&O(I,P+1)}Mp(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!==ji});for(var[u,y]of i)y.v!==ji&&!(u in f)&&m.push(u);return m},setPrototypeOf(){Vg()}})}function ea(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:g_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Mp(t,e=1){O(t,t.v+e)}function Xa(t){try{if(t!==null&&typeof t=="object"&&zo in t)return t[zo]}catch(e){}return t}function Vp(t,e){return Object.is(Xa(t),Xa(e))}function Rr(t){var e=2050,i=Pt!==null&&(Pt.f&2)!==0?Pt:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:Nt,deps:null,effects:null,equals:Uc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return ke&&is&&(o.created=us("CreatedAt")),o}function g(t){let e=Rr(t);return qc(e),e}function Nr(t){let e=Rr(t);return e.equals=Ga,e}function Wc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ui(e[i])}}var Rp=[];function h_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Bp(t){var e,i=xt;if(oo(h_(t)),ke){let o=ta;Np(new Set);try{Rp.includes(t)&&wg(),Rp.push(t),Wc(t),e=Kc(t)}finally{oo(i),Np(o),Rp.pop()}}else try{Wc(t),e=Kc(t)}finally{oo(i)}return e}function Dp(t){var e=Bp(t);if(t.equals(e)||(t.v=e,t.wv=Yl()),!ps){var i=(fs||(t.f&256)!==0)&&t.deps!==null?4096:1024;hn(t,i)}}var ta=new Set,Ja=new Map;function Np(t){ta=t}function wr(t,e){var i={f:0,v:t,reactions:null,equals:Uc,rv:0,wv:0};return ke&&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 qc(i),i}function ns(t,e=!1,i=!0){var n,s;let o=wr(t);return e||(o.equals=Ga),ts&&i&&Nt!==null&&Nt.l!==null&&((s=(n=Nt.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;Pt!==null&&(!ar||(Pt.f&262144)!==0)&&os()&&(Pt.f&262162)!==0&&!((n=qo)!=null&&n[1].includes(t)&&qo[0]===Pt)&&Rg();let o=i?ii(e):e;return ke&&zc(o,t.label),el(t,o)}function el(t,e){if(!t.equals(e)){var i=t.v;if(ps?Ja.set(t,e):Ja.set(t,i),t.v=e,ke&&is&&(t.updated=us("UpdatedAt"),xt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Bp(t),hn(t,(t.f&256)===0?1024:4096)),t.wv=Yl(),Bg(t,2048),os()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(sr===null?Dg([t]):sr.push(t)),ke&&ta.size>0){let o=Array.from(ta);for(let n of o)(n.f&1024)!==0&&hn(n,4096),oa(n)&&tl(n);ta.clear()}}return e}function Bg(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===xt)){if(ke&&(d&262144)!==0){ta.add(l);continue}hn(l,e),(d&1280)!==0&&((d&2)!==0?Bg(l,4096):Xl(l))}}}var il="font-weight: bold",ol="font-weight: normal";function Fg(t,e,i){ke?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`,il,ol):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function wg(t){Me?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,il,ol):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Hg(t){ke?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`,il,ol):console.warn("https://svelte.dev/e/hydration_html_changed")}function Rs(t){Me?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,il,ol):console.warn("https://svelte.dev/e/hydration_html_changed")}function Rs(t){ke?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`,il,ol):console.warn("https://svelte.dev/e/hydration_mismatch")}function Sg(){Me?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,il,ol):console.warn("https://svelte.dev/e/hydration_mismatch")}function Ug(){ke?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`,il,ol):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Cg(){Me?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",il,ol):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Bc(t){Me?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,il,ol):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function zg(){ke?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",il,ol):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Qc(t){ke?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`,il,ol):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var et=!1;function oo(t){et=t}var bt;function vi(t){if(t===null)throw Rs(),Yr;return bt=t}function Wi(){return vi(zo(bt))}function h(t){if(et){if(zo(bt)!==null)throw Rs(),Yr;bt=t}}function Se(t=1){if(et){for(var e=t,i=bt;e--;)i=zo(i);bt=i}}function ia(){for(var t=0,e=bt;;){if(e.nodeType===er){var i=e.data;if(i===Ys){if(t===0)return e;t-=1}else(i===Ps||i===Ms)&&(t+=1)}var o=zo(e);e.remove(),e=o}}function Dc(t){if(!t||t.nodeType!==er)throw Rs(),Yr;return t.data}function Tg(){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(Xa(this[a])===s){Bc("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(Xa(this[a])===s){Bc("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(Xa(this[a])===s){Bc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var oa,Eg,jl,Ig,kg;function Hc(){if(oa===void 0){oa=window,Eg=document,jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Ig=tn(e,"firstChild").get,kg=tn(e,"nextSibling").get,hp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),hp(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,Tg())}}function xn(t=""){return document.createTextNode(t)}function $i(t){return Ig.call(t)}function zo(t){return kg.call(t)}function _(t,e){if(!et)return $i(t);var i=$i(bt);if(i===null)i=bt.appendChild(xn());else if(e&&i.nodeType!==qa){var o=xn();return i==null||i.before(o),vi(o),o}return vi(i),i}function ge(t,e){var n,s;if(!et){var i=$i(t);return i.nodeType===8&&i.data===""?zo(i):i}if(e&&((n=bt)==null?void 0:n.nodeType)!==qa){var o=xn();return(s=bt)==null||s.before(o),vi(o),o}return bt}function A(t,e=1,i=!1){let o=et?bt:t;for(var n;e--;)n=o,o=zo(o);if(!et)return o;if(i&&(o==null?void 0:o.nodeType)!==qa){var s=xn();return o===null?n==null||n.after(s):o.before(s),vi(s),s}return vi(o),o}function Yl(t){t.textContent=""}function Ap(t){_t===null&&It===null&&lg(t),It!==null&&(It.f&256)!==0&&_t===null&&ag(),vs&&sg(t)}function n_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function na(t,e,i,o=!0){var a;var n=_t;if(Me)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Rt,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(Me&&(s.component_function=tr),i)try{tl(s),s.f|=32768}catch(p){throw zi(s),p}else e!==null&&Gl(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&&n_(s,n),It!==null&&(It.f&2)!==0)){var d=It;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Ho(t){let e=na(8,null,!1);return yn(e,1024),e.teardown=t,e}function Ke(t){var n;Ap("$effect");var e=_t!==null&&(_t.f&32)!==0&&Rt!==null&&!Rt.m;if(Me&&to(t,"name",{value:"$effect"}),e){var i=Rt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:_t,reaction:It})}else{var o=So(t);return o}}function Jl(t){return Ap("$effect.pre"),Me&&to(t,"name",{value:"$effect.pre"}),Wo(t)}function zc(t){let e=na(64,t,!0);return()=>{zi(e)}}function Pg(t){let e=na(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Hn(e,()=>{zi(e),o(void 0)}):(zi(e),o(void 0))})}function So(t){return na(4,t,!1)}function Wo(t){return na(8,t,!0)}function D(t,e=[],i=Nr){if(Me)return Wo(()=>{var n=_t,s=()=>t(...l.map(r));to(n.fn,"name",{value:"{expression}"}),to(s,"name",{value:"{expression}"});let l=e.map(i);Ki(s)});let o=e.map(i);return Ki(()=>t(...o.map(r)))}function Ki(t,e=0){return na(24|e,t,!0)}function Mi(t,e=!0){return na(40,t,!0,e)}function Pp(t){var e=t.teardown;if(e!==null){let i=vs,o=It;Ip(!0),Ui(null);try{e.call(null)}finally{Ip(i),Ui(o)}}}function Mp(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:zi(i,e),i=o}}function Mg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&zi(e),e=i}}function zi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Lp(t.nodes_start,t.nodes_end),i=!0),Mp(t,e&&!i),ed(t,0),yn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Pp(t);var n=t.parent;n!==null&&n.first!==null&&Vp(t),Me&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Lp(t,e){for(;t!==null;){var i=t===e?null:zo(t);t.remove(),t=i}}function Vp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Hn(t,e){var i=[];Wc(t,i,!0),Rp(i,()=>{zi(t),e&&e()})}function Rp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Wc(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;Wc(o,e,s?i:!1),o=n}}}function _s(t){Lg(t,!0)}function Lg(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;Lg(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var td=[],Np=[];function Vg(){var t=td;td=[],Vs(t)}function r_(){var t=Np;Np=[],Vs(t)}function wn(t){td.length===0&&queueMicrotask(Vg),td.push(t)}function Rg(){td.length>0&&Vg(),Np.length>0&&r_()}function Og(t){var e=_t;if(Me&&t instanceof Error&&s_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else id(t,e)}function id(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Ng=new WeakSet;function s_(t,e){var l,d;if(Ng.has(t))return;Ng.add(t);let i=tn(t,"message");if(!(i&&!i.configurable)){for(var o=jl?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,il,ol):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Je=!1;function no(t){Je=t}var wt;function bi(t){if(t===null)throw Rs(),es;return wt=t}function zi(){return bi(Qo(wt))}function h(t){if(Je){if(Qo(wt)!==null)throw Rs(),es;wt=t}}function $e(t=1){if(Je){for(var e=t,i=wt;e--;)i=Qo(i);wt=i}}function na(){for(var t=0,e=wt;;){if(e.nodeType===or){var i=e.data;if(i===Xs){if(t===0)return e;t-=1}else(i===Ps||i===Ls)&&(t+=1)}var o=Qo(e);e.remove(),e=o}}function Gc(t){if(!t||t.nodeType!==or)throw Rs(),es;return t.data}function Wg(){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(Xa(this[a])===s){Qc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Xa(this[a])===s){Qc("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(Xa(this[a])===s){Qc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ra,Kg,Jl,qg,Qg;function jc(){if(ra===void 0){ra=window,Kg=document,Jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;qg=Zo(e,"firstChild").get,Qg=Zo(e,"nextSibling").get,kp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),kp(i)&&(i.__t=void 0),ke&&(t.__svelte_meta=null,Wg())}}function _n(t=""){return document.createTextNode(t)}function wi(t){return qg.call(t)}function Qo(t){return Qg.call(t)}function _(t,e){if(!Je)return wi(t);var i=wi(wt);if(i===null)i=wt.appendChild(_n());else if(e&&i.nodeType!==qa){var o=_n();return i==null||i.before(o),bi(o),o}return bi(i),i}function pe(t,e){var n,s;if(!Je){var i=wi(t);return i.nodeType===8&&i.data===""?Qo(i):i}if(e&&((n=wt)==null?void 0:n.nodeType)!==qa){var o=_n();return(s=wt)==null||s.before(o),bi(o),o}return wt}function A(t,e=1,i=!1){let o=Je?wt:t;for(var n;e--;)n=o,o=Qo(o);if(!Je)return o;if(i&&(o==null?void 0:o.nodeType)!==qa){var s=_n();return o===null?n==null||n.after(s):o.before(s),bi(s),s}return bi(o),o}function ed(t){t.textContent=""}function Up(t){xt===null&&Pt===null&&Tg(t),Pt!==null&&(Pt.f&256)!==0&&xt===null&&Cg(),ps&&Sg(t)}function __(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function sa(t,e,i,o=!0){var a;var n=xt;if(ke)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Nt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(s.component_function=nr),i)try{tl(s),s.f|=32768}catch(p){throw Ui(s),p}else e!==null&&Xl(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&&__(s,n),Pt!==null&&(Pt.f&2)!==0)){var d=Pt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Wo(t){let e=sa(8,null,!1);return hn(e,1024),e.teardown=t,e}function Ue(t){var n;Up("$effect");var e=xt!==null&&(xt.f&32)!==0&&Nt!==null&&!Nt.m;if(ke&&io(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:xt,reaction:Pt})}else{var o=Io(t);return o}}function od(t){return Up("$effect.pre"),ke&&io(t,"name",{value:"$effect.pre"}),Go(t)}function Xc(t){let e=sa(64,t,!0);return()=>{Ui(e)}}function jg(t){let e=sa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Hn(e,()=>{Ui(e),o(void 0)}):(Ui(e),o(void 0))})}function Io(t){return sa(4,t,!1)}function Go(t){return sa(8,t,!0)}function D(t,e=[],i=Rr){if(ke)return Go(()=>{var n=xt,s=()=>t(...l.map(r));io(n.fn,"name",{value:"{expression}"}),io(s,"name",{value:"{expression}"});let l=e.map(i);Wi(s)});let o=e.map(i);return Wi(()=>t(...o.map(r)))}function Wi(t,e=0){return sa(24|e,t,!0)}function Ni(t,e=!0){return sa(40,t,!0,e)}function zp(t){var e=t.teardown;if(e!==null){let i=ps,o=Pt;Fp(!0),Hi(null);try{e.call(null)}finally{Fp(i),Hi(o)}}}function Wp(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:Ui(i,e),i=o}}function Yg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ui(e),e=i}}function Ui(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Kp(t.nodes_start,t.nodes_end),i=!0),Wp(t,e&&!i),nd(t,0),hn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();zp(t);var n=t.parent;n!==null&&n.first!==null&&qp(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Kp(t,e){for(;t!==null;){var i=t===e?null:Qo(t);t.remove(),t=i}}function qp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Hn(t,e){var i=[];Jc(t,i,!0),Qp(i,()=>{Ui(t),e&&e()})}function Qp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Jc(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;Jc(o,e,s?i:!1),o=n}}}function vs(t){Zg(t,!0)}function Zg(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;Zg(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var rd=[],Gp=[];function Xg(){var t=rd;rd=[],Vs(t)}function b_(){var t=Gp;Gp=[],Vs(t)}function bn(t){rd.length===0&&queueMicrotask(Xg),rd.push(t)}function Jg(){rd.length>0&&Xg(),Gp.length>0&&b_()}function th(t){var e=xt;if(ke&&t instanceof Error&&$_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else sd(t,e)}function sd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var eh=new WeakSet;function $_(t,e){var l,d;if(eh.has(t))return;eh.add(t);let i=Zo(t,"message");if(!(i&&!i.configurable)){for(var o=Jl?" ":" ",n=`
38
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[Nn].split("/").pop()}`,s=s.p;to(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[On].split("/").pop()}`,s=s.p;io(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&to(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&io(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var ra=!1,nl=null,sa=!1,vs=!1;function Ip(t){vs=t}var od=[],nd=[],It=null,nr=!1;function Ui(t){It=t}var _t=null;function io(t){_t=t}var Uo=null;function Oc(t){It!==null&&It.f&2097152&&(Uo===null?Uo=[It,[t]]:Uo[1].push(t))}var Sn=null,rr=0,or=null;function yg(t){or=t}var Hg=1,qc=0,gs=!1,Qc=null;function ql(){return++Hg}function ta(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&&_t!==null&&!gs,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],ta(s)&&Ep(s),s.wv>t.wv)return!0}(!o||_t!==null&&!gs)&&yn(t,1024)}return!1}function Fg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Uo!=null&&Uo[1].includes(t)&&Uo[0]===It||((s.f&2)!==0?Fg(s,e,!1):e===s&&(i?yn(s,2048):(s.f&1024)!==0&&yn(s,4096),Gl(s)))}}function Nc(t){var y,w;var e=Sn,i=rr,o=or,n=It,s=gs,l=Uo,d=Rt,a=nr,p=t.f;Sn=null,rr=0,or=null,gs=(p&256)!==0&&(nr||!sa||It===null),It=(p&96)===0?t:null,Uo=null,zl(t.ctx),nr=!1,qc++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if(Sn!==null){var u;if(ed(t,rr),m!==null&&rr>0)for(m.length=rr+Sn.length,u=0;u<Sn.length;u++)m[rr+u]=Sn[u];else t.deps=m=Sn;if(!gs||(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&&(ed(t,rr),m.length=rr);if(Jr()&&or!==null&&!nr&&m!==null&&(t.f&6146)===0)for(u=0;u<or.length;u++)Fg(or[u],t);return n!==null&&n!==t&&(qc++,or!==null&&(o===null?o=or:o.push(...or))),f}catch(x){Og(x)}finally{Sn=e,rr=i,or=o,It=n,gs=s,Uo=l,zl(d),nr=a,t.f^=2097152}}function a_(t,e){let i=e.reactions;if(i!==null){var o=eg.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&&(Sn===null||!Sn.includes(e))&&(yn(e,4096),(e.f&768)===0&&(e.f^=512),Rc(e),ed(e,0))}function ed(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)a_(t,i[o])}function tl(t){var e=t.f;if((e&16384)===0){yn(t,1024);var i=_t,o=sa;if(_t=t,sa=!0,Me){var n=tr;Wl(t.component_function)}try{(e&16)!==0?Mg(t):Mp(t),Pp(t);var s=Nc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Hg,Me&&Xr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=ql(),l.set_during_effect=!1);Me&&nd.push(t)}finally{sa=o,_t=i,Me&&Wl(n)}}}function Bg(){console.error("Last ten effects were: ",nd.slice(-10).map(t=>t.fn)),nd=[]}function l_(){try{dg()}catch(t){if(Me&&to(t,"stack",{value:""}),nl!==null)if(Me)try{id(t,nl)}catch(e){throw Bg(),e}else id(t,nl);else throw Me&&Bg(),t}}function Bp(){var t=sa;try{var e=0;for(sa=!0;od.length>0;){e++>1e3&&l_();var i=od,o=i.length;od=[];for(var n=0;n<o;n++){var s=c_(i[n]);d_(s)}Ja.clear()}}finally{ra=!1,sa=t,nl=null,Me&&(nd=[])}}function d_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ta(o)&&(tl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Vp(o):o.fn=null))}}function Gl(t){ra||(ra=!0,queueMicrotask(Bp));for(var e=nl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}od.push(e)}function c_(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:ta(i)&&tl(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 rl(t){var e;for(t&&(ra=!0,Bp(),ra=!0,e=t());;){if(Rg(),od.length===0)return ra=!1,nl=null,Me&&(nd=[]),e;ra=!0,Bp()}}async function Co(){await Promise.resolve(),rl()}function r(t){var e=t.f,i=(e&2)!==0;if(Qc!==null&&Qc.add(t),It!==null&&!nr){if(!(Uo!=null&&Uo[1].includes(t))||Uo[0]!==It){var o=It.deps;t.rv<qc&&(t.rv=qc,Sn===null&&o!==null&&o[rr]===t?rr++:Sn===null?Sn=[t]:(!gs||!Sn.includes(t))&&Sn.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,ta(n)&&Ep(n)),Me&&Xr&&!nr&&Ul!==null&&It!==null&&Ul.reaction===It)if(t.trace)t.trace();else{var l=ms("TracedAt");if(l){var d=Ul.entries.get(t);d===void 0&&(d={traces:[]},Ul.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return vs&&Ja.has(t)?Ja.get(t):t.v}function Ct(t){var e=nr;try{return nr=!0,t()}finally{nr=e}}var u_=-7169;function yn(t,e){t.f=t.f&u_|e}function jc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Do in t)Gc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Do in i&&Gc(i)}}}function Gc(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{Gc(t[o],e)}catch(n){}let i=Zs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Ac(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Dp(t,e){if(e){let i=document.body;t.autofocus=!0,wn(()=>{document.activeElement===i&&t.focus()})}}function rd(t){var e=It,i=_t;Ui(null),io(null);try{return t()}finally{Ui(e),io(i)}}var Hp=new Set,Yc=new Set;function aa(t){if(!et)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 Fp(t,e,i,o={}){function n(s){if(o.capture||sl.call(e,s),!s.cancelBubble)return rd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?wn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Et(t,e,i,o,n){var s={capture:o,passive:n},l=Fp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ho(()=>{e.removeEventListener(t,l,s)})}function ut(t){for(var e=0;e<t.length;e++)Hp.add(t[e]);for(var i of Yc)i(t)}function sl(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){to(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=It,m=_t;Ui(null),io(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[S,...T]=x;S.apply(s,[t,...T])}else x.call(s,t)}catch(L){u?y.push(L):u=L}if(t.cancelBubble||w===e||w===null)break;s=w}if(u){for(let L of y)queueMicrotask(()=>{throw L});throw u}}finally{t.__root=e,delete t.currentTarget,Ui(f),io(m)}}}var f_;function Ug(){f_=void 0}function al(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function To(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,n,s=!t.startsWith("<!>");return()=>{if(et)return To(bt,null),bt;n===void 0&&(n=al(s?t:"<!>"+t),i||(n=$i(n)));var l=o||jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=$i(l),a=l.lastChild;To(d,a)}else To(l,l);return l}}function g_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(et)return To(bt,null),bt;if(!l){var d=al(s),a=$i(d);if(n)for(l=document.createDocumentFragment();$i(a);)l.appendChild($i(a));else l=$i(a)}var p=l.cloneNode(!0);if(n){var f=$i(p),m=p.lastChild;To(f,m)}else To(p,p);return p}}function Ce(t,e){return g_(t,e,"svg")}function ts(t=""){if(!et){var e=xn(t+"");return To(e,e),e}var i=bt;return i.nodeType!==qa&&(i.before(i=xn()),vi(i)),To(i,i),i}function qe(){if(et)return To(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=xn();return t.append(e,i),To(e,i),t}function $(t,e){if(et){_t.nodes_end=bt,Wi();return}t!==null&&t.before(e)}var h_=/\r/g;function Wg(t){t=t.replace(h_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Kg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var __=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function qg(t){return __.includes(t)}var b_=["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 $_={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 Qg(t){var e;return t=t.toLowerCase(),(e=$_[t])!=null?e:t}var iS=[...b_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var y_=["touchstart","touchmove"];function Gg(t){return y_.includes(t)}var x_=["$state","$state.raw","$derived","$derived.by"],oS=[...x_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var w_=["textarea","script","style","title"];function jg(t){return w_.includes(t)}function Zc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var sd=!0;function Xc(t){sd=t}function be(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 is(t,e){return Yg(t,e)}function zp(t,e){var l;Hc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=et,n=bt;try{for(var s=$i(i);s&&(s.nodeType!==er||s.data!==Ps);)s=zo(s);if(!s)throw Yr;oo(!0),vi(s),Wi();let d=Yg(t,{...e,anchor:s});if(bt===null||bt.nodeType!==er||bt.data!==Ys)throw Rs(),Yr;return oo(!1),d}catch(d){if(d===Yr)return e.recover===!1&&cg(),Hc(),Yl(i),oo(!1),is(t,e);throw d}finally{oo(o),vi(n),Ug()}}var ll=new Map;function Yg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Hc();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=Gg(y);e.addEventListener(y,sl,{passive:w});var x=ll.get(y);x===void 0?(document.addEventListener(y,sl,{passive:w}),ll.set(y,1)):ll.set(y,x+1)}}};a(Fl(Hp)),Yc.add(a);var p=void 0,f=Pg(()=>{var m=i!=null?i:e.appendChild(xn());return Mi(()=>{if(s){U({});var u=Rt;u.c=s}n&&(o.$$events=n),et&&To(m,null),sd=l,p=t(m,o)||{},sd=!0,et&&(_t.nodes_end=bt),s&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,sl);var y=ll.get(u);--y===0?(document.removeEventListener(u,sl),ll.delete(u)):ll.set(u,y)}Yc.delete(a),m!==i&&((w=m.parentNode)==null||w.removeChild(m))}});return Up.set(p,f),p}var Up=new WeakMap;function la(t,e){let i=Up.get(t);return i?(Up.delete(t),i(e)):(Me&&Sg(),Promise.resolve())}function ye(t,e,...i){var o=t,n=ae,s;Ki(()=>{n!==(n=e())&&(s&&(zi(s),s=null),Me&&n==null&&ug(),s=Mi(()=>n(o,...i)))},65536),et&&(o=bt)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;mg(e)},set:o=>{i=o}})}};E_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var E_;function Lt(t){Rt===null&&ja("onMount"),Zr&&Rt.l!==null?T_(Rt).m.push(t):Ke(()=>{let e=Ct(t);if(typeof e=="function")return e})}function rn(t){Rt===null&&ja("onDestroy"),Lt(()=>()=>Ct(t))}function T_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Zg=new Map;function Xg(t,e){var i=Zg.get(t);i||(i=new Set,Zg.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){et&&i===0&&Wi();var n=t,s=null,l=null,d=Gi,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(et&&o!==-1){if(i===0){let S=Dc(n);S===Ps?o=0:S===Ms?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=ia(),vi(n),oo(!1),w=!0,o=-1)}d?(s?_s(s):y&&(s=Mi(()=>y(n))),l&&Hn(l,()=>{l=null})):(l?_s(l):y&&(l=Mi(()=>y(n,[i+1,o]))),s&&Hn(s,()=>{s=null})),w&&oo(!0)};Ki(()=>{p=!1,e(f),p||m(null,null)},a),et&&(n=bt)}function da(t,e,i){et&&Wi();var o=t,n=Gi,s,l=Jr()?ng:Qa;Ki(()=>{l(n,n=e())&&(s&&Hn(s),s=Mi(()=>i(o)))}),et&&(o=bt)}var Os=null;function qp(t){Os=t}function ad(t,e){return e}function A_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Wc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Yl(a),a.append(i),o.clear(),Ns(t,e[0].prev,e[s-1].next)}Rp(n,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),Ns(t,f.prev,f.next)),zi(f.e,!d)}})}function Si(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=et?vi($i(p)):p.appendChild(xn())}et&&Wi();var f=null,m=!1,u=Or(()=>{var y=i();return Jn(y)?y:y==null?[]:Fl(y)});Ki(()=>{var y=r(u),w=y.length;if(m&&w===0)return;m=w===0;let x=!1;if(et){var S=Dc(l)===Ms;S!==(w===0)&&(l=ia(),vi(l),oo(!1),x=!0)}if(et){for(var T=null,E,L=0;L<w;L++){if(bt.nodeType===er&&bt.data===Ys){l=bt,x=!0,oo(!1);break}var k=y[L],I=o(k,L);E=th(bt,d,T,null,k,I,L,n,e,i),d.items.set(I,E),T=E}w>0&&vi(ia())}et||P_(y,d,l,n,e,o,i),s!==null&&(w===0?f?_s(f):f=Mi(()=>s(l)):f!==null&&Hn(f,()=>{f=null})),x&&oo(!0),r(u)}),et&&(l=bt)}function P_(t,e,i,o,n,s,l){var ie,pe,he,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,S=[],T=[],E,L,k,I;if(d)for(I=0;I<p;I+=1)E=t[I],L=s(E,I),k=f.get(L),k!==void 0&&((ie=k.a)==null||ie.measure(),(x!=null?x:x=new Set).add(k));for(I=0;I<p;I+=1){if(E=t[I],L=s(E,I),k=f.get(L),k===void 0){var V=u?u.e.nodes_start:i;w=th(V,e,w,w===null?e.first:w.next,E,L,I,o,n,l),f.set(L,w),S=[],T=[],u=w.next;continue}if(a&&M_(k,E,I,n),(k.e.f&8192)!==0&&(_s(k.e),d&&((pe=k.a)==null||pe.unfix(),(x!=null?x:x=new Set).delete(k))),k!==u){if(y!==void 0&&y.has(k)){if(S.length<T.length){var G=T[0],H;w=G.prev;var F=S[0],W=S[S.length-1];for(H=0;H<S.length;H+=1)Jg(S[H],G,i);for(H=0;H<T.length;H+=1)y.delete(T[H]);Ns(e,F.prev,W.next),Ns(e,w,F),Ns(e,W,G),u=G,w=W,I-=1,S=[],T=[]}else y.delete(k),Jg(k,u,i),Ns(e,k.prev,k.next),Ns(e,k,w===null?e.first:w.next),Ns(e,w,k),w=k;continue}for(S=[],T=[];u!==null&&u.k!==L;)(u.e.f&8192)===0&&(y!=null?y:y=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;k=u}S.push(k),w=k,u=k.next}if(u!==null||y!==void 0){for(var J=y===void 0?[]:Fl(y);u!==null;)(u.e.f&8192)===0&&J.push(u),u=u.next;var j=J.length;if(j>0){var le=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<j;I+=1)(he=J[I].a)==null||he.measure();for(I=0;I<j;I+=1)(ue=J[I].a)==null||ue.fix()}A_(e,J,le,f)}}d&&wn(()=>{var Ne;if(x!==void 0)for(k of x)(Ne=k.a)==null||Ne.apply()}),_t.first=e.first&&e.first.e,_t.last=w&&w.e}function M_(t,e,i,o){(o&1)!==0&&el(t.v,e),(o&2)!==0?el(t.i,i):t.i=i}function th(t,e,i,o,n,s,l,d,a,p){var f=Os,m=(a&1)!==0,u=(a&16)===0,y=m?u?es(n,!1,!1):br(n):n,w=(a&2)===0?l:br(l);Me&&m&&(y.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Os=x;try{return x.e=Mi(()=>d(t,y,w,p),et),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{Os=f}}function Jg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=zo(s);n.before(s),s=l}}function Ns(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 L_(t,e,i){var s,l;if(!e||e===Wg(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[Nn]&&(o=`in ${tr[Nn]}`),wg(Zc(o))}function ld(t,e,i=!1,o=!1,n=!1){var s=t,l="";D(()=>{var y;var d=_t;if(l===(l=(y=e())!=null?y:"")){et&&Wi();return}if(d.nodes_start!==null&&(Lp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(et){for(var a=bt.data,p=Wi(),f=p;p!==null&&(p.nodeType!==er||p.data!=="");)f=p,p=zo(p);if(p===null)throw Rs(),Yr;Me&&!n&&L_(p.parentNode,a,l),To(bt,f),s=vi(p);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var u=al(m);if((i||o)&&(u=$i(u)),To($i(u),u.lastChild),i||o)for(;$i(u);)s.before($i(u));else s.before(u)}})}function Ci(t,e,i){et&&Wi();var o=t,n,s;Ki(()=>{n!==(n=e())&&(s&&(Hn(s),s=null),n&&(s=Mi(()=>i(o,n))))},65536),et&&(o=bt)}function ca(t,e,i,o,n,s){var w;let l=et;et&&Wi();var d=Me&&s&&((w=Rt)==null?void 0:w.function[Nn]),a,p,f=null;et&&bt.nodeType===Mc&&(f=bt,Wi());var m=et?bt:t,u,y=Os;Ki(()=>{let x=e()||null;var S=n?n():i||x==="svg"?Ic:null;if(x!==a){var T=Os;qp(y),u&&(x===null?Hn(u,()=>{u=null,p=null}):x===p?_s(u):(zi(u),Xc(!1))),x&&x!==p&&(u=Mi(()=>{if(f=et?f:S?document.createElementNS(S,x):document.createElement(x),Me&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),To(f,f),o){et&&jg(x)&&f.append(document.createComment(""));var E=et?$i(f):f.appendChild(xn());et&&(E===null?oo(!1):vi(E)),o(f,E)}_t.nodes_end=f,m.before(f)})),a=x,a&&(p=a),Xc(!0),qp(T)}},65536),l&&(oo(!0),vi(m))}var Gp;function ih(t){return Gp=t.target,new Qp(t)}var bs,$r,Qp=class{constructor(e){As(this,bs);As(this,$r);var s,l;var i=new Map,o=(d,a)=>{var p=es(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===Ka?!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 B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Wa(this,$r,(e.hydrate?zp:is)(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)&&rl(),Wa(this,bs,n.$$events);for(let d of Object.keys(Pi(this,$r)))d==="$set"||d==="$destroy"||d==="$on"||to(this,d,{get(){return Pi(this,$r)[d]},set(a){Pi(this,$r)[d]=a},enumerable:!0});Pi(this,$r).$set=d=>{Object.assign(n,d)},Pi(this,$r).$destroy=()=>{la(Pi(this,$r))}}$set(e){Pi(this,$r).$set(e)}$on(e,i){Pi(this,bs)[e]=Pi(this,bs)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,bs)[e].push(o),()=>{Pi(this,bs)[e]=Pi(this,bs)[e].filter(n=>n!==o)}}$destroy(){Pi(this,$r).$destroy()}};bs=new WeakMap,$r=new WeakMap;function q(t,e){wn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=Gp)==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),Me&&Xg(e.hash,d)}})}function $s(t,e){var i=void 0,o;Ki(()=>{i!==(i=e())&&(o&&(zi(o),o=null),i&&(o=Mi(()=>{So(()=>i(t))})))})}function oh(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=oh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function nh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=oh(t))&&(o&&(o+=" "),o+=e);return o}function dd(t){return typeof t=="object"?nh(t):t!=null?t:""}var rh=[...`
44
- \r\f\xA0\v\uFEFF`];function ah(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||rh.includes(o[l-1]))&&(d===o.length||rh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function sh(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 jp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function lh(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(jp)),n&&a.push(...Object.keys(n).map(jp));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=jp(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+=sh(o)),n&&(i+=sh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,s){var l=t.__className;if(et||l!==i||l===void 0){var d=ah(i,o,s);(!et||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 Yp(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 st(t,e,i,o){var n=t.__style;if(et||n!==e){var s=lh(e,o);(!et||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Yp(t,i==null?void 0:i[0],o[0]),Yp(t,i==null?void 0:i[1],o[1],"important")):Yp(t,i,o));return o}function cd(t,e,i){if(t.multiple){if(e==null)return;if(!Jn(e))return Cg();for(var o of t.options)o.selected=e.includes(dh(o));return}for(o of t.options){var n=dh(o);if(xp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Zp(t){var e=new MutationObserver(()=>{cd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ho(()=>{e.disconnect()})}function dh(t){return"__value"in t?t.__value:t.value}var dl=Symbol("class"),cl=Symbol("style"),ph=Symbol("is custom element"),fh=Symbol("is html");function mh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=gh(t);if(et&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||F_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[og]=i),i==null?t.removeAttribute(e):typeof i!="string"&&hh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function vh(t,e,i,o,n=!1){var k;var s=gh(t),l=s[ph],d=!s[fh];let a=et&&l;a&&oo(!1);var p=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=dd(i.class):(o||i[dl])&&(i.class=null),i[cl]&&((k=i.style)!=null||(i.style=null));var u=hh(t);for(let I in i){let V=i[I];if(f&&I==="value"&&V==null){t.value=t.__value="",p[I]=V;continue}if(I==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,y,V,o,e==null?void 0:e[dl],i[dl]),p[I]=V,p[dl]=i[dl];continue}if(I==="style"){st(t,V,e==null?void 0:e[cl],i[cl]),p[I]=V,p[cl]=i[cl];continue}var w=p[I];if(!(V===w&&!(V===void 0&&t.hasAttribute(I)))){p[I]=V;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let G={},H="$$"+I,F=I.slice(2);var S=qg(F);if(Kg(F)&&(F=F.slice(0,-7),G.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(F,p[H],G),p[H]=null}if(V!=null)if(S)t[`__${F}`]=V,ut([F]);else{let W=function(J){p[I].call(this,J)};var L=W;p[H]=Fp(F,t,W,G)}else S&&(t[`__${F}`]=void 0)}else if(I==="style")Fe(t,I,V);else if(I==="autofocus")Dp(t,!!V);else if(!l&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&f)mh(t,V);else{var T=I;d||(T=Qg(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let G=t,H=e===void 0;if(T==="value"){let F=G.defaultValue;G.removeAttribute(T),G.defaultValue=F,G.value=G.__value=H?F:null}else{let F=G.defaultChecked;G.removeAttribute(T),G.defaultChecked=F,G.checked=H?F:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(l||typeof V!="string")?t[T]=V:typeof V!="function"&&Fe(t,T,V,n)}}}return a&&oo(!0),p}function Ae(t,e,i=[],o,n=!1,s=Nr){let l=i.map(s);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Ki(()=>{var u=e(...l.map(r)),y=vh(t,d,u,o,n);f&&p&&"value"in u&&cd(t,u.value,!1);for(let x of Object.getOwnPropertySymbols(a))u[x]||zi(a[x]);for(let x of Object.getOwnPropertySymbols(u)){var w=u[x];x.description===mp&&(!d||w!==d[x])&&(a[x]&&zi(a[x]),a[x]=Mi(()=>$s(t,()=>w))),y[x]=w}d=y}),p){var m=t;So(()=>{cd(m,d.value),Zp(m)})}f=!0}function gh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ph]:t.nodeName.includes("-"),[fh]:t.namespaceURI===Yv}}var ch=new Map;function hh(t){var e=ch.get(t.nodeName);if(e)return e;ch.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Ac(o);for(var s in i)i[s].set&&e.push(s);o=Zs(o)}return e}function F_(t,e,i){var o;Me&&(e==="srcset"&&U_(t,i)||Xp((o=t.getAttribute(e))!=null?o:"",i)||xg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Xp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function uh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function U_(t,e){var i=uh(t.srcset),o=uh(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Xp(i[l][0],n)||Xp(n,i[l][0])))}var z_=kc?()=>performance.now():()=>Date.now(),Hr={tick:t=>(kc?requestAnimationFrame:ae)(t),now:()=>z_(),tasks:new Set};function _h(){let t=Hr.now();Hr.tasks.forEach(e=>{e.c(t)||(Hr.tasks.delete(e),e.f())}),Hr.tasks.size!==0&&Hr.tick(_h)}function bh(t){let e;return Hr.tasks.size===0&&Hr.tick(_h),{promise:new Promise(i=>{Hr.tasks.add(e={c:t,f:i})}),abort(){Hr.tasks.delete(e)}}}function Jc(t,e){rd(()=>{t.dispatchEvent(new CustomEvent(e))})}function Q_(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 $h(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=Q_(n.trim());e[l]=s.trim()}return e}var G_=t=>t;function ef(t,e,i,o){var L;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 V;var k=It,I=_t;Ui(null),io(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:a})}finally{Ui(k),io(I)}}var x={is_global:d,in(){var k;if(e.inert=f,!n){y==null||y.abort(),(k=y==null?void 0:y.reset)==null||k.call(y);return}s||u==null||u.abort(),Jc(e,"introstart"),u=Jp(e,w(),y,1,()=>{Jc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=m})},out(k){if(!s){k==null||k(),p=void 0;return}e.inert=!0,Jc(e,"outrostart"),y=Jp(e,w(),u,0,()=>{Jc(e,"outroend"),k==null||k()})},stop:()=>{u==null||u.abort(),y==null||y.abort()}},S=_t;if(((L=S.transitions)!=null?L:S.transitions=[]).push(x),n&&sd){var T=d;if(!T){for(var E=S.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&So(()=>{Ct(()=>x.in())})}}function Jp(t,e,i,o,n){var s=o===1;if(Ls(e)){var l,d=!1;return wn(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Jp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ae,deactivate:ae,reset:ae,t:()=>o};let{delay:a=0,css:p,tick:f,easing:m=G_}=e;var u=[];if(s&&i===void 0&&(f&&f(0,1),p)){var y=$h(p(0,1));u.push(y,y)}var w=()=>1-o,x=t.animate(u,{duration:a,fill:"forwards"});return x.onfinish=()=>{var F;x.cancel();var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-S,E=e.duration*Math.abs(T),L=[];if(E>0){var k=!1;if(p)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var G=S+T*m(V/I),H=$h(p(G,1-G));L.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var W=x.currentTime;return S+T*m(W/E)},f&&bh(()=>{if(x.playState!=="running")return!1;var W=w();return f(W,1-W),!0})}x=t.animate(L,{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 Bs,ul,ud,tu,yh,iu=class iu{constructor(e){As(this,tu);As(this,Bs,new WeakMap);As(this,ul);As(this,ud);Wa(this,ud,e)}observe(e,i){var o=Pi(this,Bs).get(e)||new Set;return o.add(i),Pi(this,Bs).set(e,o),Gv(this,tu,yh).call(this).observe(e,Pi(this,ud)),()=>{var n=Pi(this,Bs).get(e);n.delete(i),n.size===0&&(Pi(this,Bs).delete(e),Pi(this,ul).unobserve(e))}}};Bs=new WeakMap,ul=new WeakMap,ud=new WeakMap,tu=new WeakSet,yh=function(){var e;return(e=Pi(this,ul))!=null?e:Wa(this,ul,new ResizeObserver(i=>{for(var o of i){iu.entries.set(o.target,o);for(var n of Pi(this,Bs).get(o.target)||[])n(o)}}))},Xn(iu,"entries",new WeakMap);var tf=iu;var j_=new tf({box:"border-box"});function sr(t,e,i){var o=j_.observe(t,()=>i(t[e]));So(()=>(Ct(()=>i(t[e])),o))}function xh(t,e){return t===e||(t==null?void 0:t[Do])===e}function ot(t={},e,i,o){return So(()=>{var n,s;return Wo(()=>{n=s,s=(o==null?void 0:o())||[],Ct(()=>{t!==i(...s)&&(e(t,...s),n&&xh(i(...n),t)&&e(null,...n))})}),()=>{wn(()=>{s&&xh(i(...s),t)&&e(null,...s)})}}),t}function Fr(t=!1){let e=Rt,i=e.l.u;if(!i)return;let o=()=>jc(e.s);if(t){let n=0,s={},l=Nr(()=>{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&&Jl(()=>{wh(e,o),Vs(i.b)}),Ke(()=>{let n=Ct(()=>i.m.map(ig));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Ke(()=>{wh(e,o),Vs(i.a)})}function wh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function pd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ae;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var pl=[];function yr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=ae){let i=null,o=new Set;function n(d){if(Qa(t,d)&&(t=d,i)){let a=!pl.length;for(let p of o)p[1](),pl.push(p,t);if(a){for(let p=0;p<pl.length;p+=2)pl[p][0](pl[p+1]);pl.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 yi(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 yr(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)=>pd(w,S=>{p[x]=S,f&=~(1<<x),a&&u()},()=>{f|=1<<x}));return a=!0,u(),function(){Vs(y),m(),a=!1}})}function $e(t){let e;return pd(t,i=>e=i)(),e}var ou=!1,of=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:es(void 0),unsubscribe:ae};if(o.store!==t&&!(of 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=pd(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&of in i?$e(t):r(o.source)}function He(){let t={};function e(){Ho(()=>{for(var i in t)t[i].unsubscribe();to(t,of,{enumerable:!1,value:!0})})}return[t,e]}function nf(t){var e=ou;try{return ou=!1,[t(),ou]}finally{ou=e}}var ib={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&fg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Oe(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},ib)}var ob={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ls(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];Ls(n)&&(n=n());let s=tn(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(Ls(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=tn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Do||e===Ka)return!1;for(let i of t.props)if(Ls(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ls(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 ys(...t){return new Proxy({props:t},ob)}function Sh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var G,H;var n=(i&1)!==0,s=!Zr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=nf(()=>t[e]):p=t[e];var f=Do in t||Ka in t,m=l&&((H=(G=tn(t,e))==null?void 0:G.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,u=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?u=Ct(o):u=o),u);p===void 0&&o!==void 0&&(m&&s&&pg(e),p=x(),m&&m(p));var S;if(s)S=()=>{var F=t[e];return F===void 0?x():(y=!0,w=!1,F)};else{var T=(n?Nr:Or)(()=>t[e]);T.f|=131072,S=()=>{var F=r(T);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0&&s)return S;if(m){var E=t.$$legacy;return function(F,W){return arguments.length>0?((!s||!W||E||a)&&m(W?S():F),F):S()}}var L=!1,k=!1,I=es(p),V=Nr(()=>{var F=S(),W=r(I);return L?(L=!1,k=!0,W):(k=!1,I.v=F)});return l&&r(V),n||(V.equals=Ga),function(F,W){if(Qc!==null&&(L=k,S(),r(I)),arguments.length>0){let J=W?r(V):s&&l?ti(F):F;if(!V.equals(J)){if(L=!0,B(I,J),w&&u!==void 0&&(u=J),Sh(V))return F;Ct(()=>r(V))}return F}return Sh(V)?V.v:r(V)}}var nb;typeof HTMLElement=="function"&&(nb=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=rb(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]=rf(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=ih({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=zc(()=>{Wo(()=>{var s;this.$$r=!0;for(let l of vp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=rf(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]=rf(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 vp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function rf(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 rb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Ch="5";var Th,Eh,Ih;typeof window!="undefined"&&((Ih=(Eh=(Th=window.__svelte)!=null?Th:window.__svelte={}).v)!=null?Ih:Eh.v=new Set).add(Ch);var Ml=require("@vkontakte/videoplayer-core/es2018"),Mj=require("@vkontakte/videoplayer-core/es2018"),Fa=require("@vkontakte/videoplayer-shared/es2018"),I0=require("@vkontakte/videoplayer-statistics/es2018");var ua=require("@vkontakte/videoplayer-shared/es2018");var sb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:ua.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ua.VideoQuality.Q_480P,highQualityLimit:ua.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!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,usePuid:!0,debug:!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"},kh=t=>(0,ua.fillWithDefault)(t,sb),Ah=t=>Za("ui-config",t),At=()=>Ya("ui-config");var fd="vk_player_debug_panel_opened";var Ph="videoplayer",Mh="videoplayer";var os={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Lh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Vh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Rh=new Set(["ShiftRight","ShiftLeft"]);var Nh=["TIMELINE"],md=[...Nh,"GRAPH_BUTTON"],sf=[...Nh,"PLAY_BUTTON"],vd=[...md,"PLAY_BUTTON"];var Ur=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Ur||{}),fa={xs:0,s:1,m:2,l:3,xl:4};var gd=require("@vkontakte/videoplayer-shared/es2018"),Oh=require("@vkontakte/videoplayer-core/es2018"),Bh=require("@vkontakte/videoplayer-statistics/es2018");var nu="prod",ma="1.1.74-dev.7dc0bee9.0";var va=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Dh=Symbol("storeContext"),Hh=Symbol("microStoresContext"),Fh=(t,e)=>{Za(Dh,t),Za(Hh,e),nu==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Ya(Dh);return(0,gd.assertNonNullable)(t,"Store context is empty!"),t},vo=()=>{let t=Ya(Hh);return(0,gd.assertNonNullable)(t,"MicroStores context is empty!"),t},ei=(t,e)=>su(t,t.getValue(),e),su=(t,e,i)=>yr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Uh=(t,e,i,o)=>{var V,G,H,F,W,J,j,le;let n=t.info,{width:s,height:l}=$e(i.ui.playerSize),d=(G=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?G:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ma} (core: ${Oh.VERSION}, stat: ${Bh.VERSION}, shared: ${gd.VERSION})`,m=$e(i.state.errorLog$),u=m.length?`
45
- `+m.map((ie,pe)=>{var oe;let he=`${pe}) Type: ${ie.id}
46
- `,ue=`Message: ${ie.message} (${ie.thrown})
47
- `,Ne=`Trace: ${(oe=ie.thrown)==null?void 0:oe.stack}
48
- `;return he+ue+Ne}).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(),S=[];w&&S.push(`Video: ${(W=w==null?void 0:w.codec)!=null?W:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&S.push(`Audio: ${(J=x==null?void 0:x.codec)!=null?J:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let ie=n.availableQualitiesFps$.getValue()[T];E=ie?`${ie}fps`:""}let L=(le=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?le:0,k=Math.max(L-$e(i.state.positionExact$),0),I={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${p} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:u};return Object.entries(I).filter(([ie,pe])=>pe!==void 0).map(([ie,pe])=>`${ie}: ${pe}`).join(`
50
- `)},zh=(t,e,i)=>{var G,H,F,W;let o=t.info,{width:n,height:s}=$e(i.ui.playerSize),l={version:ma,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 S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=$e(i.vsid);typeof E=="string"&&(l.vsid=E);let L=(G=t.info.currentVideoStream$.getValue())==null?void 0:G.codec;L&&(l.videoCodec=L);let k=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;k&&(l.audioCodec=k),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(l.hdr=!0);let V=(W=t.info.currentAudioStream$.getValue())==null?void 0:W.language;return V&&(l.audioLanguage=V),l},Wh=(t,e)=>va(t,e,"mp4"),Kh=t=>!t.type,qh=t=>!!t.type,Qh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},ru=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var mi=require("@vkontakte/videoplayer-shared/es2018"),xP=require("@vkontakte/videoplayer-core/es2018"),Gh="vk_player_prefer_traffic_saving_enabled",jh="vk_player_preferred_volume",Yh="vk_player_prefer_volume_mute",cf="vk_player_preferred_quality",af="vk_player_preferred_default_quality_settings",lf="vk_player_preferred_quality_settings_by_video",Zh="vk_player_preferred_stream_language",Xh="vk_player_preferred_rate",Jh="vk_player_preferred_autoplay_next",df="vk_player_preferred_subtitles_language",e1="vk_player_user_video_prefs",t1=t=>t>1?1:t<0?0:t,uf=t=>mi.safeStorage.set(jh,t1(t).toString(10)),au=()=>{let t=mi.safeStorage.get(jh);return(0,mi.isNullable)(t)?void 0:t1(parseFloat(t))},pf=(t,e)=>mi.safeStorage.set(cf,JSON.stringify({videoId:t,value:e})),lu=()=>mi.safeStorage.remove(cf),ff=t=>{let e=mi.safeStorage.get(cf);if((0,mi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){lu();return}return o},mf=(t,e)=>{e?mi.safeStorage.set(t,"true"):mi.safeStorage.remove(t)},vf=t=>mi.safeStorage.get(t)==="true",gf=t=>mf(Yh,t),i1=()=>vf(Yh),hd=t=>mf(Gh,t),hf=()=>vf(Gh),o1=()=>mi.safeStorage.get(Zh),_f=t=>mi.safeStorage.set(Zh,t),bf=()=>mi.safeStorage.get(df),$f=t=>{t?mi.safeStorage.set(df,t):mi.safeStorage.remove(df)},n1=t=>mi.safeStorage.set(Xh,JSON.stringify({rate:t})),r1=()=>{let t=mi.safeStorage.get(Xh);if((0,mi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},s1=t=>mf(Jh,t),a1=()=>vf(Jh),ab=()=>{let t=f=>{mi.safeStorage.set(af,JSON.stringify(f))},e=()=>{try{let f=mi.safeStorage.get(af);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=mi.safeStorage.get(lf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{mi.safeStorage.set(lf,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=()=>{mi.safeStorage.remove(lf)},l=()=>{mi.safeStorage.remove(af)},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":hd(!0);break;case"exact_quality":pf(f,m.quality)}s(),l()}},p=f=>{let m=ff(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}hf()&&t({type:"traffic_saving",videoId:f}),hd(!1),lu()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:bf,savePreferredSubtitlesLanguage:$f}},{getPreferredQualitySettings:l1,migrateSettingsToLegacyWay:d1,savePreferredQualitySettings:du,savePreferredDefaultQualitySettings:wP,removePreferredQualitySettingsByVideo:SP,getPreferredDefaultQualitySettings:cu}=ab(),lb=3,db=3,c1=()=>{let t=mi.safeStorage.get(e1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},uu=(t,e)=>{var n,s;let i=c1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},yf=(t,e,i)=>{var l,d,a;let o=(l=c1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=cb(o);mi.safeStorage.set(e1,JSON.stringify(s))};function cb(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(db),e.reduce((o,[n])=>(o[n]=ub(t[n]),o),{})}function ub(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(lb),Object.fromEntries(e)}var Tv=require("@vkontakte/videoplayer-core/es2018");var pb=Ce('<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 _d(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=pb();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var fl=require("@vkontakte/videoplayer-shared/es2018");var fb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
43
+ `)})}}var aa=!1,nl=null,la=!1,ps=!1;function Fp(t){ps=t}var ad=[],ld=[],Pt=null,ar=!1;function Hi(t){Pt=t}var xt=null;function oo(t){xt=t}var qo=null;function qc(t){Pt!==null&&Pt.f&2097152&&(qo===null?qo=[Pt,[t]]:qo[1].push(t))}var $n=null,lr=0,sr=null;function Dg(t){sr=t}var nh=1,tu=0,fs=!1,iu=null;function Yl(){return++nh}function oa(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&&xt!==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],oa(s)&&Dp(s),s.wv>t.wv)return!0}(!o||xt!==null&&!fs)&&hn(t,1024)}return!1}function rh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];qo!=null&&qo[1].includes(t)&&qo[0]===Pt||((s.f&2)!==0?rh(s,e,!1):e===s&&(i?hn(s,2048):(s.f&1024)!==0&&hn(s,4096),Xl(s)))}}function Kc(t){var y,w;var e=$n,i=lr,o=sr,n=Pt,s=fs,l=qo,d=Nt,a=ar,p=t.f;$n=null,lr=0,sr=null,fs=(p&256)!==0&&(ar||!la||Pt===null),Pt=(p&96)===0?t:null,qo=null,Ql(t.ctx),ar=!1,tu++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if($n!==null){var u;if(nd(t,lr),m!==null&&lr>0)for(m.length=lr+$n.length,u=0;u<$n.length;u++)m[lr+u]=$n[u];else t.deps=m=$n;if(!fs||(p&2)!==0&&t.reactions!==null)for(u=lr;u<m.length;u++)((w=(y=m[u]).reactions)!=null?w:y.reactions=[]).push(t)}else m!==null&&lr<m.length&&(nd(t,lr),m.length=lr);if(os()&&sr!==null&&!ar&&m!==null&&(t.f&6146)===0)for(u=0;u<sr.length;u++)rh(sr[u],t);return n!==null&&n!==t&&(tu++,sr!==null&&(o===null?o=sr:o.push(...sr))),f}catch(x){th(x)}finally{$n=e,lr=i,sr=o,Pt=n,fs=s,qo=l,Ql(d),ar=a,t.f^=2097152}}function y_(t,e){let i=e.reactions;if(i!==null){var o=_g.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&&($n===null||!$n.includes(e))&&(hn(e,4096),(e.f&768)===0&&(e.f^=512),Wc(e),nd(e,0))}function nd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)y_(t,i[o])}function tl(t){var e=t.f;if((e&16384)===0){hn(t,1024);var i=xt,o=la;if(xt=t,la=!0,ke){var n=nr;Gl(t.component_function)}try{(e&16)!==0?Yg(t):Wp(t),zp(t);var s=Kc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=nh,ke&&is&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Yl(),l.set_during_effect=!1);ke&&ld.push(t)}finally{la=o,xt=i,ke&&Gl(n)}}}function ih(){console.error("Last ten effects were: ",ld.slice(-10).map(t=>t.fn)),ld=[]}function x_(){try{Eg()}catch(t){if(ke&&io(t,"stack",{value:""}),nl!==null)if(ke)try{sd(t,nl)}catch(e){throw ih(),e}else sd(t,nl);else throw ke&&ih(),t}}function Yp(){var t=la;try{var e=0;for(la=!0;ad.length>0;){e++>1e3&&x_();var i=ad,o=i.length;ad=[];for(var n=0;n<o;n++){var s=S_(i[n]);w_(s)}Ja.clear()}}finally{aa=!1,la=t,nl=null,ke&&(ld=[])}}function w_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&oa(o)&&(tl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?qp(o):o.fn=null))}}function Xl(t){aa||(aa=!0,queueMicrotask(Yp));for(var e=nl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ad.push(e)}function S_(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:oa(i)&&tl(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 rl(t){var e;for(t&&(aa=!0,Yp(),aa=!0,e=t());;){if(Jg(),ad.length===0)return aa=!1,nl=null,ke&&(ld=[]),e;aa=!0,Yp()}}async function ko(){await Promise.resolve(),rl()}function r(t){var e=t.f,i=(e&2)!==0;if(iu!==null&&iu.add(t),Pt!==null&&!ar){if(!(qo!=null&&qo[1].includes(t))||qo[0]!==Pt){var o=Pt.deps;t.rv<tu&&(t.rv=tu,$n===null&&o!==null&&o[lr]===t?lr++:$n===null?$n=[t]:(!fs||!$n.includes(t))&&$n.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,oa(n)&&Dp(n)),ke&&is&&!ar&&ql!==null&&Pt!==null&&ql.reaction===Pt)if(t.trace)t.trace();else{var l=us("TracedAt");if(l){var d=ql.entries.get(t);d===void 0&&(d={traces:[]},ql.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&&Ja.has(t)?Ja.get(t):t.v}function Et(t){var e=ar;try{return ar=!0,t()}finally{ar=e}}var C_=-7169;function hn(t,e){t.f=t.f&C_|e}function nu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(zo in t)ou(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&zo in i&&ou(i)}}}function ou(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{ou(t[o],e)}catch(n){}let i=Js(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Dc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Zp(t,e){if(e){let i=document.body;t.autofocus=!0,bn(()=>{document.activeElement===i&&t.focus()})}}function dd(t){var e=Pt,i=xt;Hi(null),oo(null);try{return t()}finally{Hi(e),oo(i)}}var Xp=new Set,ru=new Set;function da(t){if(!Je)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Jp(t,e,i,o={}){function n(s){if(o.capture||sl.call(e,s),!s.cancelBubble)return dd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?bn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function kt(t,e,i,o,n){var s={capture:o,passive:n},l=Jp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Wo(()=>{e.removeEventListener(t,l,s)})}function dt(t){for(var e=0;e<t.length;e++)Xp.add(t[e]);for(var i of ru)i(t)}function sl(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){io(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Pt,m=xt;Hi(null),oo(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(ir(x)){var[T,...S]=x;T.apply(s,[t,...S])}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,Hi(f),oo(m)}}}var E_;function sh(){E_=void 0}function al(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ao(t,e){var i=xt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Je)return Ao(wt,null),wt;n===void 0&&(n=al(s?t:"<!>"+t),i||(n=wi(n)));var l=o||Jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=wi(l),a=l.lastChild;Ao(d,a)}else Ao(l,l);return l}}function A_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Je)return Ao(wt,null),wt;if(!l){var d=al(s),a=wi(d);if(n)for(l=document.createDocumentFragment();wi(a);)l.appendChild(wi(a));else l=wi(a)}var p=l.cloneNode(!0);if(n){var f=wi(p),m=p.lastChild;Ao(f,m)}else Ao(p,p);return p}}function ye(t,e){return A_(t,e,"svg")}function rs(t=""){if(!Je){var e=_n(t+"");return Ao(e,e),e}var i=wt;return i.nodeType!==qa&&(i.before(i=_n()),bi(i)),Ao(i,i),i}function Be(){if(Je)return Ao(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=_n();return t.append(e,i),Ao(e,i),t}function $(t,e){if(Je){xt.nodes_end=wt,zi();return}t!==null&&t.before(e)}var P_=/\r/g;function lh(t){t=t.replace(P_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function dh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var L_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ch(t){return L_.includes(t)}var M_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var V_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function uh(t){var e;return t=t.toLowerCase(),(e=V_[t])!=null?e:t}var xS=[...M_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var R_=["touchstart","touchmove"];function ph(t){return R_.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 O_=["textarea","script","style","title"];function fh(t){return O_.includes(t)}function su(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var cd=!0;function au(t){cd=t}function me(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Dr(t,e){return mh(t,e)}function tf(t,e){var l;jc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Je,n=wt;try{for(var s=wi(i);s&&(s.nodeType!==or||s.data!==Ps);)s=Qo(s);if(!s)throw es;no(!0),bi(s),zi();let d=mh(t,{...e,anchor:s});if(wt===null||wt.nodeType!==or||wt.data!==Xs)throw Rs(),es;return no(!1),d}catch(d){if(d===es)return e.recover===!1&&Ig(),jc(),ed(i),no(!1),Dr(t,e);throw d}finally{no(o),bi(n),sh()}}var ll=new Map;function mh(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){jc();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=ph(y);e.addEventListener(y,sl,{passive:w});var x=ll.get(y);x===void 0?(document.addEventListener(y,sl,{passive:w}),ll.set(y,1)):ll.set(y,x+1)}}};a(Kl(Xp)),ru.add(a);var p=void 0,f=jg(()=>{var m=i!=null?i:e.appendChild(_n());return Ni(()=>{if(s){U({});var u=Nt;u.c=s}n&&(o.$$events=n),Je&&Ao(m,null),cd=l,p=t(m,o)||{},cd=!0,Je&&(xt.nodes_end=wt),s&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,sl);var y=ll.get(u);--y===0?(document.removeEventListener(u,sl),ll.delete(u)):ll.set(u,y)}ru.delete(a),m!==i&&((w=m.parentNode)==null||w.removeChild(m))}});return ef.set(p,f),p}var ef=new WeakMap;function ca(t,e){let i=ef.get(t);return i?(ef.delete(t),i(e)):(ke&&Ug(),Promise.resolve())}function ve(t,e,...i){var o=t,n=le,s;Wi(()=>{n!==(n=e())&&(s&&(Ui(s),s=null),ke&&n==null&&kg(),s=Ni(()=>n(o,...i)))},65536),Je&&(o=wt)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Lg(e)},set:o=>{i=o}})}};H_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var H_;function Vt(t){Nt===null&&ja("onMount"),ts&&Nt.l!==null?F_(Nt).m.push(t):Ue(()=>{let e=Et(t);if(typeof e=="function")return e})}function en(t){Nt===null&&ja("onDestroy"),Vt(()=>()=>Et(t))}function F_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var vh=new Map;function gh(t,e){var i=vh.get(t);i||(i=new Set,vh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Je&&i===0&&zi();var n=t,s=null,l=null,d=ji,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(Je&&o!==-1){if(i===0){let T=Gc(n);T===Ps?o=0:T===Ls?o=1/0:(o=parseInt(T.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=na(),bi(n),no(!1),w=!0,o=-1)}d?(s?vs(s):y&&(s=Ni(()=>y(n))),l&&Hn(l,()=>{l=null})):(l?vs(l):y&&(l=Ni(()=>y(n,[i+1,o]))),s&&Hn(s,()=>{s=null})),w&&no(!0)};Wi(()=>{p=!1,e(f),p||m(null,null)},a),Je&&(n=wt)}function gs(t,e,i){Je&&zi();var o=t,n=ji,s,l=os()?xg:Qa;Wi(()=>{l(n,n=e())&&(s&&Hn(s),s=Ni(()=>i(o)))}),Je&&(o=wt)}var Os=null;function rf(t){Os=t}function ud(t,e){return e}function W_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Jc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ed(a),a.append(i),o.clear(),Ns(t,e[0].prev,e[s-1].next)}Qp(n,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),Ns(t,f.prev,f.next)),Ui(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=Je?bi(wi(p)):p.appendChild(_n())}Je&&zi();var f=null,m=!1,u=Nr(()=>{var y=i();return ir(y)?y:y==null?[]:Kl(y)});Wi(()=>{var y=r(u),w=y.length;if(m&&w===0)return;m=w===0;let x=!1;if(Je){var T=Gc(l)===Ls;T!==(w===0)&&(l=na(),bi(l),no(!1),x=!0)}if(Je){for(var S=null,E,R=0;R<w;R++){if(wt.nodeType===or&&wt.data===Xs){l=wt,x=!0,no(!1);break}var I=y[R],P=o(I,R);E=bh(wt,d,S,null,I,P,R,n,e,i),d.items.set(P,E),S=E}w>0&&bi(na())}Je||K_(y,d,l,n,e,o,i),s!==null&&(w===0?f?vs(f):f=Ni(()=>s(l)):f!==null&&Hn(f,()=>{f=null})),x&&no(!0),r(u)}),Je&&(l=wt)}function K_(t,e,i,o,n,s,l){var ee,fe,ue,ce;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=[],S=[],E,R,I,P;if(d)for(P=0;P<p;P+=1)E=t[P],R=s(E,P),I=f.get(R),I!==void 0&&((ee=I.a)==null||ee.measure(),(x!=null?x:x=new Set).add(I));for(P=0;P<p;P+=1){if(E=t[P],R=s(E,P),I=f.get(R),I===void 0){var B=u?u.e.nodes_start:i;w=bh(B,e,w,w===null?e.first:w.next,E,R,P,o,n,l),f.set(R,w),T=[],S=[],u=w.next;continue}if(a&&q_(I,E,P,n),(I.e.f&8192)!==0&&(vs(I.e),d&&((fe=I.a)==null||fe.unfix(),(x!=null?x:x=new Set).delete(I))),I!==u){if(y!==void 0&&y.has(I)){if(T.length<S.length){var F=S[0],H;w=F.prev;var W=T[0],Y=T[T.length-1];for(H=0;H<T.length;H+=1)hh(T[H],F,i);for(H=0;H<S.length;H+=1)y.delete(S[H]);Ns(e,W.prev,Y.next),Ns(e,w,W),Ns(e,Y,F),u=F,w=Y,P-=1,T=[],S=[]}else y.delete(I),hh(I,u,i),Ns(e,I.prev,I.next),Ns(e,I,w===null?e.first:w.next),Ns(e,w,I),w=I;continue}for(T=[],S=[];u!==null&&u.k!==R;)(u.e.f&8192)===0&&(y!=null?y:y=new Set).add(u),S.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?[]:Kl(y);u!==null;)(u.e.f&8192)===0&&oe.push(u),u=u.next;var G=oe.length;if(G>0){var ge=(n&4)!==0&&p===0?i:null;if(d){for(P=0;P<G;P+=1)(ue=oe[P].a)==null||ue.measure();for(P=0;P<G;P+=1)(ce=oe[P].a)==null||ce.fix()}W_(e,oe,ge,f)}}d&&bn(()=>{var Pe;if(x!==void 0)for(I of x)(Pe=I.a)==null||Pe.apply()}),xt.first=e.first&&e.first.e,xt.last=w&&w.e}function q_(t,e,i,o){(o&1)!==0&&el(t.v,e),(o&2)!==0?el(t.i,i):t.i=i}function bh(t,e,i,o,n,s,l,d,a,p){var f=Os,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);ke&&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};Os=x;try{return x.e=Ni(()=>d(t,y,w,p),Je),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{Os=f}}function hh(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=Qo(s);n.before(s),s=l}}function Ns(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 Q_(t,e,i){var s,l;if(!e||e===lh(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=nr)!=null&&l[On]&&(o=`in ${nr[On]}`),Hg(su(o))}function pd(t,e,i=!1,o=!1,n=!1){var s=t,l="";D(()=>{var y;var d=xt;if(l===(l=(y=e())!=null?y:"")){Je&&zi();return}if(d.nodes_start!==null&&(Kp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Je){for(var a=wt.data,p=zi(),f=p;p!==null&&(p.nodeType!==or||p.data!=="");)f=p,p=Qo(p);if(p===null)throw Rs(),es;ke&&!n&&Q_(p.parentNode,a,l),Ao(wt,f),s=bi(p);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var u=al(m);if((i||o)&&(u=wi(u)),Ao(wi(u),u.lastChild),i||o)for(;wi(u);)s.before(wi(u));else s.before(u)}})}function Ai(t,e,i){Je&&zi();var o=t,n,s;Wi(()=>{n!==(n=e())&&(s&&(Hn(s),s=null),n&&(s=Ni(()=>i(o,n))))},65536),Je&&(o=wt)}function ua(t,e,i,o,n,s){var w;let l=Je;Je&&zi();var d=ke&&s&&((w=Nt)==null?void 0:w.function[On]),a,p,f=null;Je&&wt.nodeType===Hc&&(f=wt,zi());var m=Je?wt:t,u,y=Os;Wi(()=>{let x=e()||null;var T=n?n():i||x==="svg"?Oc:null;if(x!==a){var S=Os;rf(y),u&&(x===null?Hn(u,()=>{u=null,p=null}):x===p?vs(u):(Ui(u),au(!1))),x&&x!==p&&(u=Ni(()=>{if(f=Je?f:T?document.createElementNS(T,x):document.createElement(x),ke&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Ao(f,f),o){Je&&fh(x)&&f.append(document.createComment(""));var E=Je?wi(f):f.appendChild(_n());Je&&(E===null?no(!1):bi(E)),o(f,E)}xt.nodes_end=f,m.before(f)})),a=x,a&&(p=a),au(!0),rf(S)}},65536),l&&(no(!0),bi(m))}var af;function $h(t){return af=t.target,new sf(t)}var hs,Sr,sf=class{constructor(e){As(this,hs);As(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===Ka?!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)}});Wa(this,Sr,(e.hydrate?tf:Dr)(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)&&rl(),Wa(this,hs,n.$$events);for(let d of Object.keys(Ri(this,Sr)))d==="$set"||d==="$destroy"||d==="$on"||io(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=()=>{ca(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){bn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=af)==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),ke&&gh(e.hash,d)}})}function _s(t,e){var i=void 0,o;Wi(()=>{i!==(i=e())&&(o&&(Ui(o),o=null),i&&(o=Ni(()=>{Io(()=>i(t))})))})}function yh(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=yh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function xh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=yh(t))&&(o&&(o+=" "),o+=e);return o}function fd(t){return typeof t=="object"?xh(t):t!=null?t:""}var wh=[...`
44
+ \r\f\xA0\v\uFEFF`];function Ch(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||wh.includes(o[l-1]))&&(d===o.length||wh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Sh(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 lf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Th(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(lf)),n&&a.push(...Object.keys(n).map(lf));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=lf(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+=Sh(o)),n&&(i+=Sh(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(Je||l!==i||l===void 0){var d=Ch(i,o,s);(!Je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var p=!!s[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return s}function df(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function lt(t,e,i,o){var n=t.__style;if(Je||n!==e){var s=Th(e,o);(!Je||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(df(t,i==null?void 0:i[0],o[0]),df(t,i==null?void 0:i[1],o[1],"important")):df(t,i,o));return o}function md(t,e,i){if(t.multiple){if(e==null)return;if(!ir(e))return zg();for(var o of t.options)o.selected=e.includes(Eh(o));return}for(o of t.options){var n=Eh(o);if(Vp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function cf(t){var e=new MutationObserver(()=>{md(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Wo(()=>{e.disconnect()})}function Eh(t){return"__value"in t?t.__value:t.value}var dl=Symbol("class"),cl=Symbol("style"),Ah=Symbol("is custom element"),Ph=Symbol("is html");function Lh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=Vh(t);if(Je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||tb(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[yg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Rh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Mh(t,e,i,o,n=!1){var I;var s=Vh(t),l=s[Ah],d=!s[Ph];let a=Je&&l;a&&no(!1);var p=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=fd(i.class):(o||i[dl])&&(i.class=null),i[cl]&&((I=i.style)!=null||(i.style=null));var u=Rh(t);for(let P in i){let B=i[P];if(f&&P==="value"&&B==null){t.value=t.__value="",p[P]=B;continue}if(P==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,y,B,o,e==null?void 0:e[dl],i[dl]),p[P]=B,p[dl]=i[dl];continue}if(P==="style"){lt(t,B,e==null?void 0:e[cl],i[cl]),p[P]=B,p[cl]=i[cl];continue}var w=p[P];if(!(B===w&&!(B===void 0&&t.hasAttribute(P)))){p[P]=B;var x=P[0]+P[1];if(x!=="$$")if(x==="on"){let F={},H="$$"+P,W=P.slice(2);var T=ch(W);if(dh(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[P].call(this,oe)};var R=Y;p[H]=Jp(W,t,Y,F)}else T&&(t[`__${W}`]=void 0)}else if(P==="style")De(t,P,B);else if(P==="autofocus")Zp(t,!!B);else if(!l&&(P==="__value"||P==="value"&&B!=null))t.value=t.__value=B;else if(P==="selected"&&f)Lh(t,B);else{var S=P;d||(S=uh(S));var E=S==="defaultValue"||S==="defaultChecked";if(B==null&&!l&&!E)if(s[P]=null,S==="value"||S==="checked"){let F=t,H=e===void 0;if(S==="value"){let W=F.defaultValue;F.removeAttribute(S),F.defaultValue=W,F.value=F.__value=H?W:null}else{let W=F.defaultChecked;F.removeAttribute(S),F.defaultChecked=W,F.checked=H?W:!1}}else t.removeAttribute(P);else E||u.includes(S)&&(l||typeof B!="string")?t[S]=B:typeof B!="function"&&De(t,S,B,n)}}}return a&&no(!0),p}function Te(t,e,i=[],o,n=!1,s=Rr){let l=i.map(s);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Wi(()=>{var u=e(...l.map(r)),y=Mh(t,d,u,o,n);f&&p&&"value"in u&&md(t,u.value,!1);for(let x of Object.getOwnPropertySymbols(a))u[x]||Ui(a[x]);for(let x of Object.getOwnPropertySymbols(u)){var w=u[x];x.description===Tp&&(!d||w!==d[x])&&(a[x]&&Ui(a[x]),a[x]=Ni(()=>_s(t,()=>w))),y[x]=w}d=y}),p){var m=t;Io(()=>{md(m,d.value),cf(m)})}f=!0}function Vh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ah]:t.nodeName.includes("-"),[Ph]:t.namespaceURI===mg}}var Ih=new Map;function Rh(t){var e=Ih.get(t.nodeName);if(e)return e;Ih.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Dc(o);for(var s in i)i[s].set&&e.push(s);o=Js(o)}return e}function tb(t,e,i){var o;ke&&(e==="srcset"&&ib(t,i)||uf((o=t.getAttribute(e))!=null?o:"",i)||Fg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function uf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function kh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function ib(t,e){var i=kh(t.srcset),o=kh(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(uf(i[l][0],n)||uf(n,i[l][0])))}var ob=Bc?()=>performance.now():()=>Date.now(),Fr={tick:t=>(Bc?requestAnimationFrame:le)(t),now:()=>ob(),tasks:new Set};function Nh(){let t=Fr.now();Fr.tasks.forEach(e=>{e.c(t)||(Fr.tasks.delete(e),e.f())}),Fr.tasks.size!==0&&Fr.tick(Nh)}function Oh(t){let e;return Fr.tasks.size===0&&Fr.tick(Nh),{promise:new Promise(i=>{Fr.tasks.add(e={c:t,f:i})}),abort(){Fr.tasks.delete(e)}}}function lu(t,e){dd(()=>{t.dispatchEvent(new CustomEvent(e))})}function ab(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 Bh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=ab(n.trim());e[l]=s.trim()}return e}var lb=t=>t;function ff(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=Pt,P=xt;Hi(null),oo(null);try{return p!=null?p:p=i()(e,(B=o==null?void 0:o())!=null?B:{},{direction:a})}finally{Hi(I),oo(P)}}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(),lu(e,"introstart"),u=pf(e,w(),y,1,()=>{lu(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,lu(e,"outrostart"),y=pf(e,w(),u,0,()=>{lu(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),y==null||y.abort()}},T=xt;if(((R=T.transitions)!=null?R:T.transitions=[]).push(x),n&&cd){var S=d;if(!S){for(var E=T.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);S=!E||(E.f&32768)!==0}S&&Io(()=>{Et(()=>x.in())})}}function pf(t,e,i,o,n){var s=o===1;if(Ms(e)){var l,d=!1;return bn(()=>{if(!d){var T=e({direction:s?"in":"out"});l=pf(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:le,deactivate:le,reset:le,t:()=>o};let{delay:a=0,css:p,tick:f,easing:m=lb}=e;var u=[];if(s&&i===void 0&&(f&&f(0,1),p)){var y=Bh(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 S=o-T,E=e.duration*Math.abs(S),R=[];if(E>0){var I=!1;if(p)for(var P=Math.ceil(E/16.666666666666668),B=0;B<=P;B+=1){var F=T+S*m(B/P),H=Bh(p(F,1-F));R.push(H),I||(I=H.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var Y=x.currentTime;return T+S*m(Y/E)},f&&Oh(()=>{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=le)},deactivate:()=>{n=le},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Bs,ul,vd,cu,Dh,uu=class uu{constructor(e){As(this,cu);As(this,Bs,new WeakMap);As(this,ul);As(this,vd);Wa(this,vd,e)}observe(e,i){var o=Ri(this,Bs).get(e)||new Set;return o.add(i),Ri(this,Bs).set(e,o),pg(this,cu,Dh).call(this).observe(e,Ri(this,vd)),()=>{var n=Ri(this,Bs).get(e);n.delete(i),n.size===0&&(Ri(this,Bs).delete(e),Ri(this,ul).unobserve(e))}}};Bs=new WeakMap,ul=new WeakMap,vd=new WeakMap,cu=new WeakSet,Dh=function(){var e;return(e=Ri(this,ul))!=null?e:Wa(this,ul,new ResizeObserver(i=>{for(var o of i){uu.entries.set(o.target,o);for(var n of Ri(this,Bs).get(o.target)||[])n(o)}}))},tr(uu,"entries",new WeakMap);var mf=uu;var db=new mf({box:"border-box"});function dr(t,e,i){var o=db.observe(t,()=>i(t[e]));Io(()=>(Et(()=>i(t[e])),o))}function Fh(t,e){return t===e||(t==null?void 0:t[zo])===e}function at(t={},e,i,o){return Io(()=>{var n,s;return Go(()=>{n=s,s=(o==null?void 0:o())||[],Et(()=>{t!==i(...s)&&(e(t,...s),n&&Fh(i(...n),t)&&e(null,...n))})}),()=>{bn(()=>{s&&Fh(i(...s),t)&&e(null,...s)})}}),t}function Hr(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>nu(e.s);if(t){let n=0,s={},l=Rr(()=>{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&&od(()=>{Hh(e,o),Vs(i.b)}),Ue(()=>{let n=Et(()=>i.m.map($g));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Ue(()=>{Hh(e,o),Vs(i.a)})}function Hh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function gd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),le;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var pl=[];function Cr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=le){let i=null,o=new Set;function n(d){if(Qa(t,d)&&(t=d,i)){let a=!pl.length;for(let p of o)p[1](),pl.push(p,t);if(a){for(let p=0;p<pl.length;p+=2)pl[p][0](pl[p+1]);pl.length=0}}}function s(d){n(d(t))}function l(d,a=le){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,s)||le),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=le,u=()=>{if(f)return;m();let w=e(o?p[0]:p,l,d);s?l(w):m=typeof w=="function"?w:le},y=n.map((w,x)=>gd(w,T=>{p[x]=T,f&=~(1<<x),a&&u()},()=>{f|=1<<x}));return a=!0,u(),function(){Vs(y),m(),a=!1}})}function he(t){let e;return gd(t,i=>e=i)(),e}var pu=!1,vf=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:ns(void 0),unsubscribe:le};if(o.store!==t&&!(vf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=le;else{var n=!0;o.unsubscribe=gd(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&vf in i?he(t):r(o.source)}function Oe(){let t={};function e(){Wo(()=>{for(var i in t)t[i].unsubscribe();io(t,vf,{enumerable:!1,value:!0})})}return[t,e]}function gf(t){var e=pu;try{return pu=!1,[t(),pu]}finally{pu=e}}var gb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Pg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Le(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},gb)}var hb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(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];Ms(n)&&(n=n());let s=Zo(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(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Zo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===zo||e===Ka)return!1;for(let i of t.props)if(Ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ms(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},hb)}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]=gf(()=>t[e]):p=t[e];var f=zo in t||Ka in t,m=l&&((H=(F=Zo(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=Et(o):u=o),u);p===void 0&&o!==void 0&&(m&&s&&Ag(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 S=(n?Rr:Nr)(()=>t[e]);S.f|=131072,T=()=>{var W=r(S);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,P=ns(p),B=Rr(()=>{var W=T(),Y=r(P);return R?(R=!1,I=!0,Y):(I=!1,P.v=W)});return l&&r(B),n||(B.equals=Ga),function(W,Y){if(iu!==null&&(R=I,T(),r(P)),arguments.length>0){let oe=Y?r(B):s&&l?ii(W):W;if(!B.equals(oe)){if(R=!0,O(P,oe),w&&u!==void 0&&(u=oe),Uh(B))return W;Et(()=>r(B))}return W}return Uh(B)?B.v:r(B)}}var _b;typeof HTMLElement=="function"&&(_b=class extends HTMLElement{constructor(e,i,o){super();tr(this,"$$ctor");tr(this,"$$s");tr(this,"$$c");tr(this,"$$cn",!1);tr(this,"$$d",{});tr(this,"$$r",!1);tr(this,"$$p_d",{});tr(this,"$$l",{});tr(this,"$$l_u",new Map);tr(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let 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=bb(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]=hf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=$h({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Xc(()=>{Go(()=>{var s;this.$$r=!0;for(let l of Ep(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=hf(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]=hf(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 Ep(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function hf(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 bb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var zh="5";var Wh,Kh,qh;typeof window!="undefined"&&((qh=(Kh=(Wh=window.__svelte)!=null?Wh:window.__svelte={}).v)!=null?qh:Kh.v=new Set).add(zh);var Ll=require("@vkontakte/videoplayer-core/es2018"),dY=require("@vkontakte/videoplayer-core/es2018"),Ua=require("@vkontakte/videoplayer-shared/es2018"),q0=require("@vkontakte/videoplayer-statistics/es2018");var pa=require("@vkontakte/videoplayer-shared/es2018");var $b={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:pa.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:pa.VideoQuality.Q_480P,highQualityLimit:pa.VideoQuality.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},Qh=t=>(0,pa.fillWithDefault)(t,$b),Gh=t=>Za("ui-config",t),At=()=>Ya("ui-config");var hd="vk_player_debug_panel_opened";var jh="videoplayer",Yh="videoplayer";var ss={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Zh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Xh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Jh=new Set(["ShiftRight","ShiftLeft"]);var e1=["TIMELINE"],_d=[...e1,"GRAPH_BUTTON"],_f=[...e1,"PLAY_BUTTON"],bd=[..._d,"PLAY_BUTTON"];var Ur=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Ur||{}),ma={xs:0,s:1,m:2,l:3,xl:4};var $d=require("@vkontakte/videoplayer-shared/es2018"),t1=require("@vkontakte/videoplayer-core/es2018"),i1=require("@vkontakte/videoplayer-statistics/es2018");var fu="prod",va="1.1.74-dev.b423ec75.0";var ga=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var o1=Symbol("storeContext"),n1=Symbol("microStoresContext"),r1=(t,e)=>{Za(o1,t),Za(n1,e),fu==="dev"&&(window.app={store:t,microStores:e})},Se=()=>{let t=Ya(o1);return(0,$d.assertNonNullable)(t,"Store context is empty!"),t},_o=()=>{let t=Ya(n1);return(0,$d.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>vu(t,t.getValue(),e),vu=(t,e,i)=>Cr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),s1=(t,e,i,o)=>{var F,H,W,Y,oe,G,ge,ee,fe;let n=t.info,{width:s,height:l}=he(i.ui.playerSize),d=(H=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?H:0,a=(Y=(W=n.rttEstimation$.getValue())==null?void 0:W.toFixed(0))!=null?Y:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${va} (core: ${t1.VERSION}, stat: ${i1.VERSION}, shared: ${$d.VERSION})`,m=he(i.state.errorLog$),u=m.length?`
45
+ `+m.map((ue,ce)=>{var Ve;let Pe=`${ce}) Type: ${ue.id}
46
+ `,Me=`Message: ${ue.message} (${ue.thrown})
47
+ `,re=`Trace: ${(Ve=ue.thrown)==null?void 0:Ve.stack}
48
+ `;return Pe+Me+re}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":he(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),T=[];w&&T.push(`Video: ${(oe=w==null?void 0:w.codec)!=null?oe:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&T.push(`Audio: ${(G=x==null?void 0:x.codec)!=null?G:""}`+(x!=null&&x.language?` (${x.language})`:""));let S=n.currentQuality$.getValue(),E="";if(S){let ue=n.availableQualitiesFps$.getValue()[S];E=ue?`${ue}fps`:""}let R=n.httpConnectionType$.getValue(),I=(ee=(ge=n.currentBuffer$.getValue())==null?void 0:ge.end)!=null?ee:0,P=Math.max(I-he(i.state.positionExact$),0),B={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:he(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":R?R+(n.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:T.join(", "),Quality:`${p} ${S!=null?S:""} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${he(i.state.positionExact$)}s`,Buffer:`${P}s`,State:`${he(i.playerPhase)} ${(fe=n.playbackState$.getValue())!=null?fe:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:u};return Object.entries(B).filter(([ue,ce])=>ce!==void 0).map(([ue,ce])=>`${ue}: ${ce}`).join(`
50
+ `)},a1=(t,e,i)=>{var F,H,W,Y;let o=t.info,{width:n,height:s}=he(i.ui.playerSize),l={version:va,viewport:`${n}x${s}`,volume:Math.round(he(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-he(i.state.positionExact$),0)),l.position=he(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 S=o.currentAudioSegmentLength$.getValue();S&&(l.currentAudioSegmentLength=S);let E=he(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},l1=(t,e)=>ga(t,e,"mp4"),d1=t=>!t.type,c1=t=>!!t.type,u1=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},mu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var vi=require("@vkontakte/videoplayer-shared/es2018"),UP=require("@vkontakte/videoplayer-core/es2018"),p1="vk_player_prefer_traffic_saving_enabled",f1="vk_player_preferred_volume",m1="vk_player_prefer_volume_mute",xf="vk_player_preferred_quality",bf="vk_player_preferred_default_quality_settings",$f="vk_player_preferred_quality_settings_by_video",v1="vk_player_preferred_stream_language",g1="vk_player_preferred_rate",h1="vk_player_preferred_autoplay_next",yf="vk_player_preferred_subtitles_language",_1="vk_player_user_video_prefs",b1=t=>t>1?1:t<0?0:t,wf=t=>vi.safeStorage.set(f1,b1(t).toString(10)),gu=()=>{let t=vi.safeStorage.get(f1);return(0,vi.isNullable)(t)?void 0:b1(parseFloat(t))},Sf=(t,e)=>vi.safeStorage.set(xf,JSON.stringify({videoId:t,value:e})),hu=()=>vi.safeStorage.remove(xf),Cf=t=>{let e=vi.safeStorage.get(xf);if((0,vi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){hu();return}return o},Tf=(t,e)=>{e?vi.safeStorage.set(t,"true"):vi.safeStorage.remove(t)},Ef=t=>vi.safeStorage.get(t)==="true",If=t=>Tf(m1,t),$1=()=>Ef(m1),yd=t=>Tf(p1,t),kf=()=>Ef(p1),y1=()=>vi.safeStorage.get(v1),Af=t=>vi.safeStorage.set(v1,t),Pf=()=>vi.safeStorage.get(yf),Lf=t=>{t?vi.safeStorage.set(yf,t):vi.safeStorage.remove(yf)},x1=t=>vi.safeStorage.set(g1,JSON.stringify({rate:t})),w1=()=>{let t=vi.safeStorage.get(g1);if((0,vi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},S1=t=>Tf(h1,t),C1=()=>Ef(h1),yb=()=>{let t=f=>{vi.safeStorage.set(bf,JSON.stringify(f))},e=()=>{try{let f=vi.safeStorage.get(bf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=vi.safeStorage.get($f);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{vi.safeStorage.set($f,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=()=>{vi.safeStorage.remove($f)},l=()=>{vi.safeStorage.remove(bf)},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":yd(!0);break;case"exact_quality":Sf(f,m.quality)}s(),l()}},p=f=>{let m=Cf(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}kf()&&t({type:"traffic_saving",videoId:f}),yd(!1),hu()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Pf,savePreferredSubtitlesLanguage:Lf}},{getPreferredQualitySettings:T1,migrateSettingsToLegacyWay:E1,savePreferredQualitySettings:_u,savePreferredDefaultQualitySettings:zP,removePreferredQualitySettingsByVideo:WP,getPreferredDefaultQualitySettings:bu}=yb(),xb=3,wb=3,I1=()=>{let t=vi.safeStorage.get(_1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},$u=(t,e)=>{var n,s;let i=I1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},Mf=(t,e,i)=>{var l,d,a;let o=(l=I1())!=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=Sb(o);vi.safeStorage.set(_1,JSON.stringify(s))};function Sb(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(wb),e.reduce((o,[n])=>(o[n]=Cb(t[n]),o),{})}function Cb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(xb),Object.fromEntries(e)}var Hv=require("@vkontakte/videoplayer-core/es2018");var Tb=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function xd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Tb();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var fl=require("@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,
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`},u1=fb;var mb={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"},k1=Eb;var Ib={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.`},p1=mb;var xs=new Map;xs.set(fl.InterfaceLanguage.EN,p1);xs.set(fl.InterfaceLanguage.RU,u1);var f1=new Map,xf=({language:t,pack:e,fallback:i})=>{if(xs.has(t)){let o=xs.get(t);xs.set(t,{...o,...e})}else xs.set(t,e);f1.set(t,i)},wf=t=>xs.has(t),Sf=(t,e,i,o)=>{var l;let n=xs.get(t),s=n==null?void 0:n[e];if((0,fl.isNullable)(s)){let d=(l=f1.get(t))!=null?l:o,a=d?xs.get(d):void 0;s=a==null?void 0:a[e]}return(0,fl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):s},K=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=$e(i),n=At();return Sf(o,t,e,n.defaultLanguage)};var zP=require("@vkontakte/videoplayer-core/es2018");var ml;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ml||(ml={}));var vb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,hb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pu="?",_b="X-Sentry-Auth",bb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $b(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=vb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||pu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=hb.exec(i[s]))n={filename:o[2],function:o[1]||pu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=gb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||pu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=pu),e.push(n)}return e.length?{value:m1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function m1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function yb(t){try{let e=$b(t);if(e)return e}catch(e){}return{value:m1(t),type:t&&t.name,stacktrace:{frames:[]}}}function xb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var fu=class{constructor(e){if(e&&e.dsn){let i=bb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[yb(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(_b,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:xb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function v1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function wb(){return window}var mu=class t extends fu{constructor(e,i=wb()){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=>v1(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=>v1(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}};var ga=require("@vkontakte/videoplayer-shared/es2018");var vu=null,ha=class{constructor(e,i,o={}){!vu&&e.dsn&&(this.sentryClient=new mu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ga.Subscription,this.options=e,this.context=o,vu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),vu=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((0,ga.isNonNullable)(y)&&m.includes(y)||(0,ga.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,ga.isNonNullable)(y)&&p.includes(y)||(0,ga.isNonNullable)(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?ml.fatal:ml.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return vu}};var ns=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ns||{});var gu=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()},hu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),g1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,h1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},bd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ds=()=>!!bd(),_u=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},bu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},_1=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Cf=require("@vkontakte/videoplayer-core/es2018"),b1=()=>({title:K("hotkey_map_modal_title"),closeBtnText:K("hotkey_map_modal_close_btn_text"),groups:[{title:K("hotkey_map_group_title_common"),items:[{description:K("hotkey_map_item_mute_description"),value:K("hotkey_map_item_mute_value")},{description:K("hotkey_map_item_volume_up_description"),value:K("hotkey_map_item_volume_up_value")},{description:K("hotkey_map_item_volume_down_description"),value:K("hotkey_map_item_volume_down_value")},{description:K("hotkey_map_item_pip_description"),value:K("hotkey_map_item_pip_value")},{description:K("hotkey_map_item_full_screen_description"),value:K("hotkey_map_item_full_screen_value")},{description:K("hotkey_map_item_show_context_menu_description"),value:K("hotkey_map_item_show_context_menu_value")},{description:K("hotkey_map_item_show_hotkey_map_description"),value:K("hotkey_map_item_show_hotkey_map_value")}]},{title:K("hotkey_map_group_title_playback"),items:[{description:K("hotkey_map_item_play_toggle_description"),value:K("hotkey_map_item_play_toggle_value")},{description:K("hotkey_map_item_seek_backward_description"),value:K("hotkey_map_item_seek_backward_value")},{description:K("hotkey_map_item_seek_forward_description"),value:K("hotkey_map_item_seek_forward_value")},{description:K("hotkey_map_item_fast_seek_backward_description"),value:K("hotkey_map_item_fast_seek_backward_value")},{description:K("hotkey_map_item_fast_seek_forward_description"),value:K("hotkey_map_item_fast_seek_forward_value")},{description:K("hotkey_map_item_rate_down_description"),value:K("hotkey_map_item_rate_down_value")},{description:K("hotkey_map_item_rate_up_description"),value:K("hotkey_map_item_rate_up_value")},{description:K("hotkey_map_item_prev_frame_description"),value:K("hotkey_map_item_prev_frame_value")},{description:K("hotkey_map_item_next_frame_description"),value:K("hotkey_map_item_next_frame_value")},{description:K("hotkey_map_item_jump_seek_description"),value:K("hotkey_map_item_jump_seek_value")},{description:K("hotkey_map_item_next_video_description"),value:K("hotkey_map_item_next_video_value")},{description:K("hotkey_map_item_prev_video_description"),value:K("hotkey_map_item_prev_video_value")}]},{title:K("hotkey_map_group_title_subtitles"),items:[{description:K("hotkey_map_item_subtitles_toggle_description"),value:K("hotkey_map_item_subtitles_toggle_value")}]},{title:K("hotkey_map_group_title_episodes"),items:[{description:K("hotkey_map_item_prev_episode_description"),value:Cf.clientChecker.device.isApple?K("hotkey_map_item_prev_episode_mac_value"):K("hotkey_map_item_prev_episode_pc_value")},{description:K("hotkey_map_item_next_episode_description"),value:Cf.clientChecker.device.isApple?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});var vl=require("@vkontakte/videoplayer-shared/es2018"),_a=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,vl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new vl.ValueSubject(!1),isEnabled$:new vl.ValueSubject(!1),type:0};this.info.isEnabled$=new vl.ValueSubject(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 ba(t){return t instanceof _a}var gl=require("@vkontakte/videoplayer-shared/es2018");_g();function Ef(t,e){U(e,!1);let i=Ee();Lt(()=>{i.getAdmanWrapper().startPostroll()}),Fr(),z()}var $1=require("@vkontakte/videoplayer-shared/es2018");var Sb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Cb=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>'),Tb=M("<div><!></div>"),Eb={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 If(t,e){U(e,!0),q(t,Eb);let[i,o]=He(),n=()=>C(p,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,$1.noop),p=Ee().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=Tb();let u;m.__click=[Sb,f,d];var y=_(m);{var w=S=>{var T=Cb(),E=_(T);Se(),h(T),D(L=>be(E,`${L!=null?L:""} `),[()=>K("skip_ads_now")]),$(S,T)},x=S=>{var T=ts();D(E=>be(T,E),[()=>K("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(S,T)};R(y,S=>{r(f)?S(w):S(x,!1)})}h(m),D(S=>u=te(m,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,m),z(),o()}ut(["click"]);var Ib=M('<button class="svelte-1wy3dql"> </button>'),kb={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function kf(t,e){U(e,!1),q(t,kb),Fr();var i=Ib(),o=_(i,!0);h(i),D(n=>be(o,n),[()=>K("visit_advertiser")],Or),$(t,i),z()}var Ab=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Pb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Mb={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"},A1=Ib;var $s=new Map;$s.set(fl.InterfaceLanguage.EN,A1);$s.set(fl.InterfaceLanguage.RU,k1);var P1=new Map,Vf=({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);P1.set(t,i)},Rf=t=>$s.has(t),Nf=(t,e,i,o)=>{var l;let n=$s.get(t),s=n==null?void 0:n[e];if((0,fl.isNullable)(s)){let d=(l=P1.get(t))!=null?l:o,a=d?$s.get(d):void 0;s=a==null?void 0:a[e]}return(0,fl.isNullable)(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}=Se(),o=he(i),n=At();return Nf(o,t,e,n.defaultLanguage)};var dL=require("@vkontakte/videoplayer-core/es2018");var ml;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ml||(ml={}));var kb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ab=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Pb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,yu="?",Lb="X-Sentry-Auth",Mb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Vb(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=kb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||yu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Pb.exec(i[s]))n={filename:o[2],function:o[1]||yu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Ab.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||yu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=yu),e.push(n)}return e.length?{value:L1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function L1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function Rb(t){try{let e=Vb(t);if(e)return e}catch(e){}return{value:L1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Nb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var xu=class{constructor(e){if(e&&e.dsn){let i=Mb.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:[Rb(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(Lb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Nb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function M1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Ob(){return window}var wu=class t extends xu{constructor(e,i=Ob()){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=>M1(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=>M1(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}};var ha=require("@vkontakte/videoplayer-shared/es2018");var Su=null,_a=class{constructor(e,i,o={}){!Su&&e.dsn&&(this.sentryClient=new wu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ha.Subscription,this.options=e,this.context=o,Su=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Su=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:u,category:y}=i;if((0,ha.isNonNullable)(y)&&m.includes(y)||(0,ha.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,ha.isNonNullable)(y)&&p.includes(y)||(0,ha.isNonNullable)(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?ml.fatal:ml.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return Su}};var zr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(zr||{});var Cu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Tu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),V1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,R1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},wd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ds=()=>!!wd(),Eu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Iu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},N1=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Of=require("@vkontakte/videoplayer-core/es2018"),O1=()=>({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:Of.clientChecker.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:Of.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var vl=require("@vkontakte/videoplayer-shared/es2018"),ba=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,vl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new vl.ValueSubject(!1),isEnabled$:new vl.ValueSubject(!1),type:0};this.info.isEnabled$=new vl.ValueSubject(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 $a(t){return t instanceof ba}var gl=require("@vkontakte/videoplayer-shared/es2018");Ng();function Df(t,e){U(e,!1);let i=Se();Vt(()=>{i.getAdmanWrapper().startPostroll()}),Hr(),z()}var B1=require("@vkontakte/videoplayer-shared/es2018");var Bb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Db=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>'),Fb=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 Ff(t,e){U(e,!0),K(t,Hb);let[i,o]=Oe(),n=()=>C(p,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,B1.noop),p=Se().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=Fb();let u;m.__click=[Bb,f,d];var y=_(m);{var w=T=>{var S=Db(),E=_(S);$e(),h(S),D(R=>me(E,`${R!=null?R:""} `),[()=>q("skip_ads_now")]),$(T,S)},x=T=>{var S=rs();D(E=>me(S,E),[()=>q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(T,S)};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 Ub=M('<button class="svelte-1wy3dql"> </button>'),zb={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Hf(t,e){U(e,!1),K(t,zb),Hr();var i=Ub(),o=_(i,!0);h(i),D(n=>me(o,n),[()=>q("visit_advertiser")],Nr),$(t,i),z()}var Wb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Kb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),qb={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.`},p1=mb;var xs=new Map;xs.set(fl.Interf
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 yd(t,e){U(e,!0),q(t,Mb);let[i,o]=He(),n=()=>C(H,"$canSkipAd",i),s=()=>C(G,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(F,"$adPosition",i),a=()=>C(W,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$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=Ee(),S=At(),T=x.state.isEnded$,E=x.ui.isMobile,L=S.ads.isMobileGoToSiteButton,k=Y(void 0),I=Y(void 0),V=!1,G=x.ads.playbackState,H=x.ads.canSkip,F=x.ads.position,W=x.ads.secondsToWatchBeforeSkip,J=g(()=>n()&&s()!=="inactive"),j=g(()=>l()&&s()!=="inactive"&&L);Lt(()=>{var Ie;let ce=x.getAdmanWrapper();if(gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,gl.now)(),f()]}),!f()){ce.onAdmanLoadingError();return}let Le=async Ue=>{await ce.initAdman(Ue),V=!0},ve=new AbortController,ee=()=>{ve.abort()},{width:me,height:De}=$e(x.ui.playerSize),fe=$e(x.ui.isFullscreen),dt=(Ie=u())!=null?Ie:$e(x.ui.isAutoplay),Z=S.ads.paramsOverride,Pe={width:me,height:De,isFullscreen:fe,isAutoplay:dt,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:m(),paramsOverride:Z,duration:y(),externalApi:w()};return window.AdmanHTML?Le(Pe):ce.loadAdman(ve.signal).then(()=>Le(Pe)).catch(()=>{ce.onAdmanLoadingError()}),()=>{gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,gl.now)(),f()]}),!V&&ee()}});var le=Pb(),ie=_(le);{var pe=ce=>{var Le=Ab();$(ce,Le)};R(ie,ce=>{l()&&ce(pe)})}var he=A(ie,2);ot(he,ce=>B(I,ce),()=>r(I));var ue=A(he,2);{var Ne=ce=>{If(ce,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};R(ue,ce=>{r(J)&&ce(Ne)})}var oe=A(ue,2);{var Ve=ce=>{Ef(ce,{})};R(oe,ce=>{p()&&ce(Ve)})}var ne=A(oe,2);{var O=ce=>{kf(ce,{})};R(ne,ce=>{r(j)&&ce(O)})}h(le),ot(le,ce=>B(k,ce),()=>r(k)),$(t,le),z(),o()}var Cn=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 Lb=Ce('<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 Af(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Lb();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var Vb=Ce('<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 Pf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Vb();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}function xd(t,e){let i=v(e,"isActive",3,!1);var o=qe(),n=ge(o);{var s=d=>{Pf(d,{})},l=d=>{Af(d,{})};R(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var Rb=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>'),Nb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Ob=M('<span class="text svelte-1s15d2i"> </span>'),Bb=M("<div><!> <!></div>"),Db={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 Cd(t,e){U(e,!0),K(t,qb);let[i,o]=Oe(),n=()=>C(H,"$canSkipAd",i),s=()=>C(F,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(W,"$adPosition",i),a=()=>C(Y,"$secondsToWatchBeforeSkipAd",i),p=()=>C(S,"$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=Se(),T=At(),S=x.state.isEnded$,E=x.ui.isMobile,R=T.ads.isMobileGoToSiteButton,I=X(void 0),P=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);Vt(()=>{var Ce;let k=x.getAdmanWrapper();if(gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,gl.now)(),f()]}),!f()){k.onAdmanLoadingError();return}let ot=async He=>{await k.initAdman(He),B=!0},Ne=new AbortController,Q=()=>{Ne.abort()},{width:te,height:Re}=he(x.ui.playerSize),Xe=he(x.ui.isFullscreen),_e=(Ce=u())!=null?Ce:he(x.ui.isAutoplay),J=T.ads.paramsOverride,xe={width:te,height:Re,isFullscreen:Xe,isAutoplay:_e,adsContainer:r(I),adsVideoElement:r(P),slotId:f(),params:m(),paramsOverride:J,duration:y(),externalApi:w()};return window.AdmanHTML?ot(xe):k.loadAdman(Ne.signal).then(()=>ot(xe)).catch(()=>{k.onAdmanLoadingError()}),()=>{gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,gl.now)(),f()]}),!B&&Q()}});var ge=Kb(),ee=_(ge);{var fe=k=>{var ot=Wb();$(k,ot)};V(ee,k=>{l()&&k(fe)})}var ue=A(ee,2);at(ue,k=>O(P,k),()=>r(P));var ce=A(ue,2);{var Pe=k=>{Ff(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};V(ce,k=>{r(oe)&&k(Pe)})}var Me=A(ce,2);{var re=k=>{Df(k,{})};V(Me,k=>{p()&&k(re)})}var Ve=A(Me,2);{var ae=k=>{Hf(k,{})};V(Ve,k=>{r(G)&&k(ae)})}h(ge),at(ge,k=>O(I,k),()=>r(I)),$(t,ge),z(),o()}var yn=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 Qb=ye('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Uf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var Gb=ye('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function zf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}function Td(t,e){let i=v(e,"isActive",3,!1);var o=Be(),n=pe(o);{var s=d=>{zf(d,{})},l=d=>{Uf(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var jb=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>'),Yb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Zb=M('<span class="text svelte-1s15d2i"> </span>'),Xb=M("<div><!> <!></div>"),Jb={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.`},p1=mb;var xs=new Map;xs.set(fl.Interf
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 wd(t,e){q(t,Db);let i=v(e,"withEqualizer",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var s=Bb();let l;var d=_(s);{var a=u=>{var y=Rb();$(u,y)};R(d,u=>{i()&&u(a)})}var p=A(d,2);{var f=u=>{var y=Nb(),w=_(y);xd(w,{isActive:!0}),h(y),$(u,y)},m=u=>{var y=Ob(),w=_(y,!0);h(y),D(()=>be(w,e.time)),$(u,y)};R(p,u=>{o()?u(f):u(m,!1)})}h(s),D(u=>l=te(s,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),$(t,s)}var hl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Hb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Fb={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),q(t,Fb);let[i,o]=He(),n=()=>C(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=At(),p=g(()=>Cn(e.duration-e.position)),f=se(!1);var m=Hb();let u;var y=_(m);wd(y,{get time(){return r(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),$s(m,()=>hl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>u=te(m,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,m),z(),o()}var _l=t=>{if(!navigator.clipboard){y1(t);return}navigator.clipboard.writeText(t).catch(()=>y1(t))};function y1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var A1=require("@vkontakte/videoplayer-core/es2018");var Lf=require("@vkontakte/videoplayer-core/es2018");var Mf="focus-hidden";var xr=t=>{t.stopPropagation(),t.preventDefault()},Vf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Mf)},zb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Wb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Kb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},qb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},x1=t=>t.code==="Escape",Qb=t=>t.code==="ArrowLeft",Cd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},w1=t=>{Kb(t)?(xr(t),Wb(t.target)):qb(t)&&(xr(t),zb(t.target))},Us=t=>!Lf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Lf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",bl=async(t,e,i)=>{await Co(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await Co(),i.set(!1),t.focus())},S1=async(t,e,i)=>{await Co(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},Td=async(t,e,i,o=!1)=>{if(await Co(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Mf,!i),s==null||s.focus()}},C1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},$u=(t,e)=>{w1(t),Vf(t.target),x1(t)&&(xr(t),e())},yu=async(t,e)=>{Cd(t,["ArrowRight"])&&(xr(t),e())},T1=async(t,e,i)=>{if(w1(t),Qb(t)){xr(t),e();return}x1(t)&&(xr(t),i())},$l=(t,e)=>{Cd(t)&&(xr(t),e())},E1=(t,e,i)=>{if(Cd(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))}},I1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},k1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var xa=require("@vkontakte/videoplayer-shared/es2018");var zr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Rf=require("@vkontakte/videoplayer-shared/es2018");var jb=(t,e)=>{$l(t,()=>e())},Yb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Zb={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Nf(t,e){U(e,!0),q(t,Zb);let i=v(e,"onClick",3,Rf.noop),o=v(e,"closeContextMenu",3,Rf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Yb();s.__click=n,s.__keydown=[jb,n];var l=_(s,!0);h(s),D(()=>{var d;Fe(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Fe(s,"data-testid",e.id),be(l,e.label)}),$(t,s),z()}ut(["click","keydown"]);var ya=(t,e)=>t.weight-e.weight;var yl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(yl||{});var Xb=(t,e)=>{$u(t,e)},Jb=t=>{t.preventDefault()},e$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),t$={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){U(e,!0),q(t,t$);let[i,o]=He(),n=()=>C(J,"$isLive$",i),s=()=>C(pe,"$isPiPEnabled$",i),l=()=>C(W,"$chromecastState$",i),d=()=>C(he,"$pictureInPictureApiIsActive$",i),a=()=>C(ie,"$isLooped$",i),p=()=>C(j,"$positionExact$",i),f=()=>C(G,"$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),S=Y(0),T=Y(0),E=Ee(),{pictureInPicture$:L}=vo(),k=At(),I=E.ui.contextMenu.visible$,V=E.ui.debugPanelVisible,G=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,W=E.state.chromecastState$,J=E.state.isLive$,j=E.state.positionExact$,le=E.state.isInteractive,ie=E.state.looped$,{isEnabled$:pe,isActive$:he}=L,ue=g(()=>{var ke;return k.features.copyVideoLink&&((ke=E.callbacks)==null?void 0:ke.onCopyVideoLink)}),Ne=g(()=>r(ue)&&!n()&&!le),oe=g(()=>{var ke;return!!((ke=E.callbacks)!=null&&ke.onCopyEmbedCodeClicked)}),Ve=g(()=>s()&&l()!==A1.ChromecastState.CONNECTED&&!le),ne=g(()=>!le),O=g(()=>k.features.videoRotate&&!le),ce=g(()=>k.showSupport&&!d()),Le=g(()=>k.features.saveTraceInfoToFile),ve=()=>{var ke;I.set(!1),(ke=e.returnFocus)==null||ke.call(e)},ee=(ke,Qe)=>{if(!x()||!y()||!w())return;let Re=x().getBoundingClientRect(),Ye=y().getBoundingClientRect();B(S,ke-Ye.left),B(T,Qe-Ye.top),r(S)+Re.width>Ye.width&&B(S,Ye.width-Re.width),r(T)+Re.height>Ye.height&&B(T,Ye.height-Re.height),B(S,Math.max(r(S),0),!0),B(T,Math.max(r(T),0),!0)};Ke(()=>{(async()=>{if(x()&&y()&&w()){await Co();let{top:Qe,left:Re,bottom:Ye,right:Pt}=u(),Wt=Re!=null?Re:0,it=Qe!=null?Qe:0,ri=x().getBoundingClientRect();(0,xa.isNullable)(Re)&&!(0,xa.isNullable)(Pt)&&(Wt=Pt-ri.width),(0,xa.isNullable)(Qe)&&!(0,xa.isNullable)(Ye)&&(it=Ye-ri.height),Wt=Math.max(Wt,0),it=Math.max(it,0),ee(Wt,it)}})()});let me=()=>{E.actions.internal.videoRotate()},De=()=>{(0,xa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},fe=()=>{let ke=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Qe=new Blob([...ke],{type:"plain/text"}),Re=window.URL.createObjectURL(Qe);va(Re,"vk_player_debug_info","txt")}else _l(E.actions.internal.getDebugTextData())},dt=()=>{let ke=E.actions.internal.getTraceTextData(),Qe=new Blob([...ke],{type:"application/json"}),Re=window.URL.createObjectURL(Qe);va(Re,"vk_player_trace_info","json")},Z=()=>{V.set(!0)},Pe=async()=>{var ke;try{F()}finally{(ke=e.returnFocus)==null||ke.call(e)}},Ie=()=>{E.actions.internal.setLooped(!a())},Ue=()=>{var ke,Qe;if(r(oe)){let Re=(Qe=(ke=E.callbacks)==null?void 0:ke.onCopyEmbedCodeClicked)==null?void 0:Qe.call(ke);Re&&_l(Re)}},nt=(ke=!1)=>{var Qe,Re;if((Qe=E.callbacks)!=null&&Qe.onCopyVideoLink){let Ye=(Re=E.callbacks)==null?void 0:Re.onCopyVideoLink(ke,p());Ye&&_l(Ye)}},ft=g(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),mt=g(()=>r(ue)?{id:"copy-link",weight:zr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>nt()}:void 0),St=g(()=>r(Ne)?{id:"copy-link-timestamp",weight:zr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>nt(!0)}:void 0),Xe=g(()=>r(oe)?{id:"copy-embed-code",weight:zr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Ue}:void 0),Ht=g(()=>r(Ve)?{id:"pip",weight:zr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Pe}:void 0),Qt=g(()=>r(ne)?{id:"video-loop",weight:zr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ie}:void 0),Gt=g(()=>r(O)?{id:"rotate",weight:zr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:me}:void 0),Ft=g(()=>r(ce)?{id:"report",weight:zr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:De}:void 0),re=g(()=>({id:"save-debug",weight:zr["save-debug"],label:r(ft),onClick:fe})),Bt=g(()=>r(Le)?{id:"save-trace",weight:zr["save-trace"],label:H("menu_save_debug"),onClick:dt}:void 0),_e=g(()=>({id:"debug-info",weight:zr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:Z})),xe=g(()=>[r(mt),r(St),r(Xe),r(Ht),r(Qt),r(Gt),r(Ft),r(re),r(Bt),r(_e),...f()].filter(ke=>!!ke).sort(ya));var de=qe(),Be=ge(de);{var We=ke=>{var Qe=e$();Qe.__contextmenu=[Jb],Qe.__keydown=[Xb,ve],Si(Qe,21,()=>r(xe),Re=>Re.id,(Re,Ye)=>{Nf(Re,{get id(){return r(Ye).id},get label(){return r(Ye).label},get ariaLabel(){return r(Ye).ariaLabel},get onClick(){return r(Ye).onClick},closeContextMenu:ve})}),h(Qe),ot(Qe,Re=>x(Re),()=>x()),D(()=>{var Re,Ye;return st(Qe,`top: ${(Re=r(T))!=null?Re:""}px; left: ${(Ye=r(S))!=null?Ye:""}px;`)}),$(ke,Qe)};R(Be,ke=>{m()&&ke(We)})}$(t,de),z(),o()}ut(["contextmenu","keydown"]);var xu=class{constructor(e){this.value=e,this.next=null}};var xl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new xu(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 i$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),o$={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 Ed(t,e){U(e,!0),q(t,o$);let i=v(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),s=16,l=120,d=60,a=l/d;Lt(()=>{r(o).width=l,r(o).height=s,B(n,r(o).getContext("2d"),!0)});function p(u,y,w,x,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect(y,w,x,S)}Ke(()=>{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 S=w*a,T=y>0?s*(i()[x]/y):0;p(r(n),S,0,a,T),u=T+" "+u,w--}}});var f=i$(),m=_(f);ot(m,u=>B(o,u),()=>r(o)),h(f),$(t,f),z()}var Bf=require("@vkontakte/videoplayer-shared/es2018");var n$=(t,e)=>{t.stopPropagation(),Bf.safeStorage.remove(fd),e.set(!1)},r$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),s$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),a$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),l$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),d$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),c$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),u$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),p$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),f$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),m$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),v$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),g$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),h$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),_$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),b$=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),$$={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Id(t,e){U(e,!0),q(t,$$);let[i,o]=He(),n=()=>C(d,"$isMobile",i),s=Ee(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Y(ti(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=Y(0),m=Y(0),u=Y(0),y=new xl(60),w=new xl(60),x=new xl(60),S=Y(ti([])),T=Y(ti([])),E=Y(ti([])),L=K("aria_label_debug_panel");Lt(()=>{Bf.safeStorage.set(fd,"true"),s.actions.internal.startLogging(),p&&(B(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let _e=window.setInterval(()=>{B(a,s.actions.internal.getDebugPanelData(),!0)},500),xe;return p&&(xe=window.setInterval(()=>{if(p){B(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let de=p.getVideoPlaybackQuality().totalVideoFrames;B(u,de-r(f)),B(f,de,!0),y.push(r(u)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&x.push(r(a).bitrate),B(S,y.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(_e),xe&&clearInterval(xe)}});var k=b$();let I;var V=_(k);V.__click=[n$,l];var G=A(V,2),H=_(G),F=A(_(H),2),W=_(F,!0);h(F),h(H);var J=A(H,2);{var j=_e=>{var xe=r$(),de=A(_(xe),2),Be=_(de,!0);h(de),h(xe),D(()=>be(Be,r(a).id)),$(_e,xe)};R(J,_e=>{r(a).id&&_e(j)})}var le=A(J,2);{var ie=_e=>{var xe=s$(),de=A(_(xe),2),Be=_(de,!0);h(de),h(xe),D(()=>be(Be,r(a).vsid)),$(_e,xe)};R(le,_e=>{r(a).vsid&&_e(ie)})}var pe=A(le,2);{var he=_e=>{var xe=a$(),de=A(_(xe),2),Be=_(de,!0);h(de),h(xe),D(()=>be(Be,r(a).provider)),$(_e,xe)};R(pe,_e=>{r(a).provider&&_e(he)})}var ue=A(pe,2);{var Ne=_e=>{var xe=l$(),de=A(_(xe),2),Be=_(de);h(de),h(xe),D(()=>{var We,ke;return be(Be,`Video: ${(We=r(a).videoCodec||"")!=null?We:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Ed(t,e){K(t,Jb);let i=v(e,"withEqualizer",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var s=Xb();let l;var d=_(s);{var a=u=>{var y=jb();$(u,y)};V(d,u=>{i()&&u(a)})}var p=A(d,2);{var f=u=>{var y=Yb(),w=_(y);Td(w,{isActive:!0}),h(y),$(u,y)},m=u=>{var y=Zb(),w=_(y,!0);h(y),D(()=>me(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 hl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var e$=M('<div role="timer" data-testid="thumb-timer"><!></div>'),t$={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 Id(t,e){U(e,!0),K(t,t$);let[i,o]=Oe(),n=()=>C(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=At(),p=g(()=>yn(e.duration-e.position)),f=se(!1);var m=e$();let u;var y=_(m);Ed(y,{get time(){return r(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),_s(m,()=>hl(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 _l=t=>{if(!navigator.clipboard){D1(t);return}navigator.clipboard.writeText(t).catch(()=>D1(t))};function D1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var G1=require("@vkontakte/videoplayer-core/es2018");var Kf=require("@vkontakte/videoplayer-core/es2018");var Wf="focus-hidden";var Tr=t=>{t.stopPropagation(),t.preventDefault()},qf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Wf)},o$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},n$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},r$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},s$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},F1=t=>t.code==="Escape",a$=t=>t.code==="ArrowLeft",kd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},H1=t=>{r$(t)?(Tr(t),n$(t.target)):s$(t)&&(Tr(t),o$(t.target))},Us=t=>!Kf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Kf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",bl=async(t,e,i)=>{await ko(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(await ko(),i.set(!1),t.focus())},U1=async(t,e,i)=>{await ko(),t&&!e&&he(i)&&(i.set(!1),t.focus())},Ad=async(t,e,i,o=!1)=>{if(await ko(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Wf,!i),s==null||s.focus()}},z1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},ku=(t,e)=>{H1(t),qf(t.target),F1(t)&&(Tr(t),e())},Au=async(t,e)=>{kd(t,["ArrowRight"])&&(Tr(t),e())},W1=async(t,e,i)=>{if(H1(t),a$(t)){Tr(t),e();return}F1(t)&&(Tr(t),i())},$l=(t,e)=>{kd(t)&&(Tr(t),e())},K1=(t,e,i)=>{if(kd(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))}},q1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Q1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var wa=require("@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};var Qf=require("@vkontakte/videoplayer-shared/es2018");var d$=(t,e)=>{$l(t,()=>e())},c$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),u$={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Gf(t,e){U(e,!0),K(t,u$);let i=v(e,"onClick",3,Qf.noop),o=v(e,"closeContextMenu",3,Qf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=c$();s.__click=n,s.__keydown=[d$,n];var l=_(s,!0);h(s),D(()=>{var d;De(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(s,"data-testid",e.id),me(l,e.label)}),$(t,s),z()}dt(["click","keydown"]);var xa=(t,e)=>t.weight-e.weight;var yl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(yl||{});var p$=(t,e)=>{ku(t,e)},f$=t=>{t.preventDefault()},m$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),v$={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 jf(t,e){U(e,!0),K(t,v$);let[i,o]=Oe(),n=()=>C(fe,"$playerPhase",i),s=()=>C(oe,"$isLive$",i),l=()=>C(ue,"$isPiPEnabled$",i),d=()=>C(Y,"$chromecastState$",i),a=()=>C(ce,"$pictureInPictureApiIsActive$",i),p=()=>C(ee,"$isLooped$",i),f=()=>C(G,"$positionExact$",i),m=()=>C(F,"$additionalContextMenuItems$",i),u=v(e,"visible",3,!1),y=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),x=v(e,"menuElementRef",15,void 0),T=X(0),S=X(0),E=Se(),{pictureInPicture$:R}=_o(),I=At(),P=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$,ge=E.state.isInteractive,ee=E.state.looped$,fe=E.playerPhase,{isEnabled$:ue,isActive$:ce}=R,Pe=g(()=>n()==="video"),Me=g(()=>!!s()&&r(Pe)),re=g(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(n())),Ve=g(()=>{var ze;return I.features.copyVideoLink&&((ze=E.callbacks)==null?void 0:ze.onCopyVideoLink)}),ae=g(()=>r(Ve)&&!r(re)&&!ge&&!r(Me)),k=g(()=>{var ze;return!!((ze=E.callbacks)!=null&&ze.onCopyEmbedCodeClicked)}),ot=g(()=>l()&&d()!==G1.ChromecastState.CONNECTED&&!ge&&r(Pe)),Ne=g(()=>!ge&&!r(re)&&!r(Me)),Q=g(()=>I.features.videoRotate&&!ge&&!r(re)),te=g(()=>I.showSupport&&!a()),Re=g(()=>I.features.saveTraceInfoToFile),Xe=()=>{var ze;P.set(!1),(ze=e.returnFocus)==null||ze.call(e)},_e=(ze,rt)=>{if(!x()||!w())return;let Ke=x().getBoundingClientRect(),Mt=w().getBoundingClientRect();O(T,ze-Mt.left),O(S,rt-Mt.top),r(T)+Ke.width>Mt.width&&O(T,Mt.width-Ke.width),r(S)+Ke.height>Mt.height&&O(S,Mt.height-Ke.height),O(T,Math.max(r(T),0),!0),O(S,Math.max(r(S),0),!0)};Ue(()=>{(async()=>{if(x()&&w()){await ko();let{top:rt,left:Ke,bottom:Mt,right:ni}=y(),Zt=Ke!=null?Ke:0,gi=rt!=null?rt:0,Ei=x().getBoundingClientRect();(0,wa.isNullable)(Ke)&&!(0,wa.isNullable)(ni)&&(Zt=ni-Ei.width),(0,wa.isNullable)(rt)&&!(0,wa.isNullable)(Mt)&&(gi=Mt-Ei.height),Zt=Math.max(Zt,0),gi=Math.max(gi,0),_e(Zt,gi)}})()});let J=()=>{E.actions.internal.videoRotate()},xe=()=>{(0,wa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Ce=()=>{let ze=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let rt=new Blob([...ze],{type:"plain/text"}),Ke=window.URL.createObjectURL(rt);ga(Ke,"vk_player_debug_info","txt")}else _l(E.actions.internal.getDebugTextData())},He=()=>{let ze=E.actions.internal.getTraceTextData(),rt=new Blob([...ze],{type:"application/json"}),Ke=window.URL.createObjectURL(rt);ga(Ke,"vk_player_trace_info","json")},nt=()=>{B.set(!0)},bt=async()=>{var ze;try{W()}finally{(ze=e.returnFocus)==null||ze.call(e)}},ct=()=>{E.actions.internal.setLooped(!p())},$t=()=>{var ze,rt;if(r(k)){let Ke=(rt=(ze=E.callbacks)==null?void 0:ze.onCopyEmbedCodeClicked)==null?void 0:rt.call(ze);Ke&&_l(Ke)}},et=(ze=!1)=>{var rt,Ke;if((rt=E.callbacks)!=null&&rt.onCopyVideoLink){let Mt=(Ke=E.callbacks)==null?void 0:Ke.onCopyVideoLink(ze,f());Mt&&_l(Mt)}},zt=g(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Qt=g(()=>r(Ve)?{id:"copy-link",weight:Wr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>et()}:void 0),Gt=g(()=>r(ae)?{id:"copy-link-timestamp",weight:Wr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>et(!0)}:void 0),jt=g(()=>r(k)?{id:"copy-embed-code",weight:Wr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:$t}:void 0),Ee=g(()=>r(ot)?{id:"pip",weight:Wr.pip,label:a()?H("menu_pip_close"):H("menu_pip"),onClick:bt}:void 0),Yt=g(()=>r(Ne)?{id:"video-loop",weight:Wr["video-loop"],label:p()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ct}:void 0),we=g(()=>r(Q)?{id:"rotate",weight:Wr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:J}:void 0),be=g(()=>r(te)?{id:"report",weight:Wr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:xe}:void 0),de=g(()=>({id:"save-debug",weight:Wr["save-debug"],label:r(zt),onClick:Ce})),Qe=g(()=>r(Re)?{id:"save-trace",weight:Wr["save-trace"],label:H("menu_save_debug"),onClick:He}:void 0),Fe=g(()=>({id:"debug-info",weight:Wr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:nt})),mt=g(()=>[r(Qt),r(Gt),r(jt),r(Ee),r(Yt),r(we),r(be),r(de),r(Qe),r(Fe),...m()].filter(ze=>!!ze).sort(xa));var Ae=Be(),We=pe(Ae);{var ut=ze=>{var rt=m$();rt.__contextmenu=[f$],rt.__keydown=[p$,Xe],ki(rt,21,()=>r(mt),Ke=>Ke.id,(Ke,Mt)=>{Gf(Ke,{get id(){return r(Mt).id},get label(){return r(Mt).label},get ariaLabel(){return r(Mt).ariaLabel},get onClick(){return r(Mt).onClick},closeContextMenu:Xe})}),h(rt),at(rt,Ke=>x(Ke),()=>x()),D(()=>{var Ke,Mt;return lt(rt,`top: ${(Ke=r(S))!=null?Ke:""}px; left: ${(Mt=r(T))!=null?Mt:""}px;`)}),$(ze,rt)};V(We,ze=>{u()&&ze(ut)})}$(t,Ae),z(),o()}dt(["contextmenu","keydown"]);var Pu=class{constructor(e){this.value=e,this.next=null}};var xl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Pu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var g$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),h$={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 Pd(t,e){U(e,!0),K(t,h$);let i=v(e,"values",19,()=>[]),o=X(void 0),n=X(null),s=16,l=120,d=60,a=l/d;Vt(()=>{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)}Ue(()=>{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,S=y>0?s*(i()[x]/y):0;p(r(n),T,0,a,S),u=S+" "+u,w--}}});var f=g$(),m=_(f);at(m,u=>O(o,u),()=>r(o)),h(f),$(t,f),z()}var Yf=require("@vkontakte/videoplayer-shared/es2018");var _$=(t,e)=>{t.stopPropagation(),Yf.safeStorage.remove(hd),e.set(!1)},b$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),$$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),y$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),x$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),w$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),S$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),C$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),T$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),E$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),I$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),k$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),A$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),P$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),L$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),M$=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),V$={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Ld(t,e){U(e,!0),K(t,V$);let[i,o]=Oe(),n=()=>C(d,"$isMobile",i),s=Se(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=X(ii(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=X(0),m=X(0),u=X(0),y=new xl(60),w=new xl(60),x=new xl(60),T=X(ii([])),S=X(ii([])),E=X(ii([])),R=q("aria_label_debug_panel");Vt(()=>{Yf.safeStorage.set(hd,"true"),s.actions.internal.startLogging(),p&&(O(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let we=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),be;return p&&(be=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(S,w.getValuesFromBottom(),!0),O(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(we),be&&clearInterval(be)}});var I=M$();let P;var B=_(I);B.__click=[_$,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=we=>{var be=b$(),de=A(_(be),2),Qe=_(de,!0);h(de),h(be),D(()=>me(Qe,r(a).id)),$(we,be)};V(oe,we=>{r(a).id&&we(G)})}var ge=A(oe,2);{var ee=we=>{var be=$$(),de=A(_(be),2),Qe=_(de,!0);h(de),h(be),D(()=>me(Qe,r(a).vsid)),$(we,be)};V(ge,we=>{r(a).vsid&&we(ee)})}var fe=A(ge,2);{var ue=we=>{var be=y$(),de=A(_(be),2),Qe=_(de,!0);h(de),h(be),D(()=>me(Qe,r(a).provider)),$(we,be)};V(fe,we=>{r(a).provider&&we(ue)})}var ce=A(fe,2);{var Pe=we=>{var be=x$(),de=A(_(be),2),Qe=_(de);h(de),h(be),D(()=>{var Fe,mt;return me(Qe,`Video: ${(Fe=r(a).videoCodec||"")!=null?Fe:""} ${r(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(ke=r(a).audioCodec||"")!=null?ke:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(_e,xe)};R(ue,_e=>{(r(a).videoCodec||r(a).audioCodec)&&_e(Ne)})}var oe=A(ue,2);{var Ve=_e=>{var xe=d$(),de=A(_(xe),2),Be=_(de,!0);h(de),h(xe),D(()=>be(Be,r(a).viewport)),$(_e,xe)};R(oe,_e=>{r(a).viewport&&_e(Ve)})}var ne=A(oe,2);{var O=_e=>{var xe=c$(),de=A(_(xe),2),Be=_(de,!0);h(de),h(xe),D(()=>be(Be,r(a).videoSize)),$(_e,xe)};R(ne,_e=>{r(a).videoSize&&_e(O)})}var ce=A(ne,2);{var Le=_e=>{var xe=u$(),de=A(_(xe),2),Be=_(de,!0);h(de),h(xe),D(()=>be(Be,r(a).cdn)),$(_e,xe)};R(ce,_e=>{r(a).cdn&&_e(Le)})}var ve=A(ce,2);{var ee=_e=>{var xe=p$(),de=A(_(xe),2),Be=_(de);h(de),h(xe),D(()=>{var We;return be(Be,`${(We=r(a).volume)!=null?We:""} %`)}),$(_e,xe)};R(ve,_e=>{r(a).volume&&_e(ee)})}var me=A(ve,2);{var De=_e=>{var xe=f$(),de=A(_(xe),2),Be=_(de);h(de),h(xe),D(We=>be(Be,`${We!=null?We:""} s`),[()=>r(a).position.toFixed(2)]),$(_e,xe)};R(me,_e=>{r(a).position&&_e(De)})}var fe=A(me,2);{var dt=_e=>{var xe=m$(),de=A(_(xe),2),Be=_(de);h(de),h(xe),D(We=>be(Be,`${We!=null?We:""} s`),[()=>r(a).buffer.toFixed(2)]),$(_e,xe)};R(fe,_e=>{r(a).buffer&&_e(dt)})}var Z=A(fe,2);{var Pe=_e=>{var xe=v$(),de=A(_(xe),2),Be=_(de);h(de),h(xe),D(We=>be(Be,`${We!=null?We:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(_e,xe)};R(Z,_e=>{r(a).liveLatency&&_e(Pe)})}var Ie=A(Z,2);{var Ue=_e=>{var xe=g$(),de=A(_(xe),2),Be=_(de,!0);h(de),h(xe),D(We=>be(Be,We),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:We})=>We).map(({value:We,title:ke})=>`${ke} ${((We!=null?We:0)/1e3).toFixed(2)} s`).join(" & ")]),$(_e,xe)};R(Ie,_e=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&_e(Ue)})}var nt=A(Ie,2),ft=A(_(nt),2),mt=_(ft);h(ft),h(nt);var St=A(nt,2);{var Xe=_e=>{var xe=h$(),de=A(_(xe),2);Ed(de,{get values(){return r(T)}});var Be=A(de,2),We=_(Be);h(Be),h(xe),D(ke=>be(We,`${ke!=null?ke:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(_e,xe)};R(St,_e=>{r(a).speed&&_e(Xe)})}var Ht=A(St,2);{var Qt=_e=>{var xe=_$(),de=A(_(xe),2);Ed(de,{get values(){return r(E)}});var Be=A(de,2),We=_(Be);h(Be),h(xe),D(ke=>be(We,`${ke!=null?ke:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(_e,xe)};R(Ht,_e=>{r(a).bitrate&&_e(Qt)})}var Gt=A(Ht,2),Ft=A(_(Gt),2);Ed(Ft,{get values(){return r(S)}});var re=A(Ft,2),Bt=_(re,!0);h(re),h(Gt),h(G),h(k),D(_e=>{var xe,de;I=te(k,1,"container svelte-4deykz",null,I,_e),Fe(k,"aria-label",L),be(W,r(a).version),be(mt,`${(xe=r(m))!=null?xe:""} / ${(de=r(f))!=null?de:""} frames`),be(Bt,r(u))},[()=>({"container-mobile":n()})]),$(t,k),z(),o()}ut(["click"]);var P1=require("@vkontakte/videoplayer-shared/es2018"),y$=(t,e)=>{t.stopPropagation(),e()()},x$=M('<div class="close svelte-1ome55p"></div>'),w$={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 wa(t,e){U(e,!0),q(t,w$);let i=v(e,"onClick",3,P1.noop);var o=x$();o.__click=[y$,i],$(t,o),z()}ut(["click"]);var M1=require("@vkontakte/videoplayer-shared/es2018"),S$=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>'),C$={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 kd(t,e){U(e,!0),q(t,C$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,M1.noop),n=5e3,s=Y(void 0),l,d,a=0,p;Ke(()=>{i()&&Ct(()=>{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()())};Lt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),rn(()=>{f()});var u=S$(),y=_(u);ot(y,w=>B(s,w),()=>r(s)),Se(2),h(u),$(t,u),z()}var T$=(t,e,i)=>{e(!1),i()},E$=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),I$={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){U(e,!0),q(t,I$);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),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()};Lt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),T=ge(S);{var E=L=>{var k=E$(),I=A(ge(k),2),V=_(I),G=_(V),H=_(G,!0);h(G);var F=A(G,2);wa(F,{onClick:x}),h(V);var W=A(V,2);W.__click=[T$,p,m];var J=_(W),j=_(J),le=_(j);let ie;var pe=A(le,2);{var he=Ve=>{let ne=g(()=>s()&&n());kd(Ve,{get isRunning(){return r(ne)},onTimerEnded:w})};R(pe,Ve=>{n()&&Ve(he)})}h(j),h(J);var ue=A(J,2),Ne=_(ue),oe=_(Ne,!0);h(Ne),h(ue),h(W),h(I),D((Ve,ne)=>{be(H,Ve),st(j,`background-image: url('${e.thumb}')`),ie=te(le,1,"thumb-overlay svelte-jfbaax",null,ie,ne),be(oe,e.title)},[()=>K("end_screen_next_video"),()=>({withOpacity:n()})]),$(L,k)};R(T,L=>{e.isHide||L(E)})}$(t,S),z(),o()}ut(["click"]);var Ws=require("@vkontakte/videoplayer-core/es2018"),L1=require("@vkontakte/videoplayer-shared/es2018"),Tn=require("@vkontakte/videoplayer-statistics/es2018");var Hf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Ff=(t,e)=>Math.max(+(t-e).toFixed(2),0),wu=(t,e,i)=>{let o=Hf(e,i);e<1?t.actions.internal.setVolume(o):$e(t.state.muted$)&&t.actions.internal.setMuted(!1)},Su=(t,e,i)=>{let o=Ff(e,i);e>0&&t.actions.internal.setVolume(o)};var zs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var A$=(t,e)=>{e(t)},P$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),M$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Uf(t,e){var Gt,Ft;U(e,!0),q(t,M$);let[i,o]=He(),n=()=>C(H,"$playbackState$",i),s=()=>C(F,"$adPlaybackState",i),l=()=>C(le,"$disabledControls$",i),d=()=>C(W,"$positionExact$",i),a=()=>C(J,"$duration$",i),p=()=>C(ee,"$isAudioAvailable$",i),f=()=>C(j,"$volume$",i),m=()=>C(ue,"$availablePlaybackRates$",i),u=()=>C(he,"$currentPlaybackRate$",i),y=()=>C(De,"$isInteractiveTime$",i),w=()=>C(fe,"$showInteractiveTimeIndicatorTooltip$",i),x=()=>C(O,"$isEnded$",i),S=()=>C(ie,"$muted$",i),T=()=>C(pe,"$currentSubtitle$",i),E=()=>C(ce,"$overlayContainer$",i),L=v(e,"nextButtonActive",3,!1),k=v(e,"prevButtonActive",3,!1),I=Ee(),V=At(),G=I.getLogger().createComponentLog("KeyboardControls component"),H=I.state.playbackState$,F=I.ads.playbackState,W=I.state.positionExact$,J=I.state.duration$,j=I.state.volume$,le=I.ui.controls.disabledControls$,ie=I.state.muted$,pe=I.state.currentSubtitle$,he=I.state.currentPlaybackRate$,ue=I.state.availablePlaybackRates$,Ne=I.ui.contextMenu.openedByHotKey$,oe=I.ui.contextMenu.lastActiveElem$,Ve=I.ui.contextMenu.visible$,ne=I.ui.contextMenu.position$,O=I.state.isEnded$,ce=I.ui.overlayContainer$,Le=(Gt=I.callbacks)==null?void 0:Gt.onAudioDoesNotExistHint,ve=(Ft=I.callbacks)==null?void 0:Ft.onAudioDisabledHint,ee=I.state.isAudioAvailable$,me=I.state.isAudioDisabled,De=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:fe}=vo(),dt=0,Z=!0,Pe=Y(void 0),Ie=re=>(re!==Z&&(Z=re,dt=0),dt+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*dt)/1e3),Ue=(re,Bt=!1)=>{var ri,si;let _e=re.target,xe=(ri=_e==null?void 0:_e.getAttribute("role"))==null?void 0:ri.includes("menuitem"),de=_e.classList.contains("btn"),Be=re.code;if(de&&Be==="Space")return!1;let We=Vh.has(Be);if(xe&&We)return!1;let ke=!Lh.has(Be);if(re.ctrlKey&&ke||re.altKey&&ke||re.metaKey)return!1;let Qe=xe&&Be==="Escape";Rh.has(Be)||Qe||e.hideContextMenu();let Re=n()===Ws.PlaybackState.PLAYING||n()===Ws.PlaybackState.PAUSED,Ye=e.isAds&&(s()==="paused"||s()==="playing"),Pt=!Ye&&!l().has("TIMELINE");if(!(Re||Ye))return!1;G({message:`key down, code: ${Be}, isExternal = ${Bt}`});let Wt=!1,it=()=>{Wt=!0,Bt||re.preventDefault()};switch(Be){case"KeyJ":case"ArrowLeft":{if(!Pt)break;if(re.ctrlKey||re.altKey){let ct=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(ct),ct&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ct.text}),it()}else{let ct=re.shiftKey?Ie(!1):V.controls.seekStepKeyboard/1e3,ii=Math.max(d()-ct,0);d()>0&&(I.actions.internal.seekTime(ii,Tn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ct.toString()}),it())}break}case"KeyL":case"ArrowRight":{if(!Pt)break;if(re.ctrlKey||re.altKey){let ct=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(ct),ct&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ct.text}),it()}else{let ct=re.shiftKey?Ie(!0):V.controls.seekStepKeyboard/1e3,ii=Math.min(d()+ct,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(ii,Tn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ct.toString()}),it())}break}case"ArrowUp":{if(zs({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:Le,isAds:e.isAds})){let ct=f(),ii=V.controls.volumeStepKeyboard,Xi=ct<=1;if(wu(I,ct,ii),Xi){let qi=Math.round(Hf(ct,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:qi}})}}it();break}case"ArrowDown":{if(zs({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:Le,isAds:e.isAds})){let ct=f(),ii=V.controls.volumeStepKeyboard,Xi=ct>=0;if(Su(I,ct,ii),Xi){let qi=Math.round(Ff(ct,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:qi}})}}it();break}case"Comma":{if(re.shiftKey){I.actions.internal.decrementPlaybackRate();let ct=m().find(ii=>ii.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:ct==null?void 0:ct.displayValue}),it()}else{if(Ye||n()!==Ws.PlaybackState.PAUSED)break;let ct=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ct,Tn.SeekAction.DOUBLE_TAP),it())}break}case"Period":{if(re.shiftKey){I.actions.internal.incrementPlaybackRate();let ct=m().find(ii=>ii.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:ct==null?void 0:ct.displayValue}),it()}else{if(Ye||n()!==Ws.PlaybackState.PAUSED)break;let ct=Math.min(d()+V.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ct,Tn.SeekAction.DOUBLE_TAP),it())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(y()&&w()&&fe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let ct="PLAY";n()===Ws.PlaybackState.PAUSED?ct="PAUSE":x()&&(ct="REPLAY"),e.showHotKeyHelpers({type:ct})}it();break;case"KeyM":{zs({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:Le,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),it();break}case"KeyF":e.toggleFullscreen(),it();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(si=T())==null?void 0:si.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),it();break;case"KeyI":I.actions.internal.togglePictureInPicture(),it();break;case"Digit1":case"Numpad1":if(re.shiftKey){let ct=k1(E());ne.set(ct),oe.set(_e),Ne.set(!0),Ve.set(!0),it();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,Tn.SeekAction.DOUBLE_TAP),it();break;case"Slash":{re.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),it());break}case"KeyN":re.shiftKey&&L()&&(I.actions.internal.nextVideoClick(),it());break;case"KeyP":re.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),it());break;case"ShiftLeft":case"ShiftRight":it();break;case"Tab":case"Escape":case"Enter":break;default:(0,L1.checkNever)(Be);break}return Wt},nt=re=>{let Bt=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;let _e=n()===Ws.PlaybackState.PLAYING||n()===Ws.PlaybackState.PAUSED,xe=e.isAds&&(s()==="paused"||s()==="playing");if(_e||xe)switch(Bt){case"ShiftLeft":case"ShiftRight":dt=0;break}},ft=K("aria_label_video_player"),mt=()=>{var re;return(re=r(Pe))==null?void 0:re.focus()},St=re=>re.type==="keydown"?Ue(re,!0):(re.type==="keyup"&&nt(re),!1);var Xe=P$();Xe.__keyup=nt,Xe.__keydown=[A$,Ue];var Ht=_(Xe);ye(Ht,()=>{var re;return(re=e.children)!=null?re:ae}),h(Xe),ot(Xe,re=>B(Pe,re),()=>r(Pe)),D(()=>Fe(Xe,"aria-label",ft)),$(t,Xe);var Qt=z({focus:mt,handleExternalKeyboardEvent:St});return o(),Qt}ut(["keyup","keydown"]);var L$=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>'),V$={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: ${(mt=r(a).audioCodec||"")!=null?mt:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(we,be)};V(ce,we=>{(r(a).videoCodec||r(a).audioCodec)&&we(Pe)})}var Me=A(ce,2);{var re=we=>{var be=w$(),de=A(_(be),2),Qe=_(de,!0);h(de),h(be),D(()=>me(Qe,r(a).viewport)),$(we,be)};V(Me,we=>{r(a).viewport&&we(re)})}var Ve=A(Me,2);{var ae=we=>{var be=S$(),de=A(_(be),2),Qe=_(de,!0);h(de),h(be),D(()=>me(Qe,r(a).videoSize)),$(we,be)};V(Ve,we=>{r(a).videoSize&&we(ae)})}var k=A(Ve,2);{var ot=we=>{var be=C$(),de=A(_(be),2),Qe=_(de,!0);h(de),h(be),D(()=>me(Qe,r(a).cdn)),$(we,be)};V(k,we=>{r(a).cdn&&we(ot)})}var Ne=A(k,2);{var Q=we=>{var be=T$(),de=A(_(be),2),Qe=_(de);h(de),h(be),D(()=>{var Fe;return me(Qe,`${(Fe=r(a).volume)!=null?Fe:""} %`)}),$(we,be)};V(Ne,we=>{r(a).volume&&we(Q)})}var te=A(Ne,2);{var Re=we=>{var be=E$(),de=A(_(be),2),Qe=_(de);h(de),h(be),D(Fe=>me(Qe,`${Fe!=null?Fe:""} s`),[()=>r(a).position.toFixed(2)]),$(we,be)};V(te,we=>{r(a).position&&we(Re)})}var Xe=A(te,2);{var _e=we=>{var be=I$(),de=A(_(be),2),Qe=_(de);h(de),h(be),D(Fe=>me(Qe,`${Fe!=null?Fe:""} s`),[()=>r(a).buffer.toFixed(2)]),$(we,be)};V(Xe,we=>{r(a).buffer&&we(_e)})}var J=A(Xe,2);{var xe=we=>{var be=k$(),de=A(_(be),2),Qe=_(de);h(de),h(be),D(Fe=>me(Qe,`${Fe!=null?Fe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(we,be)};V(J,we=>{r(a).liveLatency&&we(xe)})}var Ce=A(J,2);{var He=we=>{var be=A$(),de=A(_(be),2),Qe=_(de,!0);h(de),h(be),D(Fe=>me(Qe,Fe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Fe})=>Fe).map(({value:Fe,title:mt})=>`${mt} ${((Fe!=null?Fe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(we,be)};V(Ce,we=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&we(He)})}var nt=A(Ce,2),bt=A(_(nt),2),ct=_(bt);h(bt),h(nt);var $t=A(nt,2);{var et=we=>{var be=P$(),de=A(_(be),2);Pd(de,{get values(){return r(S)}});var Qe=A(de,2),Fe=_(Qe);h(Qe),h(be),D(mt=>me(Fe,`${mt!=null?mt:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(we,be)};V($t,we=>{r(a).speed&&we(et)})}var zt=A($t,2);{var Qt=we=>{var be=L$(),de=A(_(be),2);Pd(de,{get values(){return r(E)}});var Qe=A(de,2),Fe=_(Qe);h(Qe),h(be),D(mt=>me(Fe,`${mt!=null?mt:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(we,be)};V(zt,we=>{r(a).bitrate&&we(Qt)})}var Gt=A(zt,2),jt=A(_(Gt),2);Pd(jt,{get values(){return r(T)}});var Ee=A(jt,2),Yt=_(Ee,!0);h(Ee),h(Gt),h(F),h(I),D(we=>{var be,de;P=ne(I,1,"container svelte-4deykz",null,P,we),De(I,"aria-label",R),me(Y,r(a).version),me(ct,`${(be=r(m))!=null?be:""} / ${(de=r(f))!=null?de:""} frames`),me(Yt,r(u))},[()=>({"container-mobile":n()})]),$(t,I),z(),o()}dt(["click"]);var j1=require("@vkontakte/videoplayer-shared/es2018"),R$=(t,e)=>{t.stopPropagation(),e()()},N$=M('<div class="close svelte-1ome55p"></div>'),O$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function Sa(t,e){U(e,!0),K(t,O$);let i=v(e,"onClick",3,j1.noop);var o=N$();o.__click=[R$,i],$(t,o),z()}dt(["click"]);var Y1=require("@vkontakte/videoplayer-shared/es2018"),B$=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>'),D$={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 Md(t,e){U(e,!0),K(t,D$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,Y1.noop),n=5e3,s=X(void 0),l,d,a=0,p;Ue(()=>{i()&&Et(()=>{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()())};Vt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),en(()=>{f()});var u=B$(),y=_(u);at(y,w=>O(s,w),()=>r(s)),$e(2),h(u),$(t,u),z()}var F$=(t,e,i)=>{e(!1),i()},H$=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),U$={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 Zf(t,e){U(e,!0),K(t,U$);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Se(),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()};Vt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var T=Be(),S=pe(T);{var E=R=>{var I=H$(),P=A(pe(I),2),B=_(P),F=_(B),H=_(F,!0);h(F);var W=A(F,2);Sa(W,{onClick:x}),h(B);var Y=A(B,2);Y.__click=[F$,p,m];var oe=_(Y),G=_(oe),ge=_(G);let ee;var fe=A(ge,2);{var ue=re=>{let Ve=g(()=>s()&&n());Md(re,{get isRunning(){return r(Ve)},onTimerEnded:w})};V(fe,re=>{n()&&re(ue)})}h(G),h(oe);var ce=A(oe,2),Pe=_(ce),Me=_(Pe,!0);h(Pe),h(ce),h(Y),h(P),D((re,Ve)=>{me(H,re),lt(G,`background-image: url('${e.thumb}')`),ee=ne(ge,1,"thumb-overlay svelte-jfbaax",null,ee,Ve),me(Me,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),$(R,I)};V(S,R=>{e.isHide||R(E)})}$(t,T),z(),o()}dt(["click"]);var Ws=require("@vkontakte/videoplayer-core/es2018"),Z1=require("@vkontakte/videoplayer-shared/es2018"),xn=require("@vkontakte/videoplayer-statistics/es2018");var Xf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Jf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Lu=(t,e,i)=>{let o=Xf(e,i);e<1&&t.actions.internal.setVolume(o)},Mu=(t,e,i)=>{let o=Jf(e,i);e>0&&t.actions.internal.setVolume(o)};var zs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);function Vu(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var W$=(t,e)=>{e(t)},K$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),q$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function em(t,e){var Fe,mt;U(e,!0),K(t,q$);let[i,o]=Oe(),n=()=>C(fe,"$disabledControls$",i),s=()=>C(xe,"$isInteractiveTime$",i),l=()=>C(Ce,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>C(Y,"$playbackState$",i),a=()=>C(Q,"$isEnded$",i),p=()=>C(ot,"$doubleForwardAvailable$",i),f=()=>C(k,"$doubleForwardOn$",i),m=()=>C(te,"$overlayContainer$",i),u=()=>C(oe,"$adPlaybackState",i),y=()=>C(G,"$positionExact$",i),w=()=>C(ge,"$duration$",i),x=()=>C(_e,"$isAudioAvailable$",i),T=()=>C(ee,"$volume$",i),S=()=>C(Me,"$availablePlaybackRates$",i),E=()=>C(Pe,"$currentPlaybackRate$",i),R=()=>C(ue,"$muted$",i),I=()=>C(ce,"$currentSubtitle$",i),P=v(e,"nextButtonActive",3,!1),B=v(e,"prevButtonActive",3,!1),F=Se(),H=At(),W=F.getLogger().createComponentLog("KeyboardControls component"),Y=F.state.playbackState$,oe=F.ads.playbackState,G=F.state.positionExact$,ge=F.state.duration$,ee=F.state.volume$,fe=F.ui.controls.disabledControls$,ue=F.state.muted$,ce=F.state.currentSubtitle$,Pe=F.state.currentPlaybackRate$,Me=F.state.availablePlaybackRates$,re=F.ui.contextMenu.openedByHotKey$,Ve=F.ui.contextMenu.lastActiveElem$,ae=F.ui.contextMenu.visible$,k=F.ui.doubleForwardOn$,ot=F.ui.doubleForwardAvailable$,Ne=F.ui.contextMenu.position$,Q=F.state.isEnded$,te=F.ui.overlayContainer$,Re=(Fe=F.callbacks)==null?void 0:Fe.onAudioDoesNotExistHint,Xe=(mt=F.callbacks)==null?void 0:mt.onAudioDisabledHint,_e=F.state.isAudioAvailable$,J=F.state.isAudioDisabled,xe=F.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ce}=_o(),He=0,nt=!0,bt=X(void 0),ct=Ae=>(Ae!==nt&&(nt=Ae,He=0),He+=1,(H.controls.seekStepKeyboard+H.controls.seekStepKeyboard*He)/1e3),$t=!0,et=({type:Ae,repeat:We,disableDoubleForward:ut})=>{let ze=()=>{if(!n().has("PLAY_BUTTON"))if(s()&&l()&&Ce.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{F.actions.internal.togglePlay();let Ke="PLAY";d()===Ws.PlaybackState.PAUSED?Ke="PAUSE":a()&&(Ke="REPLAY"),e.showHotKeyHelpers({type:Ke})}},rt=Ae==="down";if(!p()||ut){rt&&ze(),$t=!0;return}if(rt)$t=!1;else if($t)return;if(rt){!We&&e.startDoubleForwardActivationTimer();return}f()||ze(),e.stopDoubleForward(),$t=!0},zt=Ae=>{let We=Q1(m());Ne.set(We),Ve.set(Ae.target),re.set(!0),ae.set(!0)},Qt=(Ae,We=!1)=>{var Bt,Ut;let ut=Ae.target,ze=(Bt=ut==null?void 0:ut.getAttribute("role"))==null?void 0:Bt.includes("menuitem"),rt=ut.classList.contains("btn"),Ke=Ae.code;if(rt&&Ke==="Space")return!1;let Mt=Xh.has(Ke);if(ze&&Mt)return!1;let ni=!Zh.has(Ke);if(Ae.ctrlKey&&ni||Ae.altKey&&ni||Ae.metaKey)return!1;let Zt=ze&&Ke==="Escape";Jh.has(Ke)||Zt||e.hideContextMenu();let gi=d()===Ws.PlaybackState.PLAYING||d()===Ws.PlaybackState.PAUSED,Ei=e.isAds&&(u()==="paused"||u()==="playing"),bo=!Ei&&!n().has("TIMELINE"),Ji=Ae.shiftKey&&["Digit1","Numpad1"].includes(Ke);if(!Ji&&!(gi||Ei))return!1;W({message:`key down, code: ${Ke}, isExternal = ${We}`});let ei=!1,gt=()=>{ei=!0,We||Ae.preventDefault()};if(Ji)return zt(Ae),gt(),!0;switch(Ke){case"KeyJ":case"ArrowLeft":{if(!bo)break;if(Ae.ctrlKey||Ae.altKey){let Ct=F.actions.internal.getPrevEpisode();F.actions.internal.seekToPrevEpisode(Ct),Ct&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ct.text}),gt()}else{let Ct=Ae.shiftKey?ct(!1):H.controls.seekStepKeyboard/1e3,Xt=Math.max(y()-Ct,0);y()>0&&(F.actions.internal.seekTime(Xt,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ct.toString()}),gt())}break}case"KeyL":case"ArrowRight":{if(!bo)break;if(Ae.ctrlKey||Ae.altKey){let Ct=F.actions.internal.getNextEpisode();F.actions.internal.seekToNextEpisode(Ct),Ct&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ct.text}),gt()}else{let Ct=Ae.shiftKey?ct(!0):H.controls.seekStepKeyboard/1e3,Xt=Math.min(y()+Ct,w());Math.round(y())<Math.round(w())&&(F.actions.internal.seekTime(Xt,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ct.toString()}),gt())}break}case"ArrowUp":{if(zs({isAudioDisabled:J,audioDisabledHintCallback:Xe,isAudioAvailable:x(),audioIsNotExistHintCallback:Re,isAds:e.isAds})){let Ct=T(),Xt=H.controls.volumeStepKeyboard,Bi=Ct<=1;if(Lu(F,Ct,Xt),Bi){let yt=Math.round(Xf(Ct,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}gt();break}case"ArrowDown":{if(zs({isAudioDisabled:J,audioDisabledHintCallback:Xe,isAudioAvailable:x(),audioIsNotExistHintCallback:Re,isAds:e.isAds})){let Ct=T(),Xt=H.controls.volumeStepKeyboard,Bi=Ct>=0;if(Mu(F,Ct,Xt),Bi){let yt=Math.round(Jf(Ct,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}gt();break}case"Comma":{if(Ae.shiftKey){if(!f()){F.actions.internal.decrementPlaybackRate();let Ct=S().find(Xt=>Xt.value===E());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ct==null?void 0:Ct.displayValue}),gt()}}else{if(Ei||d()!==Ws.PlaybackState.PAUSED)break;let Ct=Math.max(y()-H.controls.seekStepFrame/1e3,0);y()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(Ct,xn.SeekAction.DOUBLE_TAP),gt())}break}case"Period":{if(Ae.shiftKey){if(!f()){F.actions.internal.incrementPlaybackRate();let Ct=S().find(Xt=>Xt.value===E());e.showHotKeyHelpers({type:"RATE_UP",text:Ct==null?void 0:Ct.displayValue}),gt()}}else{if(Ei||d()!==Ws.PlaybackState.PAUSED)break;let Ct=Math.min(y()+H.controls.seekStepFrame/1e3,w());y()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(Ct,xn.SeekAction.DOUBLE_TAP),gt())}break}case"KeyK":case"Space":et({type:"down",repeat:Ae.repeat,disableDoubleForward:"KeyK"===Ke}),gt();break;case"KeyM":{zs({isAudioDisabled:J,audioDisabledHintCallback:Xe,isAudioAvailable:x(),audioIsNotExistHintCallback:Re,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),F.actions.internal.toggleMuted()),gt();break}case"KeyF":e.toggleFullscreen(),gt();break;case"KeyC":F.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Ut=I())==null?void 0:Ut.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),gt();break;case"KeyI":F.actions.internal.togglePictureInPicture(),gt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.1,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.2,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.3,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.4,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.5,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.6,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.7,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.8,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.9,xn.SeekAction.DOUBLE_TAP),gt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(0,xn.SeekAction.DOUBLE_TAP),gt();break;case"Slash":{Ae.shiftKey&&H.features.hotKeyMapModal&&(e.showKeyMap(),gt());break}case"KeyN":Ae.shiftKey&&P()&&(F.actions.internal.nextVideoClick(),gt());break;case"KeyP":Ae.shiftKey&&B()&&(F.actions.internal.prevVideoClick(),gt());break;case"ShiftLeft":case"ShiftRight":gt();break;case"Tab":case"Escape":case"Enter":break;default:(0,Z1.checkNever)(Ke);break}return ei},Gt=Ae=>{let We=Ae.code;if(Ae.ctrlKey||Ae.altKey||Ae.metaKey)return;let ut=d()===Ws.PlaybackState.PLAYING||d()===Ws.PlaybackState.PAUSED,ze=e.isAds&&(u()==="paused"||u()==="playing");if(ut||ze)switch(We){case"ShiftLeft":case"ShiftRight":He=0;break;case"Space":et({type:"up"});break}},jt=q("aria_label_video_player"),Ee=()=>{var Ae;return(Ae=r(bt))==null?void 0:Ae.focus()},Yt=()=>r(bt)===Vu(),we=Ae=>Ae.type==="keydown"?Qt(Ae,!0):(Ae.type==="keyup"&&Gt(Ae),!1);var be=K$();be.__keyup=Gt,be.__keydown=[W$,Qt];var de=_(be);ve(de,()=>{var Ae;return(Ae=e.children)!=null?Ae:le}),h(be),at(be,Ae=>O(bt,Ae),()=>r(bt)),D(()=>De(be,"aria-label",jt)),$(t,be);var Qe=z({focus:Ee,isFocused:Yt,handleExternalKeyboardEvent:we});return o(),Qe}dt(["keyup","keydown"]);var Q$=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>'),G$={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,29 +150,37 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
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 Sa(t,e){q(t,V$);let i=v(e,"style",3,"");var o=L$();D(()=>st(o,i())),$(t,o)}var R$=Ce('<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 zf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R$();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var Ca=require("@vkontakte/videoplayer-shared/es2018"),N$=t=>{t.stopPropagation()},O$=M("<button><!></button>"),B$={hash:"svelte-ut3f27",code:`.btn.svelte-ut3f27 {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 Ca(t,e){K(t,G$);let i=v(e,"style",3,"");var o=Q$();D(()=>lt(o,i())),$(t,o)}var j$=ye('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function tm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=j$();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var Ta=require("@vkontakte/videoplayer-shared/es2018"),Y$=t=>{t.stopPropagation()},Z$=M("<button><!></button>"),X$={hash:"svelte-8rib52",code:`.btn.svelte-8rib52 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
154
+ /**
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
+ * \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.
157
+ * \u0424\u043E\u0440\u0441 \u0432\u044B\u043D\u043E\u0441\u0430 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0432 \u0441\u043B\u043E\u0439, \u043A\u0430\u043A \u0442\u043E \u043F\u043E\u043C\u043E\u0433\u0430\u0435\u0442 \u0441\u0430\u0444\u0430\u0440\u0438.
158
+ */will-change:opacity;}
154
159
 
155
- /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-ut3f27 {width:100%;}.btn--live.svelte-ut3f27 {padding:10px 4px;}.btn-jc-l.svelte-ut3f27 {justify-content:left;}
160
+ /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-8rib52 {width:100%;}.btn--live.svelte-8rib52 {padding:10px 4px;}.btn-jc-l.svelte-8rib52 {justify-content:left;}
156
161
 
157
162
  /* mobile */
158
- /* container mobile */.btn-m.svelte-ut3f27 {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-ut3f27 {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-ut3f27 svg {transform:scale(2);}.btn-m--prev.svelte-ut3f27,
159
- .btn-m--next.svelte-ut3f27 {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-ut3f27 {right:calc(100% + 35px);}.btn-m--next.svelte-ut3f27 {left:calc(100% + 35px);}.btn.svelte-ut3f27:disabled {cursor:default;
160
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-ut3f27:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-ut3f27:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-ut3f27 {padding-right:0;}.pl-0.svelte-ut3f27 {padding-left:0;}`};function Nt(t,e){U(e,!0),q(t,B$);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,Ca.noop),y=v(e,"focus",3,Ca.noop),w=v(e,"blur",3,Ca.noop),x=g(()=>u()===Ca.noop?null:k=>{k.stopPropagation(),u()(k)}),S=g(()=>y()===Ca.noop?null:k=>{k.preventDefault(),y()()}),T=g(()=>w()===Ca.noop?null:k=>{k.preventDefault(),w()()});var E=O$();E.__pointerdown=[N$],E.__click=function(...k){var I;(I=r(x))==null||I.apply(this,k)};var L=_(E);ye(L,()=>{var k;return(k=e.children)!=null?k:ae}),h(E),ot(E,k=>a(k),()=>a()),D(()=>{var k,I,V,G,H,F,W,J;te(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),st(E,o()||null),E.disabled=(I=n())!=null?I:null,Fe(E,"aria-hidden",(V=l())!=null?V:null),Fe(E,"aria-label",(G=d())!=null?G:null),Fe(E,"aria-keyshortcuts",(H=p())!=null?H:null),Fe(E,"aria-expanded",(F=f())!=null?F:null),Fe(E,"data-testid",(W=s())!=null?W:null),Fe(E,"tabindex",m()),Fe(E,"role",e.role),Fe(E,"aria-checked",(J=e.areaChecked)!=null?J:null)}),Et("focus",E,function(...k){var I;(I=r(S))==null||I.apply(this,k)}),Et("blur",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),$(t,E),z()}ut(["pointerdown","click"]);var D$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),H$=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>'),F$={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 Wf(t,e){U(e,!0),q(t,F$);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=K("hotkey_map_modal_close_btn_text");var s=H$(),l=_(s),d=_(l);{var a=u=>{var y=D$(),w=_(y),x=_(w,!0);h(w);var S=A(w,2);{var T=E=>{Nt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(L,k)=>{zf(L,{})},$$slots:{default:!0}})};R(S,E=>{o()&&E(T)})}h(y),D(()=>be(x,e.title)),$(u,y)};R(d,u=>{i()&&u(a)})}var p=A(d,2),f=_(p),m=_(f);ye(m,()=>{var u;return(u=e.children)!=null?u:ae}),h(f),h(p),h(l),h(s),$(t,s),z()}var U$=new Set(["BR"]),V1=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;U$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var z$=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>'),W$=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>'),K$=M('<div class="hot-key-map svelte-quklnq"></div>'),q$={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,
163
+ /* container mobile */.btn-m.svelte-8rib52 {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-8rib52 {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-8rib52 svg {transform:scale(2);}.btn-m--prev.svelte-8rib52,
164
+ .btn-m--next.svelte-8rib52 {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-8rib52 {right:calc(100% + 35px);}.btn-m--next.svelte-8rib52 {left:calc(100% + 35px);}.btn.svelte-8rib52:disabled {cursor:default;
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-8rib52:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-8rib52:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-8rib52 {padding-right:0;}.pl-0.svelte-8rib52 {padding-left:0;}`};function Ot(t,e){U(e,!0),K(t,X$);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,Ta.noop),y=v(e,"focus",3,Ta.noop),w=v(e,"blur",3,Ta.noop),x=g(()=>u()===Ta.noop?null:I=>{I.stopPropagation(),u()(I)}),T=g(()=>y()===Ta.noop?null:I=>{I.preventDefault(),y()()}),S=g(()=>w()===Ta.noop?null:I=>{I.preventDefault(),w()()});var E=Z$();E.__pointerdown=[Y$],E.__click=function(...I){var P;(P=r(x))==null||P.apply(this,I)};var R=_(E);ve(R,()=>{var I;return(I=e.children)!=null?I:le}),h(E),at(E,I=>a(I),()=>a()),D(()=>{var I,P,B,F,H,W,Y,oe;ne(E,1,`btn ${(I=i())!=null?I:""}`,"svelte-8rib52"),lt(E,o()||null),E.disabled=(P=n())!=null?P:null,De(E,"aria-hidden",(B=l())!=null?B:null),De(E,"aria-label",(F=d())!=null?F:null),De(E,"aria-keyshortcuts",(H=p())!=null?H:null),De(E,"aria-expanded",(W=f())!=null?W:null),De(E,"data-testid",(Y=s())!=null?Y:null),De(E,"tabindex",m()),De(E,"role",e.role),De(E,"aria-checked",(oe=e.areaChecked)!=null?oe:null)}),kt("focus",E,function(...I){var P;(P=r(T))==null||P.apply(this,I)}),kt("blur",E,function(...I){var P;(P=r(S))==null||P.apply(this,I)}),$(t,E),z()}dt(["pointerdown","click"]);var J$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),e2=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>'),t2={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 im(t,e){U(e,!0),K(t,t2);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var s=e2(),l=_(s),d=_(l);{var a=u=>{var y=J$(),w=_(y),x=_(w,!0);h(w);var T=A(w,2);{var S=E=>{Ot(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(R,I)=>{tm(R,{})},$$slots:{default:!0}})};V(T,E=>{o()&&E(S)})}h(y),D(()=>me(x,e.title)),$(u,y)};V(d,u=>{i()&&u(a)})}var p=A(d,2),f=_(p),m=_(f);ve(m,()=>{var u;return(u=e.children)!=null?u:le}),h(f),h(p),h(l),h(s),$(t,s),z()}var i2=new Set(["BR"]),X1=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;i2.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var o2=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>'),n2=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>'),r2=M('<div class="hot-key-map svelte-quklnq"></div>'),s2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
161
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,
162
- .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 Kf(t,e){U(e,!1),q(t,q$);let[i,o]=He(),n=()=>C(l,"$data",i),s=Ee(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Fr(),Wf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var m=K$();Si(m,5,()=>n().groups,({title:u,items:y})=>u,(u,y)=>{let w=()=>r(y).title,x=()=>r(y).items;var S=W$(),T=_(S),E=_(T,!0);h(T);var L=A(T,2);Si(L,5,x,({description:k,value:I})=>I,(k,I)=>{let V=()=>r(I).description,G=()=>r(I).value;var H=z$(),F=_(H),W=_(F);ld(W,()=>V1(V())),h(F);var J=A(F,2),j=_(J,!0);h(J),h(H),D(()=>be(j,G())),$(k,H)}),h(L),h(S),D(()=>be(E,w())),$(u,S)}),h(m),$(p,m)},$$slots:{default:!0}}),z(),o()}var Hm=require("@vkontakte/videoplayer-shared/es2018");var Ma=require("@vkontakte/videoplayer-core/es2018");var jV=require("@vkontakte/videoplayer-shared/es2018");var Q$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),G$={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 qf(t,e){q(t,G$);var i=Q$(),o=_(i);ye(o,()=>{var n;return(n=e.children)!=null?n:ae}),h(i),$(t,i)}var wl=require("@vkontakte/videoplayer-shared/es2018");var j$=Ce('<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=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=j$();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var Y$=Ce('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Gf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Y$();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var Z$=Ce('<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 jf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var X$=Ce('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Ad(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X$();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var J$=Ce('<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 Pd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=J$();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var Cu=t=>{switch(t){case wl.VideoQuality.Q_720P:return jf;case wl.VideoQuality.Q_1080P:return Ad;case wl.VideoQuality.Q_1440P:return Pd;case wl.VideoQuality.Q_2160P:return Qf;case wl.VideoQuality.Q_4320P:return Gf}};var e2=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Yf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=e2();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var t2=Ce('<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 Zf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=t2();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var i2=M('<div aria-hidden="true"><!> <!></div>'),o2={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 Md(t,e){U(e,!0),q(t,o2);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>Cu(o())),s=g(()=>!!r(n)&&[Ad,Pd].includes(r(n)));var l=qe(),d=ge(l);{var a=f=>{Yf(f,{})},p=f=>{var m=i2();let u;var y=_(m);{var w=T=>{qf(T,{children:(E,L)=>{var k=qe(),I=ge(k);Ci(I,()=>r(n),(V,G)=>{G(V,{})}),$(E,k)},$$slots:{default:!0}})};R(y,T=>{r(n)&&T(w)})}var x=A(y,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");Zf(x,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(m),D(T=>u=te(m,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(s)})]),$(f,m)};R(d,f=>{i()?f(a):f(p,!1)})}$(t,l),z()}var n2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),r2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Sl(t,e){U(e,!0),q(t,r2);let[i,o]=He(),n=()=>C(p,"$settingsMenuVisible",i),s=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,y=d.ui.t,w=Y(void 0);Ke(()=>{r(w)&&Ct(()=>{e.ref$.set(r(w))})});let x=y("aria_label_settings");async function S(E){let L=Us(E);n()?m():f(L,Co)}let T=g(()=>n()?"opened":"");Nt(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return x},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){B(w,E,!0)},children:(E,L)=>{var k=n2(),I=_(k);Md(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),$(E,k)},$$slots:{default:!0}}),z(),o()}var s2=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Xf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=s2();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var a2=Ce('<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 Ld(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=a2();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}function Jf(t,e){U(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Nt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyC},role:"button",children:(l,d)=>{var a=qe(),p=ge(a);{var f=u=>{Xf(u,{})},m=u=>{Ld(u,{})};R(p,u=>{i()?u(f):u(m,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var l2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),d2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),c2={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 Vd(t,e){U(e,!0),q(t,c2);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=At(),d=se(!1),a=g(()=>Cn(e.duration)),p=g(()=>Cn(e.position));var f=d2();let m;var u=_(f),y=_(u,!0);h(u);var w=A(u,2);{var x=S=>{var T=l2(),E=_(T,!0);h(T),D(()=>be(E,r(a))),$(S,T)};R(w,S=>{n()&&S(x)})}h(f),$s(f,()=>hl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),ot(f,S=>s(S),()=>s()),D(S=>{m=te(f,1,"time svelte-sz9er7",null,m,S),be(y,r(p))},[()=>({mobile:i()})]),$(t,f),z()}var Nd=require("@vkontakte/videoplayer-shared/es2018");var u2=Ce('<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>'),p2={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 om(t,e){U(e,!1),K(t,s2);let[i,o]=Oe(),n=()=>C(l,"$data",i),s=Se(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Hr(),im(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var m=r2();ki(m,5,()=>n().groups,({title:u,items:y})=>u,(u,y)=>{let w=()=>r(y).title,x=()=>r(y).items;var T=n2(),S=_(T),E=_(S,!0);h(S);var R=A(S,2);ki(R,5,x,({description:I,value:P})=>P,(I,P)=>{let B=()=>r(P).description,F=()=>r(P).value;var H=o2(),W=_(H),Y=_(W);pd(Y,()=>X1(B())),h(W);var oe=A(W,2),G=_(oe,!0);h(oe),h(H),D(()=>me(G,F())),$(I,H)}),h(R),h(T),D(()=>me(E,w())),$(u,T)}),h(m),$(p,m)},$$slots:{default:!0}}),z(),o()}var Xm=require("@vkontakte/videoplayer-shared/es2018");var Ma=require("@vkontakte/videoplayer-core/es2018");var gR=require("@vkontakte/videoplayer-shared/es2018");var a2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),l2={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 nm(t,e){K(t,l2);var i=a2(),o=_(i);ve(o,()=>{var n;return(n=e.children)!=null?n:le}),h(i),$(t,i)}var wl=require("@vkontakte/videoplayer-shared/es2018");var d2=ye('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function rm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=d2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var c2=ye('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function sm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=c2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var u2=ye('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function am(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=u2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var p2=ye('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Vd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=p2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var f2=ye('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Rd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=f2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var Ru=t=>{switch(t){case wl.VideoQuality.Q_720P:return am;case wl.VideoQuality.Q_1080P:return Vd;case wl.VideoQuality.Q_1440P:return Rd;case wl.VideoQuality.Q_2160P:return rm;case wl.VideoQuality.Q_4320P:return sm}};var m2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function lm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=m2();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var v2=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function dm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=v2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var g2=M('<div aria-hidden="true"><!> <!></div>'),h2={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Nd(t,e){U(e,!0),K(t,h2);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>Ru(o())),s=g(()=>!!r(n)&&[Vd,Rd].includes(r(n)));var l=Be(),d=pe(l);{var a=f=>{lm(f,{})},p=f=>{var m=g2();let u;var y=_(m);{var w=S=>{nm(S,{children:(E,R)=>{var I=Be(),P=pe(I);Ai(P,()=>r(n),(B,F)=>{F(B,{})}),$(E,I)},$$slots:{default:!0}})};V(y,S=>{r(n)&&S(w)})}var x=A(y,2);let T=g(()=>r(n)?"settings-icon--labeled":"settings-icon");dm(x,{get"data-testid"(){return r(T)},fill:"var(--btn-color, #fff)"}),h(m),D(S=>u=ne(m,1,"icon svelte-8t5w85",null,u,S),[()=>({triple:r(s)})]),$(f,m)};V(d,f=>{i()?f(a):f(p,!1)})}$(t,l),z()}var _2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),b2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Sl(t,e){U(e,!0),K(t,b2);let[i,o]=Oe(),n=()=>C(p,"$settingsMenuVisible",i),s=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Se(),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);Ue(()=>{r(w)&&Et(()=>{e.ref$.set(r(w))})});let x=y("aria_label_settings");async function T(E){let R=Us(E);n()?m():f(R,ko)}let S=g(()=>n()?"opened":"");Ot(t,{get className(){return r(S)},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=_2(),P=_(I);Nd(P,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),z(),o()}var $2=ye('<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 cm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=$2();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var y2=ye('<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 Od(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=y2();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}function um(t,e){U(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Se().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Ot(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=Be(),p=pe(a);{var f=u=>{cm(u,{})},m=u=>{Od(u,{})};V(p,u=>{i()?u(f):u(m,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var x2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),w2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),S2={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 Bd(t,e){U(e,!0),K(t,S2);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=At(),d=se(!1),a=g(()=>yn(e.duration)),p=g(()=>yn(e.position));var f=w2();let m;var u=_(f),y=_(u,!0);h(u);var w=A(u,2);{var x=T=>{var S=x2(),E=_(S,!0);h(S),D(()=>me(E,r(a))),$(T,S)};V(w,T=>{n()&&T(x)})}h(f),_s(f,()=>hl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),at(f,T=>s(T),()=>s()),D(T=>{m=ne(f,1,"time svelte-sz9er7",null,m,T),me(y,r(p))},[()=>({mobile:i()})]),$(t,f),z()}var Fd=require("@vkontakte/videoplayer-shared/es2018");var C2=ye('<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>'),T2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
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),
164
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ks(t,e){q(t,p2);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=u2();D(()=>{var d;Fe(l,"data-value",r(s)),Fe(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}var Io=require("@vkontakte/videoplayer-shared/es2018");var Tu=require("@vkontakte/videoplayer-shared/es2018");var R1=require("@vkontakte/videoplayer-shared/es2018");var f2=M('<div class="overlay"><!></div>');function em(t,e){U(e,!0);let[i,o]=He(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=Y(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))};Ke(()=>{p(n())}),Lt(()=>(p(n()),()=>a(n())));var f=f2(),m=_(f);ye(m,()=>{var u;return(u=e.children)!=null?u:ae}),h(f),ot(f,u=>B(d,u),()=>r(d)),$(t,f),z(),o()}var m2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),v2=M("<div><!></div> <!>",1),g2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Ta(t,e){U(e,!0),q(t,g2);let[i,o]=He(),n=()=>C(W,"$overlayContainer$",i),s=()=>C(F,"$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,R1.noop),x=5,S=Y(void 0),T=Y(void 0),E,L=Y(0),k=Y(0),I=Y(0),V=Y(0),G=At(),H=Ee(),F=H.ui.playerSize,W=H.ui.overlayContainer$;Ke(()=>{Ct(()=>{w()(a())})});let J=H.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(S))return;B(k,x);let Z=n().getBoundingClientRect(),Pe=r(S).getBoundingClientRect(),Ie=Pe.width,Ue=r(T).clientWidth,nt=s().width,ft=(Ie-Ue)/2,mt=Pe.left+p()-Z.left,St=mt+ft,Xe=Pe.top+f()-Z.top,Ht=Ue/2-x,Qt=St<8,Gt=St+Ue>nt-8;Qt&&(St=8,Ht=mt+Pe.width/2-2.5*x),Gt&&(St=nt-8-Ue,Ht=Pe.left-Z.left+Pe.width/2-St-x),B(I,St,!0),B(V,Xe),B(L,Ht,!0)},le=()=>{!n()||!r(T)||!r(S)||B(k,-x)},ie=()=>{if(!n()||!r(T)||!r(S))return;B(L,x);let Z=n().getBoundingClientRect(),Pe=r(S).getBoundingClientRect(),Ie=Pe.height,Ue=r(T).clientHeight,nt=(Ie-Ue)/2+Ue,ft=Pe.left+p()-Z.left-r(T).clientWidth,mt=2,St=ft-x;St<8&&(St=8);let Ht=Pe.top+f()-Z.top+nt,Qt=mt-nt/2,Gt=mt-x;B(I,St,!0),B(V,Ht),B(k,Qt),B(L,Gt)},pe=()=>{!n()||!r(T)||!r(S)||B(L,-x)},he=()=>{switch(y()){case"top":j();break;case"bottom":le();break;case"left":ie();break;default:pe()}},ue=()=>{try{if(!n()||!r(S))return;he(),a(!0)}catch(Z){J({message:String(Z)})}},Ne=()=>{a(!1)},oe=()=>{r(T)&&(E||(E=window.setTimeout(ue,G.controls.hideTimeoutTooltips)),a()&&ue())},Ve=()=>{Ne(),window.clearTimeout(E),E=void 0},ne=(Z,Pe,Ie)=>{let Ue="";switch(y()){case"top":Ue=`transform: translate(${Z}px, ${Pe}px);`;break;case"bottom":Ue=`transform: translate(${Z}px, ${Pe}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${Z}px, ${Pe}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${Z}px, ${Pe}px);`}return Ue+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ue+=` opacity: ${Ie?1:0}; visibility: ${Ie?"visible":"hidden"}`,Ue},O=(Z,Pe)=>{let Ie="";switch(y()){case"top":Ie=`transform: translate(${Z}px, ${Pe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ie=`transform: translate(${Z}px, ${Pe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ie=`transform: translate(${Z}px, ${Pe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ie=`transform: translate(${Z}px, ${Pe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ie},ce=g(()=>ne(r(I),r(V),a())),Le=g(()=>O(r(L),r(k)));Lt(he),rn(()=>window.clearTimeout(E));var ve=v2(),ee=ge(ve);let me;ee.__mousemove=oe,ee.__mousedown=Ve,ee.__mouseup=function(...Z){var Pe;(Pe=e.disableMouseupTooltipShow?void 0:oe)==null||Pe.apply(this,Z)};var De=_(ee);ye(De,()=>{var Z;return(Z=e.children)!=null?Z:ae}),h(ee),ot(ee,Z=>B(S,Z),()=>r(S));var fe=A(ee,2);{var dt=Z=>{em(Z,{children:(Pe,Ie)=>{var Ue=m2(),nt=_(Ue),ft=_(nt,!0);h(nt);var mt=A(nt,2);h(Ue),ot(Ue,St=>B(T,St),()=>r(T)),D(()=>{st(Ue,r(ce)),be(ft,d()),st(mt,r(Le))}),$(Pe,Ue)},$$slots:{default:!0}})};R(fe,Z=>{d()&&!l()&&Z(dt)})}D(Z=>me=te(ee,1,"tooltip-wrapper svelte-hxlyne",null,me,Z),[()=>({"full-width":m()})]),Et("mouseenter",ee,oe),Et("mouseleave",ee,Ve),$(t,ve),z(),o()}ut(["mousemove","mousedown","mouseup"]);var N1=t=>{t.stopPropagation()},h2=M("<div><!></div>"),_2={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 Eo(t,e){U(e,!0),q(t,_2);let[i,o]=He(),n=()=>C(p,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Ee(),d=vo(),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),S=v(e,"isFullWidthTooltip",3,!0),T=v(e,"tooltipContent",3,""),E=v(e,"tooltipActive",3,!1),L=v(e,"tooltipPlacement",3,"top"),k=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=v(e,"isAriaHidden",3,!1),V=v(e,"onTooltipVisibilityChange",3,Tu.noop),G=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,Tu.noop),W=v(e,"mouseLeave",3,Tu.noop),J=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):k():T());var j=h2();j.__pointerdown=[N1],j.__click=[N1];var le=_(j);{var ie=he=>{Ta(he,{get content(){return r(J)},get translateX(){return G()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get active(){return E()},get placement(){return L()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ue,Ne)=>{var oe=qe(),Ve=ge(oe);ye(Ve,()=>{var ne;return(ne=e.children)!=null?ne:ae}),$(ue,oe)},$$slots:{default:!0}})},pe=he=>{var ue=qe(),Ne=ge(ue);ye(Ne,()=>{var oe;return(oe=e.children)!=null?oe:ae}),$(he,ue)};R(le,he=>{y()&&r(J)&&!s()?he(ie):he(pe,!1)})}h(j),ot(j,he=>w(he),()=>w()),D(()=>{var he;te(j,1,`btn-container ${(he=m())!=null?he:""}`,"svelte-p9r045"),Fe(j,"aria-hidden",I()||null)}),Et("mouseenter",j,function(...he){var ue;(ue=F())==null||ue.apply(this,he)}),Et("mouseleave",j,function(...he){var ue;(ue=W())==null||ue.apply(this,he)}),sr(j,"clientWidth",x),$(t,j),z(),o()}ut(["pointerdown","click"]);var b2=Ce('<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 Rd(t,e){"use strict";var i=b2(),o=_(i),n=A(o);h(i),D(()=>{Fe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Fe(o,"fill-opacity",e.completed?1:.24),Fe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var $2=M("<div><!></div>"),y2={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 tm(t,e){U(e,!0),q(t,y2);let o=Ee().ui.t,n=Y(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Eo(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=$2();let p;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);Rd(f,{get completed(){return r(m)}}),h(a),D(u=>{p=te(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),st(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),sr(a,"clientWidth",u=>B(n,u)),$(l,a)},$$slots:{default:!0}}),z()}var x2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),w2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),S2={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,
169
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ks(t,e){K(t,T2);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=C2();D(()=>{var d;De(l,"data-value",r(s)),De(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}var Lo=require("@vkontakte/videoplayer-shared/es2018");var Nu=require("@vkontakte/videoplayer-shared/es2018");var J1=require("@vkontakte/videoplayer-shared/es2018");var E2=M('<div class="overlay"><!></div>');function pm(t,e){U(e,!0);let[i,o]=Oe(),n=()=>C(l,"$overlayContainer$",i),l=Se().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))};Ue(()=>{p(n())}),Vt(()=>(p(n()),()=>a(n())));var f=E2(),m=_(f);ve(m,()=>{var u;return(u=e.children)!=null?u:le}),h(f),at(f,u=>O(d,u),()=>r(d)),$(t,f),z(),o()}var I2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),k2=M("<div><!></div> <!>",1),A2={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 Ea(t,e){U(e,!0),K(t,A2);let[i,o]=Oe(),n=()=>C(Y,"$overlayContainer$",i),s=()=>C(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,J1.noop),x=5,T=X(void 0),S=X(void 0),E,R=X(0),I=X(0),P=X(0),B=X(0),F=At(),H=Se(),W=H.ui.playerSize,Y=H.ui.overlayContainer$;Ue(()=>{Et(()=>{w()(a())})});let oe=H.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!r(S)||!r(T))return;O(I,x);let J=n().getBoundingClientRect(),xe=r(T).getBoundingClientRect(),Ce=xe.width,He=r(S).clientWidth,nt=s().width,bt=(Ce-He)/2,ct=xe.left+p()-J.left,$t=ct+bt,et=xe.top+f()-J.top,zt=He/2-x,Qt=$t<8,Gt=$t+He>nt-8;Qt&&($t=8,zt=ct+xe.width/2-2.5*x),Gt&&($t=nt-8-He,zt=xe.left-J.left+xe.width/2-$t-x),O(P,$t,!0),O(B,et),O(R,zt,!0)},ge=()=>{!n()||!r(S)||!r(T)||O(I,-x)},ee=()=>{if(!n()||!r(S)||!r(T))return;O(R,x);let J=n().getBoundingClientRect(),xe=r(T).getBoundingClientRect(),Ce=xe.height,He=r(S).clientHeight,nt=(Ce-He)/2+He,bt=xe.left+p()-J.left-r(S).clientWidth,ct=2,$t=bt-x;$t<8&&($t=8);let zt=xe.top+f()-J.top+nt,Qt=ct-nt/2,Gt=ct-x;O(P,$t,!0),O(B,zt),O(I,Qt),O(R,Gt)},fe=()=>{!n()||!r(S)||!r(T)||O(R,-x)},ue=()=>{switch(y()){case"top":G();break;case"bottom":ge();break;case"left":ee();break;default:fe()}},ce=()=>{try{if(!n()||!r(T))return;ue(),a(!0)}catch(J){oe({message:String(J)})}},Pe=()=>{a(!1)},Me=()=>{r(S)&&(E||(E=window.setTimeout(ce,F.controls.hideTimeoutTooltips)),a()&&ce())},re=()=>{Pe(),window.clearTimeout(E),E=void 0},Ve=(J,xe,Ce)=>{let He="";switch(y()){case"top":He=`transform: translate(${J}px, ${xe}px);`;break;case"bottom":He=`transform: translate(${J}px, ${xe}px); top: auto; bottom: 100%;`;break;case"left":He=`transform: translate(${J}px, ${xe}px); left: 0; right: auto;`;break;default:He=`transform: translate(${J}px, ${xe}px);`}return He+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,He+=` opacity: ${Ce?1:0}; visibility: ${Ce?"visible":"hidden"}`,He},ae=(J,xe)=>{let Ce="";switch(y()){case"top":Ce=`transform: translate(${J}px, ${xe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ce=`transform: translate(${J}px, ${xe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ce=`transform: translate(${J}px, ${xe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ce=`transform: translate(${J}px, ${xe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ce},k=g(()=>Ve(r(P),r(B),a())),ot=g(()=>ae(r(R),r(I)));Vt(ue),en(()=>window.clearTimeout(E));var Ne=k2(),Q=pe(Ne);let te;Q.__mousemove=Me,Q.__mousedown=re,Q.__mouseup=function(...J){var xe;(xe=e.disableMouseupTooltipShow?void 0:Me)==null||xe.apply(this,J)};var Re=_(Q);ve(Re,()=>{var J;return(J=e.children)!=null?J:le}),h(Q),at(Q,J=>O(T,J),()=>r(T));var Xe=A(Q,2);{var _e=J=>{pm(J,{children:(xe,Ce)=>{var He=I2(),nt=_(He),bt=_(nt,!0);h(nt);var ct=A(nt,2);h(He),at(He,$t=>O(S,$t),()=>r(S)),D(()=>{lt(He,r(k)),me(bt,d()),lt(ct,r(ot))}),$(xe,He)},$$slots:{default:!0}})};V(Xe,J=>{d()&&!l()&&J(_e)})}D(J=>te=ne(Q,1,"tooltip-wrapper svelte-hxlyne",null,te,J),[()=>({"full-width":m()})]),kt("mouseenter",Q,Me),kt("mouseleave",Q,re),$(t,Ne),z(),o()}dt(["mousemove","mousedown","mouseup"]);var e0=t=>{t.stopPropagation()},P2=M("<div><!></div>"),L2={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 Po(t,e){U(e,!0),K(t,L2);let[i,o]=Oe(),n=()=>C(p,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Se(),d=_o(),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),S=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")),P=v(e,"isAriaHidden",3,!1),B=v(e,"onTooltipVisibilityChange",3,Nu.noop),F=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),W=v(e,"mouseEnter",3,Nu.noop),Y=v(e,"mouseLeave",3,Nu.noop),oe=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():S());var G=P2();G.__pointerdown=[e0],G.__click=[e0];var ge=_(G);{var ee=ue=>{Ea(ue,{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:(ce,Pe)=>{var Me=Be(),re=pe(Me);ve(re,()=>{var Ve;return(Ve=e.children)!=null?Ve:le}),$(ce,Me)},$$slots:{default:!0}})},fe=ue=>{var ce=Be(),Pe=pe(ce);ve(Pe,()=>{var Me;return(Me=e.children)!=null?Me:le}),$(ue,ce)};V(ge,ue=>{y()&&r(oe)&&!s()?ue(ee):ue(fe,!1)})}h(G),at(G,ue=>w(ue),()=>w()),D(()=>{var ue;ne(G,1,`btn-container ${(ue=m())!=null?ue:""}`,"svelte-p9r045"),De(G,"aria-hidden",P()||null)}),kt("mouseenter",G,function(...ue){var ce;(ce=W())==null||ce.apply(this,ue)}),kt("mouseleave",G,function(...ue){var ce;(ce=Y())==null||ce.apply(this,ue)}),dr(G,"clientWidth",x),$(t,G),z(),o()}dt(["pointerdown","click"]);var M2=ye('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Dd(t,e){"use strict";var i=M2(),o=_(i),n=A(o);h(i),D(()=>{De(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),De(o,"fill-opacity",e.completed?1:.24),De(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var V2=M("<div><!></div>"),R2={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 fm(t,e){U(e,!0),K(t,R2);let o=Se().ui.t,n=X(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Po(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=V2();let p;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);Dd(f,{get completed(){return r(m)}}),h(a),D(u=>{p=ne(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),lt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),dr(a,"clientWidth",u=>O(n,u)),$(l,a)},$$slots:{default:!0}}),z()}var N2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),O2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),B2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
165
170
  .video-episode-loaded.svelte-1u6kv8l,
166
- .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 im(t,e){q(t,S2);let i=v(e,"videoEpisodes",19,()=>[]);var o=w2();Si(o,21,i,n=>n.from,(n,s)=>{var l=x2();let d;var a=_(l),p=_(a),f=A(p,2);let m;h(a),h(l),D((u,y)=>{d=te(l,1,"video-episode svelte-1u6kv8l",null,d,u),st(l,`left: ${r(s).from}%; width: ${r(s).width}%`),st(p,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),m=te(f,1,"video-episode-filled svelte-1u6kv8l",null,m,y),st(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 C2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;B(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function T2(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 E2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;B(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function I2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function k2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),s()(l)}var A2=M("<div></div>"),P2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),M2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),L2={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 {
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 mm(t,e){K(t,B2);let i=v(e,"videoEpisodes",19,()=>[]);var o=O2();ki(o,21,i,n=>n.from,(n,s)=>{var l=N2();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),lt(l,`left: ${r(s).from}%; width: ${r(s).width}%`),lt(p,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),m=ne(f,1,"video-episode-filled svelte-1u6kv8l",null,m,y),lt(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 D2(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 F2(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 H2(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 U2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function z2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var W2=M("<div></div>"),K2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),q2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Q2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
167
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,
168
173
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
169
174
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
170
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),
171
- .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 Ea(t,e){U(e,!0),q(t,L2);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,Io.noop),S=v(e,"onHandleMove",3,Io.noop),T=v(e,"onPointerUp",3,Io.noop),E=v(e,"onPointerEnter",3,Io.noop),L=v(e,"onPointerMove",3,Io.noop),k=v(e,"onPointerLeave",3,Io.noop),I=v(e,"onMouseEnter",3,Io.noop),V=v(e,"onMouseLeave",3,Io.noop),G=v(e,"onWheelUp",3,Io.noop),H=v(e,"onWheelDown",3,Io.noop),F=v(e,"onWheelLeft",3,Io.noop),W=v(e,"onWheelRight",3,Io.noop),J=v(e,"onDisabledClick",3,Io.noop),j=v(e,"loadedProgress",3,0),le=v(e,"filledProgress",3,0),ie=v(e,"handleProgress",3,0),pe=v(e,"ariaLabel",3,""),he=v(e,"ariaValueMin",3,void 0),ue=v(e,"ariaValueMax",3,void 0),Ne=v(e,"ariaValueNow",3,void 0),oe=v(e,"ariaValueText",3,""),Ve=v(e,"onContextMenu",3,Io.noop),ne=At(),O=Y(void 0),ce=Y(!1),Le=g(()=>{var de;return(de=ue())!=null?de:0}),ve=g(()=>{var de;return(0,Io.isNonNullable)(f())&&((de=f()[f().length-1])==null?void 0:de.time)<r(Le)}),ee=g(()=>(0,Io.isNonNullable)(f())&&f().length&&r(ve)&&r(Le)?Ue(j()*100,le()*100):[]);function me(de){if(de.preventDefault(),i()&&B(O,i().getBoundingClientRect(),!0),y())return;let Be=Pe(de.clientX,de.clientY),We=Ie(de.clientX);E()(Be,We,r(O).width)}function De(de){de.preventDefault(),!y()&&k()()}function fe(){I()()}function dt(){V()()}function Z(de){y()||m()&&(de.preventDefault(),de.deltaY<0?G()():de.deltaY>0?H()():de.deltaX>0?W()():F()())}function Pe(de,Be){return l()?Math.max(0,Math.min(1,(r(O).height-(Be-r(O).top))/r(O).height)):Math.min(Math.max(de-r(O).x,0),r(O).width)/r(O).width}function Ie(de){return Math.min(Math.max(de-r(O).x,0),r(O).width)}function Ue(de,Be){let We=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,ke=[],Qe=f()[0].time/r(Le)*100,Re=0,Ye=0;for(let it=1;it<f().length;it++)Re=f()[it].time/r(Le)*100,Re-Qe>We&&(ke.push({from:Qe,width:Math.max(0,Re-Qe),loadedWidth:Math.max(0,Math.min(Re,de)-Qe),filledWidth:Math.max(0,Math.min(Re,Be)-Qe),interactive:f()[it-1].interactive,completed:f()[it-1].completed}),Qe=f()[it].time/r(Le)*100,Ye++);let Pt={from:Qe,width:Math.max(0,100-Qe),loadedWidth:Math.max(0,Math.min(de,100)-Qe),filledWidth:Math.max(0,Math.min(Be,100)-Qe),interactive:f()[Ye].interactive,completed:f()[Ye].completed};100-Qe<We?(Ye-=1,ke[Ye].width+=100-Qe,ke[Ye].loadedWidth+=Math.max(0,Math.min(de,100)-Qe),ke[Ye].filledWidth+=Math.max(0,Math.min(Be,100)-Qe)):ke[Ye]=Pt;let Wt=f()[0].time;if(Wt!==0){let it=Wt/r(Le)*100;ke.unshift({from:0,width:it,loadedWidth:Math.min(it,de),filledWidth:Math.min(it,Be)})}return ke}function nt(de){return Math.max(0,Math.min(100,de*100))}var ft=M2(),mt=ge(ft);{var St=de=>{var Be=A2();let We;Si(Be,21,()=>r(ee),ke=>ke.from,(ke,Qe)=>{var Re=qe(),Ye=ge(Re);{var Pt=Wt=>{tm(Wt,{get videoEpisode(){return r(Qe)},get disabled(){return y()}})};R(Ye,Wt=>{r(Qe).interactive&&Wt(Pt)})}$(ke,Re)}),h(Be),D(ke=>We=te(Be,1,"interactive-icons svelte-1tpemng",null,We,ke),[()=>({mobile:a(),hidden:a()&&!r(ce)})]),$(de,Be)};R(mt,de=>{u()&&de(St)})}var Xe=A(mt,2);let Ht;Xe.__pointerdown=[C2,i,O,y,ce,Pe,x],Xe.__pointermove=[T2,y,Pe,Ie,L,O,ce,S],Xe.__pointerup=[E2,y,ce,Pe,T],Xe.__click=[I2,y,J,Pe],Xe.__contextmenu=[k2,Pe,y,J,ce,Ve];var Qt=_(Xe);{var Gt=de=>{im(de,{get videoEpisodes(){return r(ee)},get disabled(){return y()},get isMobile(){return a()}})},Ft=de=>{var Be=P2(),We=_(Be),ke=A(We,2);let Qe;h(Be),D((Re,Ye,Pt)=>{st(We,Re),Qe=te(ke,1,"filled svelte-1tpemng",null,Qe,Ye),st(ke,Pt)},[()=>`transform: translateX(${nt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${nt(le())}%);`]),$(de,Be)};R(Qt,de=>{r(ee).length?de(Gt):de(Ft,!1)})}var re=A(Qt,2);let Bt;var _e=_(re);let xe;h(re),h(Xe),ot(Xe,de=>i(de),()=>i()),D((de,Be,We,ke)=>{var Qe,Re;Ht=te(Xe,1,`slider ${(Qe=o())!=null?Qe:""}`,"svelte-1tpemng",Ht,de),Fe(Xe,"aria-label",pe()),Fe(Xe,"aria-valuemin",he()),Fe(Xe,"aria-valuemax",ue()),Fe(Xe,"aria-valuenow",Ne()),Fe(Xe,"aria-valuetext",oe()),Fe(Xe,"data-testid",(Re=n())!=null?Re:null),Bt=te(re,1,"handleWrap svelte-1tpemng",null,Bt,Be),st(re,We),xe=te(_e,1,"handle svelte-1tpemng",null,xe,ke)},[()=>({disabled:y(),"slider-dragging":r(ce),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${nt(ie())}%);`,()=>({"active-live":d()})]),Et("pointerenter",Xe,me),Et("pointerleave",Xe,De),Et("mouseenter",Xe,fe),Et("mouseleave",Xe,dt),Et("wheel",Xe,Z),$(t,ft),z()}ut(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ji=(t,e)=>fa[t]>=fa[e],O1=(t,e)=>fa[t]<fa[e],qs=(t,e)=>fa[t]<=fa[e],B1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var R2=M("<div><!></div>"),N2=M("<div><!> <!></div>"),O2={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 om(t,e){var Z,Pe;U(e,!0),q(t,O2);let[i,o]=He(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(m,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(x,"$currentGridType$",i),a=Ee(),p=At(),f=a.state.volume$,m=a.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,S=(Z=a.callbacks)==null?void 0:Z.onAudioDoesNotExistHint,T=(Pe=a.callbacks)==null?void 0:Pe.onAudioDisabledHint,E=a.state.isAudioAvailable$,L=a.state.isAudioDisabled,k=a.ui.t,I=Y(!1),V,G=g(()=>e.isAds||n()),H=g(()=>!r(G)||s()||l()===0),F=g(()=>qs(d(),"s")),W=g(()=>r(F)?"":r(H)?!n()||L?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),J=g(()=>r(H)?k("tooltip_volume"):k("tooltip_volume_muted")),j=g(()=>r(H)?0:l()),le=!1,ie=g(()=>e.isAds?!1:L?!T:n()?!1:!S);function pe(Ie){y(),u(Ie)}function he(){wu(a,l(),p.controls.volumeStepWheel)}function ue(){Su(a,l(),p.controls.volumeStepWheel)}function Ne(Ie){u(Ie)}function oe(Ie){u(Ie),w()}function Ve(){le=!0}function ne(){le=!1,Le()}function O(){clearTimeout(V),B(I,!0)}function ce(){Le()}function Le(){V=window.setTimeout(()=>{le||B(I,!1)},p.controls.volumeBarTimeout)}function ve(Ie){Ie.preventDefault(),Ie.deltaY<0?he():Ie.deltaY>0&&ue()}var ee=N2();let me;var De=_(ee);Ta(De,{get content(){return r(W)},translateY:-18,children:(Ie,Ue)=>{let nt=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Nt(Ie,{className:"btn-full-opacity",get disabled(){return r(ie)},get testId(){return r(nt)},get ariaLabel(){return r(J)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyM},role:"button",children:(ft,mt)=>{Ks(ft,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=A(De,2);{var dt=Ie=>{var Ue=R2();let nt;var ft=_(Ue);let mt=g(()=>r(F)?"volumeBar-slider-vertical":""),St=g(()=>r(F)&&!r(I)),Xe=g(()=>r(F)?Ve:Nd.noop),Ht=g(()=>r(F)?ne:Nd.noop),Qt=g(()=>Math.round(r(j)*100)),Gt=g(()=>`${Math.round(r(j)*100)}%`),Ft=g(()=>r(F)?"volume-slider-vertical":"volume-slider");Ea(ft,{get className(){return r(mt)},get isHidden(){return r(St)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:he,onWheelDown:ue,onPointerDown:pe,onHandleMove:Ne,onPointerUp:oe,get onPointerEnter(){return r(Xe)},get onPointerLeave(){return r(Ht)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Qt)},get ariaValueText(){return r(Gt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(Ft)}}),h(Ue),D(re=>nt=te(Ue,1,"volumeBar svelte-1auih1j",null,nt,re),[()=>({"volumeBar-vertical":r(F)})]),$(Ie,Ue)};R(fe,Ie=>{r(G)&&Ie(dt)})}h(ee),D(Ie=>me=te(ee,1,"volumeBar-container svelte-1auih1j",null,me,Ie),[()=>({vertical:r(F)})]),Et("mouseenter",ee,function(...Ie){var Ue;(Ue=r(F)?O:Nd.noop)==null||Ue.apply(this,Ie)}),Et("mouseleave",ee,function(...Ie){var Ue;(Ue=r(F)?ce:Nd.noop)==null||Ue.apply(this,Ie)}),Et("wheel",ee,ve),$(t,ee),z(),o()}var D1=require("@vkontakte/videoplayer-shared/es2018");var B2=Ce('<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 nm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=B2();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var D2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function rm(t,e){q(t,D2);let i=v(e,"isFullscreen",8,!1),o=Or(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");nm(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Od(t,e){U(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,D1.noop),n=Ee(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Nt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=Us(p);s.set(f),o()()},get ariaKeyShortCut(){return os.KeyF},role:"button",children:(p,f)=>{rm(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var H2=Ce('<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 sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=H2();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var F2=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=F2();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(4),h(o),$(t,o)}var U2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
176
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function Ia(t,e){U(e,!0),K(t,Q2);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,Lo.noop),T=v(e,"onHandleMove",3,Lo.noop),S=v(e,"onPointerUp",3,Lo.noop),E=v(e,"onPointerEnter",3,Lo.noop),R=v(e,"onPointerMove",3,Lo.noop),I=v(e,"onPointerLeave",3,Lo.noop),P=v(e,"onMouseEnter",3,Lo.noop),B=v(e,"onMouseLeave",3,Lo.noop),F=v(e,"onWheelUp",3,Lo.noop),H=v(e,"onWheelDown",3,Lo.noop),W=v(e,"onWheelLeft",3,Lo.noop),Y=v(e,"onWheelRight",3,Lo.noop),oe=v(e,"onDisabledClick",3,Lo.noop),G=v(e,"loadedProgress",3,0),ge=v(e,"filledProgress",3,0),ee=v(e,"handleProgress",3,0),fe=v(e,"ariaLabel",3,""),ue=v(e,"ariaValueMin",3,void 0),ce=v(e,"ariaValueMax",3,void 0),Pe=v(e,"ariaValueNow",3,void 0),Me=v(e,"ariaValueText",3,""),re=v(e,"onContextMenu",3,Lo.noop),Ve=At(),ae=X(void 0),k=X(!1),ot=g(()=>{var de;return(de=ce())!=null?de:0}),Ne=g(()=>{var de;return(0,Lo.isNonNullable)(f())&&((de=f()[f().length-1])==null?void 0:de.time)<r(ot)}),Q=g(()=>(0,Lo.isNonNullable)(f())&&f().length&&r(Ne)&&r(ot)?He(G()*100,ge()*100):[]);function te(de){if(de.preventDefault(),i()&&O(ae,i().getBoundingClientRect(),!0),y())return;let Qe=xe(de.clientX,de.clientY),Fe=Ce(de.clientX);E()(Qe,Fe,r(ae).width)}function Re(de){de.preventDefault(),!y()&&I()()}function Xe(){P()()}function _e(){B()()}function J(de){y()||m()&&(de.preventDefault(),de.deltaY<0?F()():de.deltaY>0?H()():de.deltaX>0?Y()():W()())}function xe(de,Qe){return l()?Math.max(0,Math.min(1,(r(ae).height-(Qe-r(ae).top))/r(ae).height)):Math.min(Math.max(de-r(ae).x,0),r(ae).width)/r(ae).width}function Ce(de){return Math.min(Math.max(de-r(ae).x,0),r(ae).width)}function He(de,Qe){let Fe=Ve.features.episodesClustering&&!u()?Ve.episodeMinWidthPc:0,mt=[],Ae=f()[0].time/r(ot)*100,We=0,ut=0;for(let Ke=1;Ke<f().length;Ke++)We=f()[Ke].time/r(ot)*100,We-Ae>Fe&&(mt.push({from:Ae,width:Math.max(0,We-Ae),loadedWidth:Math.max(0,Math.min(We,de)-Ae),filledWidth:Math.max(0,Math.min(We,Qe)-Ae),interactive:f()[Ke-1].interactive,completed:f()[Ke-1].completed}),Ae=f()[Ke].time/r(ot)*100,ut++);let ze={from:Ae,width:Math.max(0,100-Ae),loadedWidth:Math.max(0,Math.min(de,100)-Ae),filledWidth:Math.max(0,Math.min(Qe,100)-Ae),interactive:f()[ut].interactive,completed:f()[ut].completed};100-Ae<Fe?(ut-=1,mt[ut].width+=100-Ae,mt[ut].loadedWidth+=Math.max(0,Math.min(de,100)-Ae),mt[ut].filledWidth+=Math.max(0,Math.min(Qe,100)-Ae)):mt[ut]=ze;let rt=f()[0].time;if(rt!==0){let Ke=rt/r(ot)*100;mt.unshift({from:0,width:Ke,loadedWidth:Math.min(Ke,de),filledWidth:Math.min(Ke,Qe)})}return mt}function nt(de){return Math.max(0,Math.min(100,de*100))}var bt=q2(),ct=pe(bt);{var $t=de=>{var Qe=W2();let Fe;ki(Qe,21,()=>r(Q),mt=>mt.from,(mt,Ae)=>{var We=Be(),ut=pe(We);{var ze=rt=>{fm(rt,{get videoEpisode(){return r(Ae)},get disabled(){return y()}})};V(ut,rt=>{r(Ae).interactive&&rt(ze)})}$(mt,We)}),h(Qe),D(mt=>Fe=ne(Qe,1,"interactive-icons svelte-1tpemng",null,Fe,mt),[()=>({mobile:a(),hidden:a()&&!r(k)})]),$(de,Qe)};V(ct,de=>{u()&&de($t)})}var et=A(ct,2);let zt;et.__pointerdown=[D2,i,ae,y,k,xe,x],et.__pointermove=[F2,y,xe,Ce,R,ae,k,T],et.__pointerup=[H2,y,k,xe,S],et.__click=[U2,y,oe,xe],et.__contextmenu=[z2,xe,y,oe,k,re];var Qt=_(et);{var Gt=de=>{mm(de,{get videoEpisodes(){return r(Q)},get disabled(){return y()},get isMobile(){return a()}})},jt=de=>{var Qe=K2(),Fe=_(Qe),mt=A(Fe,2);let Ae;h(Qe),D((We,ut,ze)=>{lt(Fe,We),Ae=ne(mt,1,"filled svelte-1tpemng",null,Ae,ut),lt(mt,ze)},[()=>`transform: translateX(${nt(G())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${nt(ge())}%);`]),$(de,Qe)};V(Qt,de=>{r(Q).length?de(Gt):de(jt,!1)})}var Ee=A(Qt,2);let Yt;var we=_(Ee);let be;h(Ee),h(et),at(et,de=>i(de),()=>i()),D((de,Qe,Fe,mt)=>{var Ae,We;zt=ne(et,1,`slider ${(Ae=o())!=null?Ae:""}`,"svelte-1tpemng",zt,de),De(et,"aria-label",fe()),De(et,"aria-valuemin",ue()),De(et,"aria-valuemax",ce()),De(et,"aria-valuenow",Pe()),De(et,"aria-valuetext",Me()),De(et,"data-testid",(We=n())!=null?We:null),Yt=ne(Ee,1,"handleWrap svelte-1tpemng",null,Yt,Qe),lt(Ee,Fe),be=ne(we,1,"handle svelte-1tpemng",null,be,mt)},[()=>({disabled:y(),"slider-dragging":r(k),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${nt(ee())}%);`,()=>({"active-live":d()})]),kt("pointerenter",et,te),kt("pointerleave",et,Re),kt("mouseenter",et,Xe),kt("mouseleave",et,_e),kt("wheel",et,J),$(t,bt),z()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Yi=(t,e)=>ma[t]>=ma[e],t0=(t,e)=>ma[t]<ma[e],ys=(t,e)=>ma[t]<=ma[e],i0=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var j2=M("<div><!></div>"),Y2=M("<div><!> <!></div>"),Z2={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 vm(t,e){var J,xe;U(e,!0),K(t,Z2);let[i,o]=Oe(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(m,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(x,"$currentGridType$",i),a=Se(),p=At(),f=a.state.volume$,m=a.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,T=(J=a.callbacks)==null?void 0:J.onAudioDoesNotExistHint,S=(xe=a.callbacks)==null?void 0:xe.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,I=a.ui.t,P=X(!1),B,F=g(()=>e.isAds||n()),H=g(()=>!r(F)||s()||l()===0),W=g(()=>ys(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()),ge=!1,ee=g(()=>e.isAds?!1:R?!S:n()?!1:!T);function fe(Ce){y(),u(Ce)}function ue(){Lu(a,l(),p.controls.volumeStepWheel)}function ce(){Mu(a,l(),p.controls.volumeStepWheel)}function Pe(Ce){u(Ce)}function Me(Ce){u(Ce),w()}function re(){ge=!0}function Ve(){ge=!1,ot()}function ae(){clearTimeout(B),O(P,!0)}function k(){ot()}function ot(){B=window.setTimeout(()=>{ge||O(P,!1)},p.controls.volumeBarTimeout)}function Ne(Ce){Ce.preventDefault(),Ce.deltaY<0?ue():Ce.deltaY>0&&ce()}var Q=Y2();let te;var Re=_(Q);Ea(Re,{get content(){return r(Y)},translateY:-18,children:(Ce,He)=>{let nt=g(()=>r(W)?"btn-volume-vertical":"btn-volume-horizontal");Ot(Ce,{className:"btn-full-opacity",get disabled(){return r(ee)},get testId(){return r(nt)},get ariaLabel(){return r(oe)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyM},role:"button",children:(bt,ct)=>{Ks(bt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Xe=A(Re,2);{var _e=Ce=>{var He=j2();let nt;var bt=_(He);let ct=g(()=>r(W)?"volumeBar-slider-vertical":""),$t=g(()=>r(W)&&!r(P)),et=g(()=>r(W)?re:Fd.noop),zt=g(()=>r(W)?Ve:Fd.noop),Qt=g(()=>Math.round(r(G)*100)),Gt=g(()=>`${Math.round(r(G)*100)}%`),jt=g(()=>r(W)?"volume-slider-vertical":"volume-slider");Ia(bt,{get className(){return r(ct)},get isHidden(){return r($t)},get isVertical(){return r(W)},withWheelHandler:!0,onWheelUp:ue,onWheelDown:ce,onPointerDown:fe,onHandleMove:Pe,onPointerUp:Me,get onPointerEnter(){return r(et)},get onPointerLeave(){return r(zt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Qt)},get ariaValueText(){return r(Gt)},get filledProgress(){return r(G)},get handleProgress(){return r(G)},get testId(){return r(jt)}}),h(He),D(Ee=>nt=ne(He,1,"volumeBar svelte-1auih1j",null,nt,Ee),[()=>({"volumeBar-vertical":r(W)})]),$(Ce,He)};V(Xe,Ce=>{r(F)&&Ce(_e)})}h(Q),D(Ce=>te=ne(Q,1,"volumeBar-container svelte-1auih1j",null,te,Ce),[()=>({vertical:r(W)})]),kt("mouseenter",Q,function(...Ce){var He;(He=r(W)?ae:Fd.noop)==null||He.apply(this,Ce)}),kt("mouseleave",Q,function(...Ce){var He;(He=r(W)?k:Fd.noop)==null||He.apply(this,Ce)}),kt("wheel",Q,Ne),$(t,Q),z(),o()}var o0=require("@vkontakte/videoplayer-shared/es2018");var X2=ye('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function gm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var J2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function hm(t,e){K(t,J2);let i=v(e,"isFullscreen",8,!1),o=Nr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");gm(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Hd(t,e){U(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,o0.noop),n=Se(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ot(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=Us(p);s.set(f),o()()},get ariaKeyShortCut(){return ss.KeyF},role:"button",children:(p,f)=>{hm(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var ey=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function _m(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ey();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var ty=ye('<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 bm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ty();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(6),h(o),$(t,o)}var iy={hash:"svelte-e5e2xr",code:`svg [data-logo],
178
+ svg[data-testid="vk-video-logo-icon--short"] ._ru,
173
179
  svg[data-testid="vk-video-logo-icon--short"] ._en,
174
180
  svg[data-testid="vk-video-logo-icon"] ._en,
175
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function lm(t,e){q(t,U2);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);am(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Bd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(y,"$isMobile",i),s=()=>C(u,"$currentGridType$",i),l=()=>C(x,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=At(),m=Ee(),u=m.ui.currentGridType$,y=m.ui.isMobile,w=m.ui.t,x=m.isCyrillicRelatedInterface$,S=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||qs(s(),"l"))&&r(T)),L=()=>{var V,G;e.click(),(V=m.callbacks)!=null&&V.onLogoClicked?(G=m.callbacks)==null||G.onLogoClicked():p()&&window.open(p(),"_blank")},k=g(()=>!a()),I=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Nt(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:L,get testId(){return r(I)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(V){d(V)},children:(V,G)=>{var H=qe(),F=ge(H);{var W=j=>{lm(j,{get short(){return r(E)},get isCyrillic(){return l()}})},J=j=>{sm(j,{})};R(F,j=>{r(T)?j(W):j(J,!1)})}$(V,H)},$$slots:{default:!0}}),z(),o()}var H1=require("@vkontakte/videoplayer-core/es2018");var dm=require("@vkontakte/videoplayer-core/es2018"),W2=Ce('<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>'),K2=Ce('<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>'),q2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
181
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}svg[data-logo="vk_video"] [data-logo="vk_video"],
182
+ svg[data-logo="play_market"] [data-logo="play_market"],
183
+ svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function $m(t,e){U(e,!0),K(t,iy);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`);bm(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 Ud(t,e){U(e,!0);let[i,o]=Oe(),n=()=>C(y,"$isMobile",i),s=()=>C(u,"$currentGridType$",i),l=()=>C(x,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=At(),m=Se(),u=m.ui.currentGridType$,y=m.ui.isMobile,w=m.ui.t,x=m.isCyrillicRelatedInterface$,T=g(()=>f.logoType!=="vk"),S=g(()=>r(T)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=g(()=>(n()&&ys(s(),"m")||ys(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()),P=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Ot(t,{className:"btn-full-opacity",get disabled(){return r(I)},click:R,get testId(){return r(P)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(B){d(B)},children:(B,F)=>{var H=Be(),W=pe(H);{var Y=G=>{$m(G,{get logo(){return f.logoType},get short(){return r(E)},get isCyrillic(){return l()}})},oe=G=>{_m(G,{})};V(W,G=>{r(T)?G(Y):G(oe,!1)})}$(B,H)},$$slots:{default:!0}}),z(),o()}var r0=require("@vkontakte/videoplayer-core/es2018");var ym=require("@vkontakte/videoplayer-core/es2018"),oy=ye('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),ny=ye('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),ry={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
184
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
177
185
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
178
186
  animation-name: svelte-8z1bf5-wave3;}
@@ -220,10 +228,9 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
220
228
  100% {
221
229
  opacity: 1;
222
230
  }
223
- }`};function cm(t,e){U(e,!0),q(t,q2);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===dm.ChromecastState.CONNECTED),n=g(()=>e.iconState===dm.ChromecastState.CONNECTING);var s=qe(),l=ge(s);{var d=p=>{var f=W2(),m=_(f),u=_(m),y=_(u);Se(),h(u);var w=A(u);Se(),h(m);var x=A(m),S=_(x),T=_(S);h(S),Se(),h(x),h(f),D(()=>{Fe(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},a=p=>{var f=K2();let m;var u=_(f),y=A(_(u),5);let w;h(u),h(f),D((x,S)=>{m=te(f,0,"svelte-8z1bf5",null,m,x),w=te(y,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(p,f)};R(l,p=>{i()?p(d):p(a,!1)})}$(t,s),z()}var F1=require("@vkontakte/videoplayer-shared/es2018");function Dd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,F1.noop),l=Ee().ui.t,d=g(()=>e.state===H1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Nt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{cm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var Q2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),G2={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 um(t,e){q(t,G2);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=Y(void 0),p=Y(void 0);function f(S){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),E=T/2;return S<E?E+l():S>e.containerWidth-E?e.containerWidth-E-d():S}let m=g(()=>f(n()));var u=Q2(),y=_(u);let w;var x=_(y);ye(x,()=>{var S;return(S=e.children)!=null?S:ae}),h(y),ot(y,S=>B(p,S),()=>r(p)),h(u),ot(u,S=>B(a,S),()=>r(a)),D(S=>{st(u,`transform: translate(${r(m)}px, ${s()}px);`),w=te(y,1,"tooltip svelte-5ygsa2",null,w,S),st(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var Eu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var U1=t=>!!(Math.round(Math.abs(t)/90)%2),z1=t=>Math.abs(t)/90%4===1;var j2=M('<div class="preview svelte-1wqg760"></div>'),Y2=M('<div class="time svelte-1wqg760"> </div>'),Z2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),X2={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 pm(t,e){U(e,!0),q(t,X2);let[i,o]=He(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(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=Ee(),w=y.ui.rotateAlpha,x=y.ui.playerSize,S=Y(0),T=Y(0),E=Y(""),L=Y(0),k=Y(0),I=Y(0),V=Y(0),G=g(()=>Eu(f(),m(),p())),H=g(()=>U1(n())),F=g(()=>z1(n())),W=g(le),J=g(()=>(r(F)?1:-1)*(r(S)/2-r(T)/2)),j=g(()=>r(J)*-1);Ke(()=>{(ee=>{B(S,ee.width,!0),B(T,ee.height,!0)})(pe())}),Ke(()=>{(ee=>{B(E,ee.imgSrc,!0),B(L,ee.imgWidth,!0),B(k,ee.imgHeight,!0),B(I,ee.imgOffsetX,!0),B(V,ee.imgOffsetY,!0)})(he(f()))});function le(){var fe;let ee=a()?l.MOBILE:l.DESKTOP,{isVertical:me}=ie(),De=30;return(fe=r(G))!=null&&fe.text&&(De+=16),(me||r(H))&&(De+=18,De+=50),Math.min(Math.max(s().height-De,0),ee)}function ie(){let ee=e.previewThumbsData.frameWidth,me=e.previewThumbsData.frameHeight,De=me>ee;return{width:ee,height:me,isHorizontal:!De,isVertical:De}}function pe(){let{height:ee,isHorizontal:me,isVertical:De,width:fe}=ie();return me&&(ee=ee/fe*r(W),fe=r(W)),De&&(fe=fe/ee*r(W),ee=r(W)),{width:fe,height:ee}}function he(ee){let me;e.previewThumbsData.isUV?me=Math.floor(m()*ee/e.previewThumbsData.frequency):me=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ee)));let De=Math.floor(me/e.previewThumbsData.countPerImage),fe=Math.floor(me%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),dt=me%e.previewThumbsData.countPerRow,Z=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Z=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Z++);let Pe=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Pe=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ie=r(S)*Pe,Ue=r(T)*Z,nt=-dt*r(S),ft=-fe*r(T);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Ie,imgHeight:Ue,imgOffsetX:nt,imgOffsetY:ft}}var ue=Z2();let Ne;var oe=_(ue);{var Ve=ee=>{var me=j2();D(()=>st(me,`width: ${r(S)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(L)}px ${r(k)}px; background-position: ${r(I)}px ${r(V)}px;
224
- transform: rotate(${n()}deg) ${r(H)?`translate(${r(J)}px, ${r(j)}px)`:""};
225
- `)),$(ee,me)};R(oe,ee=>{r(E)&&ee(Ve)})}var ne=A(oe,2),O=_(ne);{var ce=ee=>{var me=qe(),De=ge(me);{var fe=Z=>{var Pe=ts();D(Ie=>be(Pe,Ie),[()=>K("tooltip_episode_unfinished")]),$(Z,Pe)},dt=Z=>{var Pe=ts();D(()=>be(Pe,r(G).text||"")),$(Z,Pe)};R(De,Z=>{u()&&r(G).completed===!1?Z(fe):Z(dt,!1)})}$(ee,me)};R(O,ee=>{r(G)&&ee(ce)})}h(ne);var Le=A(ne,2);{var ve=ee=>{var me=Y2(),De=_(me,!0);h(me),D(()=>be(De,d())),$(ee,me)};R(Le,ee=>{u()||ee(ve)})}h(ue),D(ee=>{Ne=te(ue,1,"timeline-preview svelte-1wqg760",null,Ne,ee),st(ue,`width: ${r(H)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,ue),z(),o()}var J2=M('<span class="time svelte-1jr6obn"> </span>'),ey=M("<!> <!>",1),ty={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 fm(t,e){var de,Be,We,ke,Qe;U(e,!0),q(t,ty);let[i,o]=He(),n=()=>C(J,"$interactiveEpisodes$",i),s=()=>C(I,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(ie,"$isInteractiveExpectation$",i),a=()=>C(le,"$isInteractiveTime$",i),p=()=>C(V,"$isLive$",i),f=()=>C(H,"$isMobile",i),m=()=>C(G,"$isActiveLive$",i),u=()=>C(L,"$bufferedProgress$",i),y=()=>C(ue,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),x=v(e,"withEpisodes",3,!0),S=v(e,"ref",15,void 0),T=Ee(),E=At(),L=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,G=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,W=T.actions.internal.getPreviewThumbsData(),J=T.state.interactiveEpisodes$,j=T.state.isInteractive,le=T.state.isInteractiveTime$,ie=T.state.isInteractiveExpectation$,pe=T.actions.internal.correctSeekTimeToInteractive,he=(de=T.callbacks)==null?void 0:de.onDisabledTimelineClick,ue=T.ui.controls.disabledControls$,Ne=(We=(Be=T.callbacks)==null?void 0:Be.uiInfo)==null?void 0:We.onTimelineMouseEnter,oe=(Qe=(ke=T.callbacks)==null?void 0:ke.uiInfo)==null?void 0:Qe.onTimelineMouseLeave,Ve=T.ui.t,ne=E.features.interactiveResponsiveUi,O=g(()=>j?n():F),ce=g(()=>Cn(s())),Le=g(()=>Cn(l())),ve=g(()=>l()/s()),ee=g(()=>d()||a()),me=Y(!1),De=Y(""),fe=Y(0),dt=Y(0),Z=Y(0),Pe=g(()=>({containerWidth:r(dt),translateXPx:r(fe),translateYPx:j&&W?-36:-16,active:r(me)&&w()&&!r(ee)&&!ne,pointer:!E.features.timelinePreview||!W||p()})),Ie=Ve("aria_timeline"),Ue=g(()=>Ve("aria_timeline_value",{position:r(Le),duration:r(ce)}));function nt(Re){return!pe||!j?Re:pe(Re*s())/s()}function ft(Re){T.actions.internal.startScrubbing(nt(Re))}function mt(Re){a()||T.actions.internal.progressScrubbing(nt(Re))}function St(Re){T.actions.internal.completeScrubbing(nt(Re)),B(me,!1)}function Xe(Re,Ye,Pt){Gt(Re,Ye,Pt),B(me,!0)}function Ht(Re,Ye,Pt){Gt(Re,Ye,Pt),B(me,!0)}function Qt(){B(me,!1)}function Gt(Re,Ye,Pt){B(Z,nt(Re),!0),B(fe,Ye,!0),Pt&&B(dt,Pt,!0),B(De,Ft(Re),!0)}function Ft(Re){let Ye=Cn((p()?1-Re:Re)*s());return p()?`-${Ye}`:Ye}var re=ey(),Bt=ge(re);um(Bt,ys(()=>r(Pe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,Ye)=>{var Pt=qe(),Wt=ge(Pt);{var it=si=>{pm(si,{get time(){return r(De)},get isMobile(){return f()},get videoEpisodes(){return r(O)},get previewThumbsData(){return W},get progress(){return r(Z)},get duration(){return s()},get isInteractive(){return j}})},ri=si=>{var ct=J2(),ii=_(ct,!0);h(ct),D(()=>be(ii,r(De))),$(si,ct)};R(Wt,si=>{E.features.timelinePreview&&W&&!p()?si(it):si(ri,!1)})}$(Re,Pt)},$$slots:{default:!0}}));var _e=A(Bt,2);let xe=g(()=>y().has("TIMELINE"));Ea(_e,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return Ie},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(Ue)},get loadedProgress(){return u()},get filledProgress(){return r(ve)},get handleProgress(){return r(ve)},get videoEpisodes(){return r(O)},onPointerDown:ft,onHandleMove:mt,onPointerMove:Ht,onPointerUp:St,onPointerEnter:Xe,onPointerLeave:Qt,get onMouseEnter(){return Ne},get onMouseLeave(){return oe},get onDisabledClick(){return he},get isInteractive(){return j},get disabled(){return r(xe)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:St,get ref(){return S()},set ref(Re){S(Re)}}),$(t,re),z(),o()}var iy={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Hd(t,e){U(e,!0),q(t,iy);let[i,o]=He(),n=()=>C(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>Cn(l())),m=g(()=>Cn(s())),u=g(()=>s()/l()),y=g(()=>p("aria_timeline_value",{position:r(m),duration:r(f)})),w=g(()=>Math.round(r(u)*100));Ea(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 oy=M("<div><!></div>"),ny=M("<div></div>"),ry={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 Ia(t,e){U(e,!0),q(t,ry);let[i,o]=He(),n=()=>C(S,"$isLive$",i),s=()=>C(L,"$isMobile",i),l=()=>C(k,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(T,"$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=Ee(),x=At(),S=w.state.isLive$,T=w.ads.duration,E=w.ads.position,L=w.ui.isMobile,k=se(!1),I=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var V=qe(),G=ge(V);{var H=W=>{var J=oy();let j;var le=_(J);{var ie=he=>{Hd(he,{get position(){return d()},get duration(){return a()}})},pe=he=>{fm(he,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(I)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(ue){y(ue)}})};R(le,he=>{p()?he(ie):he(pe,!1)})}h(J),$s(J,()=>hl(f()&&x.features.usePerformanceFix,k,x.disableInvisibleComponentsTimeout)),D(he=>j=te(J,1,"timeline svelte-41cp6d",null,j,he),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":l()})]),$(W,J)},F=W=>{var J=ny();let j;D(le=>j=te(J,1,"timeline-stub svelte-41cp6d",null,j,le),[()=>({mobile:s()})]),$(W,J)};R(G,W=>{r(I)?W(H):W(F,!1)})}$(t,V),z(),o()}var W1=require("@vkontakte/videoplayer-shared/es2018");var sy=Ce('<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 mm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=sy();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(3),h(o),$(t,o)}var ay=Ce('<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 vm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ay();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var ly=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),dy=M('<span class="text svelte-1yhs2ga"> </span>'),cy=M('<span class="text count svelte-1yhs2ga"> </span>'),uy=M("<!> <!>",1),py={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 Fd(t,e){var ie,pe,he;U(e,!0),q(t,py);let[i,o]=He(),n=()=>C(w,"$currentGridType$",i),s=()=>C(x,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Ee(),u=(pe=(ie=m.callbacks)==null?void 0:ie.onEpisodeChanged)!=null?pe:W1.noop,y=!!((he=m.callbacks)!=null&&he.onEpisodeClicked),w=m.ui.currentGridType$,x=m.ui.episodes.openedByKeyboard$,S=m.ui.episodes.panelOpened$,T=m.ui.isMobile,E=m.ui.t,L=Y(void 0),k=ue=>{var oe,Ve,ne;if(!!((oe=m.callbacks)!=null&&oe.onEpisodeClicked)){let O=Us(ue);x.set(O),S.set(!0),(ne=(Ve=m.callbacks)==null?void 0:Ve.onEpisodeClicked)==null||ne.call(Ve,O)}},I=Y(null),V=g(()=>a()/p());Ke(()=>{var Ne;let ue=Eu(r(V),p(),f());ue?((Ne=r(I))==null?void 0:Ne.time)!==ue.time&&(u(ue),B(I,ue,!0)):B(I,null)});let G=g(()=>{var ue;return((ue=r(I))==null?void 0:ue.text)||""}),H=g(()=>ji(n(),"xl")?"FULL":ji(n(),"m")&&O1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(G)}`),W=async(ue,Ne,oe)=>{await Co(),(ue==null?void 0:ue.getAttribute("aria-expanded"))==="false"&&Ne&&!oe&&Ct(()=>{x.set(!1),ue.focus()})};Ke(()=>{W(r(L),s(),l())});var J=qe(),j=ge(J);{var le=ue=>{let Ne=g(()=>d()?"px-0":""),oe=g(()=>!y);Nt(ue,{get className(){var Ve;return`w-max btn-full-opacity btn-jc-l ${(Ve=r(Ne))!=null?Ve:""}`},testId:"btn-episodes",click:k,get disabled(){return r(oe)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(L)},set ref(Ve){B(L,Ve,!0)},children:(Ve,ne)=>{var O=qe(),ce=ge(O);{var Le=ee=>{var me=ly(),De=ge(me),fe=_(De,!0);h(De);var dt=A(De,2),Z=_(dt);vm(Z,{}),h(dt),D(()=>be(fe,r(G))),$(ee,me)},ve=ee=>{var me=uy(),De=ge(me);mm(De,{});var fe=A(De,2);{var dt=Pe=>{var Ie=dy(),Ue=_(Ie,!0);h(Ie),D(()=>be(Ue,r(G))),$(Pe,Ie)},Z=(Pe,Ie)=>{{var Ue=nt=>{var ft=cy(),mt=_(ft,!0);h(ft),D(()=>be(mt,f().length)),$(nt,ft)};R(Pe,nt=>{r(H)==="COUNT"&&nt(Ue)},Ie)}};R(fe,Pe=>{r(H)==="FULL"?Pe(dt):Pe(Z,!1)})}$(ee,me)};R(ce,ee=>{d()?ee(Le):ee(ve,!1)})}$(Ve,O)},$$slots:{default:!0}})};R(j,ue=>{r(I)&&ue(le)})}$(t,J),z(),o()}var Am=require("@vkontakte/videoplayer-shared/es2018");var di=require("@vkontakte/videoplayer-core/es2018"),pt=require("@vkontakte/videoplayer-shared/es2018"),ss=require("@vkontakte/videoplayer-statistics/es2018");var Ge=require("@vkontakte/videoplayer-shared/es2018"),Yi=require("@vkontakte/videoplayer-shared/es2018");var K1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var fy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Iu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Yi.Subject,loadStarted$:new Yi.Subject,loadEnded$:new Yi.Subject,loadError$:new Yi.Subject,ready$:new Yi.Subject,slotRequested$:new Yi.Subject,started$:new Yi.Subject,timeRemained$:new Yi.Subject,paused$:new Yi.Subject,resumed$:new Yi.Subject,ended$:new Yi.Subject,empty$:new Yi.Subject,skipped$:new Yi.Subject,clicked$:new Yi.Subject,closed$:new Yi.Subject,error$:new Yi.Subject};this.loadAdman=e=>(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ge.now)()]}),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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ge.now)()]}),o())};(0,Yi.addScript)(fy,e,this.loadTimeout).then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ge.now)()]}),window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ge.now)()]}),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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ge.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ge.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ge.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ge.now)()]}),!d&&(window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ge.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ge.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ge.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ge.now)()]}),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"),Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ge.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid,this.debug=i.debug}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var k,I;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ge.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},paramsOverride:f={},duration:m,externalApi:u}=e;this.externalApi=u;let y,w=this.playerState&&$e(this.playerState.vsid);w&&(this.isVsidOriginal?y=w:y=parseInt(w,36));let{isEmbed:x,immediateOrigin:S}=(0,Ge.detectEmbed)(),T=(k=x?S:window.location.href)!=null?k:window.location.href,E={...p,dl:encodeURIComponent(T),autoplay:s?1:0,player_width:i,player_height:o,...y?{request_id:y}:{},duration:m,...this.usePuid?{puid10:K1(i,o),puid11:n?0:1}:{},...f};E=Object.fromEntries(Object.entries(E).filter(([V,G])=>(0,Ge.isNonNullable)(G)));let L={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:E,browser:{mobile:!1}};try{let V=new window.AdmanHTML;if(V.setDebug(this.debug),V.onReady(this.onAdsReady),V.onStarted(this.onAdStarted),V.onPlayed(this.onAdPlayed),V.onPaused(this.onAdPaused),V.adMidrollPoint(this.onAdMidrollPoint),V.onClosed(this.onAdClosed),V.onSkipped(this.onAdSkipped),V.onClicked(this.onAdClicked),V.onTimeRemained(this.onAdTimeRemained),V.onCompleted(this.onAdCompleted),V.onError(this.onAdError),(I=this.externalApi)!=null&&I.videoGetAds){let G=await this.safeExternalCall(this.externalApi.videoGetAds,E);G&&(delete L.slot,delete L.params,Object.assign(L,{json:G}))}console.warn(`adman config
226
- `,L),V.init(L),this.adman=V,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(L)}`})}catch(V){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(V)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ge.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ge.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,p,f,m,u;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ge.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(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&&(0,Yi.clearVideoElement)(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 q1=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 gm=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 ku,{startTime:f,endTime:m}=p.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let p=new hm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},ku=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}},hm=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 ku;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}},Q1=gm;var Pu=require("@vkontakte/videoplayer-shared/es2018"),ka,Ti,_m=0,bm=!1,G1="",j1=(t,e=0,i=0)=>t<e&&t<i,Au=(t,e=0,i=0)=>t>=e&&t<=i,my=(t,e=0,i=0)=>t>e&&t>i,Y1=(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})=>Au(t,p,f));let s=t>=_m,l=t<_m;if(_m=t,l&&(bm=!1),(0,Pu.isNonNullable)(ka)&&Au(t,ka.startTime,ka.endTime)&&G1===e.value)return ka;if(!(0,Pu.isNonNullable)(Ti)&&(n!=null&&n.length)&&!bm){Ti=n.find(({startTime:p,endTime:f})=>Au(t,p,f)||s&&j1(t,p,f)),ka=void 0,!(0,Pu.isNonNullable)(Ti)&&n[n.length-1].endTime<t&&(bm=!0);return}else{if(Au(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))return ka=Ti,Ti=void 0,G1=e.value,ka;(s&&my(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime)||l&&j1(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))&&(Ti=void 0)}};var Mu={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"},Ud=t=>{var e,i;return(i=(e=Mu[t])!=null?e:Mu[vy[t]])!=null?i:void 0};var Z1=require("@vkontakte/videoplayer-shared/es2018"),rB=require("@vkontakte/videoplayer-statistics/es2018"),Lu=class{constructor(e,i,o,n=new Z1.Subscription){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 zd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(zd||{});var rs=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(rs(i==null?void 0:i.top)-rs(o==null?void 0:o.top)),left:Math.round(rs(i==null?void 0:i.left)-rs(o==null?void 0:o.left)),bottom:Math.round(rs(i==null?void 0:i.bottom)-rs(o==null?void 0:o.top)),right:Math.round(rs(i==null?void 0:i.right)-rs(o==null?void 0:o.left))}},Cl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:rs(e==null?void 0:e.width),height:rs(e==null?void 0:e.height)}};var Vu="off";var X1=({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:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:L,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:G,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:W,playNextVideo:J,looped:j=!1,statistics:le,saveRate:ie,internalsExposure:pe,playerView:he,playerId:ue})=>{var Uv,zv,Wv;let Ne={...y,configName:[...(Uv=y.configName)!=null?Uv:[],"ui"],isAudioDisabled:l,live:{...(zv=y.live)!=null?zv:{},isLiveCatchUpMode:!!n}},oe=u,Ve=pt.TracerFactory.createRootTracer(oe.features.tracer),ne=Ve.createComponentTracer("Store"),O=w||new di.Player(Ne,Ve,{playerId:ue});pe==null||pe.expose({corePlayer:O});let ce=new pt.Logger,Le=new Iu(ce,{loadTimeout:oe.ads.loadTimeout,initTimeout:oe.ads.initTimeout,runtimeTimeout:oe.ads.runtimeTimeout,useAdmanFromNPM:oe.ads.useAdmanFromNPM,volumeMultiplier:oe.ads.volumeMultiplier,isVsidOriginal:oe.ads.isVsidOriginal,usePuid:oe.ads.usePuid,debug:oe.ads.debug}),ve=ha.getInstance(),ee=p==null?void 0:p.pictureInPictureApi,me=p==null?void 0:p.annotationsApi,De=p==null?void 0:p.slotsApi,fe=ce.createComponentLog("Store"),dt,Z,Pe={},Ie=new ru,Ue=new pt.Subscription,nt="",ft=se(!1),mt=le&&le.oneStat?ei(le.oneStat.vsid$):yr(void 0),St=se(Ds()),Xe=se(!1),Ht=()=>g1(document,di.clientChecker.device.isIOS),Qt=(Wv=ee==null?void 0:ee.info.isActive$)!=null?Wv:new pt.ValueSubject(!1),Gt=se(0),Ft=se(!1),re=se(!1),Bt=se([]),_e=(0,pt.merge)(O.events.fatalError$,O.events.managedError$).subscribe(c=>Bt.update(b=>[...b,c])),xe=yr(!1,c=>{let b=O.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),de=async c=>{var X;let b=Object.values(pt.InterfaceLanguage).includes(c);if(oe.downloadVKLanguages&&(b&&oe.updateBuiltinLanguages||!wf(c))){let Te;try{Te=await(0,pt.loadVKLangPack)(c,Ph,Mh)}catch(tt){(X=le==null?void 0:le.oneStat)==null||X.logError({errorType:"VKLangPack",fatal:!1}),ve==null||ve.report(tt,{errorType:"VKLangPack",fatal:!1})}Te&&(xf({language:c,pack:Te,fallback:oe.defaultLanguage}),Be.set(c))}wf(c)&&Be.set(c)},Be=se(t),We=se(e);de(t);let ke=(c,b)=>{let P=$e(Be);return Sf(P,c,b,oe.defaultLanguage)},Qe=se("thumb");Qe.subscribe(c=>{c==="ads"&&O.info.playbackState$.getValue()&&Pt()});let Re=(()=>{let c=yi([xe,Qe],([b,P])=>b?"crashed":P);return{...c,is:b=>$e(c)===b}})(),Ye=se(),Pt=()=>{Ye.set({muted:O.info.muted$.getValue()})},Wt=(()=>{let c=se(new Set(x));return{...c,add:b=>{c.update(P=>new Set([...P].concat(b)))},remove:b=>{c.update(P=>{let X=[...P];return new Set(Array.isArray(b)?X.filter(Te=>!b.includes(Te)):X.filter(Te=>Te!==b))})},includes:b=>{let P=$e(c);return Array.isArray(b)?b.every(X=>P.has(X)):P.has(b)}}})(),it=se({width:0,height:0}),ri=null,si=O.info.isBuffering$,ct=yr(si.getValue(),c=>{let b=si.subscribe(P=>{P&&ri===null?ri=window.setTimeout(()=>{c(si.getValue()),ri=null},oe.loaderDelay):c(P)});return()=>{b.unsubscribe(),ri&&clearTimeout(ri)}});ne.log("create store"),fe({message:"create store"});let ii=c=>{let b=c.container,P=()=>{jt=new MutationObserver(Te=>{let{removedNodes:tt}=Te[0];tt.length&&b.append(O.experimental.element$.getValue())}),jt.observe(b,{childList:!0})},X=O.experimental.element$.getValue();if(X)b.append(X),P();else{let Te=O.experimental.element$.pipe((0,pt.filter)(tt=>!!tt),(0,pt.once)()).subscribe(tt=>{b.append(tt),P()});Ue.add(Te)}},Xi=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?ii(c):(pt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,pt.now)()]}),O.initVideo(c)),ne.log("init video",{isInteractive:S}),c.subtitles&&O.setExternalTextTracks(c.subtitles),dt=c,nt=c.subtitlesForcedLanguage||""},qi=new pt.Subject,ko=c=>qi.next(c),ci=new pt.Subject,pi=new pt.Subject,Ut=new pt.Subject,jt=null,no={actionRewind$:ci,actionSeek$:pi,inPiP$:Qt,inFullscreen$:new pt.Observable(c=>St.subscribe(b=>c.next(b))),actionSetSubtitle$:Ut,nextMovie$:qi},Ao={actionSeek$:pi,playerSize$:new pt.Observable(c=>it.subscribe(b=>c.next(b))),inPiP$:Qt,inFullscreen$:new pt.Observable(c=>St.subscribe(b=>c.next(b))),isLoaderVisible$:new pt.Observable(c=>ct.subscribe(b=>c.next(b)))};if(le){let{oneStat:c,thinOneStat:b,mediascopePixel:P,statSubscription:X}=le;c&&(S||X.add(c.attachTo(O)),X.add(c.attachToUi(no)),X.add(c.attachToAds(Le.events)),c.authorize(s).catch(Te=>{fe({message:`onestat auth error ${String(Te)}`})}),P&&P.attachTo(O)),b&&(X.add(b.attachTo(O,Le.events)),X.add(b.attachToUi(Ao)),X.add(b.attachToAds(Le.events)),b.updateContext({isMobile:$e(ft)}),b.authorize(s))}if(ve){let c=new pt.Subscription,b=(P,X)=>c.add(P.subscribe(X));if(b(O.events.managedError$,P=>{ve.logIError(P)}),b(O.events.fatalError$,P=>{ve.logIError(P,!0)}),le){let{oneStat:P}=le;P&&b(P.experimental.error$,X=>{ve.logIError(X)})}ve.sentrySubscription.add(c)}let Ko=()=>{if(di.clientChecker.device.isIOS&&Z)try{h1(Z)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};Ue.add(O.experimental.element$.subscribe(c=>{c&&(Z=c,c.classList.add("player-media"),ba(ee)&&ee.updateVideoElement(),S&&c.setAttribute("pip","false"),he==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(O.events.ended$.subscribe(()=>{var c;Ko(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(O.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(O.events.started$.subscribe(async()=>{var b,P;ba(ee)&&await(ee==null?void 0:ee.revealPictureInPicture());let c=O.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(P=Pe.onStarted)==null||P.call(Pe,c)})).add(O.events.willSeek$.subscribe(({from:c,to:b})=>{var P;(P=a==null?void 0:a.onSeek)==null||P.call(a,c,b)})).add(O.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(O.info.position$.subscribe(c=>{var P;let b=O.info.duration$.getValue();isFinite(b)&&b>0&&((P=a==null?void 0:a.onTimeupdate)==null||P.call(a,b,c),Le.setPosition(c,b))})).add(O.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(O.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(O.events.loadedMetadata$.subscribe(()=>{Ft.set(!0)})).add(O.info.is3DVideo$.subscribe(c=>{re.set(c)})).add(O.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Wt.add(vd),Wt.add("PLAY_BUTTON")):Wt.remove("PLAY_BUTTON"))})).add(O.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(O.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(O.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(Le.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(Le.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(Le.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(Le.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(Le.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(Le.events.started$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:P.call(b,c)})).add(Le.events.timeRemained$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:P.call(b,c)})).add(Le.events.ended$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:P.call(b,c)})).add(Le.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(Le.events.clicked$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:P.call(b,c)})).add(Le.events.closed$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:P.call(b,c)})).add(Le.events.error$.subscribe(c=>{var b,P;return(P=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:P.call(b,c)})).add(Le.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(Le.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 yt=new pt.Subscription,Ze=()=>{var tt,Tt,Vt;let{debugLog:c}=oe,b,P="#9df7b7",X="#efd169";if(c&&c!==!0){let{colors:Ot}=c;b=c.tag,P=(tt=Ot==null?void 0:Ot[0])!=null?tt:P,X=(Vt=(Tt=Ot==null?void 0:Ot[1])!=null?Tt:Ot==null?void 0:Ot[0])!=null?Vt:X}let Te=b?`: ${b}`:"";yt.add(O.events.log$.subscribe(Ot=>{console.debug(`%c sdk${Te} `,`background:${P};`,`sdk component: ${Ot.component}`,Ot.message)})).add(ce.log$.subscribe(Ot=>{console.debug(`%c ui${Te} `,`background:${X};`,`ui component: ${Ot.component}.`,Ot.message)}))},Ei=()=>{yt.unsubscribe()},Po=(c,b)=>{ne.log("start camera manual rotation",{mx:c,my:b}),O.startCameraManualRotation(c,b)},Mo=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),O.stopCameraManualRotation(c)},an=(c,b,P)=>{ne.log("move camera focus px",{xpx:c,ypx:b,dt:P}),O.moveCameraFocusPX(c,b,P)},N=()=>{O.holdCamera()},Je=()=>{O.releaseCamera()},ht=yr(O.info.position$.getValue(),c=>{let b,P,X=()=>{let Te=O.info.playbackState$.getValue(),tt=O.info.isLive$.getValue(),Tt=O.info.duration$.getValue(),Vt=O.info.position$.getValue();if(Te&&[di.PlaybackState.PLAYING,di.PlaybackState.PAUSED].includes(Te)){let Ot=tt?Vt-Tt:O.getExactTime();Ot!==P&&c(Ot),P=Ot}b=requestAnimationFrame(X)};return X(),()=>cancelAnimationFrame(b)}),Xt=ei(O.info.playbackState$),Dt=ei(O.info.currentBuffer$),Yt=ei(O.info.isEnded$),fi=ei(O.info.isLive$),gi=oe.features.playbackRate?ei(O.info.canChangePlaybackSpeed$):yr(!1),vt=ei(O.info.liveBufferTime$),Vi=ei(O.info.volume$),ln=ei(O.info.muted$),dn=su(O.info.predefinedQualityLimitType$.pipe((0,pt.map)(c=>c===di.PredefinedQualityLimits.TRAFFIC_SAVING)),O.info.predefinedQualityLimitType$.getValue()===di.PredefinedQualityLimits.TRAFFIC_SAVING),qo=su(O.info.predefinedQualityLimitType$.pipe((0,pt.map)(c=>c===di.PredefinedQualityLimits.HIGH_QUALITY)),O.info.predefinedQualityLimitType$.getValue()===di.PredefinedQualityLimits.HIGH_QUALITY),ui=ei(O.info.autoQualityLimitingAvailable$),Lo=ei(O.info.availableQualities$),wr=ei(O.info.availableQualitiesFps$),ro=ei(O.info.chromecastState$),so=ei(O.info.chromecastDeviceName$),cn=ei(O.info.currentFormat$),un=ei(O.info.throughputEstimation$),Qo=ei(O.info.videoBitrate$),ar=ei(O.info.intrinsicVideoSize$),En=ei(O.info.duration$),Sr=ei(O.info.isAudioAvailable$),as=()=>{ri&&clearTimeout(ri),ri=null},In=yi([En,fi],([c,b])=>b?-c:c),Cr=yi([Xt],([c])=>c===di.PlaybackState.PLAYING),zn=ei(O.info.atLiveEdge$),Wn=ei(O.info.atLiveDurationEdge$),Vo=ei(O.info.position$),Ri=yi([Vo,En],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),kn=yi([ro],([c])=>c===di.ChromecastState.CONNECTED),An=ei(O.info.availableVideoStreams$),Pn=oe.features.audioLanguages?ei(O.info.availableAudioStreams$):yr([]),lr=ei(O.info.currentVideoStream$),dr=ei(O.info.currentAudioStream$),cr=c=>{c.language&&_f(c.language),O.setVideoStream(c)},ur=(c,b)=>{O.setAudioStream(c),hi(b)&&(c.language&&_f(c.language),oe.features.userVideoPrefs&&i&&yf(oe.userSalt,String(i),{audioTrackId:c.id}))},Tr=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(X=>"isDefault"in X&&X.isDefault)),oe.features.userVideoPrefs&&i){let X=uu(oe.userSalt,String(i));if(X!=null&&X.audioTrackId){let Te=c.find(tt=>tt.id===X.audioTrackId);b=Te!=null?Te:b}}let P=o1();return P&&(b!=null||(b=c.find(({language:X})=>P===X))),b!=null||(b=c.at(0)),b},ls=c=>{ne.log("change audio stream",{id:c});let b=O.info.availableAudioStreams$.getValue().find(P=>P.id===c);b&&ur(b,!0)},Kn=!1;Ue.add(O.info.availableAudioStreams$.subscribe(c=>{if(!Kn&&c.length){let b=Tr(c);b&&(O.setAudioStream(b),Kn=!0)}})),Pn.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:P="",id:X="",language:Te=""})=>({label:P,language:Te,id:X})))}),dr.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let go=!1;Ue.add(O.info.availableVideoStreams$.subscribe(c=>{if(!go&&c.length){let b=Tr(c);b&&(O.setVideoStream(b),go=!0)}}));let Mn=se(void 0),pn=ei(O.info.isAutoQualityEnabled$,c=>c&&Mn.set(void 0)),gt=ei(O.info.currentQuality$,()=>Mn.set(void 0)),Jt=yi([Mn,gt],([c,b])=>c!=null?c:b),Go=yi(cn,c=>c!==di.VideoFormat.MPEG),qn=yi([Lo,wr,pn,Jt,Go],([c,b,P,X,Te])=>{let tt=[];Te&&tt.push({value:"auto",displayValue:ke("auto_quality_option"),selected:P});let Tt=c.filter(Vt=>!(0,pt.isInvariantQuality)(Vt));for(let Vt of Tt){let Ot=b[Vt];tt.push({value:Vt,displayValue:`${Vt}${Ot?q1(Ot):""}`,selected:P?!1:Vt===X})}return tt}),fn=ei(O.info.currentPlaybackRate$),ho=yi([fn,zn,Wn],([c,b,P])=>{let X=P||S?1:oe.controls.playbackRateMin,Te=b?1:oe.controls.playbackRateMax,tt=oe.controls.playbackRateStep,Tt=[];for(let Vt=X;Vt<=Te;Vt+=tt)Tt.push({value:Vt,displayValue:Vt===1?ke("playback_rate_1"):ke("playback_rate",{multiplier:Vt.toString(10)}),selected:c===Vt});return Tt}),Ii={displayValue:ke("subtitles_off"),value:Vu,language:""},xi=se({...Ii}),jo=oe.features.subtitles?ei(O.info.availableTextTracks$):yr([]),Qn=Qh(),qr=yi([jo,xi],([c,b],P)=>{var tt;let X=[],Te=c.find(({id:Tt})=>Tt===b.value);if(Te!=null&&Te.url){let[,Tt]=(tt=Qn.find(Te.url))!=null?tt:[];if(Tt){P(Tt);return}Ie.download(Te.url).then(Vt=>{if(!Vt||Ie.isDestroyed())return;let Ot=new Q1,ks=Te.language;if(ks){let W0=!!Te.isAuto,K0=Ot.parse(Vt,ks);X.push({lang:ks,subtitles:K0,isAuto:W0,id:Te.id})}Qn.add(Te.url,X),$e(xi).value===b.value&&P(X)}).catch(Vt=>{var Ot;(Ot=le==null?void 0:le.oneStat)==null||Ot.logError({errorType:"Subtitles download",fatal:!1}),ve==null||ve.report(Vt,{errorType:"Subtitles download",fatal:!1})})}P(X)}),Qr=yi([fn,Cr,xi],([c,b,P],X)=>{let Tt;if(O.info.isLive$.getValue()&&b&&P.value!==Ii.value){let Ot=()=>{let ks=1e3/(3*c);Tt=setTimeout(Ot,ks),X(Date.now())};return Ot(),()=>clearTimeout(Tt)}}),pr=yi([jo,xi],([c,b])=>{if(!c.length)return[];let P=[];for(let{language:X,isAuto:Te,id:tt}of c){let Tt=X&&Ud(X);X&&Tt&&P.push({displayValue:Te?ke("subtitles_auto",{language:Tt}):Tt,value:tt,selected:(b==null?void 0:b.value)===tt,isAuto:Te,language:X})}return P.length?(P.unshift({...Ii,selected:(b==null?void 0:b.value)===Ii.value}),P):[]}),mn={available:[],prev:[]},ds=()=>{var b,P;let c=O.experimental.getCurrentTime$.getValue();return(P=(b=c==null?void 0:c())!=null?b:Z==null?void 0:Z.currentTime)!=null?P:0},Ln=yi([ht,xi,qr,Qr],([c,b,P,X])=>{var tt;let Te=O.info.isLive$.getValue();if(Te&&mn.prev!==P){let Tt=P.find(({id:Ot})=>Ot===b.value),Vt=mn.prev.find(({id:Ot})=>Ot===b.value);if(Tt){let Ot={...Tt,subtitles:[...(tt=Vt==null?void 0:Vt.subtitles)!=null?tt:[],...Tt.subtitles]};mn.available=[Ot],mn.prev=P}}if(b&&b.value!==Ii.value){let Tt=Te?ds():c,Vt=Te?mn.available:P;return Y1(Tt,b,Vt,Te)}}),Ro=yi([Ln],([c])=>c!=null&&c.texts?c.texts:[]);Ue.add(xi.subscribe(c=>{var b,P;if(c.value===Ii.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let X=Object.entries(Mu).find(([Te,tt])=>tt===c.displayValue);(P=a==null?void 0:a.onSubtitleOn)==null||P.call(a,X?X[0]:"",c.value)}}));let Gn=se(!0),vn=yi([Dt,In,Vo,vt],([c,b,P,X])=>{var Vt;let Te=(Vt=c==null?void 0:c.end)!=null?Vt:0;if(!X)return Te/b;let Tt=-P+X-b;return(Te-Tt)/b}),Kt=ei(O.info.availableSources$),jn=yi([Kt],([c])=>Object.keys((c==null?void 0:c[di.VideoFormat.MPEG])||{}).length>0),Er=()=>{var P,X,Te;let c=Object.keys(((X=(P=O.info.availableSources$)==null?void 0:P.getValue())==null?void 0:X[di.VideoFormat.MPEG])||{}),b=(0,pt.getHighestQuality)(c)||pt.VideoQuality.Q_144P;return(Te=dt.sources[di.VideoFormat.MPEG])==null?void 0:Te[b]},Gr=()=>{var b;let c=Er();if(c)ne.log("download video",{url:c}),Wh(c,((b=dt==null?void 0:dt.meta)==null?void 0:b.title)||"video");else{let P="There is no URL for download video";ne.log("download video",{message:P}),fe({message:P})}},at=()=>{fe({message:"toggle muted"});let c=O.info.muted$.getValue();O.info.volume$.getValue()===0&&!c?Ni(co(),!1):Oi(!c,!1)},oi=()=>{var c;if(Mt.ui.settingsMenu.visible$.set(!1),!$e(Mt.ui.settingsSubMenu.visible$)){let b=$e(Mt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let X=Cl(b),Te={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:X,position:Te,name:"settings"})}}ne.log("close settings menu")},ao=async(c,b=()=>Promise.resolve())=>{var Te;Mt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Mt.ui.settingsMenu.visible$.set(!0),await b();let P=$e(Mt.ui.settingsMenu.ref$),X=za();if((Te=a==null?void 0:a.uiInfo)!=null&&Te.onSettingsMenu&&P&&X){let Tt=Cl(P),Vt=ws(P,X);a.uiInfo.onSettingsMenu({visible:!0,size:Tt,position:Vt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},lo=(c,b=!1)=>{var tt;Mt.ui.settingsSubMenu.visible$.set(!1);let P=$e(Mt.ui.settingsMenu.ref$),X=za(),Te=$e(Mt.ui.settingsMenu.visible$);if((tt=a==null?void 0:a.uiInfo)!=null&&tt.onSettingsMenu&&P&&X)if(Te&&!b){let Vt=Cl(P),Ot=ws(P,X);a.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:Ot,name:"settings"})}else{let Vt=Cl(c),Ot={top:0,left:0,bottom:0,right:0},ks=$e(Mt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Vt,position:Ot,name:ks})}ne.log("close settings sub menu")},gn=(c,b)=>{var X;Mt.ui.settingsSubMenu.visible$.set(!0),Mt.ui.settingsSubMenu.ref$.set(b),Mt.ui.settingsSubMenu.name$.set(c);let P=za();if((X=a==null?void 0:a.uiInfo)!=null&&X.onSettingsMenu&&b&&P){let tt=Cl(b),Tt=ws(b,P);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:tt,position:Tt})}ne.log("open settings sub menu",{name:c})},co=()=>{var b;let c=Math.max(oe.volumeMinRestore,(b=au())!=null?b:0);return c===0?oe.volumeDefault:c},hi=c=>{let b=oe.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},Ni=(c,b)=>{let P=c===0?co():c,X=O.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${P}`});let Te=!l||Re.is("ads");X&&c>0&&Te&&(X=!1,hi(b)&&gf(!1)),O.setVolume(c,X),Le.setVolume(c),hi(b)&&uf(P)},Oi=(c,b)=>{let P=O.info.volume$.getValue();fe({message:`set muted, currentVolume: ${P}, mute: ${c}`});let X=Re.is("ads");if(O.setMuted(c,X),Le.setVolume(c?0:P),hi(b)&&(!X||!c)&&gf(c),!c&&P===0){let Te=co();O.setVolume(Te),hi(b)&&uf(Te),Le.setVolume(Te)}},hn=se(!1),fr=c=>{var b,P;ne.log("set looped",{isLooped:c}),hn.set(c),O.setLooped(c),(P=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||P.call(b,c)};fr(j);let cs=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},jr=(c,b=!1)=>{var P;fe({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),Mt.ui.autoplayNextEnabled$.set(c),s1(c),b&&((P=a==null?void 0:a.onSetAutoplayNextEnabled)==null||P.call(a,c))},us=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Mt.ui.timerNextVideoRunning$.set(c)},mr=(c=!0)=>{var X;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(X=a==null?void 0:a.onPrevVideoClick)==null?void 0:X.call(a)}catch(Te){fe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Vn("prev")||W()},_o=(c=!0)=>{var X;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(X=a==null?void 0:a.onNextVideoClick)==null?void 0:X.call(a)}catch(Te){fe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Vn("next")||J()},Vn=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:P,playbackStatusShow:X}}=oe;return P&&X&&!b?(Mt.ui.aboutToGoNextVideo.set(c),Mt.ui.userActionsDisabled.set(!0),!0):!1},Ir=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},kr=()=>{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=()=>{O.prepare()},uo=()=>{(0,pt.assertNonNullable)(Mt);let c=$e(Mt.ui.controls.disabledControls$),b=$e(Mt.playerPhase),P={playerPhase:b,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),b==="ads"){P.action="play",ne.log("toggle adman play",P),Le.togglePlay();return}let X=()=>{var tt;fe({message:"toggle play, call player.play"}),P.action="play",O.play(),(tt=a==null?void 0:a.onPlay)==null||tt.call(a)},Te=()=>{var tt;fe({message:"toggle play, call player.pause"}),P.action="pause",O.pause(),(tt=a==null?void 0:a.onPause)==null||tt.call(a)};if(O.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),ci.next(),pi.next(ss.SeekAction.REWIND),S){L==null||L();return}O.seekTime(0),X()}else O.info.playbackState$.getValue()!==di.PlaybackState.PLAYING?X():Te();ne.log("toggle play",P)},po=(c,{changeReason:b="default",appliesTo:P="to-video"}={},X)=>{fe({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),O.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Te}=oe.features;lu(),c!=="auto"?(Te?(du({type:"exact_quality",quality:c,videoId:i},P),O.setPredefinedQualityLimits(di.PredefinedQualityLimits.UNKNOWN)):pf(i,c),Mn.set(c),O.setQuality(c)):Te&&b==="default"&&(Rn("auto_quality",P,X),$e(dn)&&Ji(!1,void 0,X),$e(qo)&&eo(!1,void 0,X))},Ji=(c,b="as-default",P)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let X=c?di.PredefinedQualityLimits.TRAFFIC_SAVING:di.PredefinedQualityLimits.UNKNOWN;oe.features.qualityDetailsSubMenuEnabled?(fo(X,b,P),hd(!1)):(O.setPredefinedQualityLimits(X),hi(P)&&hd(c))},eo=(c,b="as-default",P)=>{fe({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),fo(c?di.PredefinedQualityLimits.HIGH_QUALITY:di.PredefinedQualityLimits.UNKNOWN,b,P)},fo=(c,b,P)=>{c!==di.PredefinedQualityLimits.UNKNOWN&&($e(ui)&&!$e(pn)&&po("auto",{appliesTo:b,changeReason:"limit-changed"},P),Rn(c,b,P)),O.setPredefinedQualityLimits(c)},Rn=(c,b,P)=>{hi(P)&&(du({type:c,videoId:i},b),b==="as-default"&&du({type:c,videoId:i},"to-video"))},bo=c=>{ne.log("set playback rate",{playbackRate:c}),O.setPlaybackRate(c),oe.features.saveRate&&ie&&!O.info.isLive$.getValue()&&n1(c)},$o=()=>{let c=$e(ho),b=c.findIndex(({selected:X})=>X);if(b===c.length-1)return;let P=c[b+1];bo(P.value)},No=()=>{let c=$e(ho),b=c.findIndex(({selected:X})=>X);if(b===0)return;let P=c[b-1];bo(P.value)},Yn=(c={...Ii,selected:!1},b)=>{ne.log("set subtitles",{...c}),c.value!==Ii.value&&Ut.next(c.isAuto?c.value+"_auto":c.value),xi.set(c),hi(b)&&($f(c.value===Ii.value?void 0:c.language),oe.features.userVideoPrefs&&i&&yf(oe.userSalt,String(i),{subtitleTrackId:c.value===Ii.value?void 0:c.value}))},Yo=c=>{ne.log("toggle subtitles");let b=$e(xi);(b==null?void 0:b.value)===Ii.value?vr(c):Pr(c)},Ar=(c,b)=>{ne.log("change subtitle",{enabled:c}),c?vr(!0,b):Pr(!0)},vr=(c,b)=>{ne.log("subtitle on");let P=$e(pr),X=$e(Be),Te=nt!=null?nt:X,tt;b&&(tt=P.find(Tt=>Tt.value===b)),tt!=null||(tt=P.filter(Tt=>Tt.value!==Ii.value).find(Tt=>Tt.language===Te)),Yn(tt!=null?tt:P[1],c)},Pr=c=>{ne.log("subtitle off"),Yn(void 0,c)};Ue.add(O.info.availableTextTracks$.subscribe(c=>{var P;function b(){let X=[];for(let{language:Te,isAuto:tt,id:Tt}of c){let Vt=Te&&Ud(Te);Te&&Vt&&X.push({id:Tt,language:Te,title:tt?ke("subtitles_auto",{language:Vt}):Vt})}return X}(P=a==null?void 0:a.onAvailableSubtitlesChanged)==null||P.call(a,b())}));let yo=se(!0),Mr=c=>{yo.set(c)},ze=(c,b,P=!0)=>{var X;if(fe({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:b,forcePrecise:P}),pi.next(b),O.info.isLive$.getValue()){let Te=O.info.duration$.getValue(),tt=Math.min(0,Te+c);O.seekTime(tt,P)}else{if(E!=null&&E.getValue())return;O.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),(X=a==null?void 0:a.onPlay)==null||X.call(a)),O.seekTime(Fv(c),P)}},Zt=c=>{fe({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),ze(c,ss.SeekAction.EPISODE,!0)},bi=(c,b)=>{fe({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:b});let P=$e(In)*c;ze(P,b,!1)},_n=c=>{fe({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),pi.next(ss.SeekAction.UNKNOWN),O.seekTime(O.info.isLive$.getValue()?-c:c)},Zo=c=>{var X,Te;let b=(X=c.max)!=null?X:"none",P=(Te=c.min)!=null?Te:"none";fe({message:`set auto quality limitation. Max: ${b}. Min: ${P}`}),ne.log("set auto quality limits",{max:b,min:P}),O.setAutoQualityLimits(c)},we=c=>{fe({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),ze(c,ss.SeekAction.EPISODE,!0)},xt=c=>{fe({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),O.setPlaybackRate(c)},ni=se(void 0),wi=se(!1),Xo=c=>{fe({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),wi.set(!0),Bi(c)},Bi=c=>{ni.set(c)},Di,lt,zt=()=>{ni.set(void 0),wi.set(!1)},Hi=()=>{clearTimeout(lt),clearTimeout(Di),Di=window.setTimeout(()=>{zt()},500),Z==null||Z.removeEventListener("seeked",Hi)},bn=c=>{fe({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),bi(c,ss.SeekAction.SLIDER),$e(Mt.ui.isMobile)&&$e(Mt.state.currentFormat$)===di.VideoFormat.HLS?(Z==null||Z.addEventListener("seeked",Hi),lt=window.setTimeout(()=>{Hi()},300)):zt()},$n=yi([ht,In,ni],([c,b,P],X)=>{X((0,pt.isNonNullable)(P)?P*b:c)}),gr=se(!1),Lr=()=>{gr.set(!0)},ps=()=>{gr.set(!1)},ki=yi([it],([{width:c}],b)=>{let P=B1(c);b(P)}),Ai=G.filter(c=>Kh(c)),Oo=yi([ki,ft],([c,b])=>b?Ai.filter(P=>!P.hideOnMobile):Ai.filter(P=>{var X;return!((X=P.hideOnDesktopGridTypes)!=null&&X.includes(c))})),Bo=se(G.filter(c=>qh(c))),hr=yi([Bo,ki],([c,b])=>c.filter(P=>{var X;return!((X=P.hideOnDesktopGridTypes)!=null&&X.includes(b))})),xo=yi([hr,Oo],([c,b])=>[...oe.features.additionalButtonsDesktopControlPanelRight?c.filter(P=>P.type==="desktop-control-panel-right"):[],...oe.features.additionalButtons?b.map((P,X)=>{var Te;return{id:X,weight:X,type:"desktop-control-panel-right",testId:P.testId,icon:P.iconUrl,onClick:P.onClick,ariaLabel:(Te=P.ariaLabel)!=null?Te:P.tooltip,tooltipText:P.tooltip}}):[]]),Zn=se(H),wt=yi([Zn],([c])=>oe.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?{...b,onClick:b.onChangeEnabled}:b):[]),$t=(c,b)=>{let P=$e(Bo).map(X=>X.id!==c?X:{...X,...b});Bo.set(P)},mo=c=>{let b=$e(Bo);if(b.some(P=>P.id===c.id)){fe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Bo.set(b)},Jo=c=>{let b=$e(Bo);if(!b.some(P=>P.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(P=>P.id!==c),Bo.set(b)},Qi=c=>{pi.next(ss.SeekAction.LIVE),fe({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),O.setLiveLowLatency(c)},ai=(c,b)=>{let P=$e(Zn).map(X=>X.id!==c?X:{...X,...b});Zn.set(P)},Fi=c=>{let b=$e(Zn);if(b.some(P=>P.id===c.id)){fe({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)},Is=c=>{let b=$e(Zn);if(!b.some(P=>P.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(P=>P.id!==c),Zn.set(b)},Vr=se(F),hc=yi([Vr],([c])=>oe.features.additionalContextMenuItems?c:[]),sp=(c,b)=>{let P=$e(Vr).map(X=>X.id!==c?X:{...X,...b});Vr.set(P)},_c=c=>{let b=$e(Vr);if(b.some(P=>P.id===c.id)){fe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Vr.set(b)},ap=c=>{let b=$e(Vr);if(!b.some(P=>P.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(P=>P.id!==c),Vr.set(b)},bc=yi([ft,xe],([c,b],P)=>{P(c&&b)}),lp=()=>{pi.next(ss.SeekAction.LIVE),fe({message:"switch to active live"}),ne.log("switch to active live"),O.seekTime(0),O.info.playbackState$.getValue()!==di.PlaybackState.PLAYING&&Mt.actions.internal.togglePlay()},$c=()=>{ne.log("skip adman"),Le.skip()},dp=(c=!0)=>{var X;(0,pt.assertNonNullable)(Mt),fe({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),Qe.set("video"),c&&O.play(),l&&Oi(!0,!0);let b=(X=$e(Ye))==null?void 0:X.muted,P=!O.info.muted$.getValue();b!==void 0&&!P&&Oi(b,!0),Ye.set(void 0)},yc=()=>{(0,pt.assertNonNullable)(Mt),fe({message:"switch from video to ads"}),ne.log("switch from video to ads"),Mt.actions.internal.pause(),Ko(),Qe.set("ads")},xc=c=>{(0,pt.assertNonNullable)(Mt);let b=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:b}),Qe.set(b)},wc=c=>{(0,pt.assertNonNullable)(Mt);let b=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:b}),Qe.set(b)},cp=c=>{(0,pt.assertNonNullable)(Mt);let b=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:b}),Qe.set(b)},Sc=()=>((0,pt.assertNonNullable)(Mt),ne.log("get debug text data"),Uh(O,dt,Mt,Ve.getTraceId())),up=()=>((0,pt.assertNonNullable)(Mt),JSON.stringify(Ve.getFinishedSpans())),Cc=()=>((0,pt.assertNonNullable)(Mt),zh(O,dt,Mt)),za=()=>Z,pp=()=>{fe({message:"toggle chromecast"}),ne.log("toggle chromecast"),O.toggleChromecast()},Tc=c=>{var P;if((0,pt.assertNonNullable)(Mt),O.info.isEnded$.getValue())return;let b=!c;if($e(Mt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${b}`}),ne.log("pause ads",{internalCall:b}),Le.pause();return}fe({message:`pause video, internalCall: ${b}`}),ne.log("pause video",{internalCall:b}),b&&((P=a==null?void 0:a.onPause)==null||P.call(a)),O.pause()},je=c=>{var P;(0,pt.assertNonNullable)(Mt);let b=!c;if($e(Mt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${b}`}),ne.log("play ads",{internalCall:b}),Le.play();return}fe({message:`play video, internalCall: ${b}`}),ne.log("play video",{internalCall:b}),b&&((P=a==null?void 0:a.onPlay)==null||P.call(a)),O.play()},li=c=>{(0,pt.assertNonNullable)(Mt);let b=!c;if($e(Mt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${b}`}),k==null||k()},wo=(c,b)=>{(0,pt.assertNonNullable)(Mt),fe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),ne.log("first start",{showAds:c,external:b}),c?Qe.set("ads"):(Qe.set("video"),b?O.play():Mt.actions.internal.togglePlay())},fs=()=>(fe({message:"getting time codes"}),f),en=()=>{let c=fs();if(!c||[0,1].includes(c.length))return;let b=O.info.position$.getValue();return c.find(P=>P.time>b)},N0=c=>{let b=c;b||(b=en());let P=O.info.position$.getValue();ne.log("seek to next episode",{currentTime:P,...b}),b&&(fe({message:"seek to next episode"}),ze(b.time,ss.SeekAction.EPISODE,!0))},Hv=()=>{let c=fs();if(!c||[0,1].includes(c.length))return;let b=O.info.position$.getValue(),P=c.findIndex(Te=>Te.time>b),X=P===-1?c.length-2:P-2;if(!(X<0))return c[X]},O0=c=>{let b=c;b||(b=Hv());let P=O.info.position$.getValue();ne.log("seek to prev episode",{currentTime:P,...b}),b&&(fe({message:"seek to prev episode"}),ze(b.time,ss.SeekAction.EPISODE,!0))},B0=()=>(fe({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...m}),m),D0=async()=>{let c=ee==null?void 0:ee.isActive(),b="none";ee!=null&&ee.isActive()?(b="exit",await(ee==null?void 0:ee.exit())):(b="request",await(ee==null?void 0:ee.request())),ne.log("toggle picture in picture",{isActive:c,action:b})},H0=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),Gt.update(b=>b+c)},Ec=se([]);T==null||T.subscribe(c=>{let b=[];for(let P=0;P<c.length;P++){let{range:[X,Te],subjects:tt}=c[P];P===0&&X!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:X/1e3,text:"",interactive:!0,completed:oe.features.interactiveTimeOpenUri?!tt.length||tt.every(Tt=>Tt.isRemoved):!tt.length}),Te!==1/0&&b.push({time:Te/1e3,text:"",interactive:!1,completed:!0})}Ec.set(b)});let F0=se(!1);E==null||E.subscribe(c=>{c&&$e(wi)&&zt()});let Fv=c=>{if(!S)return c;let b=$e(Ec),P=$e(In),Te=$e(Vo)/P,tt=b.find(Tt=>Tt.interactive&&!Tt.completed&&Tt.time>Te);return typeof(tt==null?void 0:tt.time)=="number"?Math.min(c,tt.time-.05):c},U0=()=>{Mt.ui.episodes.panelOpened$.set(!1)},z0=()=>{ne.log("destroy store"),clearTimeout(lt),clearTimeout(Di),Ue.unsubscribe(),yt.unsubscribe(),O.destroy(),Le.destroy(),le==null||le.destroy(),ve==null||ve.destroy(),_e.unsubscribe(),jt==null||jt.disconnect(),jt=null,Ie.destroy()},Mt={interfaceLanguage$:Be,isCyrillicRelatedInterface$:We,initVideo:Xi,videoId:i,isClip:o,playerPhase:Re,vsid:mt,state:{positionExact$:ht,positionWithScrubbing$:$n,duration$:In,playbackState$:Xt,isPlaying$:Cr,isLoaderVisible:ct,bufferedProgress$:vn,isLive$:fi,canChangePlaybackSpeed$:gi,isActiveLive$:zn,isOldestAvailableLive$:Wn,isRewindableLive$:Ri,isEnded$:Yt,muted$:ln,volume$:Vi,trafficSavingEnabled$:dn,highQualityEnabled$:qo,autoQualityLimitingAvailable$:ui,availableVideoStreams$:An,availableAudioStreams$:Pn,videoStream$:lr,audioStream$:dr,currentQuality$:Jt,isAutoQualityEnabled$:pn,availableQualities$:qn,currentPlaybackRate$:fn,availablePlaybackRates$:ho,currentSubtitle$:xi,availableTextTracks$:jo,availableSubtitlesList$:pr,currentSubtitleCaptions$:Ro,isAutoSubtitleCaptionVisible$:Gn,chromecastState$:ro,chromecastDeviceName$:so,chromecastConnected$:kn,currentFormat$:cn,throughputEstimation$:un,videoBitrate$:Qo,videoSize$:ar,errorLog$:Bt,crashed$:xe,isAudioAvailable$:Sr,isAudioDisabled:!!l,canDownload:oe.features.download&&!!d,availableSources$:Kt,hasMpegSources$:jn,isInteractive:S,showInteractiveGraph:oe.features.interactiveGraph,showSeekToInteractive:oe.features.seekToInteractive,showPlayPrevChapter:oe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:oe.features.interactiveTimeIndicator&&!!$e(Ec).length,interactiveEpisodes$:Ec,isInteractiveTime$:E?ei(E):se(!1),isInteractiveExpectation$:F0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:hn,loadedMetadata$:Ft,isAutoQualityAvailable$:Go},ui:{t:ke,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:G.length?G.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:Wt},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:St,isFullscreenOpenedByKeyboard:Xe,rotateAlpha:Gt,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:it,isMobile:ft,mobileNotReportControlHidden$:bc,icon3DVideoVisible:se(!1),scrubbingInProgress:wi,volumeChangingInProgress:gr,is3DVideo:re,currentGridType$:ki,additionalButtonsDeprecated$:Oo,additionalDesktopControlPanelRightButtons$:xo,additionalSettingsMenuItems$:wt,additionalContextMenuItems$:hc,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},aboutToGoNextVideo:se(void 0),userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:yo,controlBlocks:{topLeft:se(void 0),topRight:se(void 0),middle:se(void 0),bottom:se(void 0),bottomLeft:se(void 0),bottomRight:se(void 0)},videoTitleInfo:se(void 0)},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:me,slotsApi:De},actions:{internal:{preload:_i,firstStart:c=>wo(c,!1),play:()=>je(!1),pause:()=>Tc(!1),togglePlay:uo,toggleMuted:at,openSettingsMenu:ao,closeSettingsMenu:oi,openSettingsSubMenu:gn,closeSettingsSubMenu:lo,setVolume:c=>Ni(c,!1),setMuted:c=>Oi(c,!1),startVolumeChanging:Lr,stopVolumeChanging:ps,setVideoStream:cr,setAudioStream:c=>ur(c,!1),setQuality:(c,b)=>po(c,b,!1),setTrafficSavingEnabled:(c,b)=>Ji(c,b,!1),setHighQualityEnabled:(c,b)=>eo(c,b,!1),setPlaybackRate:bo,incrementPlaybackRate:$o,decrementPlaybackRate:No,setSubtitle:c=>Yn(c,!1),toggleSubtitle:()=>Yo(!1),togglePictureInPicture:D0,startScrubbing:Xo,progressScrubbing:Bi,completeScrubbing:bn,toggleChromecast:pp,switchToActiveLive:lp,switchFromAdsToVideo:dp,switchFromVideoToAds:yc,skipAd:$c,setLiveWaitingStart:xc,setLiveWaitingRecover:wc,setLiveWaitingRecord:cp,getDebugTextData:Sc,getTraceTextData:up,getDebugPanelData:Cc,getVideoElement:za,seekTime:(c,b,P)=>ze(c,b,P),clearDelayedBufferingCheckTimeout:as,seekEpisodeStartTime:Zt,seekToPercent:bi,getNextEpisode:en,seekToNextEpisode:N0,getPrevEpisode:Hv,seekToPrevEpisode:O0,startLogging:Ze,stopLogging:Ei,startCameraManualRotation:Po,stopCameraManualRotation:Mo,moveCameraFocusPX:an,holdCamera:N,releaseCamera:Je,getVideoEpisodes:fs,getPreviewThumbsData:B0,downloadVideo:Gr,addLanguage:xf,setLanguage:de,nextMovie:ko,videoRotate:H0,correctSeekTimeToInteractive:Fv,replayInteractive:L,setLooped:fr,reportProblem:cs,setAutoplayNextEnabled:jr,setTimerNextVideoRunning:us,prevVideoClick:mr,nextVideoClick:_o,nextVideoAnnouncementShow:Ir,nextVideoAnnouncementClick:kr,nextVideoAnnouncementAuto:rt,nextVideoAnnouncementCancel:kt,checkFullscreenSupport:Ht},external:{firstStart:c=>wo(c,!0),play:()=>je(!0),pause:()=>Tc(!0),stop:()=>li(!0),seekTime:c=>_n(c),seekEpisodeStartTime:c=>we(c),setPlaybackRate:c=>xt(c),setAutoQualityLimits:c=>Zo(c),setMuted:c=>Oi(c,!0),toggleSubtitle:()=>Yo(!0),changeSubtitle:Ar,setVolume:c=>Ni(c,!0),returnFocusToEpisodes:U0,updateAdditionalSettingsItem:ai,addAdditionalSettingsItem:Fi,removeAdditionalSettingsItem:Is,updateAdditionalContextItem:sp,addAdditionalContextItem:_c,removeAdditionalContextItem:ap,updateAdditionalButton:$t,addAdditionalButton:mo,removeAdditionalButton:Jo,setLiveLowLatency:Qi,hideControls:()=>Mr(!1),showControls:()=>Mr(!0),setQuality:c=>po(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Ji(c,"to-video",!0),setHighQualityEnabled:c=>eo(c,"to-video",!0),changeAudioStream:ls}},callbacks:a,setUiCallbacks:c=>{Pe={...c}},getAdmanWrapper:()=>Le,getLogger:()=>ce,getPlayer:()=>O,destroy:z0};return Mt};function Fn(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 gy=["disabledControls$","additionalButtons"],hy=["interactiveTimeIndicator"],El=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!gy.includes(n)){let l=o||hy.includes(n);s.set(Fn(t,i,n,l))}}};var Ru=async(t,e,i)=>{await Co(),e&&i&&(i.focus(),t.set(!1))};var _y=Ce('<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 $m(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_y();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}function ym(t,e){U(e,!0);let[i,o]=He(),n=()=>C(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Ee(),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=Y(void 0);Ke(()=>{r(y)&&Ct(()=>{u.set(r(y))})});let w=E=>{let L=Us(E),k=I1(r(y));m.set(k),p.set(L),a.set(!n())},x=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Nt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:S,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){B(y,E,!0)},children:(E,L)=>{$m(E,{})},$$slots:{default:!0}}),z(),o()}var by=t=>{t.stopPropagation()},$y=M("<div><!> <div></div> <div></div></div>"),yy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
231
+ }`};function xm(t,e){U(e,!0),K(t,ry);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===ym.ChromecastState.CONNECTED),n=g(()=>e.iconState===ym.ChromecastState.CONNECTING);var s=Be(),l=pe(s);{var d=p=>{var f=oy(),m=_(f),u=_(m),y=_(u);$e(),h(u);var w=A(u);$e(),h(m);var x=A(m),T=_(x),S=_(T);h(T),$e(),h(x),h(f),D(()=>{De(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(S,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},a=p=>{var f=ny();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()}var s0=require("@vkontakte/videoplayer-shared/es2018");function zd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,s0.noop),l=Se().ui.t,d=g(()=>e.state===r0.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ot(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)=>{xm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var sy=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),ay={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 wm(t,e){K(t,ay);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:S}=r(p).getBoundingClientRect(),E=S/2;return T<E?E+l():T>e.containerWidth-E?e.containerWidth-E-d():T}let m=g(()=>f(n()));var u=sy(),y=_(u);let w;var x=_(y);ve(x,()=>{var T;return(T=e.children)!=null?T:le}),h(y),at(y,T=>O(p,T),()=>r(p)),h(u),at(u,T=>O(a,T),()=>r(a)),D(T=>{lt(u,`transform: translate(${r(m)}px, ${s()}px);`),w=ne(y,1,"tooltip svelte-5ygsa2",null,w,T),lt(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var Ou=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var a0=t=>!!(Math.round(Math.abs(t)/90)%2),l0=t=>Math.abs(t)/90%4===1;var ly=M('<div class="preview svelte-1wqg760"></div>'),dy=M('<div class="time svelte-1wqg760"> </div>'),cy=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),uy={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 Sm(t,e){U(e,!0),K(t,uy);let[i,o]=Oe(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(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=Se(),w=y.ui.rotateAlpha,x=y.ui.playerSize,T=X(0),S=X(0),E=X(""),R=X(0),I=X(0),P=X(0),B=X(0),F=g(()=>Ou(f(),m(),p())),H=g(()=>a0(n())),W=g(()=>l0(n())),Y=g(ge),oe=g(()=>(r(W)?1:-1)*(r(T)/2-r(S)/2)),G=g(()=>r(oe)*-1);Ue(()=>{(Q=>{O(T,Q.width,!0),O(S,Q.height,!0)})(fe())}),Ue(()=>{(Q=>{O(E,Q.imgSrc,!0),O(R,Q.imgWidth,!0),O(I,Q.imgHeight,!0),O(P,Q.imgOffsetX,!0),O(B,Q.imgOffsetY,!0)})(ue(f()))});function ge(){var Xe;let Q=a()?l.MOBILE:l.DESKTOP,{isVertical:te}=ee(),Re=30;return(Xe=r(F))!=null&&Xe.text&&(Re+=16),(te||r(H))&&(Re+=18,Re+=50),Math.min(Math.max(s().height-Re,0),Q)}function ee(){let Q=e.previewThumbsData.frameWidth,te=e.previewThumbsData.frameHeight,Re=te>Q;return{width:Q,height:te,isHorizontal:!Re,isVertical:Re}}function fe(){let{height:Q,isHorizontal:te,isVertical:Re,width:Xe}=ee();return te&&(Q=Q/Xe*r(Y),Xe=r(Y)),Re&&(Xe=Xe/Q*r(Y),Q=r(Y)),{width:Xe,height:Q}}function ue(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),Xe=Math.floor(te%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),_e=te%e.previewThumbsData.countPerRow,J=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Re===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 xe=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Re===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(xe=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ce=r(T)*xe,He=r(S)*J,nt=-_e*r(T),bt=-Xe*r(S);return{imgSrc:e.previewThumbsData.links[Re],imgWidth:Ce,imgHeight:He,imgOffsetX:nt,imgOffsetY:bt}}var ce=cy();let Pe;var Me=_(ce);{var re=Q=>{var te=ly();D(()=>lt(te,`width: ${r(T)}px; height: ${r(S)}px; background-image: url(${r(E)}); background-size: ${r(R)}px ${r(I)}px; background-position: ${r(P)}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(re)})}var Ve=A(Me,2),ae=_(Ve);{var k=Q=>{var te=Be(),Re=pe(te);{var Xe=J=>{var xe=rs();D(Ce=>me(xe,Ce),[()=>q("tooltip_episode_unfinished")]),$(J,xe)},_e=J=>{var xe=rs();D(()=>me(xe,r(F).text||"")),$(J,xe)};V(Re,J=>{u()&&r(F).completed===!1?J(Xe):J(_e,!1)})}$(Q,te)};V(ae,Q=>{r(F)&&Q(k)})}h(Ve);var ot=A(Ve,2);{var Ne=Q=>{var te=dy(),Re=_(te,!0);h(te),D(()=>me(Re,d())),$(Q,te)};V(ot,Q=>{u()||Q(Ne)})}h(ce),D(Q=>{Pe=ne(ce,1,"timeline-preview svelte-1wqg760",null,Pe,Q),lt(ce,`width: ${r(H)?r(S):r(T)}px;`)},[()=>({mobile:a()})]),$(t,ce),z(),o()}var py=M('<span class="time svelte-1jr6obn"> </span>'),fy=M("<!> <!>",1),my={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 Cm(t,e){var de,Qe,Fe,mt,Ae;U(e,!0),K(t,my);let[i,o]=Oe(),n=()=>C(oe,"$interactiveEpisodes$",i),s=()=>C(P,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(ee,"$isInteractiveExpectation$",i),a=()=>C(ge,"$isInteractiveTime$",i),p=()=>C(B,"$isLive$",i),f=()=>C(H,"$isMobile",i),m=()=>C(F,"$isActiveLive$",i),u=()=>C(R,"$bufferedProgress$",i),y=()=>C(ce,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),x=v(e,"withEpisodes",3,!0),T=v(e,"ref",15,void 0),S=Se(),E=At(),R=S.state.bufferedProgress$,I=S.state.positionWithScrubbing$,P=S.state.duration$,B=S.state.isLive$,F=S.state.isActiveLive$,H=S.ui.isMobile,W=E.features.episodes&&x()?S.actions.internal.getVideoEpisodes():void 0,Y=S.actions.internal.getPreviewThumbsData(),oe=S.state.interactiveEpisodes$,G=S.state.isInteractive,ge=S.state.isInteractiveTime$,ee=S.state.isInteractiveExpectation$,fe=S.actions.internal.correctSeekTimeToInteractive,ue=(de=S.callbacks)==null?void 0:de.onDisabledTimelineClick,ce=S.ui.controls.disabledControls$,Pe=(Fe=(Qe=S.callbacks)==null?void 0:Qe.uiInfo)==null?void 0:Fe.onTimelineMouseEnter,Me=(Ae=(mt=S.callbacks)==null?void 0:mt.uiInfo)==null?void 0:Ae.onTimelineMouseLeave,re=S.ui.t,Ve=E.features.interactiveResponsiveUi,ae=g(()=>G?n():W),k=g(()=>yn(s())),ot=g(()=>yn(l())),Ne=g(()=>l()/s()),Q=g(()=>d()||a()),te=X(!1),Re=X(""),Xe=X(0),_e=X(0),J=X(0),xe=g(()=>({containerWidth:r(_e),translateXPx:r(Xe),translateYPx:G&&Y?-36:-16,active:r(te)&&w()&&!r(Q)&&!Ve,pointer:!E.features.timelinePreview||!Y||p()})),Ce=re("aria_timeline"),He=g(()=>re("aria_timeline_value",{position:r(ot),duration:r(k)}));function nt(We){return!fe||!G?We:fe(We*s())/s()}function bt(We){S.actions.internal.startScrubbing(nt(We))}function ct(We){a()||S.actions.internal.progressScrubbing(nt(We))}function $t(We){S.actions.internal.completeScrubbing(nt(We)),O(te,!1)}function et(We,ut,ze){Gt(We,ut,ze),O(te,!0)}function zt(We,ut,ze){Gt(We,ut,ze),O(te,!0)}function Qt(){O(te,!1)}function Gt(We,ut,ze){O(J,nt(We),!0),O(Xe,ut,!0),ze&&O(_e,ze,!0),O(Re,jt(We),!0)}function jt(We){let ut=yn((p()?1-We:We)*s());return p()?`-${ut}`:ut}var Ee=fy(),Yt=pe(Ee);wm(Yt,bs(()=>r(xe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(We,ut)=>{var ze=Be(),rt=pe(ze);{var Ke=ni=>{Sm(ni,{get time(){return r(Re)},get isMobile(){return f()},get videoEpisodes(){return r(ae)},get previewThumbsData(){return Y},get progress(){return r(J)},get duration(){return s()},get isInteractive(){return G}})},Mt=ni=>{var Zt=py(),gi=_(Zt,!0);h(Zt),D(()=>me(gi,r(Re))),$(ni,Zt)};V(rt,ni=>{E.features.timelinePreview&&Y&&!p()?ni(Ke):ni(Mt,!1)})}$(We,ze)},$$slots:{default:!0}}));var we=A(Yt,2);let be=g(()=>y().has("TIMELINE"));Ia(we,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return Ce},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(He)},get loadedProgress(){return u()},get filledProgress(){return r(Ne)},get handleProgress(){return r(Ne)},get videoEpisodes(){return r(ae)},onPointerDown:bt,onHandleMove:ct,onPointerMove:zt,onPointerUp:$t,onPointerEnter:et,onPointerLeave:Qt,get onMouseEnter(){return Pe},get onMouseLeave(){return Me},get onDisabledClick(){return ue},get isInteractive(){return G},get disabled(){return r(be)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:$t,get ref(){return T()},set ref(We){T(We)}}),$(t,Ee),z(),o()}var vy={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,vy);let[i,o]=Oe(),n=()=>C(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Se(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>yn(l())),m=g(()=>yn(s())),u=g(()=>s()/l()),y=g(()=>p("aria_timeline_value",{position:r(m),duration:r(f)})),w=g(()=>Math.round(r(u)*100));Ia(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 gy=M("<div><!></div>"),hy=M("<div></div>"),_y={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 ka(t,e){U(e,!0),K(t,_y);let[i,o]=Oe(),n=()=>C(T,"$isLive$",i),s=()=>C(R,"$isMobile",i),l=()=>C(I,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(S,"$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=Se(),x=At(),T=w.state.isLive$,S=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,I=se(!1),P=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var B=Be(),F=pe(B);{var H=Y=>{var oe=gy();let G;var ge=_(oe);{var ee=ue=>{Wd(ue,{get position(){return d()},get duration(){return a()}})},fe=ue=>{Cm(ue,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(P)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(ce){y(ce)}})};V(ge,ue=>{p()?ue(ee):ue(fe,!1)})}h(oe),_s(oe,()=>hl(f()&&x.features.usePerformanceFix,I,x.disableInvisibleComponentsTimeout)),D(ue=>G=ne(oe,1,"timeline svelte-41cp6d",null,G,ue),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":l()})]),$(Y,oe)},W=Y=>{var oe=hy();let G;D(ge=>G=ne(oe,1,"timeline-stub svelte-41cp6d",null,G,ge),[()=>({mobile:s()})]),$(Y,oe)};V(F,Y=>{r(P)?Y(H):Y(W,!1)})}$(t,B),z(),o()}var d0=require("@vkontakte/videoplayer-shared/es2018");var by=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Tm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=by();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(3),h(o),$(t,o)}var $y=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Em(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=$y();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var yy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),xy=M('<span class="text svelte-1yhs2ga"> </span>'),wy=M('<span class="text count svelte-1yhs2ga"> </span>'),Sy=M("<!> <!>",1),Cy={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 Kd(t,e){var ee,fe,ue;U(e,!0),K(t,Cy);let[i,o]=Oe(),n=()=>C(w,"$currentGridType$",i),s=()=>C(x,"$openedByKeyboard$",i),l=()=>C(T,"$panelOpened$",i),d=()=>C(S,"$isMobile",i),a=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Se(),u=(fe=(ee=m.callbacks)==null?void 0:ee.onEpisodeChanged)!=null?fe:d0.noop,y=!!((ue=m.callbacks)!=null&&ue.onEpisodeClicked),w=m.ui.currentGridType$,x=m.ui.episodes.openedByKeyboard$,T=m.ui.episodes.panelOpened$,S=m.ui.isMobile,E=m.ui.t,R=X(void 0),I=ce=>{var Me,re,Ve;if(!!((Me=m.callbacks)!=null&&Me.onEpisodeClicked)){let ae=Us(ce);x.set(ae),T.set(!0),(Ve=(re=m.callbacks)==null?void 0:re.onEpisodeClicked)==null||Ve.call(re,ae)}},P=X(null),B=g(()=>a()/p());Ue(()=>{var Pe;let ce=Ou(r(B),p(),f());ce?((Pe=r(P))==null?void 0:Pe.time)!==ce.time&&(u(ce),O(P,ce,!0)):O(P,null)});let F=g(()=>{var ce;return((ce=r(P))==null?void 0:ce.text)||""}),H=g(()=>Yi(n(),"xl")?"FULL":Yi(n(),"m")&&t0(n(),"xl")?"COUNT":"SHORT"),W=g(()=>`${E("tooltip_episodes")}: ${r(F)}`),Y=async(ce,Pe,Me)=>{await ko(),(ce==null?void 0:ce.getAttribute("aria-expanded"))==="false"&&Pe&&!Me&&Et(()=>{x.set(!1),ce.focus()})};Ue(()=>{Y(r(R),s(),l())});var oe=Be(),G=pe(oe);{var ge=ce=>{let Pe=g(()=>d()?"px-0":""),Me=g(()=>!y);Ot(ce,{get className(){var re;return`w-max btn-full-opacity btn-jc-l ${(re=r(Pe))!=null?re:""}`},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(re){O(R,re,!0)},children:(re,Ve)=>{var ae=Be(),k=pe(ae);{var ot=Q=>{var te=yy(),Re=pe(te),Xe=_(Re,!0);h(Re);var _e=A(Re,2),J=_(_e);Em(J,{}),h(_e),D(()=>me(Xe,r(F))),$(Q,te)},Ne=Q=>{var te=Sy(),Re=pe(te);Tm(Re,{});var Xe=A(Re,2);{var _e=xe=>{var Ce=xy(),He=_(Ce,!0);h(Ce),D(()=>me(He,r(F))),$(xe,Ce)},J=(xe,Ce)=>{{var He=nt=>{var bt=wy(),ct=_(bt,!0);h(bt),D(()=>me(ct,f().length)),$(nt,bt)};V(xe,nt=>{r(H)==="COUNT"&&nt(He)},Ce)}};V(Xe,xe=>{r(H)==="FULL"?xe(_e):xe(J,!1)})}$(Q,te)};V(k,Q=>{d()?Q(ot):Q(Ne,!1)})}$(re,ae)},$$slots:{default:!0}})};V(G,ce=>{r(P)&&ce(ge)})}$(t,oe),z(),o()}var Um=require("@vkontakte/videoplayer-shared/es2018");var pi=require("@vkontakte/videoplayer-core/es2018"),ft=require("@vkontakte/videoplayer-shared/es2018"),ls=require("@vkontakte/videoplayer-statistics/es2018");var je=require("@vkontakte/videoplayer-shared/es2018"),Zi=require("@vkontakte/videoplayer-shared/es2018"),Ty="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Bu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Zi.Subject,loadStarted$:new Zi.Subject,loadEnded$:new Zi.Subject,loadError$:new Zi.Subject,ready$:new Zi.Subject,slotRequested$:new Zi.Subject,started$:new Zi.Subject,timeRemained$:new Zi.Subject,paused$:new Zi.Subject,resumed$:new Zi.Subject,ended$:new Zi.Subject,empty$:new Zi.Subject,skipped$:new Zi.Subject,clicked$:new Zi.Subject,closed$:new Zi.Subject,error$:new Zi.Subject};this.loadAdman=e=>(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,je.now)()]}),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?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,je.now)()]}),o())};(0,Zi.addScript)(Ty,e,this.loadTimeout).then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,je.now)()]}),window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,je.now)()]}),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?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,je.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,je.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,je.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,je.now)()]}),!d&&(window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,je.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,je.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),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?he(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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,je.now)()]}),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"),je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,je.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var R,I;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,je.now)(),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&&he(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=(0,je.detectEmbed)(),T=(R=w?x:window.location.href)!=null?R:window.location.href,S={...a,dl:encodeURIComponent(T),autoplay:n?1:0,player_width:i,player_height:o,...u?{request_id:u}:{},duration:f,...p};S=Object.fromEntries(Object.entries(S).filter(([P,B])=>(0,je.isNonNullable)(B)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:S,browser:{mobile:!1}};try{let P=new window.AdmanHTML;if(P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),(I=this.externalApi)!=null&&I.videoGetAds){let B=await this.safeExternalCall(this.externalApi.videoGetAds,S);B&&(delete E.slot,delete E.params,Object.assign(E,{json:B}))}P.init(E),this.adman=P,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(P){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,je.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,je.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adsState){this.log({message:"toggle play"});let i=he(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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,je.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,p,f,m,u;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,je.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(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&&(0,Zi.clearVideoElement)(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 c0=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 Im=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 Du,{startTime:f,endTime:m}=p.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let p=new km,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Du=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}},km=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 Du;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}},u0=Im;var Hu=require("@vkontakte/videoplayer-shared/es2018"),Aa,Pi,Am=0,Pm=!1,p0="",f0=(t,e=0,i=0)=>t<e&&t<i,Fu=(t,e=0,i=0)=>t>=e&&t<=i,Ey=(t,e=0,i=0)=>t>e&&t>i,m0=(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})=>Fu(t,p,f));let s=t>=Am,l=t<Am;if(Am=t,l&&(Pm=!1),(0,Hu.isNonNullable)(Aa)&&Fu(t,Aa.startTime,Aa.endTime)&&p0===e.value)return Aa;if(!(0,Hu.isNonNullable)(Pi)&&(n!=null&&n.length)&&!Pm){Pi=n.find(({startTime:p,endTime:f})=>Fu(t,p,f)||s&&f0(t,p,f)),Aa=void 0,!(0,Hu.isNonNullable)(Pi)&&n[n.length-1].endTime<t&&(Pm=!0);return}else{if(Fu(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Aa=Pi,Pi=void 0,p0=e.value,Aa;(s&&Ey(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&f0(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var Uu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},Iy={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=Uu[t])!=null?e:Uu[Iy[t]])!=null?i:void 0};var v0=require("@vkontakte/videoplayer-shared/es2018"),CB=require("@vkontakte/videoplayer-statistics/es2018"),zu=class{constructor(e,i,o,n=new v0.Subscription){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 Qd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qd||{});var as=t=>t!=null?t:0,xs=(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(as(i==null?void 0:i.top)-as(o==null?void 0:o.top)),left:Math.round(as(i==null?void 0:i.left)-as(o==null?void 0:o.left)),bottom:Math.round(as(i==null?void 0:i.bottom)-as(o==null?void 0:o.top)),right:Math.round(as(i==null?void 0:i.right)-as(o==null?void 0:o.left))}},Cl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:as(e==null?void 0:e.width),height:as(e==null?void 0:e.height)}};var Un="off";var g0=({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$:S,isInteractiveTime$:E,replayInteractive:R,stopPlayer:I,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:B,additionalButtons:F,additionalSettingsMenuItems:H,additionalContextMenuItems:W,playPrevVideo:Y,playNextVideo:oe,onVideoChanged:G,looped:ge=!1,statistics:ee,saveRate:fe,internalsExposure:ue,playerView:ce,playerId:Pe})=>{var sg,ag,lg;let Me={...y,configName:[...(sg=y.configName)!=null?sg:[],"ui"],isAudioDisabled:l,live:{...(ag=y.live)!=null?ag:{},isLiveCatchUpMode:!!n}},re=u,Ve=ft.TracerFactory.createRootTracer(re.features.tracer),ae=Ve.createComponentTracer("Store"),k=w||new pi.Player(Me,Ve,{playerId:Pe});ue==null||ue.expose({corePlayer:k});let ot=new ft.Logger,Ne=new Bu(ot,{loadTimeout:re.ads.loadTimeout,initTimeout:re.ads.initTimeout,runtimeTimeout:re.ads.runtimeTimeout,useAdmanFromNPM:re.ads.useAdmanFromNPM,volumeMultiplier:re.ads.volumeMultiplier,isVsidOriginal:re.ads.isVsidOriginal}),Q=_a.getInstance(),te=p==null?void 0:p.pictureInPictureApi,Re=p==null?void 0:p.annotationsApi,Xe=p==null?void 0:p.slotsApi,_e=ot.createComponentLog("Store"),J,xe,Ce={},He=new mu,nt=new ft.Subscription,bt="",ct=se(!1),$t=ee&&ee.oneStat?oi(ee.oneStat.vsid$):Cr(void 0),et=se(Ds()),zt=se(!1),Qt=()=>V1(document,pi.clientChecker.device.isIOS),Gt=(lg=te==null?void 0:te.info.isActive$)!=null?lg:new ft.ValueSubject(!1),jt=se(0),Ee=se(!1),Yt=se(!1),we=se([]),be=(0,ft.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>we.update(b=>[...b,c])),de=Cr(!1,c=>{let b=k.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Qe=async c=>{var ie;let b=Object.values(ft.InterfaceLanguage).includes(c);if(re.downloadVKLanguages&&(b&&re.updateBuiltinLanguages||!Rf(c))){let Ie;try{Ie=await(0,ft.loadVKLangPack)(c,jh,Yh)}catch(it){(ie=ee==null?void 0:ee.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),Q==null||Q.report(it,{errorType:"VKLangPack",fatal:!1})}Ie&&(Vf({language:c,pack:Ie,fallback:re.defaultLanguage}),Fe.set(c),mt.update(it=>it+1))}Rf(c)&&Fe.set(c)},Fe=se(t),mt=se(0),Ae=se(e);Qe(t);let We=(c,b)=>{let L=he(Fe);return Nf(L,c,b,re.defaultLanguage)},ut=se("thumb");ut.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&Ke()});let ze=(()=>{let c=mi([de,ut],([b,L])=>b?"crashed":L);return{...c,is:b=>he(c)===b}})(),rt=se(),Ke=()=>{rt.set({muted:k.info.muted$.getValue()})},Mt=(()=>{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(Ie=>!b.includes(Ie)):ie.filter(Ie=>Ie!==b))})},includes:b=>{let L=he(c);return Array.isArray(b)?b.every(ie=>L.has(ie)):L.has(b)}}})(),ni=se({width:0,height:0}),Zt=null,gi=k.info.isBuffering$,Ei=Cr(gi.getValue(),c=>{let b=gi.subscribe(L=>{L&&Zt===null?Zt=window.setTimeout(()=>{c(gi.getValue()),Zt=null},re.loaderDelay):c(L)});return()=>{b.unsubscribe(),Zt&&clearTimeout(Zt)}});ae.log("create store"),_e({message:"create store"});let bo=c=>{let b=c.container,L=()=>{Xt=new MutationObserver(Ie=>{let{removedNodes:it}=Ie[0];it.length&&b.append(k.experimental.element$.getValue())}),Xt.observe(b,{childList:!0})},ie=k.experimental.element$.getValue();if(ie)b.append(ie),L();else{let Ie=k.experimental.element$.pipe((0,ft.filter)(it=>!!it),(0,ft.once)()).subscribe(it=>{b.append(it),L()});nt.add(Ie)}},Ji=c=>{_e({message:`init video, config: ${JSON.stringify(c)}`}),T?bo(c):(ft.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ft.now)()]}),k.initVideo(c)),ae.log("init video",{isInteractive:T}),c.subtitles&&k.setExternalTextTracks(c.subtitles),J=c,bt=c.subtitlesForcedLanguage||""},ei=new ft.Subject,gt=c=>ei.next(c),Bt=new ft.Subject,Ut=new ft.Subject,Ct=new ft.Subject,Xt=null,Bi={actionRewind$:Bt,actionSeek$:Ut,inPiP$:Gt,inFullscreen$:new ft.Observable(c=>et.subscribe(b=>c.next(b))),actionSetSubtitle$:Ct,nextMovie$:ei},yt={actionSeek$:Ut,playerSize$:new ft.Observable(c=>ni.subscribe(b=>c.next(b))),inPiP$:Gt,inFullscreen$:new ft.Observable(c=>et.subscribe(b=>c.next(b))),isLoaderVisible$:new ft.Observable(c=>Ei.subscribe(b=>c.next(b)))};if(ee){let{oneStat:c,thinOneStat:b,mediascopePixel:L,statSubscription:ie}=ee;c&&(T||ie.add(c.attachTo(k)),ie.add(c.attachToUi(Bi)),ie.add(c.attachToAds(Ne.events)),c.authorize(s).catch(Ie=>{_e({message:`onestat auth error ${String(Ie)}`})}),L&&L.attachTo(k)),b&&(ie.add(b.attachTo(k,Ne.events)),ie.add(b.attachToUi(yt)),ie.add(b.attachToAds(Ne.events)),b.updateContext({isMobile:he(ct)}),b.authorize(s))}if(Q){let c=new ft.Subscription,b=(L,ie)=>c.add(L.subscribe(ie));if(b(k.events.managedError$,L=>{Q.logIError(L)}),b(k.events.fatalError$,L=>{Q.logIError(L,!0)}),ee){let{oneStat:L}=ee;L&&b(L.experimental.error$,ie=>{Q.logIError(ie)})}Q.sentrySubscription.add(c)}let Ze=()=>{if(pi.clientChecker.device.isIOS&&xe)try{R1(xe)}catch(c){_e({message:`exitIosSafariFullscreen failed: ${c}`})}};nt.add(k.experimental.element$.subscribe(c=>{c&&(xe=c,c.classList.add("player-media"),$a(te)&&te.updateVideoElement(),T&&c.setAttribute("pip","false"),ce==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;Ze(),(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 b,L;$a(te)&&await(te==null?void 0:te.revealPictureInPicture());let c=k.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(L=Ce.onStarted)==null||L.call(Ce,c)})).add(k.events.willSeek$.subscribe(({from:c,to:b})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,b)})).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 b=k.info.duration$.getValue();isFinite(b)&&b>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,b,c),Ne.setPosition(c,b))})).add(k.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(k.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(k.events.loadedMetadata$.subscribe(()=>{Ee.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Yt.set(c)})).add(k.info.isEnded$.subscribe(c=>{T&&(c?(E!=null&&E.getValue()&&Mt.add(bd),Mt.add("PLAY_BUTTON")):Mt.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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(Ne.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 Si=new ft.Subscription,Mo=()=>{var it,It,Rt;let{debugLog:c}=re,b,L="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Ht}=c;b=c.tag,L=(it=Ht==null?void 0:Ht[0])!=null?it:L,ie=(Rt=(It=Ht==null?void 0:Ht[1])!=null?It:Ht==null?void 0:Ht[0])!=null?Rt:ie}let Ie=b?`: ${b}`:"";Si.add(k.events.log$.subscribe(Ht=>{console.debug(`%c sdk${Ie} `,`background:${L};`,`sdk component: ${Ht.component}`,Ht.message)})).add(ot.log$.subscribe(Ht=>{console.debug(`%c ui${Ie} `,`background:${ie};`,`ui component: ${Ht.component}.`,Ht.message)}))},Vo=()=>{Si.unsubscribe()},on=(c,b)=>{ae.log("start camera manual rotation",{mx:c,my:b}),k.startCameraManualRotation(c,b)},N=(c=!1)=>{ae.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},tt=(c,b,L)=>{ae.log("move camera focus px",{xpx:c,ypx:b,dt:L}),k.moveCameraFocusPX(c,b,L)},qt=()=>{k.holdCamera()},Jt=()=>{k.releaseCamera()},ht=Cr(k.info.position$.getValue(),c=>{let b,L,ie=()=>{let Ie=k.info.playbackState$.getValue(),it=k.info.isLive$.getValue(),It=k.info.duration$.getValue(),Rt=k.info.position$.getValue();if(Ie&&[pi.PlaybackState.PLAYING,pi.PlaybackState.PAUSED].includes(Ie)){let Ht=it?Rt-It:k.getExactTime();Ht!==L&&c(Ht),L=Ht}b=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(b)}),ti=oi(k.info.playbackState$),$i=oi(k.info.currentBuffer$),yi=oi(k.info.isEnded$),St=oi(k.info.isLive$),Ci=re.features.playbackRate?oi(k.info.canChangePlaybackSpeed$):Cr(!1),ro=oi(k.info.liveBufferTime$),wn=oi(k.info.volume$),Kn=oi(k.info.muted$),fi=vu(k.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===pi.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===pi.PredefinedQualityLimits.TRAFFIC_SAVING),so=vu(k.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===pi.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===pi.PredefinedQualityLimits.HIGH_QUALITY),qn=oi(k.info.autoQualityLimitingAvailable$),ao=oi(k.info.availableQualities$),lo=oi(k.info.availableQualitiesFps$),Sn=oi(k.info.chromecastState$),nn=oi(k.info.chromecastDeviceName$),$o=oi(k.info.currentFormat$),cr=oi(k.info.throughputEstimation$),Qn=oi(k.info.videoBitrate$),Er=oi(k.info.intrinsicVideoSize$),Qr=oi(k.info.duration$),Gr=oi(k.info.isAudioAvailable$),jr=()=>{Zt&&clearTimeout(Zt),Zt=null},rn=mi([Qr,St],([c,b])=>b?-c:c),Cn=mi([ti],([c])=>c===pi.PlaybackState.PLAYING),Ro=oi(k.info.atLiveEdge$),sn=oi(k.info.atLiveDurationEdge$),an=oi(k.info.position$),ur=mi([an,Qr],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),Yr=mi([Sn],([c])=>c===pi.ChromecastState.CONNECTED),yo=oi(k.info.availableVideoStreams$),Ir=re.features.audioLanguages?oi(k.info.availableAudioStreams$):Cr([]),Tn=oi(k.info.currentVideoStream$),ln=oi(k.info.currentAudioStream$),pr=c=>{c.language&&Af(c.language),k.setVideoStream(c)},fr=(c,b)=>{k.setAudioStream(c),fo(b)&&(c.language&&Af(c.language),re.features.userVideoPrefs&&i&&Mf(re.userSalt,String(i),{audioTrackId:c.id}))},En=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(ie=>"isDefault"in ie&&ie.isDefault)),re.features.userVideoPrefs&&i){let ie=$u(re.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Ie=c.find(it=>it.id===ie.audioTrackId);b=Ie!=null?Ie:b}}let L=y1();return L&&(b!=null||(b=c.find(({language:ie})=>L===ie))),b!=null||(b=c.at(0)),b},No=c=>{ae.log("change audio stream",{id:c});let b=k.info.availableAudioStreams$.getValue().find(L=>L.id===c);b&&fr(b,!0)},Zr=!1;nt.add(k.info.availableAudioStreams$.subscribe(c=>{if(!Zr&&c.length){let b=En(c);b&&(k.setAudioStream(b),Zr=!0)}})),Ir.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:L="",id:ie="",language:Ie=""})=>({label:L,language:Ie,id:ie})))}),ln.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let mr=!1;nt.add(k.info.availableVideoStreams$.subscribe(c=>{if(!mr&&c.length){let b=En(c);b&&(k.setVideoStream(b),mr=!0)}}));let vt=se(void 0),si=oi(k.info.isAutoQualityEnabled$,c=>c&&vt.set(void 0)),In=oi(k.info.currentQuality$,()=>vt.set(void 0)),kn=mi([vt,In],([c,b])=>c!=null?c:b),vr=mi($o,c=>c!==pi.VideoFormat.MPEG),dn=mi([ao,lo,si,kn,vr],([c,b,L,ie,Ie])=>{let it=[];Ie&&it.push({value:"auto",displayValue:We("auto_quality_option"),selected:L});let It=c.filter(Rt=>!(0,ft.isInvariantQuality)(Rt));for(let Rt of It){let Ht=b[Rt];it.push({value:Rt,displayValue:`${Rt}${Ht?c0(Ht):""}`,selected:L?!1:Rt===ie})}return it}),cn=oi(k.info.currentPlaybackRate$),co=mi([cn,Ro,sn],([c,b,L])=>{let ie=L||T?1:re.controls.playbackRateMin,Ie=b?1:re.controls.playbackRateMax,it=re.controls.playbackRateStep,It=[];for(let Rt=ie;Rt<=Ie;Rt+=it)It.push({value:Rt,displayValue:Rt===1?We("playback_rate_1"):We("playback_rate",{multiplier:Rt.toString(10)}),selected:c===Rt});return It}),uo=()=>({displayValue:We("subtitles_off"),value:Un,language:""}),jo=se(uo()),po=mi([jo,mt],([c],b)=>{c.value===Un?b(uo()):b(c)}),An=re.features.subtitles?oi(k.info.availableTextTracks$):Cr([]),gr=u1(),kr=mi([An,po],([c,b],L)=>{var it;let ie=[],Ie=c.find(({id:It})=>It===b.value);if(Ie!=null&&Ie.url){let[,It]=(it=gr.find(Ie.url))!=null?it:[];if(It){L(It);return}He.download(Ie.url).then(Rt=>{if(!Rt||He.isDestroyed())return;let Ht=new u0,ks=Ie.language;if(ks){let n_=!!Ie.isAuto,r_=Ht.parse(Rt,ks);ie.push({lang:ks,subtitles:r_,isAuto:n_,id:Ie.id})}gr.add(Ie.url,ie),he(po).value===b.value&&L(ie)}).catch(Rt=>{var Ht;(Ht=ee==null?void 0:ee.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),Q==null||Q.report(Rt,{errorType:"Subtitles download",fatal:!1})})}L(ie)}),ds=mi([cn,Cn,po],([c,b,L],ie)=>{let It;if(k.info.isLive$.getValue()&&b&&L.value!==Un){let Ht=()=>{let ks=1e3/(3*c);It=setTimeout(Ht,ks),ie(Date.now())};return Ht(),()=>clearTimeout(It)}}),Pn=mi([An,po],([c,b])=>{if(!c.length)return[];let L=[];for(let{language:ie,isAuto:Ie,id:it}of c){let It=ie&&qd(ie);ie&&It&&L.push({displayValue:Ie?We("subtitles_auto",{language:It}):It,value:it,selected:(b==null?void 0:b.value)===it,isAuto:Ie,language:ie})}return L.length?(L.unshift({...uo(),selected:(b==null?void 0:b.value)===Un}),L):[]}),Ki={available:[],prev:[]},Gn=()=>{var b,L;let c=k.experimental.getCurrentTime$.getValue();return(L=(b=c==null?void 0:c())!=null?b:xe==null?void 0:xe.currentTime)!=null?L:0},hr=mi([ht,po,kr,ds],([c,b,L,ie])=>{var it;let Ie=k.info.isLive$.getValue();if(Ie&&Ki.prev!==L){let It=L.find(({id:Ht})=>Ht===b.value),Rt=Ki.prev.find(({id:Ht})=>Ht===b.value);if(It){let Ht={...It,subtitles:[...(it=Rt==null?void 0:Rt.subtitles)!=null?it:[],...It.subtitles]};Ki.available=[Ht],Ki.prev=L}}if(b&&b.value!==Un){let It=Ie?Gn():c,Rt=Ie?Ki.available:L;return m0(It,b,Rt,Ie)}}),ai=mi([hr],([c])=>c!=null&&c.texts?c.texts:[]);nt.add(po.subscribe(c=>{var b,L;if(c.value===Un)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let ie=Object.entries(Uu).find(([Ie,it])=>it===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,ie?ie[0]:"",c.value)}}));let Ln=se(!0),_r=mi([$i,rn,an,ro],([c,b,L,ie])=>{var Rt;let Ie=(Rt=c==null?void 0:c.end)!=null?Rt:0;if(!ie)return Ie/b;let It=-L+ie-b;return(Ie-It)/b}),un=oi(k.info.availableSources$),_t=mi([un],([c])=>Object.keys((c==null?void 0:c[pi.VideoFormat.MPEG])||{}).length>0),li=()=>{var L,ie,Ie;let c=Object.keys(((ie=(L=k.info.availableSources$)==null?void 0:L.getValue())==null?void 0:ie[pi.VideoFormat.MPEG])||{}),b=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(Ie=J.sources[pi.VideoFormat.MPEG])==null?void 0:Ie[b]},eo=()=>{var b;let c=li();if(c)ae.log("download video",{url:c}),l1(c,((b=J==null?void 0:J.meta)==null?void 0:b.title)||"video");else{let L="There is no URL for download video";ae.log("download video",{message:L}),_e({message:L})}},xo=()=>{_e({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?jn(Mn(),!1):So(!c,!1)},hi=()=>{var c;if(Ft.ui.settingsMenu.visible$.set(!1),!he(Ft.ui.settingsSubMenu.visible$)){let b=he(Ft.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let ie=Cl(b),Ie={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Ie,name:"settings"})}}ae.log("close settings menu")},Oo=async(c,b=()=>Promise.resolve())=>{var Ie;Ft.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Ft.ui.settingsMenu.visible$.set(!0),await b();let L=he(Ft.ui.settingsMenu.ref$),ie=Ys();if((Ie=a==null?void 0:a.uiInfo)!=null&&Ie.onSettingsMenu&&L&&ie){let It=Cl(L),Rt=xs(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:It,position:Rt,name:"settings"})}ae.log("open settings menu",{wasOpenedByKeyboard:c})},wo=(c,b=!1)=>{var it;Ft.ui.settingsSubMenu.visible$.set(!1);let L=he(Ft.ui.settingsMenu.ref$),ie=Ys(),Ie=he(Ft.ui.settingsMenu.visible$);if((it=a==null?void 0:a.uiInfo)!=null&&it.onSettingsMenu&&L&&ie)if(Ie&&!b){let Rt=Cl(L),Ht=xs(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:Ht,name:"settings"})}else{let Rt=Cl(c),Ht={top:0,left:0,bottom:0,right:0},ks=he(Ft.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Rt,position:Ht,name:ks})}ae.log("close settings sub menu")},to=(c,b)=>{var ie;Ft.ui.settingsSubMenu.visible$.set(!0),Ft.ui.settingsSubMenu.ref$.set(b),Ft.ui.settingsSubMenu.name$.set(c);let L=Ys();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&b&&L){let it=Cl(b),It=xs(b,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:it,position:It})}ae.log("open settings sub menu",{name:c})},Mn=()=>{var b;let c=Math.max(re.volumeMinRestore,(b=gu())!=null?b:0);return c===0?re.volumeDefault:c},fo=c=>{let b=re.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},jn=(c,b)=>{let L=c===0?Mn():c,ie=k.info.muted$.getValue();_e({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Ie=!l||ze.is("ads");ie&&c>0&&Ie&&(ie=!1,fo(b)&&If(!1)),k.setVolume(c,ie),Ne.setVolume(c),fo(b)&&wf(L)},So=(c,b)=>{let L=k.info.volume$.getValue();_e({message:`set muted, currentVolume: ${L}, mute: ${c}`});let ie=ze.is("ads");if(k.setMuted(c,ie),Ne.setVolume(c?0:L),fo(b)&&(!ie||!c)&&If(c),!c&&L===0){let Ie=Mn();k.setVolume(Ie),fo(b)&&wf(Ie),Ne.setVolume(Ie)}},Bo=se(!1),br=c=>{var b,L;ae.log("set looped",{isLooped:c}),Bo.set(c),k.setLooped(c),(L=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||L.call(b,c)};br(ge);let pn=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},Do=(c,b=!1)=>{var L;_e({message:`set autoplayNextEnabled, value: ${c}`}),ae.log("set autoplay next enabled",{autoplayNextEnabled:c}),Ft.ui.autoplayNextEnabled$.set(c),S1(c),b&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Yn=c=>{_e({message:`set timerNextVideoRunning, value: ${c}`}),ae.log("set timer next video running",{timerNextVideoRunning:c}),Ft.ui.timerNextVideoRunning$.set(c)},Ar=(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){_e({message:"onPrevVideoClick callback failed to execute"})}G(!0),b&&Y()},Zn=(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){_e({message:"onNextVideoClick callback failed to execute"})}G(!1),b&&oe()},st=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Lt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},xi=()=>{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)},qi=()=>{k.prepare()},vo=()=>{(0,ft.assertNonNullable)(Ft);let c=he(Ft.ui.controls.disabledControls$),b=he(Ft.playerPhase),L={playerPhase:b,isInteractive:T,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(_e({message:"toggle play"}),b==="ads"){L.action="play",ae.log("toggle adman play",L),Ne.togglePlay();return}let ie=()=>{var it;_e({message:"toggle play, call player.play"}),L.action="play",k.play(),(it=a==null?void 0:a.onPlay)==null||it.call(a)},Ie=()=>{var it;_e({message:"toggle play, call player.pause"}),L.action="pause",k.pause(),(it=a==null?void 0:a.onPause)==null||it.call(a)};if(k.info.isEnded$.getValue()){if(_e({message:"toggle play, video ended, seek to 0"}),Bt.next(),Ut.next(ls.SeekAction.REWIND),T){R==null||R();return}k.seekTime(0),ie()}else k.info.playbackState$.getValue()!==pi.PlaybackState.PLAYING?ie():Ie();ae.log("toggle play",L)},Li=(c,{changeReason:b="default",appliesTo:L="to-video"}={},ie)=>{_e({message:`set quality, quality: ${c}`}),ae.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ie}=re.features;hu(),c!=="auto"?(Ie?(_u({type:"exact_quality",quality:c,videoId:i},L),k.setPredefinedQualityLimits(pi.PredefinedQualityLimits.UNKNOWN)):Sf(i,c),vt.set(c),k.setQuality(c)):Ie&&b==="default"&&(Co("auto_quality",L,ie),he(fi)&&go(!1,void 0,ie),he(so)&&fn(!1,void 0,ie))},go=(c,b="as-default",L)=>{_e({message:`set trafficSavingEnabled, value: ${c}`}),ae.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?pi.PredefinedQualityLimits.TRAFFIC_SAVING:pi.PredefinedQualityLimits.UNKNOWN;re.features.qualityDetailsSubMenuEnabled?(Vn(ie,b,L),yd(!1)):(k.setPredefinedQualityLimits(ie),fo(L)&&yd(c))},fn=(c,b="as-default",L)=>{_e({message:`set highQualityEnabled, value: ${c}`}),ae.log("set high quality enabled",{highQualityEnabled:c}),Vn(c?pi.PredefinedQualityLimits.HIGH_QUALITY:pi.PredefinedQualityLimits.UNKNOWN,b,L)},Vn=(c,b,L)=>{c!==pi.PredefinedQualityLimits.UNKNOWN&&(he(qn)&&!he(si)&&Li("auto",{appliesTo:b,changeReason:"limit-changed"},L),Co(c,b,L)),k.setPredefinedQualityLimits(c)},Co=(c,b,L)=>{fo(L)&&(_u({type:c,videoId:i},b),b==="as-default"&&_u({type:c,videoId:i},"to-video"))},Qi=(c,b=!0)=>{ae.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),re.features.saveRate&&fe&&!k.info.isLive$.getValue()&&b&&x1(c)},Pr=()=>{let c=he(co),b=c.findIndex(({selected:ie})=>ie);if(b===c.length-1)return;let L=c[b+1];Qi(L.value)},Xn=()=>{let c=he(co),b=c.findIndex(({selected:ie})=>ie);if(b===0)return;let L=c[b-1];Qi(L.value)},Rn=(c={...uo(),selected:!1},b)=>{ae.log("set subtitles",{...c}),c.value!==Un&&Ct.next(c.isAuto?c.value+"_auto":c.value),jo.set(c),fo(b)&&(Lf(c.value===Un?void 0:c.language),re.features.userVideoPrefs&&i&&Mf(re.userSalt,String(i),{subtitleTrackId:c.value===Un?void 0:c.value}))},$r=c=>{ae.log("toggle subtitles");let b=he(po);(b==null?void 0:b.value)===Un?Lr(c):Xr(c)},yr=(c,b)=>{ae.log("change subtitle",{enabled:c}),c?Lr(!0,b):Xr(!0)},Lr=(c,b)=>{ae.log("subtitle on");let L=he(Pn),ie=he(Fe),Ie=bt!=null?bt:ie,it;b&&(it=L.find(It=>It.value===b)),it!=null||(it=L.filter(It=>It.value!==Un).find(It=>It.language===Ie)),Rn(it!=null?it:L[1],c)},Xr=c=>{ae.log("subtitle off"),Rn(void 0,c)};nt.add(k.info.availableTextTracks$.subscribe(c=>{var L;function b(){let ie=[];for(let{language:Ie,isAuto:it,id:It}of c){let Rt=Ie&&qd(Ie);Ie&&Rt&&ie.push({id:It,language:Ie,title:it?We("subtitles_auto",{language:Rt}):Rt})}return ie}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,b())}));let Ge=se(!0),Wt=c=>{Ge.set(c)},di=(c,b,L=!0)=>{var ie;if(_e({message:`seek to time, time: ${c}`}),ae.log("seek to time",{time:c,action:b,forcePrecise:L}),Ut.next(b),k.info.isLive$.getValue()){let Ie=k.info.duration$.getValue(),it=Math.min(0,Ie+c);k.seekTime(it,L)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(_e({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),k.seekTime(og(c),L)}},mn=c=>{_e({message:`seek to episode start time: ${c}`}),ae.log("seek to episode start time",{time:c}),di(c,ls.SeekAction.EPISODE,!0)},To=(c,b)=>{_e({message:`seek to percent, percent: ${c}`}),ae.log("seek to percent",{percent:c,action:b});let L=he(rn)*c;di(L,b,!1)},Fo=c=>{_e({message:`seek external, time: ${c}`}),ae.log("seek external",{time:c}),Ut.next(ls.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},Ho=c=>{var ie,Ie;let b=(ie=c.max)!=null?ie:"none",L=(Ie=c.min)!=null?Ie:"none";_e({message:`set auto quality limitation. Max: ${b}. Min: ${L}`}),ae.log("set auto quality limits",{max:b,min:L}),k.setAutoQualityLimits(c)},Mr=c=>{_e({message:`seek external to episode start time: ${c}`}),ae.log("seek external to episode start time",{time:c}),di(c,ls.SeekAction.EPISODE,!0)},Gs=c=>{_e({message:`set playback rate to: ${c}`}),ae.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},Jr=se(void 0),Nn=se(!1),Es=c=>{_e({message:`start scrubbing, progress: ${c}`}),ae.log("start scrubbing",{progress:c}),Nn.set(!0),Z(c)},Z=c=>{Jr.set(c)},qe,Dt,ri=()=>{Jr.set(void 0),Nn.set(!1)},_i=()=>{clearTimeout(Dt),clearTimeout(qe),qe=window.setTimeout(()=>{ri()},500),xe==null||xe.removeEventListener("seeked",_i)},Mi=c=>{_e({message:`complete scrubbing, progress: ${c}`}),ae.log("complete scrubbing",{progress:c}),To(c,ls.SeekAction.SLIDER),he(Ft.ui.isMobile)&&he(Ft.state.currentFormat$)===pi.VideoFormat.HLS?(xe==null||xe.addEventListener("seeked",_i),Dt=window.setTimeout(()=>{_i()},300)):ri()},Di=mi([ht,rn,Jr],([c,b,L],ie)=>{ie((0,ft.isNonNullable)(L)?L*b:c)}),vn=se(!1),Vi=()=>{vn.set(!0)},Ti=()=>{vn.set(!1)},Eo=mi([ni],([{width:c}],b)=>{let L=i0(c);b(L)}),Jn=F.filter(c=>d1(c)),er=mi([Eo,ct],([c,b])=>b?Jn.filter(L=>!L.hideOnMobile):Jn.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Ii=se(F.filter(c=>c1(c))),js=mi([Ii,Eo],([c,b])=>c.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes(b))})),Tt=mi([js,er],([c,b])=>[...re.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...re.features.additionalButtons?b.map((L,ie)=>{var Ie;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Ie=L.ariaLabel)!=null?Ie:L.tooltip,tooltipText:L.tooltip}}):[]]),pt=se(H),ho=mi([pt],([c])=>re.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?{...b,onClick:b.onChangeEnabled}:b):[]),Yo=(c,b)=>{let L=he(Ii).map(ie=>ie.id!==c?ie:{...ie,...b});Ii.set(L)},Gi=c=>{let b=he(Ii);if(b.some(L=>L.id===c.id)){_e({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Ii.set(b)},ci=c=>{let b=he(Ii);if(!b.some(L=>L.id===c)){_e({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),Ii.set(b)},Fi=c=>{Ut.next(ls.SeekAction.LIVE),_e({message:"live switch to low latency "+c}),ae.log("live switch to low latency "+c),k.setLiveLowLatency(c)},Is=(c,b)=>{let L=he(pt).map(ie=>ie.id!==c?ie:{...ie,...b});pt.set(L)},Fl=c=>{let b=he(pt);if(b.some(L=>L.id===c.id)){_e({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),pt.set(b)},wc=c=>{let b=he(pt);if(!b.some(L=>L.id===c)){_e({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),pt.set(b)},cs=se(W),Sc=mi([cs],([c])=>re.features.additionalContextMenuItems?c:[]),vp=(c,b)=>{let L=he(cs).map(ie=>ie.id!==c?ie:{...ie,...b});cs.set(L)},Cc=c=>{let b=he(cs);if(b.some(L=>L.id===c.id)){_e({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),cs.set(b)},gp=c=>{let b=he(cs);if(!b.some(L=>L.id===c)){_e({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),cs.set(b)},Tc=mi([ct,de],([c,b],L)=>{L(c&&b)}),hp=()=>{Ut.next(ls.SeekAction.LIVE),_e({message:"switch to active live"}),ae.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==pi.PlaybackState.PLAYING&&Ft.actions.internal.togglePlay()},Ec=()=>{ae.log("skip adman"),Ne.skip()},_p=(c=!0)=>{var ie;(0,ft.assertNonNullable)(Ft),_e({message:`switch from ads to video, callPlay: ${c}`}),ae.log("switch from ads to video",{callPlay:c}),ut.set("video"),c&&k.play(),l&&So(!0,!0);let b=(ie=he(rt))==null?void 0:ie.muted,L=!k.info.muted$.getValue();b!==void 0&&!L&&So(b,!0),rt.set(void 0)},Ic=()=>{(0,ft.assertNonNullable)(Ft),_e({message:"switch from video to ads"}),ae.log("switch from video to ads"),Ft.actions.internal.pause(),Ze(),ut.set("ads")},bp=c=>{(0,ft.assertNonNullable)(Ft);let b=c?"LiveWaitingStart":"thumb";ae.log("set live waiting start",{state:c,playerPhase:b}),ut.set(b)},kc=c=>{(0,ft.assertNonNullable)(Ft);let b=c?"LiveWaitingRecover":"thumb";ae.log("set live waiting recover",{state:c,playerPhase:b}),ut.set(b)},$p=c=>{(0,ft.assertNonNullable)(Ft);let b=c?"LiveWaitingRecord":"thumb";ae.log("set live waiting record",{state:c,playerPhase:b}),ut.set(b)},Ac=()=>((0,ft.assertNonNullable)(Ft),ae.log("get debug text data"),s1(k,J,Ft,Ve.getTraceId())),yp=()=>((0,ft.assertNonNullable)(Ft),JSON.stringify(Ve.getFinishedSpans())),Pc=()=>((0,ft.assertNonNullable)(Ft),a1(k,J,Ft)),Ys=()=>xe,Lc=()=>{_e({message:"toggle chromecast"}),ae.log("toggle chromecast"),k.toggleChromecast()},Mc=c=>{var L;if((0,ft.assertNonNullable)(Ft),k.info.isEnded$.getValue())return;let b=!c;if(he(Ft.playerPhase)==="ads"){_e({message:`pause ads, internalCall: ${b}`}),ae.log("pause ads",{internalCall:b}),Ne.pause();return}_e({message:`pause video, internalCall: ${b}`}),ae.log("pause video",{internalCall:b}),b&&((L=a==null?void 0:a.onPause)==null||L.call(a)),k.pause()},Hl=c=>{var L;(0,ft.assertNonNullable)(Ft);let b=!c;if(he(Ft.playerPhase)==="ads"){_e({message:`play ads, internalCall: ${b}`}),ae.log("play ads",{internalCall:b}),Ne.play();return}_e({message:`play video, internalCall: ${b}`}),ae.log("play video",{internalCall:b}),b&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),k.play()},xp=c=>{(0,ft.assertNonNullable)(Ft);let b=!c;if(he(Ft.playerPhase)==="ads"){_e({message:"player cannot be stopped during ads via external method"});return}_e({message:`player will be stopped, internalCall: ${b}`}),I==null||I()},Ul=(c,b)=>{(0,ft.assertNonNullable)(Ft),_e({message:`first start, show ads: ${c}, internalCall: ${!b}`}),ae.log("first start",{showAds:c,external:b}),c?ut.set("ads"):(ut.set("video"),b?k.play():Ft.actions.internal.togglePlay())},zl=()=>(_e({message:"getting time codes"}),f),Vc=()=>{let c=zl();if(!c||[0,1].includes(c.length))return;let b=k.info.position$.getValue();return c.find(L=>L.time>b)},wp=c=>{let b=c;b||(b=Vc());let L=k.info.position$.getValue();ae.log("seek to next episode",{currentTime:L,...b}),b&&(_e({message:"seek to next episode"}),di(b.time,ls.SeekAction.EPISODE,!0))},Ye=()=>{let c=zl();if(!c||[0,1].includes(c.length))return;let b=k.info.position$.getValue(),L=c.findIndex(Ie=>Ie.time>b),ie=L===-1?c.length-2:L-2;if(!(ie<0))return c[ie]},ui=c=>{let b=c;b||(b=Ye());let L=k.info.position$.getValue();ae.log("seek to prev episode",{currentTime:L,...b}),b&&(_e({message:"seek to prev episode"}),di(b.time,ls.SeekAction.EPISODE,!0))},Uo=()=>(_e({message:"getting preview thumbs data"}),ae.log("get preview thumbs data",{...m}),m),Zs=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())),ae.log("toggle picture in picture",{isActive:c,action:b})},gn=(c=-90)=>{ae.log("rotate video",{alphaDiff:c}),jt.update(b=>b+c)},Rc=se([]);S==null||S.subscribe(c=>{let b=[];for(let L=0;L<c.length;L++){let{range:[ie,Ie],subjects:it}=c[L];L===0&&ie!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:ie/1e3,text:"",interactive:!0,completed:re.features.interactiveTimeOpenUri?!it.length||it.every(It=>It.isRemoved):!it.length}),Ie!==1/0&&b.push({time:Ie/1e3,text:"",interactive:!1,completed:!0})}Rc.set(b)});let e_=se(!1);E==null||E.subscribe(c=>{c&&he(Nn)&&ri()});let og=c=>{if(!T)return c;let b=he(Rc),L=he(rn),Ie=he(an)/L,it=b.find(It=>It.interactive&&!It.completed&&It.time>Ie);return typeof(it==null?void 0:it.time)=="number"?Math.min(c,it.time-.05):c},t_=()=>{Ft.ui.episodes.panelOpened$.set(!1)},i_=()=>{ae.log("destroy store"),clearTimeout(Dt),clearTimeout(qe),nt.unsubscribe(),Si.unsubscribe(),k.destroy(),Ne.destroy(),ee==null||ee.destroy(),Q==null||Q.destroy(),be.unsubscribe(),Xt==null||Xt.disconnect(),Xt=null,He.destroy()},o_=mi([Ro,ze,Ci],([c,b,L])=>u.features.doubleForwardAvailable&&!c&&b==="video"&&L),Sp=se(!1),ng=2,Nc=null,rg=c=>{if(!he(Cn)&&c)return;let b=k.info.currentPlaybackRate$.getValue();c?b!==ng&&(Nc=b,Qi(ng,!1),Sp.set(!0)):(Nc&&Qi(Nc,!1),Sp.set(!1),Nc=null)};ze.subscribe(c=>{c!=="video"&&rg(!1)});let Ft={interfaceLanguage$:Fe,isCyrillicRelatedInterface$:Ae,initVideo:Ji,videoId:i,isClip:o,playerPhase:ze,vsid:$t,state:{positionExact$:ht,positionWithScrubbing$:Di,duration$:rn,playbackState$:ti,isPlaying$:Cn,isLoaderVisible:Ei,bufferedProgress$:_r,isLive$:St,canChangePlaybackSpeed$:Ci,isActiveLive$:Ro,isOldestAvailableLive$:sn,isRewindableLive$:ur,isEnded$:yi,muted$:Kn,volume$:wn,trafficSavingEnabled$:fi,highQualityEnabled$:so,autoQualityLimitingAvailable$:qn,availableVideoStreams$:yo,availableAudioStreams$:Ir,videoStream$:Tn,audioStream$:ln,currentQuality$:kn,isAutoQualityEnabled$:si,availableQualities$:dn,currentPlaybackRate$:cn,availablePlaybackRates$:co,currentSubtitle$:po,availableTextTracks$:An,availableSubtitlesList$:Pn,currentSubtitleCaptions$:ai,isAutoSubtitleCaptionVisible$:Ln,chromecastState$:Sn,chromecastDeviceName$:nn,chromecastConnected$:Yr,currentFormat$:$o,throughputEstimation$:cr,videoBitrate$:Qn,videoSize$:Er,errorLog$:we,crashed$:de,isAudioAvailable$:Gr,isAudioDisabled:!!l,canDownload:re.features.download&&!!d,availableSources$:un,hasMpegSources$:_t,isInteractive:T,showInteractiveGraph:re.features.interactiveGraph,showSeekToInteractive:re.features.seekToInteractive,showPlayPrevChapter:re.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:re.features.interactiveTimeIndicator&&!!he(Rc).length,interactiveEpisodes$:Rc,isInteractiveTime$:E?oi(E):se(!1),isInteractiveExpectation$:e_,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:B,looped$:Bo,loadedMetadata$:Ee,isAutoQualityAvailable$:vr},ui:{t:We,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$:Mt},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:et,isFullscreenOpenedByKeyboard:zt,rotateAlpha:jt,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:ni,isMobile:ct,mobileNotReportControlHidden$:Tc,icon3DVideoVisible:se(!1),scrubbingInProgress:Nn,volumeChangingInProgress:vn,is3DVideo:Yt,currentGridType$:Eo,additionalButtonsDeprecated$:er,additionalDesktopControlPanelRightButtons$:Tt,additionalSettingsMenuItems$:ho,additionalContextMenuItems$:Sc,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:Ge,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$:Sp,doubleForwardAvailable$:o_},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:Xe},actions:{internal:{preload:qi,firstStart:c=>Ul(c,!1),play:()=>Hl(!1),pause:()=>Mc(!1),togglePlay:vo,toggleMuted:xo,openSettingsMenu:Oo,closeSettingsMenu:hi,openSettingsSubMenu:to,closeSettingsSubMenu:wo,setVolume:c=>jn(c,!1),setMuted:c=>So(c,!1),startVolumeChanging:Vi,stopVolumeChanging:Ti,setVideoStream:pr,setAudioStream:c=>fr(c,!1),setQuality:(c,b)=>Li(c,b,!1),setTrafficSavingEnabled:(c,b)=>go(c,b,!1),setHighQualityEnabled:(c,b)=>fn(c,b,!1),setPlaybackRate:Qi,incrementPlaybackRate:Pr,decrementPlaybackRate:Xn,setSubtitle:c=>Rn(c,!1),toggleSubtitle:()=>$r(!1),togglePictureInPicture:Zs,startScrubbing:Es,progressScrubbing:Z,completeScrubbing:Mi,toggleChromecast:Lc,switchToActiveLive:hp,switchFromAdsToVideo:_p,switchFromVideoToAds:Ic,skipAd:Ec,setLiveWaitingStart:bp,setLiveWaitingRecover:kc,setLiveWaitingRecord:$p,getDebugTextData:Ac,getTraceTextData:yp,getDebugPanelData:Pc,getVideoElement:Ys,seekTime:(c,b,L)=>di(c,b,L),clearDelayedBufferingCheckTimeout:jr,seekEpisodeStartTime:mn,seekToPercent:To,getNextEpisode:Vc,seekToNextEpisode:wp,getPrevEpisode:Ye,seekToPrevEpisode:ui,startLogging:Mo,stopLogging:Vo,startCameraManualRotation:on,stopCameraManualRotation:N,moveCameraFocusPX:tt,holdCamera:qt,releaseCamera:Jt,getVideoEpisodes:zl,getPreviewThumbsData:Uo,downloadVideo:eo,addLanguage:Vf,setLanguage:Qe,nextMovie:gt,videoRotate:gn,correctSeekTimeToInteractive:og,replayInteractive:R,setLooped:br,reportProblem:pn,setAutoplayNextEnabled:Do,setTimerNextVideoRunning:Yn,prevVideoClick:Ar,nextVideoClick:Zn,nextVideoAnnouncementShow:st,nextVideoAnnouncementClick:Lt,nextVideoAnnouncementAuto:xi,nextVideoAnnouncementCancel:mo,checkFullscreenSupport:Qt,changeDoubleForwardOn:rg},external:{firstStart:c=>Ul(c,!0),play:()=>Hl(!0),pause:()=>Mc(!0),stop:()=>xp(!0),seekTime:c=>Fo(c),seekEpisodeStartTime:c=>Mr(c),setPlaybackRate:c=>Gs(c),setAutoQualityLimits:c=>Ho(c),setMuted:c=>So(c,!0),toggleSubtitle:()=>$r(!0),changeSubtitle:yr,setVolume:c=>jn(c,!0),returnFocusToEpisodes:t_,updateAdditionalSettingsItem:Is,addAdditionalSettingsItem:Fl,removeAdditionalSettingsItem:wc,updateAdditionalContextItem:vp,addAdditionalContextItem:Cc,removeAdditionalContextItem:gp,updateAdditionalButton:Yo,addAdditionalButton:Gi,removeAdditionalButton:ci,setLiveLowLatency:Fi,hideControls:()=>Wt(!1),showControls:()=>Wt(!0),setQuality:c=>Li(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>go(c,"to-video",!0),setHighQualityEnabled:c=>fn(c,"to-video",!0),changeAudioStream:No}},callbacks:a,setUiCallbacks:c=>{Ce={...c}},getAdmanWrapper:()=>Ne,getLogger:()=>ot,getPlayer:()=>k,destroy:i_};return Ft};function zn(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}=xs(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 ky=["disabledControls$","additionalButtons"],Ay=["interactiveTimeIndicator"],El=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!ky.includes(n)){let l=o||Ay.includes(n);s.set(zn(t,i,n,l))}}};var Wu=async(t,e,i)=>{await ko(),e&&i&&(i.focus(),t.set(!1))};var Py=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Lm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Py();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}function Mm(t,e){U(e,!0);let[i,o]=Oe(),n=()=>C(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Se(),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);Ue(()=>{r(y)&&Et(()=>{u.set(r(y))})});let w=E=>{let R=Us(E),I=q1(r(y));m.set(I),p.set(R),a.set(!n())},x=()=>{f.set(!0)},T=()=>{f.set(!1)},S=g(()=>n()?"opened":"");Ot(t,{get className(){return r(S)},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)=>{Lm(E,{})},$$slots:{default:!0}}),z(),o()}var Ly=t=>{t.stopPropagation()},My=M("<div><!> <div></div> <div></div></div>"),Vy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
227
234
 
228
235
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
236
  }
@@ -248,8 +255,8 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
248
255
  opacity: 0;
249
256
  }
250
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);
251
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Wd(t,e){var ee;U(e,!0),q(t,yy);let[i,o]=He(),n=()=>C(S,"$isMobile",i),s=()=>C(k,"$areControlsVisible",i),l=()=>C(V,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(x,"$interactiveControlsOpacity$",i),p=()=>C(L,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),m=v(e,"ref",15,void 0),u=Y(void 0),y=Ee(),w=vo(),{interactiveControlsOpacity$:x}=w,S=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,L=w.showInteractiveTimeIndicatorTooltip$,k=y.ui.controlsVisible,I=(ee=y.callbacks)==null?void 0:ee.onInteractiveTimeIndicatorClick,V=y.ui.currentGridType$,G=g(()=>!n()&&s()),H=g(()=>qs(l(),"s")),F=g(()=>!d()||!!a()||r(G)),W=Y(!1);Ke(()=>{B(W,r(F),!0)});let J=()=>{B(W,!0)},j=()=>{var me;le(),(me=r(u))==null||me.addEventListener("animationiteration",J,{once:!0})},le=()=>{var me;B(W,!1),(me=r(u))==null||me.removeEventListener("animationiteration",J)},ie=me=>{L.set(me)},pe=g(()=>p()&&!r(F));Ke(()=>{p()?j():le()});let he=()=>{r(F)||(L.set(!0),I==null||I())};rn(()=>{L.clearTimeout(),le()});let ue=()=>{L.set(!1)},Ne=K("tooltip_interactive_interaction_time_indicator");var oe=$y();let Ve;oe.__mousemove=[by],oe.__click=he;var ne=_(oe);Eo(ne,{get tooltipContent(){return Ne},get tooltipActive(){return r(pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ie,get ref(){return m()},set ref(me){m(me)},children:(me,De)=>{Rd(me,{completed:!0})},$$slots:{default:!0}});var O=A(ne,2);let ce;ot(O,me=>m(me),()=>m());var Le=A(O,2);let ve;ot(Le,me=>B(u,me),()=>r(u)),h(oe),D((me,De,fe)=>{Ve=te(oe,1,"interactive-episode-icon-animated svelte-od3veb",null,Ve,me),ce=te(O,1,"ref-block svelte-od3veb",null,ce,De),ve=te(Le,1,"pulse svelte-od3veb",null,ve,fe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(W)})]),Et("mouseleave",oe,ue),$(t,oe),z(),o()}ut(["mousemove","click"]);function Nu(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);Eo(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=qe();let p=g(()=>e.buttonComponent);var f=ge(a);Ci(f,()=>r(p),(m,u)=>{u(m,ys(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var Ss={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var wy=Ce('<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 xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=wy();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}function Qs(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");xm(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 Sy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Cy=M("<!> <!>",1),Ty={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Aa(t,e){U(e,!0),q(t,Ty);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Ee().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}`);Nt(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=Cy(),y=ge(u);{var w=T=>{var E=Sy();$(T,E)};R(y,T=>{o()&&T(w)})}var x=A(y,2);let S=g(()=>e.type==="prev");Qs(x,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,u)},$$slots:{default:!0}}),z()}var Ey=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Kd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var J1=require("@vkontakte/videoplayer-shared/es2018");var Iy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ky=M("<!> <div><!></div>",1),Ay={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Il(t,e){U(e,!0),q(t,Ay);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,J1.noop),d=K("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Nt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return os.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var m=ky(),u=ge(m);{var y=T=>{var E=Iy();$(T,E)};R(u,T=>{o()&&T(y)})}var w=A(u,2);let x;var S=_(w);Kd(S,{}),h(w),D(T=>x=te(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),$(p,m)},$$slots:{default:!0}}),z()}var Py=Ce('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Wr(t,e){"use strict";let i=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=Py(),d=_(l);h(l),D(()=>{Fe(l,"width",i()),Fe(l,"height",o()),Fe(l,"viewBox",n()),Fe(d,"fill",s())}),$(t,l)}var My=Ce('<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 Cs(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=My(),d=_(l);h(l),D(()=>{Fe(l,"width",i()),Fe(l,"height",o()),Fe(l,"viewBox",n()),Fe(d,"fill",s())}),$(t,l)}var e0=require("@vkontakte/videoplayer-shared/es2018");var Ly=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Vy=M("<!> <div><!></div>",1),Ry={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 kl(t,e){U(e,!0),q(t,Ry);let[i,o]=He(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=vo(),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,e0.noop),y=Ee().ui.t,{toggle:w}=s,x=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?y("tooltip_pause"):y("tooltip_play")),L=g(()=>r(T)?Cs:Wr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(S)?r(x):m());Nt(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(I)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return os.KeyK},get ref(){return l()},set ref(V){l(V)},children:(V,G)=>{var H=Vy();let F=g(()=>r(L));var W=ge(H);{var J=pe=>{var he=Ly();$(pe,he)};R(W,pe=>{d()&&pe(J)})}var j=A(W,2);let le;var ie=_(j);Ci(ie,()=>r(F),(pe,he)=>{he(pe,{})}),h(j),D(pe=>le=te(j,1,"svelte-1ot3duq",null,le,pe),[()=>({mobile:d()})]),$(V,H)},$$slots:{default:!0}}),z(),o()}var Ny=Ce('<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 wm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}function qd(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=K("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Nt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{wm(d,{})},$$slots:{default:!0}}),z()}var Oy=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),By={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 Qd(t,e){U(e,!0),q(t,By);let[i,o]=He(),n=()=>C(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Ee(),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");Nt(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=Oy(),S=_(x);let T;var E=_(S);{var L=I=>{Wr(I,{width:"14",height:"14",fill:"#000"})},k=I=>{Cs(I,{width:"14",height:"14",fill:"#000"})};R(E,I=>{n()?I(L):I(k,!1)})}h(S),h(x),D(I=>T=te(S,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:n()})]),$(y,x)},$$slots:{default:!0}}),z(),o()}var Dy=Ce('<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 Sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}function Gd(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=K("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Nt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Sm(d,{})},$$slots:{default:!0}}),z()}var Hy=Ce('<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 Cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var Fy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Tm(t,e){q(t,Fy);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Cm(t,{get"data-testid"(){return r(o)}})}function jd(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=Ee().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Nt(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());Tm(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}var Em=require("@vkontakte/videoplayer-core/es2018");function Yd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(p,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===Em.PlaybackState.PAUSED&&m()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),x=g(()=>l()&&n()===Em.PlaybackState.PLAYING);Nt(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:(S,T)=>{xd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}var Im=require("@vkontakte/videoplayer-shared/es2018");var Uy=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),zy=M('<img class="icon" aria-hidden="true"/>');function Pa(t,e){"use strict";let i=Y(!1),o=()=>{B(i,!0)};var n=qe(),s=ge(n);{var l=a=>{var p=Uy();$(a,p)},d=a=>{var p=zy();D(()=>Fe(p,"src",e.icon)),Et("error",p,o),aa(p),$(a,p)};R(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function km(t,e){U(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Im.noop),n=v(e,"ref",15),s=g(()=>o()===Im.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Eo(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});Nt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(m,u)=>{Pa(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var t0=t=>!!t.buttonComponent;var Ts={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Ou=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Fn(t,i,n,o))};var qy=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),Qy={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 Pm(t,e){var xo,Zn;U(e,!0),q(t,Qy);let[i,o]=He(),n=()=>C(yt,"$disabledControls$",i),s=()=>C(Xt,"$adPlaybackState",i),l=()=>C(Wt,"$playbackState$",i),d=()=>C(Ko,"$currentSubtitle$",i),a=()=>C(si,"$isEnded$",i),p=()=>C(fi,"$currentGridType$",i),f=()=>C(ct,"$isLive$",i),m=()=>C(no,"$chromecastState$",i),u=()=>C(qi,"$isPictureInPictureActive",i),y=()=>C(ko,"$pictureInPictureType$",i),w=()=>C(Ao,"$availableSubtitlesList$",i),x=()=>C(Po,"$contextMenuOpenedByKeyboard$",i),S=()=>C(Ei,"$showContextMenuBtn$",i),T=()=>C(Yt,"$playerSize",i),E=()=>C(Xi,"$isRewindableLive$",i),L=()=>C(ii,"$isActiveLive$",i),k=()=>C(ar,"$graphIsOpened$",i),I=()=>C(Ze,"$contextMenuVisible$",i),V=()=>C(Dt,"$isFullscreen",i),G=()=>C(vt,"$autoplayNextEnabled",i),H=()=>C(r(Er),"$prevButton",i),F=()=>C(r(Gr),"$replayButton",i),W=()=>C(r(at),"$playButton",i),J=()=>C(r(oi),"$nextButton",i),j=()=>C(r(ao),"$playPrevChapterButton",i),le=()=>C(r(lo),"$seekToInteractiveButton",i),ie=()=>C(r(gn),"$interactiveGraphButton",i),pe=()=>C(r(co),"$liveButton",i),he=()=>C(r(hi),"$time",i),ue=()=>C(r(Ni),"$episodes",i),Ne=()=>C(r(Oi),"$vkLogo",i),oe=()=>C(r(hn),"$volume",i),Ve=()=>C(r(fr),"$subtitles",i),ne=()=>C(r(cs),"$settings",i),O=()=>C(r(jr),"$context",i),ce=()=>C(r(us),"$fullscreen",i),Le=()=>C(r(mr),"$chromecast",i),ve=()=>C(gi,"$additionalDesktopControlPanelRightButtons$",i),ee=()=>C(Lo,"$isInteractiveTime$",i),me=()=>C(ci,"$settingsMenuVisible",i),De=()=>C(_i,"$settingButtonRef$",i),fe=()=>C(Mo,"$startedByKeyboard$",i),dt=()=>C(it,"$isAudioAvailable$",i),Z=()=>C(Ft,"$fakeIsPlaying$",i),Pe=()=>C(Qo,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>C(ht,"$adPosition",i),Ue=()=>C(Pt,"$position$",i),nt=()=>C(Je,"$adDuration",i),ft=()=>C(Ye,"$duration$",i),mt=v(e,"playerControlsWrapperRef",15,void 0),St=v(e,"playerControlsRef",15,void 0),Xe=v(e,"isAds",3,!1),Ht=v(e,"logoTargetUrl",3,""),Qt=v(e,"isOneVideoPlaylist",3,!1),Gt=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ft}=vo(),re=Ee(),Bt=vo(),_e=At(),xe=re.actions.internal.toggleMuted,de=re.actions.internal.togglePlay,Be=re.actions.internal.pause,We=re.actions.internal.toggleSubtitle,ke=re.actions.internal.checkFullscreenSupport,Qe=(xo=re.callbacks)==null?void 0:xo.onAudioDoesNotExistHint,Re=(Zn=re.callbacks)==null?void 0:Zn.onAudioDisabledHint,Ye=re.state.duration$,Pt=re.state.positionWithScrubbing$,Wt=re.state.playbackState$,it=re.state.isAudioAvailable$,ri=re.state.isAudioDisabled,si=re.state.isEnded$,ct=re.state.isLive$,ii=re.state.isActiveLive$,Xi=re.state.isRewindableLive$,{isActive$:qi,type$:ko}=Bt.pictureInPicture$,ci=re.ui.settingsMenu.visible$,pi=re.ui.settingsMenu.openedByBtnKeyboard$,Ut=re.ui.controls,jt=re.actions.internal.getVideoEpisodes(),no=re.state.chromecastState$,Ao=re.state.availableSubtitlesList$,Ko=re.state.currentSubtitle$,yt=Ut.disabledControls$,Ze=re.ui.contextMenu.visible$,Ei=re.ui.contextMenu.showContextMenuBtn$,Po=re.ui.contextMenu.openedByBtnKeyboard$,Mo=re.ui.startedByKeyboard$,an=re.ui.controlBlocks,N=re.ui.t,Je=re.ads.duration,ht=re.ads.position,Xt=re.ads.playbackState,Dt=re.ui.isFullscreen,Yt=re.ui.playerSize,fi=re.ui.currentGridType$,gi=re.ui.additionalDesktopControlPanelRightButtons$,vt=re.ui.autoplayNextEnabled$,Vi=re.actions.internal.getVideoElement,ln=re.actions.internal.replayInteractive,dn=re.actions.internal.prevVideoClick,qo=re.actions.internal.nextVideoClick,ui=re.state.isInteractive,Lo=re.state.isInteractiveTime$,wr=re.state.showInteractiveGraph,ro=re.state.showSeekToInteractive,so=re.state.showPlayPrevChapter,cn=re.state.showInteractiveTimeIndicator,un=re.state.playPrevChapterDisabledTooltip,Qo=Bt.seekToInteractiveDisabledTooltip$,ar=Bt.graphIsOpened$,En=_e.features.interactiveResponsiveUi,Sr=g(()=>n().has("EPISODE_BUTTON")),as=g(()=>n().has("GRAPH_BUTTON")),In=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Cr=g(()=>n().has("PLAY_BUTTON")),zn=g(()=>n().has("REPLAY_BUTTON")),Wn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Vo=()=>re.actions.internal.toggleChromecast(),Ri=g(()=>Xe()?s()==="playing":l()===Ma.PlaybackState.PLAYING),kn=g(()=>d().value!=="off"),An=g(()=>a()&&!Xe()||ui),Pn=g(()=>En?r(An)&&ji(p(),"m"):r(An)),lr=g(()=>!a()||ui||Xe()),dr=g(()=>ji(p(),"m")),cr=g(()=>e.showNextPrevButtons&&ji(p(),"m")&&!Xe()&&e.nextButtonActive),ur=g(()=>e.showNextPrevButtons&&ji(p(),"m")&&!Xe()&&e.prevButtonActive),Tr=g(()=>!Xe()&&!!f()),ls=g(()=>m()!==Ma.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&ji(p(),"m")&&!ui),Kn=g(()=>e.showAutoplayNext&&!Qt()&&ji(p(),"s")),go=g(()=>w().length>0&&ji(p(),"m")),Mn=g(()=>x()||S()),pn=g(()=>ji(p(),"s")&&!Xe()),gt=g(()=>!e.logoHidden&&!Xe()),Jt=g(()=>_e.features.fullscreen&&ke()&&(e.logoHidden||ji(p(),En?"xs":"s"))&&!(u()&&y()===1)&&(ui?Gt():!0)),Go=g(()=>(!f()||Xe())&&!(_e.features.interactiveHideTime&&ui)),qn=g(()=>T().width>100),fn=g(()=>wr&&ji(p(),"m")),ho=g(()=>En?ro&&ji(p(),"s"):ro),Ii=g(()=>En?so&&ji(p(),"s"):so),xi=g(()=>!Xe()&&!f()&&!!(jt!=null&&jt.length)&&r(dr)&&!r(Sr)),jo=g(()=>!E()||!!L()),Qn=g(()=>k()?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off")),qr=g(()=>I()?N("tooltip_context_menu_close"):N("tooltip_context_menu_open")),Qr=(wt,$t)=>wt?$t&&$t===Ma.PlaybackState.PAUSED?N("tooltip_play"):"":N("tooltip_live"),pr=g(()=>Qr(r(jo),l())),mn=g(()=>_e.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),ds=g(()=>r(kn)?N("tooltip_subtitles_on"):N("tooltip_subtitles_off")),Ln=g(()=>V()?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off")),Ro=g(()=>m()===Ma.ChromecastState.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off")),Gn=g(()=>G()?N("tooltip_autoplay_on"):N("tooltip_autoplay_off")),vn=Y(0),Kt=ti({}),jn=ti({}),Er=g(()=>Ut.prevButton),Gr=g(()=>Ut.replayButton),at=g(()=>Ut.playButton),oi=g(()=>Ut.nextButton),ao=g(()=>Ut.playPrevChapterButton),lo=g(()=>Ut.seekToInteractiveButton),gn=g(()=>Ut.interactiveGraphButton),co=g(()=>Ut.liveButton),hi=g(()=>Ut.time),Ni=g(()=>Ut.episodes),Oi=g(()=>Ut.vkLogo),hn=g(()=>Ut.volume),fr=g(()=>Ut.subtitles),cs=g(()=>Ut.settings),jr=g(()=>Ut.context),us=g(()=>Ut.fullscreen),mr=g(()=>Ut.chromecast),_o=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:W()?W().right-W().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:le()?le().right-le().left:0,interactiveGraphButton:ie()?ie().right-ie().left:0,liveButton:pe()?pe().right-pe().left:0,time:he()?he().right-he().left:0,episodes:ue()?ue().right-ue().left:0,vkLogo:Ne()?Ne().right-Ne().left:0,volume:oe()?oe().right-oe().left:0,subtitles:Ve()?Ve().right-Ve().left:0,settings:ne()?ne().right-ne().left:0,context:O()?O().right-O().left:0,fullscreen:ce()?ce().right-ce().left:0,chromecast:Le()?Le().right-Le().left:0,additionalButtons:ve().length?ve().reduce(wt=>[...wt,40],[]):[]})),Vn=Y(0);Ke(()=>{(!r(Vn)||r(Vn)<r(_o).time)&&Ct(()=>B(Vn,r(_o).time,!0))});let Ir=Y(!1);Ke(()=>{let wt=0;r(xi)&&(ji(p(),"xl")?wt=r(_o).time:wt=60);let $t=r(_o).prevButton+r(_o).playButton+r(_o).nextButton+r(_o).seekToInteractiveButton+r(_o).interactiveGraphButton+r(_o).liveButton+r(Vn)+wt;B(Ir,r(Go)&&r(vn)>=$t,!0)});let kr=g(()=>r(Ir)&&ji(p(),"m")),rt=(0,Am.debounceFn)(El,260),kt=(0,Am.debounceFn)(Ou,260);Ke(()=>{T(),ee(),rt(Vi(),Ut,Kt,e.showControls),kt(Vi(),an,jn,e.showControls)}),Ke(()=>{jn.bottom=mt()});let _i=se();Ke(()=>{me(),De()&&Ct(()=>bl(De(),me(),pi))});let uo;Ke(()=>{fe(),Ct(()=>Ru(Mo,fe(),uo))});function po(){zs({isAudioDisabled:ri,isAudioAvailable:dt(),isAds:Xe(),audioIsNotExistHintCallback:Qe,audioDisabledHintCallback:Re})&&xe()}let Ji=ui?ln:de,eo=g(()=>Z()!==null),fo=g(()=>r(eo)?Z():r(Ri)),Rn=g(()=>r(fo)?N("tooltip_pause"):N("tooltip_play")),bo=N("tooltip_episodes"),$o=g(()=>{var wt,$t,mo,Jo;return r(ur)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ss.prevButton,buttonComponent:Aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:dn.bind(null,!0)},tooltipEnabled:!(($t=(wt=re.callbacks)==null?void 0:wt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((Jo=(mo=re.callbacks)==null?void 0:mo.uiInfo)!=null&&Jo.onPrevButtonMouseLeave),mouseEnter:()=>{var Qi,ai,Fi;(Fi=(ai=(Qi=re.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:ai.onPrevButtonMouseEnter)==null||Fi.call(ai,Fn(Vi(),Kt,"prevButton",e.showControls))},mouseLeave:()=>{var Qi,ai,Fi;(Fi=(ai=(Qi=re.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:ai.onPrevButtonMouseLeave)==null||Fi.call(ai,Fn(Vi(),Kt,"prevButton",e.showControls))},tooltipText:N("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),No=g(()=>r(Pn)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ss.replayButton,buttonComponent:Il,buttonComponentProps:{disabled:r(zn),click:Ji},tooltipText:N("tooltip_restart"),disabled:r(zn)}:void 0),Yn=g(()=>r(lr)?{id:"playButton",type:"desktop-control-panel-left",weight:Ss.playButton,buttonComponent:kl,buttonComponentProps:{disabled:r(Cr),isPlaying:r(Ri),click:de},tooltipText:r(Rn),disabled:r(Cr)}:void 0),Yo=g(()=>{var wt,$t,mo,Jo;return r(cr)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ss.nextButton,buttonComponent:Aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:qo.bind(null,!0)},tooltipEnabled:!(($t=(wt=re.callbacks)==null?void 0:wt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((Jo=(mo=re.callbacks)==null?void 0:mo.uiInfo)!=null&&Jo.onNextButtonMouseLeave),mouseEnter:()=>{var Qi,ai,Fi;(Fi=(ai=(Qi=re.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:ai.onNextButtonMouseEnter)==null||Fi.call(ai,Fn(Vi(),Kt,"nextButton",e.showControls))},mouseLeave:()=>{var Qi,ai,Fi;(Fi=(ai=(Qi=re.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:ai.onNextButtonMouseLeave)==null||Fi.call(ai,Fn(Vi(),Kt,"nextButton",e.showControls))},tooltipText:N("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ar=g(()=>ui&&r(Ii)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ss.playPrevChapterButton,buttonComponent:qd,buttonComponentProps:{disabled:r(Wn),click:e.playPrevChapter},tooltipText:N("tooltip_interactive_go_back"),disabledTooltipContent:N(un),disabled:r(Wn)}:void 0),vr=g(()=>ui&&r(ho)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ss.seekToInteractiveButton,buttonComponent:Gd,buttonComponentProps:{disabled:r(In),click:e.seekToInteractive},tooltipText:N("tooltip_interactive_seek"),disabled:r(In),disabledTooltipContent:N(Pe())}:void 0),Pr=g(()=>ui&&r(fn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ss.interactiveGraphButton,buttonComponent:jd,buttonComponentProps:{disabled:r(as),click:ar.toggle,graphIsOpened:k()},tooltipText:r(Qn)}:void 0),yo=g(()=>r(Tr)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ss.liveButton,buttonComponent:Yd,buttonComponentProps:{isLiveActive:r(jo),ariaLabel:r(pr)},tooltipText:r(pr),disabled:r(jo)&&l()===Ma.PlaybackState.PLAYING}:void 0),Mr=g(()=>[r($o),r(No),r(Yn),r(Yo),r(Ar),r(vr),r(Pr),r(yo)].filter(wt=>!!wt).sort(ya)),ze=g(()=>r(gt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ts.vkLogo,buttonComponent:Bd,buttonComponentProps:{targetUrl:Ht(),logoClickable:e.logoClickable,click:Be},tooltipText:r(mn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Zt=g(()=>r(Kn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ts.autoplayNext,buttonComponent:Qd,tooltipText:r(Gn)}:void 0),bi=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ts.volume,buttonComponent:om,buttonComponentProps:{click:po,isAds:Xe()}})),_n=g(()=>r(go)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ts.subtitles,buttonComponent:Jf,buttonComponentProps:{isSubtitlesEnabled:r(kn),click:We},tooltipText:r(ds)}:void 0),Zo=g(()=>r(pn)?{id:"settings",type:"desktop-control-panel-right",weight:Ts.settings,buttonComponent:Sl,buttonComponentProps:{ref$:_i},tooltipText:me()?void 0:N("tooltip_settings_off")}:void 0),we=g(()=>_e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ts.context,buttonComponent:ym,buttonComponentProps:{ariaLabel:N("aria_label_context_menu")},className:r(Mn)?"":"out-of-view",tooltipText:r(qr)}:void 0),xt=g(()=>r(Jt)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ts.fullscreen,buttonComponent:Od,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Ln)}:void 0),ni=g(()=>r(ls)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ts.chromecast,buttonComponent:Dd,buttonComponentProps:{state:m(),click:Vo},tooltipText:r(Ro)}:void 0),wi=g(()=>[r(ze),r(Zt),r(bi),r(_n),r(Zo),r(we),r(xt),r(ni),...ve()].filter(wt=>!!wt).sort(ya));var Xo=qy(),Bi=ge(Xo);let Di;var lt=_(Bi);let zt=g(()=>!e.showControls),Hi=g(()=>!r(qn));Ia(lt,{get isHidden(){return r(zt)},get timelineNotAvailable(){return r(Hi)},get isAds(){return Xe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return Kt.timeline},set ref(wt){Kt.timeline=wt}});var bn=A(lt,2),$n=_(bn),gr=_($n);Si(gr,17,()=>r(Mr),wt=>wt.id,(wt,$t)=>{Nu(wt,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get tooltipEnabled(){return r($t).tooltipEnabled},get mouseEnter(){return r($t).mouseEnter},get mouseLeave(){return r($t).mouseLeave},get ref(){return Kt[r($t).id]},set ref(mo){Kt[r($t).id]=mo}})});var Lr=A(gr,2);{var ps=wt=>{let $t=g(()=>!e.showControls),mo=g(()=>Xe()?Ie():Ue()),Jo=g(()=>Xe()?nt():ft());Vd(wt,{get isHidden(){return r($t)},isMobile:!1,get showDuration(){return r(kr)},get position(){return r(mo)},get duration(){return r(Jo)},get ref(){return Kt.time},set ref(Qi){Kt.time=Qi}})};R(Lr,wt=>{r(Go)&&wt(ps)})}var ki=A(Lr,2);let Ai=g(()=>!r(xi));Eo(ki,{className:"w-max",get disabled(){return r(Ai)},get tooltipContent(){return bo},get ref(){return Kt.episodes},set ref(wt){Kt.episodes=wt},children:(wt,$t)=>{var mo=qe(),Jo=ge(mo);{var Qi=ai=>{Fd(ai,{get position(){return Ue()},get duration(){return ft()},get timeCodes(){return jt}})};R(Jo,ai=>{r(xi)&&ai(Qi)})}$(wt,mo)},$$slots:{default:!0}}),h($n);var Oo=A($n,2);Si(Oo,21,()=>r(wi),wt=>wt.id,(wt,$t)=>{var mo=qe(),Jo=ge(mo);{var Qi=Fi=>{Nu(Fi,{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 Kt[r($t).id]},set ref(Is){Kt[r($t).id]=Is}})},ai=Fi=>{let Is=g(()=>!!r($t).disabled);km(Fi,{get id(){return r($t).id},get testId(){return r($t).testId},get icon(){return r($t).icon},get ariaLabel(){return r($t).ariaLabel},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r(Is)},get onClick(){return r($t).onClick},get disableMouseupTooltipShow(){return r($t).disableMouseupTooltipShow},get ref(){return Kt[r($t).id]},set ref(Vr){Kt[r($t).id]=Vr}})};R(Jo,Fi=>{t0(r($t))?Fi(Qi):Fi(ai,!1)})}$(wt,mo)}),h(Oo),h(bn),ot(bn,wt=>St(wt),()=>St()),h(Bi),ot(Bi,wt=>mt(wt),()=>mt());var Bo=A(Bi,2);{var hr=wt=>{Wd(wt,{get ref(){return Kt.interactiveTimeIndicator},set ref($t){Kt.interactiveTimeIndicator=$t}})};R(Bo,wt=>{cn&&wt(hr)})}D(wt=>Di=te(Bi,1,"wrapper-bottom svelte-1iiubm3",null,Di,wt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),sr($n,"clientWidth",wt=>B(vn,wt)),$(t,Xo),z(),o()}var Al=require("@vkontakte/videoplayer-core/es2018");var Mm=require("@vkontakte/videoplayer-shared/es2018");var Gy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),jy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Yy={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 Lm(t,e){q(t,Yy);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Mm.noop),n=g(()=>o()===Mm.noop),s=g(()=>r(n)||i()),l=Y(!1),d=()=>{B(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Nt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(p,f)=>{var m=qe(),u=ge(m);{var y=x=>{var S=Gy();$(x,S)},w=x=>{var S=jy();D(()=>Fe(S,"src",e.iconUrl)),Et("error",S,d),aa(S),$(x,S)};R(u,x=>{r(l)?x(y):x(w,!1)})}$(p,m)},$$slots:{default:!0}})}var Zy=Ce('<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 Vm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var i0=require("@vkontakte/videoplayer-shared/es2018");var Xy=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),Jy={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Bu(t,e){U(e,!0),q(t,Jy);let i=v(e,"muted",3,!1),o=v(e,"click",3,i0.noop),n=v(e,"ref",15,void 0),l=Ee().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Vm:Ks),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Nt(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=Xy();let y=g(()=>r(a));var w=_(u);Ci(w,()=>r(y),(x,S)=>{S(x,{})}),h(u),$(f,u)},$$slots:{default:!0}}),z()}var e4=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Rm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=e4();Ae(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(3),h(o),$(t,o)}var t4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Nm(t,e){q(t,t4);let i=v(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Rm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var o0=require("@vkontakte/videoplayer-shared/es2018");function Om(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,o0.noop),s=K("menu_pip");Nt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Nm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var Bm=require("@vkontakte/videoplayer-shared/es2018");var i4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},o4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},n4=M("<div><!></div>"),r4=M("<div><!></div>"),s4=M("<div><!></div>"),a4=M("<!> <!> <!>",1),l4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),d4=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),c4=M("<div><!></div> <!> <div><!></div>",1),u4=M('<div aria-hidden="true">\xB7</div> <!>',1),p4=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),f4={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 Gd(t,e){var Q;U(e,!0),K(t,Vy);let[i,o]=Oe(),n=()=>C(T,"$isMobile",i),s=()=>C(I,"$areControlsVisible",i),l=()=>C(B,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(x,"$interactiveControlsOpacity$",i),p=()=>C(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(S,"$isFullscreen",i),m=v(e,"ref",15,void 0),u=X(void 0),y=Se(),w=_o(),{interactiveControlsOpacity$:x}=w,T=y.ui.isMobile,S=y.ui.isFullscreen,E=y.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,I=y.ui.controlsVisible,P=(Q=y.callbacks)==null?void 0:Q.onInteractiveTimeIndicatorClick,B=y.ui.currentGridType$,F=g(()=>!n()&&s()),H=g(()=>ys(l(),"s")),W=g(()=>!d()||!!a()||r(F)),Y=X(!1);Ue(()=>{O(Y,r(W),!0)});let oe=()=>{O(Y,!0)},G=()=>{var te;ge(),(te=r(u))==null||te.addEventListener("animationiteration",oe,{once:!0})},ge=()=>{var te;O(Y,!1),(te=r(u))==null||te.removeEventListener("animationiteration",oe)},ee=te=>{R.set(te)},fe=g(()=>p()&&!r(W));Ue(()=>{p()?G():ge()});let ue=()=>{r(W)||(R.set(!0),P==null||P())};en(()=>{R.clearTimeout(),ge()});let ce=()=>{R.set(!1)},Pe=q("tooltip_interactive_interaction_time_indicator");var Me=My();let re;Me.__mousemove=[Ly],Me.__click=ue;var Ve=_(Me);Po(Ve,{get tooltipContent(){return Pe},get tooltipActive(){return r(fe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ee,get ref(){return m()},set ref(te){m(te)},children:(te,Re)=>{Dd(te,{completed:!0})},$$slots:{default:!0}});var ae=A(Ve,2);let k;at(ae,te=>m(te),()=>m());var ot=A(ae,2);let Ne;at(ot,te=>O(u,te),()=>r(u)),h(Me),D((te,Re,Xe)=>{re=ne(Me,1,"interactive-episode-icon-animated svelte-od3veb",null,re,te),k=ne(ae,1,"ref-block svelte-od3veb",null,k,Re),Ne=ne(ot,1,"pulse svelte-od3veb",null,Ne,Xe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(W),"icon-small":r(H)}),()=>({hidden:r(W)}),()=>({paused:r(Y)})]),kt("mouseleave",Me,ce),$(t,Me),z(),o()}dt(["mousemove","click"]);function Ku(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);Po(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=Be();let p=g(()=>e.buttonComponent);var f=pe(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 ws={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Ny=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Vm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}function jd(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");Vm(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 Oy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),By=M("<!> <!>",1),Dy={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 Pa(t,e){U(e,!0),K(t,Dy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Se().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}`);Ot(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=By(),y=pe(u);{var w=S=>{var E=Oy();$(S,E)};V(y,S=>{o()&&S(w)})}var x=A(y,2);let T=g(()=>e.type==="prev");jd(x,{get isMobile(){return o()},get isPrev(){return r(T)}}),$(f,u)},$$slots:{default:!0}}),z()}var Fy=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Yd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var h0=require("@vkontakte/videoplayer-shared/es2018");var Hy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Uy=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 Il(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,h0.noop),d=q("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Ot(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=Uy(),u=pe(m);{var y=S=>{var E=Hy();$(S,E)};V(u,S=>{o()&&S(y)})}var w=A(u,2);let x;var T=_(w);Yd(T,{}),h(w),D(S=>x=ne(w,1,"svelte-1ot3duq",null,x,S),[()=>({mobile:o()})]),$(p,m)},$$slots:{default:!0}}),z()}var Wy=ye('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function 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=Wy(),d=_(l);h(l),D(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",s())}),$(t,l)}var Ky=ye('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Ss(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=Ky(),d=_(l);h(l),D(()=>{De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",n()),De(d,"fill",s())}),$(t,l)}var _0=require("@vkontakte/videoplayer-shared/es2018");var qy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Qy=M("<!> <div><!></div>",1),Gy={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 kl(t,e){U(e,!0),K(t,Gy);let[i,o]=Oe(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=_o(),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,_0.noop),y=Se().ui.t,{toggle:w}=s,x=g(()=>w),T=g(()=>n()!==null),S=g(()=>r(T)?n():a()),E=g(()=>r(S)?y("tooltip_pause"):y("tooltip_play")),R=g(()=>r(S)?Ss:Kr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),P=g(()=>r(T)?r(x):m());Ot(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(P)},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=Qy();let W=g(()=>r(R));var Y=pe(H);{var oe=fe=>{var ue=qy();$(fe,ue)};V(Y,fe=>{d()&&fe(oe)})}var G=A(Y,2);let ge;var ee=_(G);Ai(ee,()=>r(W),(fe,ue)=>{ue(fe,{})}),h(G),D(fe=>ge=ne(G,1,"svelte-1ot3duq",null,ge,fe),[()=>({mobile:d()})]),$(B,H)},$$slots:{default:!0}}),z(),o()}var jy=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Rm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=jy();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}function Zd(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":"");Ot(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)=>{Rm(d,{})},$$slots:{default:!0}}),z()}var Yy=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Zy={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 Xd(t,e){U(e,!0),K(t,Zy);let[i,o]=Oe(),n=()=>C(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Se(),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");Ot(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=Yy(),T=_(x);let S;var E=_(T);{var R=P=>{Kr(P,{width:"14",height:"14",fill:"#000"})},I=P=>{Ss(P,{width:"14",height:"14",fill:"#000"})};V(E,P=>{n()?P(R):P(I,!1)})}h(T),h(x),D(P=>S=ne(T,1,"toggler svelte-et3q1q",null,S,P),[()=>({enabled:n()})]),$(y,x)},$$slots:{default:!0}}),z(),o()}var Xy=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Nm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}function Jd(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":"");Ot(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)=>{Nm(d,{})},$$slots:{default:!0}}),z()}var Jy=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Om(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var e4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Bm(t,e){K(t,e4);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Om(t,{get"data-testid"(){return r(o)}})}function ec(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=Se().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Ot(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());Bm(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}var Dm=require("@vkontakte/videoplayer-core/es2018");function tc(t,e){U(e,!0);let[i,o]=Oe(),n=()=>C(p,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Se(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===Dm.PlaybackState.PAUSED&&m()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),x=g(()=>l()&&n()===Dm.PlaybackState.PLAYING);Ot(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,S)=>{Td(T,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}var Fm=require("@vkontakte/videoplayer-shared/es2018");var t4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),i4=M('<img class="icon" aria-hidden="true"/>');function La(t,e){"use strict";let i=X(!1),o=()=>{O(i,!0)};var n=Be(),s=pe(n);{var l=a=>{var p=t4();$(a,p)},d=a=>{var p=i4();D(()=>De(p,"src",e.icon)),kt("error",p,o),da(p),$(a,p)};V(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function Hm(t,e){U(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Fm.noop),n=v(e,"ref",15),s=g(()=>o()===Fm.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Po(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});Ot(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)=>{La(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var b0=t=>!!t.buttonComponent;var Cs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var qu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(zn(t,i,n,o))};var r4=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),s4={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 zm(t,e){var Ii,js;U(e,!0),K(t,s4);let[i,o]=Oe(),n=()=>C(yt,"$disabledControls$",i),s=()=>C(Jt,"$adPlaybackState",i),l=()=>C(rt,"$playbackState$",i),d=()=>C(Bi,"$currentSubtitle$",i),a=()=>C(ni,"$isEnded$",i),p=()=>C($i,"$currentGridType$",i),f=()=>C(Zt,"$isLive$",i),m=()=>C(Ct,"$chromecastState$",i),u=()=>C(bo,"$isPictureInPictureActive",i),y=()=>C(Ji,"$pictureInPictureType$",i),w=()=>C(Xt,"$availableSubtitlesList$",i),x=()=>C(Mo,"$contextMenuOpenedByKeyboard$",i),T=()=>C(Si,"$showContextMenuBtn$",i),S=()=>C(ti,"$playerSize",i),E=()=>C(Ei,"$isRewindableLive$",i),R=()=>C(gi,"$isActiveLive$",i),I=()=>C(cr,"$graphIsOpened$",i),P=()=>C(Ze,"$contextMenuVisible$",i),B=()=>C(ht,"$isFullscreen",i),F=()=>C(St,"$autoplayNextEnabled",i),H=()=>C(r(_r),"$prevButton",i),W=()=>C(r(un),"$replayButton",i),Y=()=>C(r(_t),"$playButton",i),oe=()=>C(r(li),"$nextButton",i),G=()=>C(r(eo),"$playPrevChapterButton",i),ge=()=>C(r(xo),"$seekToInteractiveButton",i),ee=()=>C(r(hi),"$interactiveGraphButton",i),fe=()=>C(r(Oo),"$liveButton",i),ue=()=>C(r(wo),"$time",i),ce=()=>C(r(to),"$episodes",i),Pe=()=>C(r(Mn),"$vkLogo",i),Me=()=>C(r(fo),"$volume",i),re=()=>C(r(jn),"$subtitles",i),Ve=()=>C(r(So),"$settings",i),ae=()=>C(r(Bo),"$context",i),k=()=>C(r(br),"$fullscreen",i),ot=()=>C(r(pn),"$chromecast",i),Ne=()=>C(yi,"$additionalDesktopControlPanelRightButtons$",i),Q=()=>C(so,"$isInteractiveTime$",i),te=()=>C(ei,"$settingsMenuVisible",i),Re=()=>C(xi,"$settingButtonRef$",i),Xe=()=>C(Vo,"$startedByKeyboard$",i),_e=()=>C(Ke,"$isAudioAvailable$",i),J=()=>C(jt,"$fakeIsPlaying$",i),xe=()=>C($o,"$seekToInteractiveDisabledTooltip$",i),Ce=()=>C(qt,"$adPosition",i),He=()=>C(ze,"$position$",i),nt=()=>C(tt,"$adDuration",i),bt=()=>C(ut,"$duration$",i),ct=v(e,"playerControlsWrapperRef",15,void 0),$t=v(e,"playerControlsRef",15,void 0),et=v(e,"isAds",3,!1),zt=v(e,"logoTargetUrl",3,""),Qt=v(e,"isOneVideoPlaylist",3,!1),Gt=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:jt}=_o(),Ee=Se(),Yt=_o(),we=At(),be=Ee.actions.internal.toggleMuted,de=Ee.actions.internal.togglePlay,Qe=Ee.actions.internal.pause,Fe=Ee.actions.internal.toggleSubtitle,mt=Ee.actions.internal.checkFullscreenSupport,Ae=(Ii=Ee.callbacks)==null?void 0:Ii.onAudioDoesNotExistHint,We=(js=Ee.callbacks)==null?void 0:js.onAudioDisabledHint,ut=Ee.state.duration$,ze=Ee.state.positionWithScrubbing$,rt=Ee.state.playbackState$,Ke=Ee.state.isAudioAvailable$,Mt=Ee.state.isAudioDisabled,ni=Ee.state.isEnded$,Zt=Ee.state.isLive$,gi=Ee.state.isActiveLive$,Ei=Ee.state.isRewindableLive$,{isActive$:bo,type$:Ji}=Yt.pictureInPicture$,ei=Ee.ui.settingsMenu.visible$,gt=Ee.ui.settingsMenu.openedByBtnKeyboard$,Bt=Ee.ui.controls,Ut=Ee.actions.internal.getVideoEpisodes(),Ct=Ee.state.chromecastState$,Xt=Ee.state.availableSubtitlesList$,Bi=Ee.state.currentSubtitle$,yt=Bt.disabledControls$,Ze=Ee.ui.contextMenu.visible$,Si=Ee.ui.contextMenu.showContextMenuBtn$,Mo=Ee.ui.contextMenu.openedByBtnKeyboard$,Vo=Ee.ui.startedByKeyboard$,on=Ee.ui.controlBlocks,N=Ee.ui.t,tt=Ee.ads.duration,qt=Ee.ads.position,Jt=Ee.ads.playbackState,ht=Ee.ui.isFullscreen,ti=Ee.ui.playerSize,$i=Ee.ui.currentGridType$,yi=Ee.ui.additionalDesktopControlPanelRightButtons$,St=Ee.ui.autoplayNextEnabled$,Ci=Ee.actions.internal.getVideoElement,ro=Ee.actions.internal.replayInteractive,wn=Ee.actions.internal.prevVideoClick,Kn=Ee.actions.internal.nextVideoClick,fi=Ee.state.isInteractive,so=Ee.state.isInteractiveTime$,qn=Ee.state.showInteractiveGraph,ao=Ee.state.showSeekToInteractive,lo=Ee.state.showPlayPrevChapter,Sn=Ee.state.showInteractiveTimeIndicator,nn=Ee.state.playPrevChapterDisabledTooltip,$o=Yt.seekToInteractiveDisabledTooltip$,cr=Yt.graphIsOpened$,Qn=we.features.interactiveResponsiveUi,Er=g(()=>n().has("EPISODE_BUTTON")),Qr=g(()=>n().has("GRAPH_BUTTON")),Gr=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),jr=g(()=>n().has("PLAY_BUTTON")),rn=g(()=>n().has("REPLAY_BUTTON")),Cn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Ro=()=>Ee.actions.internal.toggleChromecast(),sn=g(()=>et()?s()==="playing":l()===Ma.PlaybackState.PLAYING),an=g(()=>d().value!=="off"),ur=g(()=>a()&&!et()||fi),Yr=g(()=>Qn?r(ur)&&Yi(p(),"m"):r(ur)),yo=g(()=>!a()||fi||et()),Ir=g(()=>Yi(p(),"m")),Tn=g(()=>e.showNextPrevButtons&&Yi(p(),"m")&&!et()&&e.nextButtonActive),ln=g(()=>e.showNextPrevButtons&&Yi(p(),"m")&&!et()&&e.prevButtonActive),pr=g(()=>!et()&&!!f()),fr=g(()=>m()!==Ma.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&Yi(p(),"m")&&!fi),En=g(()=>e.showAutoplayNext&&!Qt()&&Yi(p(),"s")),No=g(()=>w().length>0&&Yi(p(),"m")),Zr=g(()=>x()||T()),mr=g(()=>Yi(p(),"s")&&!et()),vt=g(()=>!e.logoHidden&&!et()),si=g(()=>we.features.fullscreen&&mt()&&(e.logoHidden||Yi(p(),Qn?"xs":"s"))&&!(u()&&y()===1)&&(fi?Gt():!0)),In=g(()=>(!f()||et())&&!(we.features.interactiveHideTime&&fi)),kn=g(()=>S().width>100),vr=g(()=>qn&&Yi(p(),"m")),dn=g(()=>Qn?ao&&Yi(p(),"s"):ao),cn=g(()=>Qn?lo&&Yi(p(),"s"):lo),co=g(()=>!et()&&!f()&&!!(Ut!=null&&Ut.length)&&r(Ir)&&!r(Er)),uo=g(()=>!E()||!!R()),jo=g(()=>I()?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off")),po=g(()=>P()?N("tooltip_context_menu_close"):N("tooltip_context_menu_open")),An=(Tt,pt)=>Tt?pt&&pt===Ma.PlaybackState.PAUSED?N("tooltip_play"):"":N("tooltip_live"),gr=g(()=>An(r(uo),l())),kr=g(()=>we.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),ds=g(()=>r(an)?N("tooltip_subtitles_on"):N("tooltip_subtitles_off")),Pn=g(()=>B()?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off")),Ki=g(()=>m()===Ma.ChromecastState.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off")),Gn=g(()=>F()?N("tooltip_autoplay_on"):N("tooltip_autoplay_off")),hr=X(0),ai=ii({}),Ln=ii({}),_r=g(()=>Bt.prevButton),un=g(()=>Bt.replayButton),_t=g(()=>Bt.playButton),li=g(()=>Bt.nextButton),eo=g(()=>Bt.playPrevChapterButton),xo=g(()=>Bt.seekToInteractiveButton),hi=g(()=>Bt.interactiveGraphButton),Oo=g(()=>Bt.liveButton),wo=g(()=>Bt.time),to=g(()=>Bt.episodes),Mn=g(()=>Bt.vkLogo),fo=g(()=>Bt.volume),jn=g(()=>Bt.subtitles),So=g(()=>Bt.settings),Bo=g(()=>Bt.context),br=g(()=>Bt.fullscreen),pn=g(()=>Bt.chromecast),Do=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:ge()?ge().right-ge().left:0,interactiveGraphButton:ee()?ee().right-ee().left:0,liveButton:fe()?fe().right-fe().left:0,time:ue()?ue().right-ue().left:0,episodes:ce()?ce().right-ce().left:0,vkLogo:Pe()?Pe().right-Pe().left:0,volume:Me()?Me().right-Me().left:0,subtitles:re()?re().right-re().left:0,settings:Ve()?Ve().right-Ve().left:0,context:ae()?ae().right-ae().left:0,fullscreen:k()?k().right-k().left:0,chromecast:ot()?ot().right-ot().left:0,additionalButtons:Ne().length?Ne().reduce(Tt=>[...Tt,40],[]):[]})),Yn=X(0);Ue(()=>{(!r(Yn)||r(Yn)<r(Do).time)&&Et(()=>O(Yn,r(Do).time,!0))});let Ar=X(!1);Ue(()=>{let Tt=0;r(co)&&(Yi(p(),"xl")?Tt=r(Do).time:Tt=60);let pt=r(Do).prevButton+r(Do).playButton+r(Do).nextButton+r(Do).seekToInteractiveButton+r(Do).interactiveGraphButton+r(Do).liveButton+r(Yn)+Tt;O(Ar,r(In)&&r(hr)>=pt,!0)});let Zn=g(()=>r(Ar)&&Yi(p(),"m")),st=(0,Um.debounceFn)(El,260),Lt=(0,Um.debounceFn)(qu,260);Ue(()=>{S(),Q(),st(Ci(),Bt,ai,e.showControls),Lt(Ci(),on,Ln,e.showControls)}),Ue(()=>{Ln.bottom=ct()});let xi=se();Ue(()=>{te(),Re()&&Et(()=>bl(Re(),te(),gt))});let mo;Ue(()=>{Xe(),Et(()=>Wu(Vo,Xe(),mo))});function qi(){zs({isAudioDisabled:Mt,isAudioAvailable:_e(),isAds:et(),audioIsNotExistHintCallback:Ae,audioDisabledHintCallback:We})&&be()}let vo=fi?ro:de,Li=g(()=>J()!==null),go=g(()=>r(Li)?J():r(sn)),fn=g(()=>r(go)?N("tooltip_pause"):N("tooltip_play")),Vn=N("tooltip_episodes"),Co=g(()=>{var Tt,pt,ho,Yo;return r(ln)?{id:"prevButton",type:"desktop-control-panel-left",weight:ws.prevButton,buttonComponent:Pa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:wn.bind(null,!0)},tooltipEnabled:!((pt=(Tt=Ee.callbacks)==null?void 0:Tt.uiInfo)!=null&&pt.onPrevButtonMouseEnter)&&!((Yo=(ho=Ee.callbacks)==null?void 0:ho.uiInfo)!=null&&Yo.onPrevButtonMouseLeave),mouseEnter:()=>{var Gi,ci,Fi;(Fi=(ci=(Gi=Ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Fi.call(ci,zn(Ci(),ai,"prevButton",e.showControls))},mouseLeave:()=>{var Gi,ci,Fi;(Fi=(ci=(Gi=Ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Fi.call(ci,zn(Ci(),ai,"prevButton",e.showControls))},tooltipText:N("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Qi=g(()=>r(Yr)?{id:"replayButton",type:"desktop-control-panel-left",weight:ws.replayButton,buttonComponent:Il,buttonComponentProps:{disabled:r(rn),click:vo},tooltipText:N("tooltip_restart"),disabled:r(rn)}:void 0),Pr=g(()=>r(yo)?{id:"playButton",type:"desktop-control-panel-left",weight:ws.playButton,buttonComponent:kl,buttonComponentProps:{disabled:r(jr),isPlaying:r(sn),click:de},tooltipText:r(fn),disabled:r(jr)}:void 0),Xn=g(()=>{var Tt,pt,ho,Yo;return r(Tn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ws.nextButton,buttonComponent:Pa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Kn.bind(null,!0)},tooltipEnabled:!((pt=(Tt=Ee.callbacks)==null?void 0:Tt.uiInfo)!=null&&pt.onNextButtonMouseEnter)&&!((Yo=(ho=Ee.callbacks)==null?void 0:ho.uiInfo)!=null&&Yo.onNextButtonMouseLeave),mouseEnter:()=>{var Gi,ci,Fi;(Fi=(ci=(Gi=Ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Fi.call(ci,zn(Ci(),ai,"nextButton",e.showControls))},mouseLeave:()=>{var Gi,ci,Fi;(Fi=(ci=(Gi=Ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Fi.call(ci,zn(Ci(),ai,"nextButton",e.showControls))},tooltipText:N("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Rn=g(()=>fi&&r(cn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ws.playPrevChapterButton,buttonComponent:Zd,buttonComponentProps:{disabled:r(Cn),click:e.playPrevChapter},tooltipText:N("tooltip_interactive_go_back"),disabledTooltipContent:N(nn),disabled:r(Cn)}:void 0),$r=g(()=>fi&&r(dn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ws.seekToInteractiveButton,buttonComponent:Jd,buttonComponentProps:{disabled:r(Gr),click:e.seekToInteractive},tooltipText:N("tooltip_interactive_seek"),disabled:r(Gr),disabledTooltipContent:N(xe())}:void 0),yr=g(()=>fi&&r(vr)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ws.interactiveGraphButton,buttonComponent:ec,buttonComponentProps:{disabled:r(Qr),click:cr.toggle,graphIsOpened:I()},tooltipText:r(jo)}:void 0),Lr=g(()=>r(pr)?{id:"liveButton",type:"desktop-control-panel-left",weight:ws.liveButton,buttonComponent:tc,buttonComponentProps:{isLiveActive:r(uo),ariaLabel:r(gr)},tooltipText:r(gr),disabled:r(uo)&&l()===Ma.PlaybackState.PLAYING}:void 0),Xr=g(()=>[r(Co),r(Qi),r(Pr),r(Xn),r(Rn),r($r),r(yr),r(Lr)].filter(Tt=>!!Tt).sort(xa)),Ge=g(()=>r(vt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Cs.vkLogo,buttonComponent:Ud,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:Qe},tooltipText:r(kr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Wt=g(()=>r(En)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Cs.autoplayNext,buttonComponent:Xd,tooltipText:r(Gn)}:void 0),di=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Cs.volume,buttonComponent:vm,buttonComponentProps:{click:qi,isAds:et()}})),mn=g(()=>r(No)?{id:"subtitles",type:"desktop-control-panel-right",weight:Cs.subtitles,buttonComponent:um,buttonComponentProps:{isSubtitlesEnabled:r(an),click:Fe},tooltipText:r(ds)}:void 0),To=g(()=>r(mr)?{id:"settings",type:"desktop-control-panel-right",weight:Cs.settings,buttonComponent:Sl,buttonComponentProps:{ref$:xi},tooltipText:te()?void 0:N("tooltip_settings_off")}:void 0),Fo=g(()=>we.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Cs.context,buttonComponent:Mm,buttonComponentProps:{ariaLabel:N("aria_label_context_menu")},className:r(Zr)?"":"out-of-view",tooltipText:r(po)}:void 0),Ho=g(()=>r(si)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Cs.fullscreen,buttonComponent:Hd,buttonComponentProps:{isFullscreen:B(),click:e.toggleFullscreen},tooltipText:r(Pn)}:void 0),Mr=g(()=>r(fr)?{id:"chromecast",type:"desktop-control-panel-right",weight:Cs.chromecast,buttonComponent:zd,buttonComponentProps:{state:m(),click:Ro},tooltipText:r(Ki)}:void 0),Gs=g(()=>[r(Ge),r(Wt),r(di),r(mn),r(To),r(Fo),r(Ho),r(Mr),...Ne()].filter(Tt=>!!Tt).sort(xa));var Jr=r4(),Nn=pe(Jr);let Es;var Z=_(Nn);let qe=g(()=>!e.showControls),Dt=g(()=>!r(kn));ka(Z,{get isHidden(){return r(qe)},get timelineNotAvailable(){return r(Dt)},get isAds(){return et()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ai.timeline},set ref(Tt){ai.timeline=Tt}});var ri=A(Z,2),_i=_(ri),Mi=_(_i);ki(Mi,17,()=>r(Xr),Tt=>Tt.id,(Tt,pt)=>{Ku(Tt,{get buttonComponent(){return r(pt).buttonComponent},get buttonComponentProps(){return r(pt).buttonComponentProps},get tooltipText(){return r(pt).tooltipText},get disabledTooltipContent(){return r(pt).disabledTooltipContent},get disabled(){return r(pt).disabled},get className(){return r(pt).className},get tooltipEnabled(){return r(pt).tooltipEnabled},get mouseEnter(){return r(pt).mouseEnter},get mouseLeave(){return r(pt).mouseLeave},get ref(){return ai[r(pt).id]},set ref(ho){ai[r(pt).id]=ho}})});var Di=A(Mi,2);{var vn=Tt=>{let pt=g(()=>!e.showControls),ho=g(()=>et()?Ce():He()),Yo=g(()=>et()?nt():bt());Bd(Tt,{get isHidden(){return r(pt)},isMobile:!1,get showDuration(){return r(Zn)},get position(){return r(ho)},get duration(){return r(Yo)},get ref(){return ai.time},set ref(Gi){ai.time=Gi}})};V(Di,Tt=>{r(In)&&Tt(vn)})}var Vi=A(Di,2);let Ti=g(()=>!r(co));Po(Vi,{className:"w-max",get disabled(){return r(Ti)},get tooltipContent(){return Vn},get ref(){return ai.episodes},set ref(Tt){ai.episodes=Tt},children:(Tt,pt)=>{var ho=Be(),Yo=pe(ho);{var Gi=ci=>{Kd(ci,{get position(){return He()},get duration(){return bt()},get timeCodes(){return Ut}})};V(Yo,ci=>{r(co)&&ci(Gi)})}$(Tt,ho)},$$slots:{default:!0}}),h(_i);var Eo=A(_i,2);ki(Eo,21,()=>r(Gs),Tt=>Tt.id,(Tt,pt)=>{var ho=Be(),Yo=pe(ho);{var Gi=Fi=>{Ku(Fi,{get buttonComponent(){return r(pt).buttonComponent},get buttonComponentProps(){return r(pt).buttonComponentProps},get tooltipText(){return r(pt).tooltipText},get disabledTooltipContent(){return r(pt).disabledTooltipContent},get disabled(){return r(pt).disabled},get className(){return r(pt).className},get ref(){return ai[r(pt).id]},set ref(Is){ai[r(pt).id]=Is}})},ci=Fi=>{let Is=g(()=>!!r(pt).disabled);Hm(Fi,{get id(){return r(pt).id},get testId(){return r(pt).testId},get icon(){return r(pt).icon},get ariaLabel(){return r(pt).ariaLabel},get tooltipText(){return r(pt).tooltipText},get disabledTooltipContent(){return r(pt).disabledTooltipContent},get disabled(){return r(Is)},get onClick(){return r(pt).onClick},get disableMouseupTooltipShow(){return r(pt).disableMouseupTooltipShow},get ref(){return ai[r(pt).id]},set ref(Fl){ai[r(pt).id]=Fl}})};V(Yo,Fi=>{b0(r(pt))?Fi(Gi):Fi(ci,!1)})}$(Tt,ho)}),h(Eo),h(ri),at(ri,Tt=>$t(Tt),()=>$t()),h(Nn),at(Nn,Tt=>ct(Tt),()=>ct());var Jn=A(Nn,2);{var er=Tt=>{Gd(Tt,{get ref(){return ai.interactiveTimeIndicator},set ref(pt){ai.interactiveTimeIndicator=pt}})};V(Jn,Tt=>{Sn&&Tt(er)})}D(Tt=>Es=ne(Nn,1,"wrapper-bottom svelte-1iiubm3",null,Es,Tt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),dr(_i,"clientWidth",Tt=>O(hr,Tt)),$(t,Jr),z(),o()}var Al=require("@vkontakte/videoplayer-core/es2018");var Wm=require("@vkontakte/videoplayer-shared/es2018");var a4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),l4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),d4={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 Km(t,e){K(t,d4);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Wm.noop),n=g(()=>o()===Wm.noop),s=g(()=>r(n)||i()),l=X(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Ot(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=Be(),u=pe(m);{var y=x=>{var T=a4();$(x,T)},w=x=>{var T=l4();D(()=>De(T,"src",e.iconUrl)),kt("error",T,d),da(T),$(x,T)};V(u,x=>{r(l)?x(y):x(w,!1)})}$(p,m)},$$slots:{default:!0}})}var c4=ye('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function qm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=c4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var $0=require("@vkontakte/videoplayer-shared/es2018");var u4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),p4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Qu(t,e){U(e,!0),K(t,p4);let i=v(e,"muted",3,!1),o=v(e,"click",3,$0.noop),n=v(e,"ref",15,void 0),l=Se().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?qm:Ks),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ot(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=u4();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 f4=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Qm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=f4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(3),h(o),$(t,o)}var m4={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 Gm(t,e){K(t,m4);let i=v(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Qm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var y0=require("@vkontakte/videoplayer-shared/es2018");function jm(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,y0.noop),s=q("menu_pip");Ot(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Gm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var Ym=require("@vkontakte/videoplayer-shared/es2018");var v4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},g4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},h4=M("<div><!></div>"),_4=M("<div><!></div>"),b4=M("<div><!></div>"),$4=M("<!> <!> <!>",1),y4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),x4=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),w4=M("<div><!></div> <!> <div><!></div>",1),S4=M('<div aria-hidden="true">\xB7</div> <!>',1),C4=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),T4={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,
253
260
  .wrapper-middle-left-second.svelte-tg0ura,
254
261
  .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);}
255
262
 
@@ -257,7 +264,7 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
257
264
  }
258
265
 
259
266
  @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);}
260
- }`};function Dm(t,e){var Ir,kr;U(e,!0),q(t,f4);let[i,o]=He(),n=()=>C(ln,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(Ko,"$disabledControls$",i),l=()=>C(Bt,"$playbackState$",i),d=()=>C(Mo,"$adPlaybackState",i),a=()=>C(de,"$isEnded$",i),p=()=>C(N,"$playerSize",i),f=()=>C(Ye,"$scrubbingInProgress",i),m=()=>C(no,"$chromecastState$",i),u=()=>C(Wt,"$isPictureInPictureActive",i),y=()=>C(it,"$pictureInPictureType$",i),w=()=>C(Pt,"$mobileNotReportControlHidden$",i),x=()=>C(pi,"$chromecastHidden",i),S=()=>C(Gt,"$playerPhase",i),T=()=>C(ko,"$pipHidden",i),E=()=>C(Ze,"$currentGridType$",i),L=()=>C(Xi,"$vkLogoHidden",i),k=()=>C(ii,"$volumeHidden",i),I=()=>C(Be,"$isLive$",i),V=()=>C(ri,"$settingsMenuVisible",i),G=()=>C(Re,"$isRewindableLive$",i),H=()=>C(Qe,"$isActiveLive$",i),F=()=>C(_e,"$isAudioAvailable$",i),W=()=>C(ke,"$muted$",i),J=()=>C(We,"$volume$",i),j=()=>C(Yt,"$isInteractiveTime$",i),le=()=>C(Qn,"$settingButtonRef$",i),ie=()=>C(yt,"$startedByKeyboard$",i),pe=()=>C(an,"$isFullscreen",i),he=()=>C(Je,"$additionalButtons$",i),ue=()=>C(qi,"$autoplayNextToggleHidden",i),Ne=()=>C(Ao,"$crashed$",i),oe=()=>C(ci,"$settingsHidden",i),Ve=()=>C(dn,"$graphIsOpened$",i),ne=()=>C(Po,"$adPosition",i),O=()=>C(Ei,"$adDuration",i),ce=()=>C(re,"$position$",i),Le=()=>C(Ft,"$duration$",i),ve=v(e,"playerControlsWrapperRef",15,void 0),ee=v(e,"playerControlsRef",15,void 0),me=v(e,"isAds",3,!1),De=v(e,"logoTargetUrl",3,""),fe=v(e,"isOneVideoPlaylist",3,!1),dt=v(e,"customFullscreenSupported",3,!0),Z=Ee(),Pe=vo(),Ie=At(),Ue=Z.actions.internal.toggleMuted,nt=Z.actions.internal.togglePlay,ft=Z.actions.internal.pause,mt=Z.actions.internal.prevVideoClick,St=Z.actions.internal.nextVideoClick,Xe=Z.actions.internal.checkFullscreenSupport,Ht=(Ir=Z.callbacks)==null?void 0:Ir.onAudioDoesNotExistHint,Qt=(kr=Z.callbacks)==null?void 0:kr.onAudioDisabledHint,Gt=Z.playerPhase,Ft=Z.state.duration$,re=Z.state.positionWithScrubbing$,Bt=Z.state.playbackState$,_e=Z.state.isAudioAvailable$,xe=Z.state.isAudioDisabled,de=Z.state.isEnded$,Be=Z.state.isLive$,We=Z.state.volume$,ke=Z.state.muted$,Qe=Z.state.isActiveLive$,Re=Z.state.isRewindableLive$,Ye=Z.ui.scrubbingInProgress,Pt=Z.ui.mobileNotReportControlHidden$,{isActive$:Wt,type$:it}=Pe.pictureInPicture$,ri=Z.ui.settingsMenu.visible$,si=Z.ui.settingsMenu.openedByBtnKeyboard$,ct=Z.ui.controls,{volume:ii,vkLogo:Xi,autoplayNextToggle:qi,pip:ko,settings:ci,chromecast:pi}=Z.ui.hiddenControls,Ut=Z.actions.internal.getVideoEpisodes(),jt=Z.webApi.pictureInPictureApi,no=Z.state.chromecastState$,Ao=Z.state.crashed$,Ko=ct.disabledControls$,yt=Z.ui.startedByKeyboard$,Ze=Z.ui.currentGridType$,Ei=Z.ads.duration,Po=Z.ads.position,Mo=Z.ads.playbackState,an=Z.ui.isFullscreen,N=Z.ui.playerSize,Je=Z.ui.additionalButtonsDeprecated$,ht=Z.actions.internal.getVideoElement,Xt=Z.actions.internal.replayInteractive,Dt=Z.state.isInteractive,Yt=Z.state.isInteractiveTime$,fi=Z.state.showInteractiveGraph,gi=Z.state.showSeekToInteractive,vt=Z.state.showPlayPrevChapter,Vi=Z.state.showInteractiveTimeIndicator,ln=Pe.seekToInteractiveDisabledTooltip$,dn=Pe.graphIsOpened$,qo=Z.ui.controlBlocks,ui=g(()=>K(Z.state.playPrevChapterDisabledTooltip)),Lo=g(()=>K(n())),wr=g(()=>s().has("EPISODE_BUTTON")),ro=g(()=>s().has("GRAPH_BUTTON")),so=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),cn=g(()=>s().has("PLAY_BUTTON")),un=g(()=>s().has("REPLAY_BUTTON")),Qo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),ar=g(()=>l()===Al.PlaybackState.PLAYING),En=g(()=>d()==="paused"),Sr=g(()=>a()&&!me()&&!Dt),as=g(()=>!a()||me()),In=g(()=>e.showNextPrevButtons&&!me()&&e.prevButtonActive),Cr=g(()=>e.showNextPrevButtons&&!me()&&e.nextButtonActive),zn=g(()=>p().width>300),Wn=g(()=>p().width>400),Vo=g(f),Ri=g(()=>m()!==Al.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&!w()&&!Dt&&!x()),kn=g(()=>S()==="LiveWaitingStart"),An=g(()=>!!jt&&m()!==Al.ChromecastState.CONNECTED&&!w()&&(y()===1&&r(kn)||!r(kn))&&!r(Vo)&&!Dt&&!T()),Pn=Y(!1);Lt(()=>{let rt=jt==null?void 0:jt.info.isActive$.subscribe(kt=>B(Pn,kt,!0));return()=>rt==null?void 0:rt.unsubscribe()});let lr=g(()=>!r(Vo)&&ji(E(),"s")),dr=g(()=>!e.logoHidden&&p().width>350&&!L()),cr=g(()=>Ie.features.fullscreen&&Xe()&&!(u()&&y()===1)&&(Dt?dt():!0)&&!r(Vo)&&!r(Pn)),ur=g(()=>!k()&&!r(Vo)),Tr=g(()=>(!I()||me())&&p().width>260&&!r(Vo)&&!(Ie.features.interactiveHideTime&&Dt)),ls=g(()=>V()||e.showControls),Kn=g(()=>!me()&&!I()&&!!(Ut!=null&&Ut.length)&&r(zn)&&!r(wr)&&!r(Vo)),go=g(()=>!G()||!!H()),Mn=g(()=>fi&&ji(E(),"m")),pn=g(()=>!F()||W()||J()===0),gt=ti({}),Jt=ti({}),Go=(0,Bm.debounceFn)(El,260),qn=(0,Bm.debounceFn)(Ou,260);Ke(()=>{p(),j(),Go(ht(),ct,gt,e.showControls),qn(ht(),qo,Jt,e.showControls)});let fn=()=>Z.actions.internal.toggleChromecast();async function ho(){jt!=null&&jt.isActive()?await(jt==null?void 0:jt.exit()):await(jt==null?void 0:jt.request())}function Ii(){zs({isAudioDisabled:xe,audioDisabledHintCallback:Qt,isAudioAvailable:F(),audioIsNotExistHintCallback:Ht,isAds:me()})&&Ue()}let xi=Y(""),jo=(rt,kt)=>{if(!rt){B(xi,K("tooltip_live"),!0);return}kt&&kt===Al.PlaybackState.PAUSED&&B(xi,K("tooltip_play"),!0)};Ke(()=>{jo(r(go),l())});let Qn=se();Ke(()=>{le()&&bl(le(),V(),si)}),Ke(()=>{Ru(yt,ie(),gt.playButton)}),Ke(()=>{Jt.bottom=ve()});var qr=p4(),Qr=ge(qr);{var pr=rt=>{var kt=l4(),_i=ge(kt);let uo;var po=A(_i,2);let Ji;ot(po,lt=>Jt.topLeft=lt,()=>Jt==null?void 0:Jt.topLeft);var eo=A(po,2);let fo;var Rn=_(eo);Si(Rn,1,he,({iconUrl:lt,ariaLabel:zt,testId:Hi,onClick:bn,tooltip:$n})=>lt,(lt,zt)=>{let Hi=()=>r(zt).iconUrl,bn=()=>r(zt).ariaLabel,$n=()=>r(zt).testId,gr=()=>r(zt).onClick,Lr=()=>r(zt).tooltip,ps=g(()=>{var ki;return(ki=bn())!=null?ki:Lr()});Lm(lt,{get iconUrl(){return Hi()},get ariaLabel(){return r(ps)},get testId(){return $n()},get onClick(){return gr()}})});var bo=A(Rn,2);{var $o=lt=>{Qd(lt,{get ref(){return gt.autoplayNextToggle},set ref(zt){gt.autoplayNextToggle=zt}})};R(bo,lt=>{e.showAutoplayNext&&!fe()&&!ue()&&lt($o)})}var No=A(bo,2);{var Yn=lt=>{Dd(lt,{isMobile:!0,click:fn,get state(){return m()},get ref(){return gt.chromecast},set ref(zt){gt.chromecast=zt}})};R(No,lt=>{r(Ri)&&lt(Yn)})}var Yo=A(No,2);{var Ar=lt=>{Om(lt,{click:ho,get isPictureInPictureActive(){return u()},get ref(){return gt.pip},set ref(zt){gt.pip=zt}})};R(Yo,lt=>{r(An)&&lt(Ar)})}var vr=A(Yo,2);{var Pr=lt=>{Sl(lt,{get ref$(){return Qn}})};R(vr,lt=>{Ne()&&!oe()&&lt(Pr)})}var yo=A(vr,2);{var Mr=lt=>{Bd(lt,{get click(){return ft},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return gt.vkLogo},set ref(zt){gt.vkLogo=zt}})};R(yo,lt=>{r(dr)&&lt(Mr)})}h(eo),ot(eo,lt=>Jt.topRight=lt,()=>Jt==null?void 0:Jt.topRight);var ze=A(eo,2);let Zt;var bi=_(ze);{var _n=lt=>{let zt=g(()=>mt.bind(null,!0));Aa(lt,{get click(){return r(zt)},type:"prev",isMobile:!0,get ref(){return gt.prevButton},set ref(Hi){gt.prevButton=Hi}})};R(bi,lt=>{r(In)&&lt(_n)})}var Zo=A(bi,2);{var we=lt=>{kl(lt,{get disabled(){return r(cn)},get click(){return nt},isMobile:!0,get isPlaying(){return r(ar)},get ref(){return gt.playButton},set ref(zt){gt.playButton=zt}})};R(Zo,lt=>{r(as)&&lt(we)})}var xt=A(Zo,2);{var ni=lt=>{Il(lt,{get disabled(){return r(un)},get click(){return nt},isMobile:!0,get ref(){return gt.replayButton},set ref(zt){gt.replayButton=zt}})};R(xt,lt=>{r(Sr)&&lt(ni)})}var wi=A(xt,2);{var Xo=lt=>{let zt=g(()=>St.bind(null,!0));Aa(lt,{get click(){return r(zt)},type:"next",isMobile:!0,get ref(){return gt.nextButton},set ref(Hi){gt.nextButton=Hi}})};R(wi,lt=>{r(Cr)&&lt(Xo)})}h(ze),ot(ze,lt=>Jt.middle=lt,()=>Jt==null?void 0:Jt.middle);var Bi=A(ze,2);{var Di=lt=>{var zt=a4(),Hi=ge(zt);{var bn=ki=>{var Ai=n4();let Oo;Ai.__click=[i4,Qo,e,ui];var Bo=_(Ai);let hr=g(()=>!e.showControls);qd(Bo,{get hidden(){return r(hr)},get disabled(){return r(Qo)},get click(){return e.playPrevChapter},get ref(){return gt.playPrevChapterButton},set ref(xo){gt.playPrevChapterButton=xo}}),h(Ai),D(xo=>Oo=te(Ai,1,"wrapper-middle-left svelte-tg0ura",null,Oo,xo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(ki,Ai)};R(Hi,ki=>{vt&&ki(bn)})}var $n=A(Hi,2);{var gr=ki=>{var Ai=r4();let Oo;var Bo=_(Ai);let hr=g(()=>!e.showControls&&!Ve());jd(Bo,{get hidden(){return r(hr)},get disabled(){return r(ro)},get click(){return dn.toggle},get graphIsOpened(){return Ve()},get ref(){return gt.interactiveGraphButton},set ref(xo){gt.interactiveGraphButton=xo}}),h(Ai),D(xo=>Oo=te(Ai,1,dd(vt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Oo,xo),[()=>({fullscreen:pe(),hidden:!e.showControls&&!Ve()})]),$(ki,Ai)};R($n,ki=>{r(Mn)&&ki(gr)})}var Lr=A($n,2);{var ps=ki=>{var Ai=s4();let Oo;Ai.__click=[o4,so,e,Lo];var Bo=_(Ai);let hr=g(()=>!e.showControls);Gd(Bo,{get hidden(){return r(hr)},get disabled(){return r(so)},get click(){return e.seekToInteractive},get ref(){return gt.seekToInteractiveButton},set ref(xo){gt.seekToInteractiveButton=xo}}),h(Ai),D(xo=>Oo=te(Ai,1,"wrapper-middle-right svelte-tg0ura",null,Oo,xo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(ki,Ai)};R(Lr,ki=>{gi&&ki(ps)})}$(lt,zt)};R(Bi,lt=>{Dt&&!f()&&lt(Di)})}D((lt,zt,Hi,bn)=>{uo=te(_i,1,"overlay-mobile svelte-tg0ura",null,uo,lt),Ji=te(po,1,"wrapper-top-left svelte-tg0ura",null,Ji,zt),fo=te(eo,1,"wrapper-top-right svelte-tg0ura",null,fo,Hi),Zt=te(ze,1,"wrapper-middle svelte-tg0ura",null,Zt,bn)},[()=>({hidden:!r(ls)}),()=>({hidden:!e.showControls,fullscreen:pe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:pe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(rt,kt)};R(Qr,rt=>{me()||rt(pr)})}var mn=A(Qr,2);{var ds=rt=>{var kt=c4(),_i=ge(kt);let uo;var po=_(_i);Bu(po,{get muted(){return W()},click:Ii,get ref(){return gt.volume},set ref($o){gt.volume=$o}}),h(_i);var Ji=A(_i,2);{var eo=$o=>{var No=d4(),Yn=_(No);let Yo=g(()=>!r(En));kl(Yn,{get disabled(){return r(cn)},get click(){return nt},isMobile:!0,get isPlaying(){return r(Yo)},get ref(){return gt.playButton},set ref(Ar){gt.playButton=Ar}}),h(No),$($o,No)};R(Ji,$o=>{r(En)&&$o(eo)})}var fo=A(Ji,2);let Rn;var bo=_(fo);Hd(bo,{get position(){return ne()},get duration(){return O()}}),h(fo),D(($o,No)=>{uo=te(_i,1,"wrapper-top-right svelte-tg0ura",null,uo,$o),Rn=te(fo,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,Rn,No)},[()=>({fullscreen:pe()}),()=>({fullscreen:pe()})]),$(rt,kt)};R(mn,rt=>{me()&&d()!=="inactive"&&rt(ds)})}var Ln=A(mn,2);let Ro;var Gn=_(Ln);let vn;var Kt=_(Gn),jn=_(Kt),Er=_(jn);{var Gr=rt=>{Eo(rt,{get disabled(){return r(un)},get ref(){return gt.replayButton},set ref(kt){gt.replayButton=kt},children:(kt,_i)=>{Il(kt,{get disabled(){return r(un)},get click(){return Xt}})},$$slots:{default:!0}})};R(Er,rt=>{Dt&&rt(Gr)})}var at=A(Er,2);{var oi=rt=>{Eo(rt,{get ref(){return gt.liveButton},set ref(kt){gt.liveButton=kt},children:(kt,_i)=>{Yd(kt,{get isLiveActive(){return r(go)},isMobile:!0,get ariaLabel(){return r(xi)}})},$$slots:{default:!0}})};R(at,rt=>{!me()&&I()&&rt(oi)})}var ao=A(at,2);{var lo=rt=>{let kt=g(()=>me()?ne():ce()),_i=g(()=>me()?O():Le()),uo=g(()=>!e.showControls);Vd(rt,{get showDuration(){return r(Wn)},get position(){return r(kt)},get duration(){return r(_i)},isMobile:!0,get isHidden(){return r(uo)},get ref(){return gt.time},set ref(po){gt.time=po}})};R(ao,rt=>{r(Tr)&&rt(lo)})}var gn=A(ao,2);let co=g(()=>!r(Kn));Eo(gn,{className:"w-max",get disabled(){return r(co)},get ref(){return gt.episodes},set ref(rt){gt.episodes=rt},children:(rt,kt)=>{var _i=qe(),uo=ge(_i);{var po=Ji=>{var eo=u4(),fo=A(ge(eo),2);Fd(fo,{get position(){return ce()},get duration(){return Le()},get timeCodes(){return Ut}}),$(Ji,eo)};R(uo,Ji=>{r(Kn)&&Ji(po)})}$(rt,_i)},$$slots:{default:!0}}),h(jn),ot(jn,rt=>Jt.bottomLeft=rt,()=>Jt==null?void 0:Jt.bottomLeft);var hi=A(jn,2),Ni=_(hi);{var Oi=rt=>{Eo(rt,{get ref(){return gt.volume},set ref(kt){gt.volume=kt},children:(kt,_i)=>{Bu(kt,{get muted(){return r(pn)},click:Ii})},$$slots:{default:!0}})};R(Ni,rt=>{r(ur)&&rt(Oi)})}var hn=A(Ni,2);{var fr=rt=>{Eo(rt,{get ref(){return gt.settings},set ref(kt){gt.settings=kt},children:(kt,_i)=>{Sl(kt,{get ref$(){return Qn}})},$$slots:{default:!0}})};R(hn,rt=>{r(lr)&&rt(fr)})}var cs=A(hn,2);{var jr=rt=>{Eo(rt,{get ref(){return gt.fullscreen},set ref(kt){gt.fullscreen=kt},children:(kt,_i)=>{Od(kt,{get click(){return e.toggleFullscreen},get isFullscreen(){return pe()}})},$$slots:{default:!0}})};R(cs,rt=>{r(cr)&&rt(jr)})}h(hi),ot(hi,rt=>Jt.bottomRight=rt,()=>Jt==null?void 0:Jt.bottomRight),h(Kt),ot(Kt,rt=>ee(rt),()=>ee());var us=A(Kt,2);let mr=g(()=>!e.showControls);Ia(us,{get isHidden(){return r(mr)},get isAds(){return me()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return G()},get ref(){return gt.timeline},set ref(rt){gt.timeline=rt}}),h(Gn),h(Ln),ot(Ln,rt=>ve(rt),()=>ve());var _o=A(Ln,2);{var Vn=rt=>{Wd(rt,{get ref(){return gt.interactiveTimeIndicator},set ref(kt){gt.interactiveTimeIndicator=kt}})};R(_o,rt=>{Vi&&rt(Vn)})}D((rt,kt)=>{Ro=te(Ln,1,"wrapper-bottom mobile svelte-tg0ura",null,Ro,rt),vn=te(Gn,1,"controls-wrapper svelte-tg0ura",null,vn,kt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:pe()})]),$(t,qr),z(),o()}ut(["click"]);function Zd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(T,"$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,Hm.noop),x=v(e,"onDisabledSeekToInteractiveClick",3,Hm.noop),T=Ee().ui.isMobile,E=Y(!1);Lt(()=>{let V=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(V)});var L=qe(),k=ge(L);{var I=V=>{var G=qe(),H=ge(G);{var F=J=>{Dm(J,{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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},W=J=>{Pm(J,{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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};R(H,J=>{n()?J(F):J(W,!1)})}$(V,G)};R(k,V=>{r(E)&&V(I)})}$(t,L),z(),o()}var m4=Ce('<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 Fm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=m4();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}function Um(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Fm(t,{get style(){return r(o)}})}var v4=Ce('<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 zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=v4();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}var g4=Ce('<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 Wm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=g4();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}function Du(t,e){let i=v(e,"isOff",3,!1);var o=qe(),n=ge(o);{var s=d=>{Wm(d,{})},l=d=>{zm(d,{})};R(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var h4=Ce('<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=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=h4();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}function qm(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 _4=Ce('<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 Qm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_4();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(2),h(o),$(t,o)}function Gm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Qm(t,{get style(){return r(o)}})}var b4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),$4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),y4=M("<div><!></div>"),x4={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;
267
+ }`};function Zm(t,e){var Ar,Zn;U(e,!0),K(t,T4);let[i,o]=Oe(),n=()=>C(ro,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(Bi,"$disabledControls$",i),l=()=>C(Yt,"$playbackState$",i),d=()=>C(Vo,"$adPlaybackState",i),a=()=>C(de,"$isEnded$",i),p=()=>C(N,"$playerSize",i),f=()=>C(ut,"$scrubbingInProgress",i),m=()=>C(Ct,"$chromecastState$",i),u=()=>C(rt,"$isPictureInPictureActive",i),y=()=>C(Ke,"$pictureInPictureType$",i),w=()=>C(ze,"$mobileNotReportControlHidden$",i),x=()=>C(gt,"$chromecastHidden",i),T=()=>C(Gt,"$playerPhase",i),S=()=>C(Ji,"$pipHidden",i),E=()=>C(Ze,"$currentGridType$",i),R=()=>C(Ei,"$vkLogoHidden",i),I=()=>C(gi,"$volumeHidden",i),P=()=>C(Qe,"$isLive$",i),B=()=>C(Mt,"$settingsMenuVisible",i),F=()=>C(We,"$isRewindableLive$",i),H=()=>C(Ae,"$isActiveLive$",i),W=()=>C(we,"$isAudioAvailable$",i),Y=()=>C(mt,"$muted$",i),oe=()=>C(Fe,"$volume$",i),G=()=>C(ti,"$isInteractiveTime$",i),ge=()=>C(jo,"$settingButtonRef$",i),ee=()=>C(yt,"$startedByKeyboard$",i),fe=()=>C(on,"$isFullscreen",i),ue=()=>C(tt,"$additionalButtons$",i),ce=()=>C(bo,"$autoplayNextToggleHidden",i),Pe=()=>C(Xt,"$crashed$",i),Me=()=>C(ei,"$settingsHidden",i),re=()=>C(wn,"$graphIsOpened$",i),Ve=()=>C(Mo,"$adPosition",i),ae=()=>C(Si,"$adDuration",i),k=()=>C(Ee,"$position$",i),ot=()=>C(jt,"$duration$",i),Ne=v(e,"playerControlsWrapperRef",15,void 0),Q=v(e,"playerControlsRef",15,void 0),te=v(e,"isAds",3,!1),Re=v(e,"logoTargetUrl",3,""),Xe=v(e,"isOneVideoPlaylist",3,!1),_e=v(e,"customFullscreenSupported",3,!0),J=Se(),xe=_o(),Ce=At(),He=J.actions.internal.toggleMuted,nt=J.actions.internal.togglePlay,bt=J.actions.internal.pause,ct=J.actions.internal.prevVideoClick,$t=J.actions.internal.nextVideoClick,et=J.actions.internal.checkFullscreenSupport,zt=(Ar=J.callbacks)==null?void 0:Ar.onAudioDoesNotExistHint,Qt=(Zn=J.callbacks)==null?void 0:Zn.onAudioDisabledHint,Gt=J.playerPhase,jt=J.state.duration$,Ee=J.state.positionWithScrubbing$,Yt=J.state.playbackState$,we=J.state.isAudioAvailable$,be=J.state.isAudioDisabled,de=J.state.isEnded$,Qe=J.state.isLive$,Fe=J.state.volume$,mt=J.state.muted$,Ae=J.state.isActiveLive$,We=J.state.isRewindableLive$,ut=J.ui.scrubbingInProgress,ze=J.ui.mobileNotReportControlHidden$,{isActive$:rt,type$:Ke}=xe.pictureInPicture$,Mt=J.ui.settingsMenu.visible$,ni=J.ui.settingsMenu.openedByBtnKeyboard$,Zt=J.ui.controls,{volume:gi,vkLogo:Ei,autoplayNextToggle:bo,pip:Ji,settings:ei,chromecast:gt}=J.ui.hiddenControls,Bt=J.actions.internal.getVideoEpisodes(),Ut=J.webApi.pictureInPictureApi,Ct=J.state.chromecastState$,Xt=J.state.crashed$,Bi=Zt.disabledControls$,yt=J.ui.startedByKeyboard$,Ze=J.ui.currentGridType$,Si=J.ads.duration,Mo=J.ads.position,Vo=J.ads.playbackState,on=J.ui.isFullscreen,N=J.ui.playerSize,tt=J.ui.additionalButtonsDeprecated$,qt=J.actions.internal.getVideoElement,Jt=J.actions.internal.replayInteractive,ht=J.state.isInteractive,ti=J.state.isInteractiveTime$,$i=J.state.showInteractiveGraph,yi=J.state.showSeekToInteractive,St=J.state.showPlayPrevChapter,Ci=J.state.showInteractiveTimeIndicator,ro=xe.seekToInteractiveDisabledTooltip$,wn=xe.graphIsOpened$,Kn=J.ui.controlBlocks,fi=g(()=>q(J.state.playPrevChapterDisabledTooltip)),so=g(()=>q(n())),qn=g(()=>s().has("EPISODE_BUTTON")),ao=g(()=>s().has("GRAPH_BUTTON")),lo=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Sn=g(()=>s().has("PLAY_BUTTON")),nn=g(()=>s().has("REPLAY_BUTTON")),$o=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),cr=g(()=>l()===Al.PlaybackState.PLAYING),Qn=g(()=>d()==="paused"),Er=g(()=>a()&&!te()&&!ht),Qr=g(()=>!a()||te()),Gr=g(()=>e.showNextPrevButtons&&!te()&&e.prevButtonActive),jr=g(()=>e.showNextPrevButtons&&!te()&&e.nextButtonActive),rn=g(()=>p().width>300),Cn=g(()=>p().width>400),Ro=g(f),sn=g(()=>m()!==Al.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&!w()&&!ht&&!x()),an=g(()=>T()==="LiveWaitingStart"),ur=g(()=>!!Ut&&m()!==Al.ChromecastState.CONNECTED&&!w()&&(y()===1&&r(an)||!r(an))&&!r(Ro)&&!ht&&!S()),Yr=X(!1);Vt(()=>{let st=Ut==null?void 0:Ut.info.isActive$.subscribe(Lt=>O(Yr,Lt,!0));return()=>st==null?void 0:st.unsubscribe()});let yo=g(()=>!r(Ro)&&Yi(E(),"s")),Ir=g(()=>!e.logoHidden&&p().width>350&&!R()),Tn=g(()=>Ce.features.fullscreen&&et()&&!(u()&&y()===1)&&(ht?_e():!0)&&!r(Ro)&&!r(Yr)),ln=g(()=>!I()&&!r(Ro)),pr=g(()=>(!P()||te())&&p().width>260&&!r(Ro)&&!(Ce.features.interactiveHideTime&&ht)),fr=g(()=>B()||e.showControls),En=g(()=>!te()&&!P()&&!!(Bt!=null&&Bt.length)&&r(rn)&&!r(qn)&&!r(Ro)),No=g(()=>!F()||!!H()),Zr=g(()=>$i&&Yi(E(),"m")),mr=g(()=>!W()||Y()||oe()===0),vt=ii({}),si=ii({}),In=(0,Ym.debounceFn)(El,260),kn=(0,Ym.debounceFn)(qu,260);Ue(()=>{p(),G(),In(qt(),Zt,vt,e.showControls),kn(qt(),Kn,si,e.showControls)});let vr=()=>J.actions.internal.toggleChromecast();async function dn(){Ut!=null&&Ut.isActive()?await(Ut==null?void 0:Ut.exit()):await(Ut==null?void 0:Ut.request())}function cn(){zs({isAudioDisabled:be,audioDisabledHintCallback:Qt,isAudioAvailable:W(),audioIsNotExistHintCallback:zt,isAds:te()})&&He()}let co=X(""),uo=(st,Lt)=>{if(!st){O(co,q("tooltip_live"),!0);return}Lt&&Lt===Al.PlaybackState.PAUSED&&O(co,q("tooltip_play"),!0)};Ue(()=>{uo(r(No),l())});let jo=se();Ue(()=>{ge()&&bl(ge(),B(),ni)}),Ue(()=>{Wu(yt,ee(),vt.playButton)}),Ue(()=>{si.bottom=Ne()});var po=C4(),An=pe(po);{var gr=st=>{var Lt=y4(),xi=pe(Lt);let mo;var qi=A(xi,2);let vo;at(qi,Z=>si.topLeft=Z,()=>si==null?void 0:si.topLeft);var Li=A(qi,2);let go;var fn=_(Li);ki(fn,1,ue,({iconUrl:Z,ariaLabel:qe,testId:Dt,onClick:ri,tooltip:_i})=>Z,(Z,qe)=>{let Dt=()=>r(qe).iconUrl,ri=()=>r(qe).ariaLabel,_i=()=>r(qe).testId,Mi=()=>r(qe).onClick,Di=()=>r(qe).tooltip,vn=g(()=>{var Vi;return(Vi=ri())!=null?Vi:Di()});Km(Z,{get iconUrl(){return Dt()},get ariaLabel(){return r(vn)},get testId(){return _i()},get onClick(){return Mi()}})});var Vn=A(fn,2);{var Co=Z=>{Xd(Z,{get ref(){return vt.autoplayNextToggle},set ref(qe){vt.autoplayNextToggle=qe}})};V(Vn,Z=>{e.showAutoplayNext&&!Xe()&&!ce()&&Z(Co)})}var Qi=A(Vn,2);{var Pr=Z=>{zd(Z,{isMobile:!0,click:vr,get state(){return m()},get ref(){return vt.chromecast},set ref(qe){vt.chromecast=qe}})};V(Qi,Z=>{r(sn)&&Z(Pr)})}var Xn=A(Qi,2);{var Rn=Z=>{jm(Z,{click:dn,get isPictureInPictureActive(){return u()},get ref(){return vt.pip},set ref(qe){vt.pip=qe}})};V(Xn,Z=>{r(ur)&&Z(Rn)})}var $r=A(Xn,2);{var yr=Z=>{Sl(Z,{get ref$(){return jo}})};V($r,Z=>{Pe()&&!Me()&&Z(yr)})}var Lr=A($r,2);{var Xr=Z=>{Ud(Z,{get click(){return bt},get targetUrl(){return Re()},get logoClickable(){return e.logoClickable},get ref(){return vt.vkLogo},set ref(qe){vt.vkLogo=qe}})};V(Lr,Z=>{r(Ir)&&Z(Xr)})}h(Li),at(Li,Z=>si.topRight=Z,()=>si==null?void 0:si.topRight);var Ge=A(Li,2);let Wt;var di=_(Ge);{var mn=Z=>{let qe=g(()=>ct.bind(null,!0));Pa(Z,{get click(){return r(qe)},type:"prev",isMobile:!0,get ref(){return vt.prevButton},set ref(Dt){vt.prevButton=Dt}})};V(di,Z=>{r(Gr)&&Z(mn)})}var To=A(di,2);{var Fo=Z=>{kl(Z,{get disabled(){return r(Sn)},get click(){return nt},isMobile:!0,get isPlaying(){return r(cr)},get ref(){return vt.playButton},set ref(qe){vt.playButton=qe}})};V(To,Z=>{r(Qr)&&Z(Fo)})}var Ho=A(To,2);{var Mr=Z=>{Il(Z,{get disabled(){return r(nn)},get click(){return nt},isMobile:!0,get ref(){return vt.replayButton},set ref(qe){vt.replayButton=qe}})};V(Ho,Z=>{r(Er)&&Z(Mr)})}var Gs=A(Ho,2);{var Jr=Z=>{let qe=g(()=>$t.bind(null,!0));Pa(Z,{get click(){return r(qe)},type:"next",isMobile:!0,get ref(){return vt.nextButton},set ref(Dt){vt.nextButton=Dt}})};V(Gs,Z=>{r(jr)&&Z(Jr)})}h(Ge),at(Ge,Z=>si.middle=Z,()=>si==null?void 0:si.middle);var Nn=A(Ge,2);{var Es=Z=>{var qe=$4(),Dt=pe(qe);{var ri=Vi=>{var Ti=h4();let Eo;Ti.__click=[v4,$o,e,fi];var Jn=_(Ti);let er=g(()=>!e.showControls);Zd(Jn,{get hidden(){return r(er)},get disabled(){return r($o)},get click(){return e.playPrevChapter},get ref(){return vt.playPrevChapterButton},set ref(Ii){vt.playPrevChapterButton=Ii}}),h(Ti),D(Ii=>Eo=ne(Ti,1,"wrapper-middle-left svelte-tg0ura",null,Eo,Ii),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(Vi,Ti)};V(Dt,Vi=>{St&&Vi(ri)})}var _i=A(Dt,2);{var Mi=Vi=>{var Ti=_4();let Eo;var Jn=_(Ti);let er=g(()=>!e.showControls&&!re());ec(Jn,{get hidden(){return r(er)},get disabled(){return r(ao)},get click(){return wn.toggle},get graphIsOpened(){return re()},get ref(){return vt.interactiveGraphButton},set ref(Ii){vt.interactiveGraphButton=Ii}}),h(Ti),D(Ii=>Eo=ne(Ti,1,fd(St?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Eo,Ii),[()=>({fullscreen:fe(),hidden:!e.showControls&&!re()})]),$(Vi,Ti)};V(_i,Vi=>{r(Zr)&&Vi(Mi)})}var Di=A(_i,2);{var vn=Vi=>{var Ti=b4();let Eo;Ti.__click=[g4,lo,e,so];var Jn=_(Ti);let er=g(()=>!e.showControls);Jd(Jn,{get hidden(){return r(er)},get disabled(){return r(lo)},get click(){return e.seekToInteractive},get ref(){return vt.seekToInteractiveButton},set ref(Ii){vt.seekToInteractiveButton=Ii}}),h(Ti),D(Ii=>Eo=ne(Ti,1,"wrapper-middle-right svelte-tg0ura",null,Eo,Ii),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(Vi,Ti)};V(Di,Vi=>{yi&&Vi(vn)})}$(Z,qe)};V(Nn,Z=>{ht&&!f()&&Z(Es)})}D((Z,qe,Dt,ri)=>{mo=ne(xi,1,"overlay-mobile svelte-tg0ura",null,mo,Z),vo=ne(qi,1,"wrapper-top-left svelte-tg0ura",null,vo,qe),go=ne(Li,1,"wrapper-top-right svelte-tg0ura",null,go,Dt),Wt=ne(Ge,1,"wrapper-middle svelte-tg0ura",null,Wt,ri)},[()=>({hidden:!r(fr)}),()=>({hidden:!e.showControls,fullscreen:fe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:fe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(st,Lt)};V(An,st=>{te()||st(gr)})}var kr=A(An,2);{var ds=st=>{var Lt=w4(),xi=pe(Lt);let mo;var qi=_(xi);Qu(qi,{get muted(){return Y()},click:cn,get ref(){return vt.volume},set ref(Co){vt.volume=Co}}),h(xi);var vo=A(xi,2);{var Li=Co=>{var Qi=x4(),Pr=_(Qi);let Xn=g(()=>!r(Qn));kl(Pr,{get disabled(){return r(Sn)},get click(){return nt},isMobile:!0,get isPlaying(){return r(Xn)},get ref(){return vt.playButton},set ref(Rn){vt.playButton=Rn}}),h(Qi),$(Co,Qi)};V(vo,Co=>{r(Qn)&&Co(Li)})}var go=A(vo,2);let fn;var Vn=_(go);Wd(Vn,{get position(){return Ve()},get duration(){return ae()}}),h(go),D((Co,Qi)=>{mo=ne(xi,1,"wrapper-top-right svelte-tg0ura",null,mo,Co),fn=ne(go,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,fn,Qi)},[()=>({fullscreen:fe()}),()=>({fullscreen:fe()})]),$(st,Lt)};V(kr,st=>{te()&&d()!=="inactive"&&st(ds)})}var Pn=A(kr,2);let Ki;var Gn=_(Pn);let hr;var ai=_(Gn),Ln=_(ai),_r=_(Ln);{var un=st=>{Po(st,{get disabled(){return r(nn)},get ref(){return vt.replayButton},set ref(Lt){vt.replayButton=Lt},children:(Lt,xi)=>{Il(Lt,{get disabled(){return r(nn)},get click(){return Jt}})},$$slots:{default:!0}})};V(_r,st=>{ht&&st(un)})}var _t=A(_r,2);{var li=st=>{Po(st,{get ref(){return vt.liveButton},set ref(Lt){vt.liveButton=Lt},children:(Lt,xi)=>{tc(Lt,{get isLiveActive(){return r(No)},isMobile:!0,get ariaLabel(){return r(co)}})},$$slots:{default:!0}})};V(_t,st=>{!te()&&P()&&st(li)})}var eo=A(_t,2);{var xo=st=>{let Lt=g(()=>te()?Ve():k()),xi=g(()=>te()?ae():ot()),mo=g(()=>!e.showControls);Bd(st,{get showDuration(){return r(Cn)},get position(){return r(Lt)},get duration(){return r(xi)},isMobile:!0,get isHidden(){return r(mo)},get ref(){return vt.time},set ref(qi){vt.time=qi}})};V(eo,st=>{r(pr)&&st(xo)})}var hi=A(eo,2);let Oo=g(()=>!r(En));Po(hi,{className:"w-max",get disabled(){return r(Oo)},get ref(){return vt.episodes},set ref(st){vt.episodes=st},children:(st,Lt)=>{var xi=Be(),mo=pe(xi);{var qi=vo=>{var Li=S4(),go=A(pe(Li),2);Kd(go,{get position(){return k()},get duration(){return ot()},get timeCodes(){return Bt}}),$(vo,Li)};V(mo,vo=>{r(En)&&vo(qi)})}$(st,xi)},$$slots:{default:!0}}),h(Ln),at(Ln,st=>si.bottomLeft=st,()=>si==null?void 0:si.bottomLeft);var wo=A(Ln,2),to=_(wo);{var Mn=st=>{Po(st,{get ref(){return vt.volume},set ref(Lt){vt.volume=Lt},children:(Lt,xi)=>{Qu(Lt,{get muted(){return r(mr)},click:cn})},$$slots:{default:!0}})};V(to,st=>{r(ln)&&st(Mn)})}var fo=A(to,2);{var jn=st=>{Po(st,{get ref(){return vt.settings},set ref(Lt){vt.settings=Lt},children:(Lt,xi)=>{Sl(Lt,{get ref$(){return jo}})},$$slots:{default:!0}})};V(fo,st=>{r(yo)&&st(jn)})}var So=A(fo,2);{var Bo=st=>{Po(st,{get ref(){return vt.fullscreen},set ref(Lt){vt.fullscreen=Lt},children:(Lt,xi)=>{Hd(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return fe()}})},$$slots:{default:!0}})};V(So,st=>{r(Tn)&&st(Bo)})}h(wo),at(wo,st=>si.bottomRight=st,()=>si==null?void 0:si.bottomRight),h(ai),at(ai,st=>Q(st),()=>Q());var br=A(ai,2);let pn=g(()=>!e.showControls);ka(br,{get isHidden(){return r(pn)},get isAds(){return te()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return F()},get ref(){return vt.timeline},set ref(st){vt.timeline=st}}),h(Gn),h(Pn),at(Pn,st=>Ne(st),()=>Ne());var Do=A(Pn,2);{var Yn=st=>{Gd(st,{get ref(){return vt.interactiveTimeIndicator},set ref(Lt){vt.interactiveTimeIndicator=Lt}})};V(Do,st=>{Ci&&st(Yn)})}D((st,Lt)=>{Ki=ne(Pn,1,"wrapper-bottom mobile svelte-tg0ura",null,Ki,st),hr=ne(Gn,1,"controls-wrapper svelte-tg0ura",null,hr,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:fe()})]),$(t,po),z(),o()}dt(["click"]);function ic(t,e){U(e,!0);let[i,o]=Oe(),n=()=>C(S,"$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,Xm.noop),x=v(e,"onDisabledSeekToInteractiveClick",3,Xm.noop),S=Se().ui.isMobile,E=X(!1);Vt(()=>{let B=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(B)});var R=Be(),I=pe(R);{var P=B=>{var F=Be(),H=pe(F);{var W=oe=>{Zm(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=>{zm(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(P)})}$(t,R),z(),o()}var E4=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Jm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=E4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}function ev(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Jm(t,{get style(){return r(o)}})}var I4=ye('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function tv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=I4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}var k4=ye('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function iv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=k4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}function Gu(t,e){let i=v(e,"isOff",3,!1);var o=Be(),n=pe(o);{var s=d=>{iv(d,{})},l=d=>{tv(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var A4=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function ov(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=A4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}function nv(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);ov(t,{get style(){return r(o)}})}var P4=ye('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function rv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=P4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(2),h(o),$(t,o)}function sv(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);rv(t,{get style(){return r(o)}})}var L4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),M4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),V4=M("<div><!></div>"),R4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
261
268
  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"],
262
269
  .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"],
263
270
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -272,23 +279,23 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
272
279
  @keyframes svelte-1ad3n06-fadeOut {
273
280
  0% {opacity:1;}
274
281
  100% {opacity:0;}
275
- }`};function jm(t,e){U(e,!0),q(t,x4);let[i,o]=He(),n=()=>C(e.data,"$data",i),l=Ee().ui.t,d=g(()=>!n()),a=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=g(()=>{var S;return(S=n())==null?void 0:S.type}),m=g(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=y4();let y;var w=_(u);{var x=S=>{var T=$4(),E=ge(T),L=_(E);{var k=ve=>{let ee=g(()=>r(f)==="FORWARD_SEEK");Um(ve,{get reversed(){return r(ee)}})};R(L,ve=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ve(k)})}var I=A(L,2);{var V=ve=>{Cs(ve,{})};R(I,ve=>{r(f)==="PAUSE"&&ve(V)})}var G=A(I,2);{var H=ve=>{Wr(ve,{})};R(G,ve=>{r(f)==="PLAY"&&ve(H)})}var F=A(G,2);{var W=ve=>{Kd(ve,{})};R(F,ve=>{r(f)==="REPLAY"&&ve(W)})}var J=A(F,2);{var j=ve=>{Du(ve,{isOff:!0})};R(J,ve=>{r(f)==="SUBTITLES_OFF"&&ve(j)})}var le=A(J,2);{var ie=ve=>{Du(ve,{})};R(le,ve=>{r(f)==="SUBTITLES_ON"&&ve(ie)})}var pe=A(le,2);{var he=ve=>{let ee=g(()=>r(f)==="RATE_UP");qm(ve,{get reversed(){return r(ee)}})};R(pe,ve=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ve(he)})}var ue=A(pe,2);{var Ne=ve=>{let ee=g(()=>r(f)==="EPISODE_NEXT");Gm(ve,{get reversed(){return r(ee)}})};R(ue,ve=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ve(Ne)})}var oe=A(ue,2);{var Ve=ve=>{Ks(ve,{volume:0})};R(oe,ve=>{r(f)==="MUTE"&&ve(Ve)})}var ne=A(oe,2);{var O=ve=>{Ks(ve,{volume:1})};R(ne,ve=>{r(f)==="VOLUME"&&ve(O)})}h(E);var ce=A(E,2);{var Le=ve=>{var ee=b4(),me=_(ee,!0);h(ee),D(()=>be(me,r(m))),$(ve,ee)};R(ce,ve=>{r(m)&&ve(Le)})}$(S,T)};R(w,S=>{!r(d)&&r(f)&&S(x)})}h(u),D(S=>y=te(u,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(p)})]),$(t,u),z(),o()}var w4=Ce('<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 Ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var S4=Ce('<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 Zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=S4();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}function Gs(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=qe(),a=ge(d);{var p=m=>{let u=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");Ym(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");Zm(m,{get style(){return r(l)},get"data-testid"(){return r(u)}})};R(a,m=>{r(n)?m(p):m(f,!1)})}$(t,d),z()}var C4=(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}},T4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},E4=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>'),I4={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 Xd(t,e){U(e,!0),q(t,I4);let i=v(e,"isShifted",3,!1),o=Ee(),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=K("aria_label_spherical_control");var m=E4();let u;m.__keydown=[C4,n,s,l,a,d],m.__keyup=[T4,n,p];var y=_(m),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=p;var S=_(x);Gs(S,{direction:"up",useBtnColor:!0}),h(x);var T=A(x,2);T.__mousedown=d,T.__mouseup=p;var E=_(T);Gs(E,{direction:"up",useBtnColor:!0}),h(T),h(w);var L=A(w,2),k=_(L);k.__mousedown=a,k.__mouseup=p;var I=_(k);Gs(I,{direction:"up",useBtnColor:!0}),h(k);var V=A(k,2);V.__mousedown=l,V.__mouseup=p;var G=_(V);Gs(G,{direction:"up",useBtnColor:!0}),h(V),h(L),h(y),h(m),D(H=>{u=te(m,1,"immersive-controls svelte-1yzc86r",null,u,H),Fe(m,"aria-label",f)},[()=>({"m-shifted":i()})]),Et("mouseleave",x,p),Et("mouseleave",T,p),Et("mouseleave",k,p),Et("mouseleave",V,p),$(t,m),z()}ut(["keydown","keyup","mousedown","mouseup"]);var Es=require("@vkontakte/videoplayer-shared/es2018");var n0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Hu=class{constructor(){this.flickeringTimeout=n0(1e3);this.subscriptions=new Es.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Es.ValueSubject([]);this.captionsPrepared$=new Es.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Es.filter)(()=>this.isEnabled()),(0,Es.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type: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 k4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),A4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),P4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),M4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),L4=M("<div><!></div>"),V4={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;
276
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Va(t,e){U(e,!0),q(t,V4);let[i,o]=He(),n=()=>C(m,"$currentSubtitle$",i),s=()=>C(y,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=v(e,"isMobile",3,!1),p=Ee(),f=At(),m=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,w=p.ui.isFullscreen,x=g(()=>!!n().isAuto),S=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),L=Y(null);Ke(()=>{var W,J,j;(W=r(L))==null||W.setIsAuto(r(x)),(J=r(L))==null||J.setIsLive(r(S)),(j=r(L))==null||j.setCaptions(e.captions)});let k=Y(ti([[]]));Lt(()=>{B(L,new Hu().subscribe(),!0);let W=r(L).captionsPrepared$.subscribe(J=>{B(k,J,!0)});return()=>{var J;(J=r(L))==null||J.destroy(),W.unsubscribe()}}),Lt(()=>{if(r(x)){let W=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(W)}}else u.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=L4();let G;var H=_(V);{var F=W=>{var J=M4();let j;var le=_(J),ie=_(le);{var pe=ue=>{var Ne=k4(),oe=_(Ne),Ve=_(oe,!0);h(oe),h(Ne),D(ne=>{var O;st(oe,`font-size: ${(O=r(E))!=null?O:""}px`),be(Ve,ne)},[()=>K("subtitles_auto_caption")]),$(ue,Ne)},he=(ue,Ne)=>{{var oe=ne=>{var O=qe(),ce=ge(O);Si(ce,17,()=>r(k),ad,(Le,ve)=>{var ee=A4(),me=_(ee);Si(me,21,()=>r(ve),({value:De,timeAppeared:fe})=>fe,(De,fe)=>{let dt=()=>r(fe).value,Z=()=>r(fe).timeAppeared;var Pe=qe(),Ie=ge(Pe);{var Ue=nt=>{var ft=ts();D(()=>be(ft,dt())),$(nt,ft)};R(Ie,nt=>{(!Z()||Z()<=e.position)&&nt(Ue)})}$(De,Pe)}),h(me),h(ee),D(()=>{var De;return st(me,`font-size: ${(De=r(E))!=null?De:""}px`)}),$(Le,ee)}),$(ne,O)},Ve=ne=>{var O=qe(),ce=ge(O);Si(ce,17,()=>e.captions,({value:Le})=>Le,(Le,ve)=>{let ee=()=>r(ve).value;var me=P4(),De=_(me),fe=_(De,!0);h(De),h(me),D(()=>{var dt;st(De,`font-size: ${(dt=r(E))!=null?dt:""}px`),be(fe,ee())}),$(Le,me)}),$(ne,O)};R(ue,ne=>{var O;r(x)&&((O=r(k))!=null&&O.length)?ne(oe):ne(Ve,!1)},Ne)}};R(ie,ue=>{r(x)&&d()?ue(pe):ue(he,!1)})}h(le),h(J),D(ue=>{var Ne;j=te(J,1,"subtitles-caption svelte-c2x749",null,j,ue),st(J,`--subtitles-caption-margin: ${(Ne=r(I))!=null?Ne:""}%`)},[()=>({mobile:a()})]),$(W,J)};R(H,W=>{var J;(e.captions.length||(J=r(k))!=null&&J.length)&&W(F)})}h(V),D(W=>G=te(V,1,"subtitles-container svelte-c2x749",null,G,W),[()=>({shifted:e.shifted,auto:r(x)&&!r(S)&&!d()})]),$(t,V),z(),o()}var R4=M('<div class="text svelte-raurnb"> </div>'),N4=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>'),O4={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 Jd(t,e){U(e,!0),q(t,O4);let i=At();var o=N4();let n;var s=A(_(o),2);{var l=d=>{var a=R4(),p=_(a);h(a),D(()=>{var f;return be(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)};R(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),D(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),st(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),z()}var B4=Ce('<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 Xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=B4();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var D4=M('<div class="container svelte-13zpvm8"><!></div>'),H4={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 Ra(t){q(t,H4);var e=D4(),i=_(e);Xm(i,{}),h(e),$(t,e)}var F4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),U4=M("<div><!></div>"),z4={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,
282
+ }`};function av(t,e){U(e,!0),K(t,R4);let[i,o]=Oe(),n=()=>C(e.data,"$data",i),s=Se(),{features:l}=At(),d=s.ui.t,a=g(()=>!n()),p=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),f=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),m=g(()=>{var S;return(S=n())==null?void 0:S.type}),u=g(()=>{var S,E;return(S=n())!=null&&S.t?d(n().t.key,{value:n().t.value||""}):(E=n())==null?void 0:E.text});var y=V4();let w;var x=_(y);{var T=S=>{var E=M4(),R=pe(E),I=_(R);{var P=Q=>{let te=g(()=>r(m)==="FORWARD_SEEK");ev(Q,{get reversed(){return r(te)}})};V(I,Q=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&Q(P)})}var B=A(I,2);{var F=Q=>{Ss(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=>{Yd(Q,{})};V(Y,Q=>{r(m)==="REPLAY"&&!l.playbackStatusShow&&Q(oe)})}var G=A(Y,2);{var ge=Q=>{Gu(Q,{isOff:!0})};V(G,Q=>{r(m)==="SUBTITLES_OFF"&&Q(ge)})}var ee=A(G,2);{var fe=Q=>{Gu(Q,{})};V(ee,Q=>{r(m)==="SUBTITLES_ON"&&Q(fe)})}var ue=A(ee,2);{var ce=Q=>{let te=g(()=>r(m)==="RATE_UP");nv(Q,{get reversed(){return r(te)}})};V(ue,Q=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&Q(ce)})}var Pe=A(ue,2);{var Me=Q=>{let te=g(()=>r(m)==="EPISODE_NEXT");sv(Q,{get reversed(){return r(te)}})};V(Pe,Q=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&Q(Me)})}var re=A(Pe,2);{var Ve=Q=>{Ks(Q,{volume:0})};V(re,Q=>{r(m)==="MUTE"&&Q(Ve)})}var ae=A(re,2);{var k=Q=>{Ks(Q,{volume:1})};V(ae,Q=>{r(m)==="VOLUME"&&Q(k)})}h(R);var ot=A(R,2);{var Ne=Q=>{var te=L4(),Re=_(te,!0);h(te),D(()=>me(Re,r(u))),$(Q,te)};V(ot,Q=>{r(u)&&Q(Ne)})}$(S,E)};V(x,S=>{!r(a)&&r(m)&&S(T)})}h(y),D(S=>w=ne(y,1,"hot-key-helpers-container svelte-1ad3n06",null,w,S),[()=>({hidden:r(a),"hot-key-helpers-container--left":r(p),"hot-key-helpers-container--right":r(f)})]),$(t,y),z(),o()}var N4=ye('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function lv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=N4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var O4=ye('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function dv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=O4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),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=Be(),a=pe(d);{var p=m=>{let u=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");lv(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");dv(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 B4=(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}},D4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},F4=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>'),H4={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 oc(t,e){U(e,!0),K(t,H4);let i=v(e,"isShifted",3,!1),o=Se(),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=F4();let u;m.__keydown=[B4,n,s,l,a,d],m.__keyup=[D4,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 S=A(x,2);S.__mousedown=d,S.__mouseup=p;var E=_(S);qs(E,{direction:"up",useBtnColor:!0}),h(S),h(w);var R=A(w,2),I=_(R);I.__mousedown=a,I.__mouseup=p;var P=_(I);qs(P,{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),De(m,"aria-label",f)},[()=>({"m-shifted":i()})]),kt("mouseleave",x,p),kt("mouseleave",S,p),kt("mouseleave",I,p),kt("mouseleave",B,p),$(t,m),z()}dt(["keydown","keyup","mousedown","mouseup"]);var Ts=require("@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 ju=class{constructor(){this.flickeringTimeout=x0(1e3);this.subscriptions=new Ts.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ts.ValueSubject([]);this.captionsPrepared$=new Ts.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ts.filter)(()=>this.isEnabled()),(0,Ts.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type: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 U4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),z4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),W4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),K4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),q4=M("<div><!></div>"),Q4={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 Ra(t,e){U(e,!0),K(t,Q4);let[i,o]=Oe(),n=()=>C(m,"$currentSubtitle$",i),s=()=>C(y,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=v(e,"isMobile",3,!1),p=Se(),f=At(),m=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,w=p.ui.isFullscreen,x=g(()=>!!n().isAuto),T=g(()=>!!s()),S=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(S)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(S)),R=X(null);Ue(()=>{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(ii([[]]));Vt(()=>{O(R,new ju().subscribe(),!0);let Y=r(R).captionsPrepared$.subscribe(oe=>{O(I,oe,!0)});return()=>{var oe;(oe=r(R))==null||oe.destroy(),Y.unsubscribe()}}),Vt(()=>{if(r(x)){let Y=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else u.set(!1)});let P=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=q4();let F;var H=_(B);{var W=Y=>{var oe=K4();let G;var ge=_(oe),ee=_(ge);{var fe=ce=>{var Pe=U4(),Me=_(Pe),re=_(Me,!0);h(Me),h(Pe),D(Ve=>{var ae;lt(Me,`font-size: ${(ae=r(E))!=null?ae:""}px`),me(re,Ve)},[()=>q("subtitles_auto_caption")]),$(ce,Pe)},ue=(ce,Pe)=>{{var Me=Ve=>{var ae=Be(),k=pe(ae);ki(k,17,()=>r(I),ud,(ot,Ne)=>{var Q=z4(),te=_(Q);ki(te,21,()=>r(Ne),({value:Re,timeAppeared:Xe})=>Xe,(Re,Xe)=>{let _e=()=>r(Xe).value,J=()=>r(Xe).timeAppeared;var xe=Be(),Ce=pe(xe);{var He=nt=>{var bt=rs();D(()=>me(bt,_e())),$(nt,bt)};V(Ce,nt=>{(!J()||J()<=e.position)&&nt(He)})}$(Re,xe)}),h(te),h(Q),D(()=>{var Re;return lt(te,`font-size: ${(Re=r(E))!=null?Re:""}px`)}),$(ot,Q)}),$(Ve,ae)},re=Ve=>{var ae=Be(),k=pe(ae);ki(k,17,()=>e.captions,({value:ot})=>ot,(ot,Ne)=>{let Q=()=>r(Ne).value;var te=W4(),Re=_(te),Xe=_(Re,!0);h(Re),h(te),D(()=>{var _e;lt(Re,`font-size: ${(_e=r(E))!=null?_e:""}px`),me(Xe,Q())}),$(ot,te)}),$(Ve,ae)};V(ce,Ve=>{var ae;r(x)&&((ae=r(I))!=null&&ae.length)?Ve(Me):Ve(re,!1)},Pe)}};V(ee,ce=>{r(x)&&d()?ce(fe):ce(ue,!1)})}h(ge),h(oe),D(ce=>{var Pe;G=ne(oe,1,"subtitles-caption svelte-c2x749",null,G,ce),lt(oe,`--subtitles-caption-margin: ${(Pe=r(P))!=null?Pe:""}%`)},[()=>({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 G4=M('<div class="text svelte-raurnb"> </div>'),j4=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>'),Y4={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 nc(t,e){U(e,!0),K(t,Y4);let i=At();var o=j4();let n;var s=A(_(o),2);{var l=d=>{var a=G4(),p=_(a);h(a),D(()=>{var f;return me(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(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),lt(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 Z4=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function cv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var X4=M('<div class="container svelte-13zpvm8"><!></div>'),J4={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 Na(t){K(t,J4);var e=X4(),i=_(e);cv(i,{}),h(e),$(t,e)}var e3=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),t3=M("<div><!></div>"),i3={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,
277
284
  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,
278
- 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 Na(t,e){U(e,!0),q(t,z4);let i=v(e,"iconVisible",3,!0),o=Ee(),n=At(),s=o.ui.startedByKeyboard$,l=K("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=U4();let f;p.__click=a;var m=_(p);{var u=y=>{var w=F4();w.__keydown=d;var x=A(_(w),2);Wr(x,{}),h(w),D(()=>Fe(w,"aria-label",l)),$(y,w)};R(m,y=>{i()&&y(u)})}return h(p),D(y=>{f=te(p,1,"container svelte-1ciju45",null,f,y),st(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),z({handlePressKey:d,handleClick:a})}ut(["click","keydown"]);var W4=M('<div data-testid="video_title"><span> </span></div>'),K4={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(
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 Oa(t,e){U(e,!0),K(t,i3);let i=v(e,"iconVisible",3,!0),o=Se(),n=At(),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,x;y.stopPropagation(),(w=e.startVideo)==null||w.call(e),(x=e.onClick)==null||x.call(e,y)};var p=t3();let f;p.__click=a,p.__contextmenu=function(...y){var w;(w=e.onContextMenu)==null||w.apply(this,y)};var m=_(p);{var u=y=>{var w=e3();w.__keydown=d;var x=A(_(w),2);Kr(x,{}),h(w),D(()=>De(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),lt(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","contextmenu","keydown"]);var o3=M('<div data-testid="video_title"><span> </span></div>'),n3={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
279
286
  0deg,
280
287
  rgba(0, 0, 0, 0) 0%,
281
288
  rgba(0, 0, 0, 0.02) 19%,
282
289
  rgba(0, 0, 0, 0.1) 34%,
283
290
  rgba(0, 0, 0, 0.4) 60%,
284
291
  rgba(0, 0, 0, 0.6) 100%
285
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Jm(t,e){U(e,!0),q(t,K4);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1),n=v(e,"ref",15),s=Y(void 0);Lt(()=>{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=W4();let d;var a=_(l),p=_(a,!0);h(a),ot(a,f=>n(f),()=>n()),h(l),ot(l,f=>B(s,f),()=>r(s)),D(f=>{d=te(l,1,"title svelte-14hk510",null,d,f),be(p,i())},[()=>({hidden:o()})]),$(t,l),z()}var r0=require("@vkontakte/videoplayer-shared/es2018");var q4=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),Q4=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),G4=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),j4=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),Y4=M("<div><!> <!> <!> <!></div>"),Z4={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 ev(t,e){U(e,!0),q(t,Z4);let i=Y(""),o=Y(""),n=Y(""),s=Y(""),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 F=Math.floor(H/86400);F&&(H-=F*86400,B(i,p(F),!0));let W=Math.floor(H/3600);B(o,p(W),!0);let J=Math.floor(H/60)%60;B(n,p(J),!0);let j=H%60;B(s,p(j),!0)},y=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;u(F),F>=1?l=requestAnimationFrame(y):e.onTimerOver()};Lt(()=>{l=requestAnimationFrame(y)}),rn(()=>{cancelAnimationFrame(l)});var w=Y4();let x;var S=_(w);{var T=H=>{var F=q4(),W=ge(F);let J;var j=_(W),le=_(j,!0);h(j);var ie=A(j,2),pe=_(ie,!0);h(ie),h(W);var he=A(W,2),ue=_(he,!0);h(he),D((Ne,oe,Ve)=>{J=st(W,"",J,{width:Ne}),be(le,r(i)),be(pe,oe),be(ue,Ve)},[()=>m(r(i)),()=>K("waiting_live_day_value"),()=>K("waiting_live_colon")]),$(H,F)};R(S,H=>{r(i)&&H(T)})}var E=A(S,2);{var L=H=>{var F=Q4(),W=ge(F);let J;var j=_(W),le=_(j,!0);h(j);var ie=A(j,2),pe=_(ie,!0);h(ie),h(W);var he=A(W,2),ue=_(he,!0);h(he),D((Ne,oe,Ve)=>{J=st(W,"",J,{width:Ne}),be(le,r(o)),be(pe,oe),be(ue,Ve)},[()=>m(r(o)),()=>K("waiting_live_hour_value"),()=>K("waiting_live_colon")]),$(H,F)};R(E,H=>{r(o)&&H(L)})}var k=A(E,2);{var I=H=>{var F=G4(),W=ge(F);let J;var j=_(W),le=_(j,!0);h(j);var ie=A(j,2),pe=_(ie,!0);h(ie),h(W);var he=A(W,2),ue=_(he,!0);h(he),D((Ne,oe,Ve)=>{J=st(W,"",J,{width:Ne}),be(le,r(n)),be(pe,oe),be(ue,Ve)},[()=>m(r(n)),()=>K("waiting_live_minute_value"),()=>K("waiting_live_colon")]),$(H,F)};R(k,H=>{r(n)&&H(I)})}var V=A(k,2);{var G=H=>{var F=j4();let W;var J=_(F),j=_(J,!0);h(J);var le=A(J,2),ie=_(le,!0);h(le),h(F),D((pe,he)=>{W=st(F,"",W,{width:pe}),be(j,r(s)),be(ie,he)},[()=>m(r(s)),()=>K("waiting_live_second_value")]),$(H,F)};R(V,H=>{r(s)&&H(G)})}h(w),D(H=>x=te(w,1,"timer__container svelte-gt98rn",null,x,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var X4=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),J4=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),e3=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),t3={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 ec(t,e){U(e,!0),q(t,t3);let i=v(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=Y(void 0),s=Y(void 0),l=0,d=Y(void 0),a=Y(void 0),p=g(()=>{var S,T;return((S=r(d))!=null?S:1/0)<=509||((T=r(a))!=null?T:1/0)<=320}),f=g(()=>{var S,T;return!r(p)&&(((S=r(d))!=null?S:1/0)<=699||((T=r(a))!=null?T:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,r0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"},T=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(S,T)})},300):void 0;Ke(()=>{r(a),r(d),r(o),m==null||m()}),rn(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var u=e3(),y=_(u);{var w=S=>{var T=X4(),E=_(T);let L;var k=_(E,!0);h(E),h(T),ot(T,I=>B(n,I),()=>r(n)),D((I,V)=>{L=te(E,1,"waiting__title svelte-17m8dcd",null,L,I),be(k,V)},[()=>({medium:r(f),small:r(p)}),()=>K("waiting_live_upcoming_title")]),$(S,T)},x=S=>{var T=J4(),E=_(T);let L;var k=_(E,!0);h(E);var I=A(E,2);let V=g(()=>r(p)||r(f)),G=g(()=>i()||0);ev(I,{get isSmallSize(){return r(V)},get startTime(){return r(G)},onTimerOver:()=>B(o,!0)}),h(T),ot(T,H=>B(s,H),()=>r(s)),D((H,F)=>{L=te(E,1,"timer__title svelte-17m8dcd",null,L,H),be(k,F)},[()=>({medium:r(f),small:r(p)}),()=>K("waiting_live_timer_title")]),$(S,T)};R(y,S=>{r(o)?S(w):S(x,!1)})}h(u),D(()=>st(u,`background-image: url(${e.thumbUrl})`)),sr(u,"clientWidth",S=>B(d,S)),sr(u,"clientHeight",S=>B(a,S)),$(t,u),z()}var i3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),o3={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 Oa(t,e){U(e,!0),q(t,o3);let i=v(e,"thumbUrl",3,""),o={recover:K("waiting_live_recover_title"),record:K("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=i3(),l=_(s),d=_(l);Sa(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),p=_(a,!0);h(a),h(l),h(s),D(()=>{st(s,`background-image: url('${i()}')`),be(p,r(n))}),$(t,s),z()}var n3=Ce('<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 tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=n3();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var r3=M('<div class="select-icon svelte-124aexk"><!></div>'),s3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function tc(t){q(t,s3);var e=r3(),i=_(e);tv(i,{}),h(e),$(t,e)}var a3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},l3=(t,e)=>{$l(t,()=>e.item.selectItem(e.item.value))},d3=M("<p> </p>"),c3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),u3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),p3={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;
292
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function uv(t,e){U(e,!0),K(t,n3);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1),n=v(e,"ref",15),s=X(void 0);Vt(()=>{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=o3();let d;var a=_(l),p=_(a,!0);h(a),at(a,f=>n(f),()=>n()),h(l),at(l,f=>O(s,f),()=>r(s)),D(f=>{d=ne(l,1,"title svelte-14hk510",null,d,f),me(p,i())},[()=>({hidden:o()})]),$(t,l),z()}var w0=require("@vkontakte/videoplayer-shared/es2018");var r3=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),s3=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),a3=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),l3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),d3=M("<div><!> <!> <!> <!></div>"),c3={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 pv(t,e){U(e,!0),K(t,c3);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()};Vt(()=>{l=requestAnimationFrame(y)}),en(()=>{cancelAnimationFrame(l)});var w=d3();let x;var T=_(w);{var S=H=>{var W=r3(),Y=pe(W);let oe;var G=_(Y),ge=_(G,!0);h(G);var ee=A(G,2),fe=_(ee,!0);h(ee),h(Y);var ue=A(Y,2),ce=_(ue,!0);h(ue),D((Pe,Me,re)=>{oe=lt(Y,"",oe,{width:Pe}),me(ge,r(i)),me(fe,Me),me(ce,re)},[()=>m(r(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),$(H,W)};V(T,H=>{r(i)&&H(S)})}var E=A(T,2);{var R=H=>{var W=s3(),Y=pe(W);let oe;var G=_(Y),ge=_(G,!0);h(G);var ee=A(G,2),fe=_(ee,!0);h(ee),h(Y);var ue=A(Y,2),ce=_(ue,!0);h(ue),D((Pe,Me,re)=>{oe=lt(Y,"",oe,{width:Pe}),me(ge,r(o)),me(fe,Me),me(ce,re)},[()=>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 P=H=>{var W=a3(),Y=pe(W);let oe;var G=_(Y),ge=_(G,!0);h(G);var ee=A(G,2),fe=_(ee,!0);h(ee),h(Y);var ue=A(Y,2),ce=_(ue,!0);h(ue),D((Pe,Me,re)=>{oe=lt(Y,"",oe,{width:Pe}),me(ge,r(n)),me(fe,Me),me(ce,re)},[()=>m(r(n)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),$(H,W)};V(I,H=>{r(n)&&H(P)})}var B=A(I,2);{var F=H=>{var W=l3();let Y;var oe=_(W),G=_(oe,!0);h(oe);var ge=A(oe,2),ee=_(ge,!0);h(ge),h(W),D((fe,ue)=>{Y=lt(W,"",Y,{width:fe}),me(G,r(s)),me(ee,ue)},[()=>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 u3=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),p3=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),f3=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),m3={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 rc(t,e){U(e,!0),K(t,m3);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,S;return((T=r(d))!=null?T:1/0)<=509||((S=r(a))!=null?S:1/0)<=320}),f=g(()=>{var T,S;return!r(p)&&(((T=r(d))!=null?T:1/0)<=699||((S=r(a))!=null?S:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,w0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let T={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"},S=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(T,S)})},300):void 0;Ue(()=>{r(a),r(d),r(o),m==null||m()}),en(()=>{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=f3();u.__contextmenu=function(...T){var S;(S=e.onContextMenu)==null||S.apply(this,T)},u.__click=function(...T){var S;(S=e.onClick)==null||S.apply(this,T)};var y=_(u);{var w=T=>{var S=u3(),E=_(S);let R;var I=_(E,!0);h(E),h(S),at(S,P=>O(n,P),()=>r(n)),D((P,B)=>{R=ne(E,1,"waiting__title svelte-17m8dcd",null,R,P),me(I,B)},[()=>({medium:r(f),small:r(p)}),()=>q("waiting_live_upcoming_title")]),$(T,S)},x=T=>{var S=p3(),E=_(S);let R;var I=_(E,!0);h(E);var P=A(E,2);let B=g(()=>r(p)||r(f)),F=g(()=>i()||0);pv(P,{get isSmallSize(){return r(B)},get startTime(){return r(F)},onTimerOver:()=>O(o,!0)}),h(S),at(S,H=>O(s,H),()=>r(s)),D((H,W)=>{R=ne(E,1,"timer__title svelte-17m8dcd",null,R,H),me(I,W)},[()=>({medium:r(f),small:r(p)}),()=>q("waiting_live_timer_title")]),$(T,S)};V(y,T=>{r(o)?T(w):T(x,!1)})}h(u),D(()=>lt(u,`background-image: url(${e.thumbUrl})`)),dr(u,"clientWidth",T=>O(d,T)),dr(u,"clientHeight",T=>O(a,T)),$(t,u),z()}dt(["contextmenu","click"]);var v3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),g3={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 Ba(t,e){U(e,!0),K(t,g3);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=v3();s.__contextmenu=function(...f){var m;(m=e.onContextMenu)==null||m.apply(this,f)},s.__click=function(...f){var m;(m=e.onClick)==null||m.apply(this,f)};var l=_(s),d=_(l);Ca(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),p=_(a,!0);h(a),h(l),h(s),D(()=>{lt(s,`background-image: url('${i()}')`),me(p,r(n))}),$(t,s),z()}dt(["contextmenu","click"]);var h3=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function fv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=h3();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var _3=M('<div class="select-icon svelte-124aexk"><!></div>'),b3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function sc(t){K(t,b3);var e=_3(),i=_(e);fv(i,{}),h(e),$(t,e)}var $3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},y3=(t,e)=>{$l(t,()=>e.item.selectItem(e.item.value))},x3=M("<p> </p>"),w3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),S3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),C3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
286
293
 
287
294
  /**
288
295
  * \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
289
296
  * \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.
290
297
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
291
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function iv(t,e){U(e,!0),q(t,p3);let i=v(e,"isMobile",3,!1);var o=u3();let n;o.__click=[a3,e],o.__keydown=[l3,e];var s=_(o);{var l=w=>{tc(w,{})};R(s,w=>{e.item.selected&&w(l)})}var d=A(s,2);let a;var p=_(d);{var f=w=>{var x=qe(),S=ge(x);Ci(S,()=>e.item.valueComponent,(T,E)=>{E(T,ys(()=>{var L;return(L=e.item.valueComponentParams)!=null?L:{}}))}),$(w,x)},m=w=>{var x=d3();let S;var T=_(x,!0);h(x),D(E=>{var L;S=te(x,1,"label svelte-1t7rx2m",null,S,E),be(T,(L=e.item.label)!=null?L:e.item.value)},[()=>({mobile:i()})]),$(w,x)};R(p,w=>{e.item.valueComponent?w(f):w(m,!1)})}var u=A(p,2);{var y=w=>{var x=c3(),S=_(x,!0);h(x),D(()=>be(S,e.item.sublabel)),$(w,x)};R(u,w=>{e.item.sublabel&&w(y)})}h(d),h(o),D((w,x,S)=>{n=te(o,1,"item",null,n,w),Fe(o,"data-value",e.item.value),Fe(o,"aria-label",x),Fe(o,"data-testid",e.item.dataTestid),a=te(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Fe(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()}ut(["click","keydown"]);var f3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function ov(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=>yu(x,r(n)));var l=f3();let d;l.__click=function(...x){var S;(S=r(n))==null||S.apply(this,x)},l.__keydown=function(...x){var S;(S=r(s))==null||S.apply(this,x)};var a=_(l);{var p=x=>{tc(x,{})};R(a,x=>{e.item.selected&&x(p)})}var f=A(a,2);let m;var u=_(f);{var y=x=>{var S=qe();let T=g(()=>e.item.valueComponent);var E=ge(S);Ci(E,()=>r(T),(L,k)=>{k(L,ys(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(x,S)},w=x=>{var S=ts();D(()=>be(S,e.item.label)),$(x,S)};R(u,x=>{e.item.valueComponent?x(y):x(w,!1)})}h(f),h(l),ot(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),D((x,S)=>{var T;d=te(l,1,"item",null,d,x),Fe(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Fe(l,"data-testid",e.item.id),m=te(f,1,"menu-item-value",null,m,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),z()}ut(["click","keydown"]);var Kr={"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 v3=(t,e)=>{T1(t,e.returnFromSubMenu,e.closeSettingsMenu)},g3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},h3=(t,e)=>{Cd(t)&&(xr(t),e.returnFromSubMenu())},_3=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>'),b3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
298
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function mv(t,e){U(e,!0),K(t,C3);let i=v(e,"isMobile",3,!1);var o=S3();let n;o.__click=[$3,e],o.__keydown=[y3,e];var s=_(o);{var l=w=>{sc(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=A(s,2);let a;var p=_(d);{var f=w=>{var x=Be(),T=pe(x);Ai(T,()=>e.item.valueComponent,(S,E)=>{E(S,bs(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),$(w,x)},m=w=>{var x=x3();let T;var S=_(x,!0);h(x),D(E=>{var R;T=ne(x,1,"label svelte-1t7rx2m",null,T,E),me(S,(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=w3(),T=_(x,!0);h(x),D(()=>me(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),De(o,"data-value",e.item.value),De(o,"aria-label",x),De(o,"data-testid",e.item.dataTestid),a=ne(d,1,"menu-item-value svelte-1t7rx2m",null,a,T),De(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 T3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function vv(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=T3();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=>{sc(x,{})};V(a,x=>{e.item.selected&&x(p)})}var f=A(a,2);let m;var u=_(f);{var y=x=>{var T=Be();let S=g(()=>e.item.valueComponent);var E=pe(T);Ai(E,()=>r(S),(R,I)=>{I(R,bs(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),$(x,T)},w=x=>{var T=rs();D(()=>me(T,e.item.label)),$(x,T)};V(u,x=>{e.item.valueComponent?x(y):x(w,!1)})}h(f),h(l),at(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 S;d=ne(l,1,"item",null,d,x),De(l,"aria-label",(S=e.item.ariaLabel)!=null?S:e.item.label),De(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 I3=(t,e)=>{W1(t,e.returnFromSubMenu,e.closeSettingsMenu)},k3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},A3=(t,e)=>{kd(t)&&(Tr(t),e.returnFromSubMenu())},P3=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>'),L3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
299
  /*\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 {
293
300
  /**
294
301
  * \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.
@@ -298,18 +305,18 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
298
305
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
299
306
  1px
300
307
  );}.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,
301
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function rv(t,e){U(e,!0),q(t,b3);let[i,o]=He(),n=()=>C(m,"$isFullscreen",i),s=()=>C(u,"$playerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),a=v(e,"ariaLabelReturnFromSubMenu",19,()=>K("aria_label_submenu_back")),p=v(e,"listRef",15);Lt(()=>{let j=e.items.findIndex(le=>le.selected);p().children[j+1].focus()});let f=Ee(),m=f.ui.isFullscreen,u=f.ui.playerSize,y=Y(void 0),w=Y(0),x=Y(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(x)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=_3();let L;var k=_(E);let I;k.__keydown=[v3,e];var V=_(k);let G;V.__click=[g3,e],V.__keydown=[h3,e];var H=_(V);Gs(H,{direction:"left"});var F=A(H,2),W=_(F,!0);h(F),h(V),ot(V,j=>B(y,j),()=>r(y));var J=A(V,2);Si(J,17,()=>e.items,ad,(j,le)=>{var ie=qe(),pe=ge(ie);{var he=Ne=>{iv(Ne,{get item(){return r(le)},get isMobile(){return l()}})},ue=(Ne,oe)=>{{var Ve=ne=>{ov(ne,{get isMobile(){return l()},get item(){return r(le)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Ne,ne=>{r(le).type==="OPEN_SUB_MENU"&&ne(Ve)},oe)}};R(pe,Ne=>{r(le).type==="SELECT_VALUE"?Ne(he):Ne(ue,!1)})}$(j,ie)}),h(k),ot(k,j=>p(j),()=>p()),h(E),D((j,le,ie)=>{L=te(E,1,"sub-menu menu svelte-7dfsuh",null,L,j),Fe(E,"data-testid",`sub-menu-${e.id}`),st(E,`min-width: ${r(T)}px`),I=te(k,1,"items svelte-7dfsuh",null,I,le),st(k,r(S)),G=te(V,1,"item header back svelte-7dfsuh",null,G,ie),Fe(V,"aria-label",a()),be(W,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),sr(V,"clientWidth",j=>B(w,j)),sr(V,"clientHeight",j=>B(x,j)),$(t,E),z(),o()}ut(["keydown","click"]);var a0=require("@vkontakte/videoplayer-shared/es2018");var $3=(t,e)=>yu(t,e()),y3=(t,e)=>{t.stopPropagation(),e()()},x3=M('<div class="value svelte-1ikfjte"> </div>'),w3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),S3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function sv(t,e){U(e,!0),q(t,S3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,a0.noop),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=w3();let d;l.__click=[y3,o],l.__keydown=[$3,o];var a=_(l),p=_(a);{var f=T=>{Pa(T,{get icon(){return e.icon}})},m=T=>{var E=qe();let L=g(()=>e.icon);var k=ge(E);Ci(k,()=>r(L),(I,V)=>{V(I,{})}),$(T,E)};R(p,T=>{typeof e.icon=="string"?T(f):T(m,!1)})}h(a);var u=A(a,2),y=_(u,!0);h(u);var w=A(u,2);{var x=T=>{var E=qe();let L=g(n);var k=ge(E);Ci(k,()=>r(L),(I,V)=>{V(I,{})}),$(T,E)},S=T=>{var E=x3(),L=_(E,!0);h(E),D(()=>be(L,e.value)),$(T,E)};R(w,T=>{n()?T(x):T(S,!1)})}h(l),ot(l,T=>s(T),()=>s()),D(T=>{d=te(l,1,"item",null,d,T),Fe(l,"aria-label",e.ariaLabel),Fe(l,"data-testid",e.id),be(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}ut(["click","keydown"]);var av=require("@vkontakte/videoplayer-shared/es2018");var C3=(t,e)=>{$l(t,()=>e())},T3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),E3=M('<img class="icon" aria-hidden="true"/>'),I3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),k3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function lv(t,e){U(e,!0),q(t,k3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,av.noop),n=v(e,"closeSettings",3,av.noop),s=Y(!1),l=()=>{B(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=I3();let p;a.__click=d,a.__keydown=[C3,d];var f=_(a),m=_(f);{var u=S=>{var T=qe(),E=ge(T);{var L=I=>{var V=T3();$(I,V)},k=I=>{var V=E3();D(()=>Fe(V,"src",e.icon)),Et("error",V,l),aa(V),$(I,V)};R(E,I=>{r(s)?I(L):I(k,!1)})}$(S,T)},y=S=>{var T=qe();let E=g(()=>e.icon);var L=ge(T);Ci(L,()=>r(E),(k,I)=>{I(k,{})}),$(S,T)};R(m,S=>{typeof e.icon=="string"?S(u):S(y,!1)})}h(f);var w=A(f,2),x=_(w,!0);h(w),h(a),D(S=>{var T;p=te(a,1,"item",null,p,S),Fe(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Fe(a,"data-testid",e.id),be(x,e.label)},[()=>({mobile:i()})]),$(t,a),z()}ut(["click","keydown"]);var l0=require("@vkontakte/videoplayer-shared/es2018");var A3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),P3={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 dv(t,e){q(t,P3);let i=v(e,"enabled",3,!1);var o=A3(),n=_(o);let s;Se(2),h(o),D(l=>s=te(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var M3=(t,e,i)=>{E1(t,e(),o=>i()(o))},L3=(t,e,i)=>{t.stopPropagation(),e()(!i())},V3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),R3=M('<li role="menuitem" tabindex="0"><!></li>');function cv(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,l0.noop),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=R3();let a;d.__click=[L3,o,n],d.__keydown=[M3,n,o];var p=_(d);Ta(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var u=V3();let y;var w=_(u),x=_(w);{var S=I=>{Pa(I,{get icon(){return e.icon}})},T=I=>{var V=qe();let G=g(()=>e.icon);var H=ge(V);Ci(H,()=>r(G),(F,W)=>{W(F,{})}),$(I,V)};R(x,I=>{typeof e.icon=="string"?I(S):I(T,!1)})}h(w);var E=A(w,2),L=_(E,!0);h(E);var k=A(E,2);dv(k,{get enabled(){return n()}}),h(u),D(I=>{y=te(u,1,"switch-wrapper",null,y,I),be(L,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),h(d),D(f=>{var m;a=te(d,1,"item switch-item",null,a,f),Fe(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),Fe(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}ut(["click","keydown"]);var oc=require("@vkontakte/videoplayer-shared/es2018");var d0=()=>{let t=Y(ti([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var N3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),O3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),B3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Ba(t,e){U(e,!0),q(t,B3);let i=v(e,"isSubCase",3,!1),o=g(()=>Cu(e.quality));var n=O3(),s=_(n);let l;var d=_(s,!0);h(s);var a=A(s,2);{var p=f=>{var m=N3();let u=g(()=>r(o));var y=_(m);Ci(y,()=>r(u),(w,x)=>{x(w,{})}),h(m),$(f,m)};R(a,f=>{r(o)&&!e.isMobile&&f(p)})}h(n),D(f=>{l=te(s,1,"svelte-t2qk8t",null,l,f),be(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}var f0=require("@vkontakte/videoplayer-shared/es2018");var uv=require("@vkontakte/videoplayer-core/es2018");var c0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},u0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=c0({quality:t,availableQualities:e});return i?t===uv.VideoQuality.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:o}):o},p0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===uv.VideoQuality.INVARIANT?i:`${i}${c0({quality:t,availableQualities:e})}`:"...";var D3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),H3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Pl(t,e){U(e,!0),q(t,H3);let[i,o]=He(),n=()=>C(a,"$currentQuality$",i),s=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==f0.VideoQuality.INVARIANT?m:"")),y=g(()=>p0({prefix:r(u),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=D3(),x=_(w);let S=g(()=>e.selected?n():void 0);Ba(x,{get quality(){return r(S)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var F3=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")},U3={br:!0,span:!0},pv=(t,e={})=>{var d,a,p,f,m,u,y;if(!t)return t;let i={...U3,...e},o=Object.keys(i);if(!o.length)return t;let n=F3(o),s=[],l=0;for(let w of t.matchAll(n)){let x=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(m=w.groups)!=null&&m.childrenhtml?pv(w.groups.childrenhtml,i):"",L=(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,T),L),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function ic(t,e){U(e,!1);let i=v(e,"message",8),o=pv(i());Fr();var n=qe(),s=ge(n);{var l=d=>{var a=qe(),p=ge(a);ld(p,()=>o),$(d,a)};R(s,d=>{o&&d(l)})}$(t,n),z()}var z3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),W3={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 fv(t,e){U(e,!1),q(t,W3),Fr();var i=z3(),o=_(i);let n=Or(()=>K("quality_applience",{action:`<span>${K("quality_applience_action")}</span>`}));ic(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var v0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Pl,valueComponentParams:{prefix:K("other_quality"),selected:o},children:"QUALITY"}},mv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:K("auto_quality_limit"),valueComponent:e?Pl:void 0,valueComponentParams:{prefix:K("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),g0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:fv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),vv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:K("high_quality"),valueComponent:t?Pl:void 0,valueComponentParams:{prefix:K("high_quality"),selected:i},sublabel:K("high_quality_description")}),gv=({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:K("traffic_saving_quality"),valueComponent:t?Pl:void 0,valueComponentParams:{prefix:K("traffic_saving_quality"),selected:i},sublabel:K("traffic_saving_quality_description")});var Fu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Uu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Ud(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return K("audio_stream_display_language_label",{language:n,label:o});{let a=Fu(t,d);return K("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=Fu(t,d);return K("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=Fu(t,d);return K("audio_stream_display_language_index",{language:n,index:a})}}let s=Fu(t,e);return K("audio_stream_display_unknown",{index:s})};var K3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:mv,selected:e&&!o&&!n||!1}),s.push({handler:gv,selected:o},{handler:vv,selected:n}),{title:K("submenu_quality"),id:"QUALITY_DETAILS",items:[g0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),v0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:K("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ba,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem: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:K("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:mv,selected:((i=cu())==null?void 0:i.type)==="auto_quality"},{handler:gv,selected:((o=cu())==null?void 0:o.type)==="traffic_saving"},{handler:vv,selected:((n=cu())==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:K("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:Uu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:K("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:K("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Vu?"sub_off":void 0}))})},h0=({subMenuId:t,context:e})=>t?[K3[t](e)]:[];var q3=Ce('<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 hv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=q3();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var Q3=Ce('<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 _v(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Q3();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var G3=Ce('<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 bv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=G3();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var j3=Ce('<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 $v(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=j3();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var Y3=Ce('<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 yv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Y3();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var Z3=Ce('<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=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Z3();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var X3=Ce('<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 xv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X3();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var J3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),ex={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function wv(t,e){U(e,!0),q(t,ex);let[i,o]=He(),n=()=>C(p,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(m,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,y=g(()=>u0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=J3(),x=_(w);Ba(x,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var ix={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?K("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_quality",{actual:o}),icon:Md,label:K("menu_quality"),value:e,valueComponent:wv,weight:Kr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Kr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:K("aria_label_submenu_traffic_saving"),icon:hv,label:K("menu_traffic_saving"),enabled:t,tooltipText:K("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Uu(t,e);return{id:"AUDIO_LANGUAGES",weight:Kr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_audio_languages",{actual:i}),icon:_v,label:K("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:Kr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_rate",{actual:i}),icon:bv,label:K("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Kr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Ld,label:K("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Kr.download,type:"CLICK",onClick:t,label:K("download_video_caption"),ariaLabel:K("aria_label_menu_download"),icon:$v}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Kr.report,type:"CLICK",onClick:t,label:K("menu_report"),ariaLabel:`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`,icon:yv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Kr["copy-data"],type:"CLICK",onClick:t,label:K("menu_copy_debug"),ariaLabel:K("menu_copy_debug"),icon:zu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Kr["save-trace-info"],type:"CLICK",onClick:t,label:K("menu_save_debug"),ariaLabel:K("menu_save_debug"),icon:zu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Kr["debug-info"],type:"CLICK",onClick:t,ariaLabel:K("aria_label_menu_debug_overlay"),label:K("menu_debug_overlay"),icon:xv,isHiddenFor:["desktop"]})},_0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>ix[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(ya)};var nx=(t,e)=>{$u(t,e)},rx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),sx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),ax=M("<div><!> <!></div>"),lx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
308
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function hv(t,e){U(e,!0),K(t,L3);let[i,o]=Oe(),n=()=>C(m,"$isFullscreen",i),s=()=>C(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);Vt(()=>{let G=e.items.findIndex(ge=>ge.selected);p().children[G+1].focus()});let f=Se(),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;`),S=g(()=>Math.max(e.minWidth,r(w)));var E=P3();let R;var I=_(E);let P;I.__keydown=[I3,e];var B=_(I);let F;B.__click=[k3,e],B.__keydown=[A3,e];var H=_(B);qs(H,{direction:"left"});var W=A(H,2),Y=_(W,!0);h(W),h(B),at(B,G=>O(y,G),()=>r(y));var oe=A(B,2);ki(oe,17,()=>e.items,ud,(G,ge)=>{var ee=Be(),fe=pe(ee);{var ue=Pe=>{mv(Pe,{get item(){return r(ge)},get isMobile(){return l()}})},ce=(Pe,Me)=>{{var re=Ve=>{vv(Ve,{get isMobile(){return l()},get item(){return r(ge)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Pe,Ve=>{r(ge).type==="OPEN_SUB_MENU"&&Ve(re)},Me)}};V(fe,Pe=>{r(ge).type==="SELECT_VALUE"?Pe(ue):Pe(ce,!1)})}$(G,ee)}),h(I),at(I,G=>p(G),()=>p()),h(E),D((G,ge,ee)=>{R=ne(E,1,"sub-menu menu svelte-7dfsuh",null,R,G),De(E,"data-testid",`sub-menu-${e.id}`),lt(E,`min-width: ${r(S)}px`),P=ne(I,1,"items svelte-7dfsuh",null,P,ge),lt(I,r(T)),F=ne(B,1,"item header back svelte-7dfsuh",null,F,ee),De(B,"aria-label",a()),me(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),dr(B,"clientWidth",G=>O(w,G)),dr(B,"clientHeight",G=>O(x,G)),$(t,E),z(),o()}dt(["keydown","click"]);var C0=require("@vkontakte/videoplayer-shared/es2018");var M3=(t,e)=>Au(t,e()),V3=(t,e)=>{t.stopPropagation(),e()()},R3=M('<div class="value svelte-1ikfjte"> </div>'),N3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),O3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function _v(t,e){U(e,!0),K(t,O3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,C0.noop),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=N3();let d;l.__click=[V3,o],l.__keydown=[M3,o];var a=_(l),p=_(a);{var f=S=>{La(S,{get icon(){return e.icon}})},m=S=>{var E=Be();let R=g(()=>e.icon);var I=pe(E);Ai(I,()=>r(R),(P,B)=>{B(P,{})}),$(S,E)};V(p,S=>{typeof e.icon=="string"?S(f):S(m,!1)})}h(a);var u=A(a,2),y=_(u,!0);h(u);var w=A(u,2);{var x=S=>{var E=Be();let R=g(n);var I=pe(E);Ai(I,()=>r(R),(P,B)=>{B(P,{})}),$(S,E)},T=S=>{var E=R3(),R=_(E,!0);h(E),D(()=>me(R,e.value)),$(S,E)};V(w,S=>{n()?S(x):S(T,!1)})}h(l),at(l,S=>s(S),()=>s()),D(S=>{d=ne(l,1,"item",null,d,S),De(l,"aria-label",e.ariaLabel),De(l,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}dt(["click","keydown"]);var bv=require("@vkontakte/videoplayer-shared/es2018");var B3=(t,e)=>{$l(t,()=>e())},D3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),F3=M('<img class="icon" aria-hidden="true"/>'),H3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),U3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function $v(t,e){U(e,!0),K(t,U3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,bv.noop),n=v(e,"closeSettings",3,bv.noop),s=X(!1),l=()=>{O(s,!0)},d=T=>{T==null||T.stopPropagation(),o()(),n()()};var a=H3();let p;a.__click=d,a.__keydown=[B3,d];var f=_(a),m=_(f);{var u=T=>{var S=Be(),E=pe(S);{var R=P=>{var B=D3();$(P,B)},I=P=>{var B=F3();D(()=>De(B,"src",e.icon)),kt("error",B,l),da(B),$(P,B)};V(E,P=>{r(s)?P(R):P(I,!1)})}$(T,S)},y=T=>{var S=Be();let E=g(()=>e.icon);var R=pe(S);Ai(R,()=>r(E),(I,P)=>{P(I,{})}),$(T,S)};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 S;p=ne(a,1,"item",null,p,T),De(a,"aria-label",(S=e.ariaLabel)!=null?S:e.label),De(a,"data-testid",e.id),me(x,e.label)},[()=>({mobile:i()})]),$(t,a),z()}dt(["click","keydown"]);var T0=require("@vkontakte/videoplayer-shared/es2018");var z3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),W3={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 yv(t,e){K(t,W3);let i=v(e,"enabled",3,!1);var o=z3(),n=_(o);let s;$e(2),h(o),D(l=>s=ne(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var K3=(t,e,i)=>{K1(t,e(),o=>i()(o))},q3=(t,e,i)=>{t.stopPropagation(),e()(!i())},Q3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),G3=M('<li role="menuitem" tabindex="0"><!></li>');function xv(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,T0.noop),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=G3();let a;d.__click=[q3,o,n],d.__keydown=[K3,n,o];var p=_(d);Ea(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var u=Q3();let y;var w=_(u),x=_(w);{var T=P=>{La(P,{get icon(){return e.icon}})},S=P=>{var B=Be();let F=g(()=>e.icon);var H=pe(B);Ai(H,()=>r(F),(W,Y)=>{Y(W,{})}),$(P,B)};V(x,P=>{typeof e.icon=="string"?P(T):P(S,!1)})}h(w);var E=A(w,2),R=_(E,!0);h(E);var I=A(E,2);yv(I,{get enabled(){return n()}}),h(u),D(P=>{y=ne(u,1,"switch-wrapper",null,y,P),me(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),De(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}dt(["click","keydown"]);var lc=require("@vkontakte/videoplayer-shared/es2018");var E0=()=>{let t=X(ii([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var j3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),Y3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Z3={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 Da(t,e){U(e,!0),K(t,Z3);let i=v(e,"isSubCase",3,!1),o=g(()=>Ru(e.quality));var n=Y3(),s=_(n);let l;var d=_(s,!0);h(s);var a=A(s,2);{var p=f=>{var m=j3();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),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}var P0=require("@vkontakte/videoplayer-shared/es2018");var wv=require("@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===wv.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},A0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===wv.VideoQuality.INVARIANT?i:`${i}${I0({quality:t,availableQualities:e})}`:"...";var X3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),J3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Pl(t,e){U(e,!0),K(t,J3);let[i,o]=Oe(),n=()=>C(a,"$currentQuality$",i),s=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Se(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==P0.VideoQuality.INVARIANT?m:"")),y=g(()=>A0({prefix:r(u),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=X3(),x=_(w);let T=g(()=>e.selected?n():void 0);Da(x,{get quality(){return r(T)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var ex=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")},tx={br:!0,span:!0},Sv=(t,e={})=>{var d,a,p,f,m,u,y;if(!t)return t;let i={...tx,...e},o=Object.keys(i);if(!o.length)return t;let n=ex(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:S}=w;if(!i[T]){s.push(t.slice(l,S)),l=S+x.length;continue}let E=(m=w.groups)!=null&&m.childrenhtml?Sv(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,S),R),l=S+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function ac(t,e){U(e,!1);let i=v(e,"message",8),o=Sv(i());Hr();var n=Be(),s=pe(n);{var l=d=>{var a=Be(),p=pe(a);pd(p,()=>o),$(d,a)};V(s,d=>{o&&d(l)})}$(t,n),z()}var ix=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),ox={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 Cv(t,e){U(e,!1),K(t,ox),Hr();var i=ix(),o=_(i);let n=Nr(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));ac(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var M0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Pl,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},Tv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?Pl:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),V0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Cv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Ev=({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?Pl:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),Iv=({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?Pl:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var Yu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Zu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=qd(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=Yu(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=Yu(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=Yu(t,d);return q("audio_stream_display_language_index",{language:n,index:a})}}let s=Yu(t,e);return q("audio_stream_display_unknown",{index:s})};var nx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Tv,selected:e&&!o&&!n||!1}),s.push({handler:Iv,selected:o},{handler:Ev,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[V0(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:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Da,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:Tv,selected:((i=bu())==null?void 0:i.type)==="auto_quality"},{handler:Iv,selected:((o=bu())==null?void 0:o.type)==="traffic_saving"},{handler:Ev,selected:((n=bu())==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:Zu(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===Un?"sub_off":void 0}))})},R0=({subMenuId:t,context:e})=>t?[nx[t](e)]:[];var rx=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function kv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=rx();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var sx=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Av(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=sx();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var ax=ye('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Pv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ax();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var lx=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Lv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=lx();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var dx=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Mv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=dx();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var cx=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Xu(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=cx();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var ux=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Vv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ux();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var px=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),fx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Rv(t,e){U(e,!0),K(t,fx);let[i,o]=Oe(),n=()=>C(p,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(m,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Se(),p=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,y=g(()=>k0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=px(),x=_(w);Da(x,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var vx={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:Nd,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:kv,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Zu(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:Av,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:Pv,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:Od,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:Lv}),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:Mv,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:Xu,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:Xu,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:Vv,isHiddenFor:["desktop"]})},N0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>vx[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(xa)};var hx=(t,e)=>{ku(t,e)},_x=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>'),$x=M("<div><!> <!></div>"),yx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
302
309
  /* \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),
303
310
  .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),
304
311
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
305
- .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 nc(t,e){U(e,!0),q(t,lx);let[i,o]=He(),n=()=>C(fe,"$settingsMenuVisible",i),s=()=>C(dt,"$settingsMenuOpenedByKeyboard",i),l=()=>C(St,"$debugPanelVisible",i),d=()=>C(Pe,"$isMobile",i),a=()=>C(mt,"$playerSize",i),p=()=>C(De,"$hasMpegSources$",i),f=()=>C(Ie,"$mobileNotReportControlHidden$",i),m=()=>C(Ve,"$autoQualityLimitingAvailable$",i),u=()=>C(ee,"$availableSubtitlesList$",i),y=()=>C(Ue,"$isLiveWithPlaybackSpeed",i),w=()=>C(ue,"$availableAudioStreams$",i),x=()=>C(Le,"$availablePlaybackRates$",i),S=()=>C(he,"$currentAudioStream$",i),T=()=>C(ce,"$currentPlaybackRate$",i),E=()=>C(nt,"$trafficSavingEnabled",i),L=()=>C(Ne,"$currentQuality$",i),k=()=>C(ne,"$isAutoQualityEnabled$",i),I=()=>C(ve,"$currentSubtitle$",i),V=()=>C(Ht,"$additionalSettingsMenuItems$",i),G=()=>C(O,"$isAutoQualityAvailable$",i),H=()=>C(oe,"$availableQualities$",i),F=()=>C(ft,"$highQualityEnabled",i),W=v(e,"ref",15,void 0),J=v(e,"playerControlsHeight",3,0),j=ti({}),le=ti({}),ie=Ee(),pe=At(),he=ie.state.audioStream$,ue=ie.state.availableAudioStreams$,Ne=ie.state.currentQuality$,oe=ie.state.availableQualities$,Ve=ie.state.autoQualityLimitingAvailable$,ne=ie.state.isAutoQualityEnabled$,O=ie.state.isAutoQualityAvailable$,ce=ie.state.currentPlaybackRate$,Le=ie.state.availablePlaybackRates$,ve=ie.state.currentSubtitle$,ee=ie.state.availableSubtitlesList$,me=ie.state.canDownload,De=ie.state.hasMpegSources$,fe=ie.ui.settingsMenu.visible$,dt=ie.ui.settingsMenu.openedByBtnKeyboard$,Z=ie.ui.settingsMenu.ref$,Pe=ie.ui.isMobile,Ie=ie.ui.mobileNotReportControlHidden$,Ue=ie.state.canChangePlaybackSpeed$,nt=ie.state.trafficSavingEnabled$,ft=ie.state.highQualityEnabled$,mt=ie.ui.playerSize,St=ie.ui.debugPanelVisible,Xe=ie.state.isInteractiveTime$,Ht=ie.ui.additionalSettingsMenuItems$,Qt=ie.ui.t,Gt=ie.actions.internal.downloadVideo,Ft=ie.actions.internal.closeSettingsMenu,re=ie.actions.internal.openSettingsSubMenu,Bt=ie.actions.internal.closeSettingsSubMenu,_e=Y(!1),xe=Y(void 0),de=d0();Ke(()=>{!n()&&de.current&&(Bt(le[de.current]),de.popAllSubMenus())}),Ke(()=>{n()||B(xe,void 0)}),Ke(()=>{!de.current&&r(xe)&&C1(j,r(xe))}),Ke(()=>{W()&&Z.set(W())});async function Be(N){var ht;de.pushSubMenu(N),await Co(),re(N,le[N]);let Je=(ht=W())==null?void 0:ht.firstElementChild;Je&&Vf(Je)}function We(N){var Je;N==null||N.stopPropagation(),s()||(Je=e.returnFocus)==null||Je.call(e),Ft(),B(_e,!1)}function ke(N,Je){ie.actions.internal.setQuality(N,{appliesTo:Je}),We()}function Qe(N){ie.actions.internal.setAudioStream(N),We()}function Re(N,Je){ie.actions.internal.setTrafficSavingEnabled(N,Je),pe.features.qualityDetailsSubMenuEnabled&&We()}function Ye(N,Je){ie.actions.internal.setHighQualityEnabled(N,Je),We()}function Pt(N){ie.actions.internal.setPlaybackRate(N),We()}function Wt(N){ie.actions.internal.setSubtitle(N),We()}function it(){Gt()}function ri(){(0,oc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ie.actions.internal.reportProblem(),ie.actions.internal.pause()}function si(){_l(ie.actions.internal.getDebugTextData())}let ct=()=>{let N=ie.actions.internal.getTraceTextData(),Je=new Blob([...N],{type:"application/json"}),ht=window.URL.createObjectURL(Je);va(ht,"vk_player_trace_info","json")};function ii(){St.set(!l())}function Xi(){B(_e,!0)}function qi(){B(_e,!1)}function ko(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-J()}px; overflow: auto;`}let ci=g(()=>me&&p()&&!f()),pi=g(()=>pe.features.trafficSaving&&!f()&&m()&&!pe.features.qualityDetailsSubMenuEnabled),Ut=g(()=>u().length>0&&!f()),jt=g(()=>!!y()&&!f()),no=g(()=>pe.features.audioLanguages&&w().length>=2&&!f()),Ao=g(()=>!f());Lt(()=>Xe.subscribe(N=>{N&&!d()&&!r(_e)&&!s()&&We()}));let Ko=g(()=>{let N=[r(Ao)&&"QUALITY_SETTINGS",r(no)&&"AUDIO_LANGUAGES",r(jt)&&"PLAYBACK_RATE",r(Ut)&&"SUBTITLES",r(pi)&&"TRAFFIC_SAVING_SWITCH",r(ci)&&"DOWNLOAD",pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Je=>!!Je);return _0({items:N,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Pt,trafficSavingEnabled:E(),toggleTrafficSaving:Re,currentQuality:L()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:it,onCopyDataClick:si,onReportProblemClick:ri,onSaveTraceDataClick:ct,toggleShowDebugInfo:ii},additionalSettingsMenuItems:V()})}),yt=g(()=>h0({subMenuId:de.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Pt,trafficSavingEnabled:E(),toggleTrafficSaving:Re,currentQuality:L()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:G()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:Ye,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Ft,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Qe,selectQuality:ke,selectSubtitle:Wt}}));var Ze=ax();let Ei;var Po=_(Ze);{var Mo=N=>{var Je=sx();let ht;Je.__keydown=[nx,Ft];var Xt=_(Je);{var Dt=gi=>{var vt=rx();let Vi;var ln=_(vt),dn=_(ln,!0);h(ln);var qo=A(ln,2);qo.__click=We,h(vt),D((ui,Lo)=>{Vi=te(vt,1,"item header svelte-17or3al",null,Vi,ui),be(dn,Lo)},[()=>({mobile:d()}),()=>Qt("submenu_settings")]),$(gi,vt)};R(Xt,gi=>{d()&&gi(Dt)})}var Yt=A(Xt,2);let fi;Si(Yt,21,()=>r(Ko),gi=>gi.id,(gi,vt)=>{var Vi=qe(),ln=ge(Vi);{var dn=ui=>{sv(ui,{get isMobile(){return d()},get id(){return r(vt).id},get icon(){return r(vt).icon},get label(){return r(vt).label},get ariaLabel(){return r(vt).ariaLabel},get value(){return r(vt).value},get valueComponent(){return r(vt).valueComponent},onClick:()=>{Be(r(vt).children),B(xe,r(vt).id,!0)},get ref(){return j[r(vt).id]},set ref(Lo){j[r(vt).id]=Lo}})},qo=(ui,Lo)=>{{var wr=so=>{lv(so,{get isMobile(){return d()},get id(){return r(vt).id},get onClick(){return r(vt).onClick},get icon(){return r(vt).icon},get label(){return r(vt).label},get ariaLabel(){return r(vt).ariaLabel},closeSettings:We})},ro=(so,cn)=>{{var un=Qo=>{cv(Qo,{get isMobile(){return d()},get id(){return r(vt).id},get onClick(){return r(vt).onClick},get icon(){return r(vt).icon},get label(){return r(vt).label},get ariaLabel(){return r(vt).ariaLabel},get enabled(){return r(vt).enabled},get tooltipText(){return r(vt).tooltipText},get maxTooltipWidth(){return r(vt).maxTooltipWidth}})};R(so,Qo=>{r(vt).type==="SWITCH"&&Qo(un)},cn)}};R(ui,so=>{r(vt).type==="CLICK"?so(wr):so(ro,!1)},Lo)}};R(ln,ui=>{r(vt).type==="OPEN_SUB_MENU"?ui(dn):ui(qo,!1)})}$(gi,Vi)}),h(Yt),ot(Yt,gi=>W(gi),()=>W()),h(Je),D((gi,vt,Vi)=>{ht=te(Je,1,"settings-menu menu svelte-17or3al",null,ht,gi),fi=te(Yt,1,"items",null,fi,vt),st(Yt,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!de.current}),()=>({mobile:d()}),ko]),Et("mouseenter",Je,Xi),Et("mouseleave",Je,qi),$(N,Je)};R(Po,N=>{n()&&N(Mo)})}var an=A(Po,2);Si(an,17,()=>r(yt),N=>N.id,(N,Je)=>{let ht=g(()=>{var Xt;return(Xt=r(Je).minWidth)!=null?Xt:137});rv(N,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return de.popSubMenu},get id(){return r(Je).id},get title(){return r(Je).title},get closeSettingsMenu(){return Ft},openSubMenuList:Be,get items(){return r(Je).items},get minWidth(){return r(ht)},get refMenuItems(){return j},get listRef(){return le[r(Je).id]},set listRef(Xt){le[r(Je).id]=Xt}})}),h(Ze),D(N=>Ei=te(Ze,1,"settings-menu-container svelte-17or3al",null,Ei,N),[()=>({mobile:d(),hidden:!n()})]),$(t,Ze),z(),o()}ut(["keydown","click"]);var dx=t=>t;function b0(t,{delay:e=0,duration:i=400,easing:o=dx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var cx=M('<button class="button svelte-1sbbskl"> </button>'),ux={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Sv(t,e){q(t,ux);var i=cx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),D(()=>be(o,e.label)),$(t,i)}ut(["click"]);var px=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),fx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
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 dc(t,e){U(e,!0),K(t,yx);let[i,o]=Oe(),n=()=>C(Xe,"$settingsMenuVisible",i),s=()=>C(_e,"$settingsMenuOpenedByKeyboard",i),l=()=>C($t,"$debugPanelVisible",i),d=()=>C(xe,"$isMobile",i),a=()=>C(ct,"$playerSize",i),p=()=>C(Re,"$hasMpegSources$",i),f=()=>C(Ce,"$mobileNotReportControlHidden$",i),m=()=>C(re,"$autoQualityLimitingAvailable$",i),u=()=>C(Q,"$availableSubtitlesList$",i),y=()=>C(He,"$isLiveWithPlaybackSpeed",i),w=()=>C(ce,"$availableAudioStreams$",i),x=()=>C(ot,"$availablePlaybackRates$",i),T=()=>C(ue,"$currentAudioStream$",i),S=()=>C(k,"$currentPlaybackRate$",i),E=()=>C(nt,"$trafficSavingEnabled",i),R=()=>C(Pe,"$currentQuality$",i),I=()=>C(Ve,"$isAutoQualityEnabled$",i),P=()=>C(Ne,"$currentSubtitle$",i),B=()=>C(zt,"$additionalSettingsMenuItems$",i),F=()=>C(ae,"$isAutoQualityAvailable$",i),H=()=>C(Me,"$availableQualities$",i),W=()=>C(bt,"$highQualityEnabled",i),Y=v(e,"ref",15,void 0),oe=v(e,"playerControlsHeight",3,0),G=ii({}),ge=ii({}),ee=Se(),fe=At(),ue=ee.state.audioStream$,ce=ee.state.availableAudioStreams$,Pe=ee.state.currentQuality$,Me=ee.state.availableQualities$,re=ee.state.autoQualityLimitingAvailable$,Ve=ee.state.isAutoQualityEnabled$,ae=ee.state.isAutoQualityAvailable$,k=ee.state.currentPlaybackRate$,ot=ee.state.availablePlaybackRates$,Ne=ee.state.currentSubtitle$,Q=ee.state.availableSubtitlesList$,te=ee.state.canDownload,Re=ee.state.hasMpegSources$,Xe=ee.ui.settingsMenu.visible$,_e=ee.ui.settingsMenu.openedByBtnKeyboard$,J=ee.ui.settingsMenu.ref$,xe=ee.ui.isMobile,Ce=ee.ui.mobileNotReportControlHidden$,He=ee.state.canChangePlaybackSpeed$,nt=ee.state.trafficSavingEnabled$,bt=ee.state.highQualityEnabled$,ct=ee.ui.playerSize,$t=ee.ui.debugPanelVisible,et=ee.state.isInteractiveTime$,zt=ee.ui.additionalSettingsMenuItems$,Qt=ee.ui.t,Gt=ee.actions.internal.downloadVideo,jt=ee.actions.internal.closeSettingsMenu,Ee=ee.actions.internal.openSettingsSubMenu,Yt=ee.actions.internal.closeSettingsSubMenu,we=X(!1),be=X(void 0),de=E0();Ue(()=>{!n()&&de.current&&(Yt(ge[de.current]),de.popAllSubMenus())}),Ue(()=>{n()||O(be,void 0)}),Ue(()=>{!de.current&&r(be)&&z1(G,r(be))}),Ue(()=>{Y()&&J.set(Y())});async function Qe(N){var qt;de.pushSubMenu(N),await ko(),Ee(N,ge[N]);let tt=(qt=Y())==null?void 0:qt.firstElementChild;tt&&qf(tt)}function Fe(N){var tt;N==null||N.stopPropagation(),s()||(tt=e.returnFocus)==null||tt.call(e),jt(),O(we,!1)}function mt(N,tt){ee.actions.internal.setQuality(N,{appliesTo:tt}),Fe()}function Ae(N){ee.actions.internal.setAudioStream(N),Fe()}function We(N,tt){ee.actions.internal.setTrafficSavingEnabled(N,tt),fe.features.qualityDetailsSubMenuEnabled&&Fe()}function ut(N,tt){ee.actions.internal.setHighQualityEnabled(N,tt),Fe()}function ze(N){ee.actions.internal.setPlaybackRate(N),Fe()}function rt(N){ee.actions.internal.setSubtitle(N),Fe()}function Ke(){Gt()}function Mt(){(0,lc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ee.actions.internal.reportProblem(),ee.actions.internal.pause()}function ni(){_l(ee.actions.internal.getDebugTextData())}let Zt=()=>{let N=ee.actions.internal.getTraceTextData(),tt=new Blob([...N],{type:"application/json"}),qt=window.URL.createObjectURL(tt);ga(qt,"vk_player_trace_info","json")};function gi(){$t.set(!l())}function Ei(){O(we,!0)}function bo(){O(we,!1)}function Ji(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-oe()}px; overflow: auto;`}let ei=g(()=>te&&p()&&!f()),gt=g(()=>fe.features.trafficSaving&&!f()&&m()&&!fe.features.qualityDetailsSubMenuEnabled),Bt=g(()=>u().length>0&&!f()),Ut=g(()=>!!y()&&!f()),Ct=g(()=>fe.features.audioLanguages&&w().length>=2&&!f()),Xt=g(()=>!f());Vt(()=>et.subscribe(N=>{N&&!d()&&!r(we)&&!s()&&Fe()}));let Bi=g(()=>{let N=[r(Xt)&&"QUALITY_SETTINGS",r(Ct)&&"AUDIO_LANGUAGES",r(Ut)&&"PLAYBACK_RATE",r(Bt)&&"SUBTITLES",r(gt)&&"TRAFFIC_SAVING_SWITCH",r(ei)&&"DOWNLOAD",fe.showSupport&&"SHOW_SUPPORT","COPY_DATA",fe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(tt=>!!tt);return N0({items:N,context:{qualityDetailsSubMenuEnabled:fe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:T(),availableAudioStreams:w(),currentPlaybackRate:S(),selectPlaybackRate:ze,trafficSavingEnabled:E(),toggleTrafficSaving:We,currentQuality:R()||lc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:Ke,onCopyDataClick:ni,onReportProblemClick:Mt,onSaveTraceDataClick:Zt,toggleShowDebugInfo:gi},additionalSettingsMenuItems:B()})}),yt=g(()=>R0({subMenuId:de.current,context:{availablePlaybackRates:x(),selectPlaybackRate:ze,trafficSavingEnabled:E(),toggleTrafficSaving:We,currentQuality:R()||lc.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:F()||!1,availableQualities:H(),highQualityEnabled:W(),toggleHighQuality:ut,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:jt,currentAudioStream:T(),isMobile:d(),selectAudioLanguage:Ae,selectQuality:mt,selectSubtitle:rt}}));var Ze=$x();let Si;var Mo=_(Ze);{var Vo=N=>{var tt=bx();let qt;tt.__keydown=[hx,jt];var Jt=_(tt);{var ht=yi=>{var St=_x();let Ci;var ro=_(St),wn=_(ro,!0);h(ro);var Kn=A(ro,2);Kn.__click=Fe,h(St),D((fi,so)=>{Ci=ne(St,1,"item header svelte-17or3al",null,Ci,fi),me(wn,so)},[()=>({mobile:d()}),()=>Qt("submenu_settings")]),$(yi,St)};V(Jt,yi=>{d()&&yi(ht)})}var ti=A(Jt,2);let $i;ki(ti,21,()=>r(Bi),yi=>yi.id,(yi,St)=>{var Ci=Be(),ro=pe(Ci);{var wn=fi=>{_v(fi,{get isMobile(){return d()},get id(){return r(St).id},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get value(){return r(St).value},get valueComponent(){return r(St).valueComponent},onClick:()=>{Qe(r(St).children),O(be,r(St).id,!0)},get ref(){return G[r(St).id]},set ref(so){G[r(St).id]=so}})},Kn=(fi,so)=>{{var qn=lo=>{$v(lo,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},closeSettings:Fe})},ao=(lo,Sn)=>{{var nn=$o=>{xv($o,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get enabled(){return r(St).enabled},get tooltipText(){return r(St).tooltipText},get maxTooltipWidth(){return r(St).maxTooltipWidth}})};V(lo,$o=>{r(St).type==="SWITCH"&&$o(nn)},Sn)}};V(fi,lo=>{r(St).type==="CLICK"?lo(qn):lo(ao,!1)},so)}};V(ro,fi=>{r(St).type==="OPEN_SUB_MENU"?fi(wn):fi(Kn,!1)})}$(yi,Ci)}),h(ti),at(ti,yi=>Y(yi),()=>Y()),h(tt),D((yi,St,Ci)=>{qt=ne(tt,1,"settings-menu menu svelte-17or3al",null,qt,yi),$i=ne(ti,1,"items",null,$i,St),lt(ti,Ci)},[()=>({desktop:!d(),mobile:d(),hidden:!!de.current}),()=>({mobile:d()}),Ji]),kt("mouseenter",tt,Ei),kt("mouseleave",tt,bo),$(N,tt)};V(Mo,N=>{n()&&N(Vo)})}var on=A(Mo,2);ki(on,17,()=>r(yt),N=>N.id,(N,tt)=>{let qt=g(()=>{var Jt;return(Jt=r(tt).minWidth)!=null?Jt:137});hv(N,{get isMobile(){return d()},get playerControlsHeight(){return oe()},get returnFromSubMenu(){return de.popSubMenu},get id(){return r(tt).id},get title(){return r(tt).title},get closeSettingsMenu(){return jt},openSubMenuList:Qe,get items(){return r(tt).items},get minWidth(){return r(qt)},get refMenuItems(){return G},get listRef(){return ge[r(tt).id]},set listRef(Jt){ge[r(tt).id]=Jt}})}),h(Ze),D(N=>Si=ne(Ze,1,"settings-menu-container svelte-17or3al",null,Si,N),[()=>({mobile:d(),hidden:!n()})]),$(t,Ze),z(),o()}dt(["keydown","click"]);var xx=t=>t;function O0(t,{delay:e=0,duration:i=400,easing:o=xx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var wx=M('<button class="button svelte-1sbbskl"> </button>'),Sx={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Nv(t,e){K(t,Sx);var i=wx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),D(()=>me(o,e.label)),$(t,i)}dt(["click"]);var Cx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Tx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
313
  /**
307
314
  * \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.
308
- */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 rc(t,e){U(e,!0),q(t,fx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=At(),{ui:{t:n}}=Ee(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=px(),d=_(l),a=_(d),p=_(a),f=_(p);ic(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}})};R(m,w=>{o||w(u)})}h(a);var y=A(a,2);wa(y,{get onClick(){return e.onClose}}),h(d),h(l),ef(3,d,()=>b0,()=>({duration:i})),$(t,l),z()}var sc=require("@vkontakte/videoplayer-shared/es2018"),Da="annotation",Wu=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",Da),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,S=d==null?void 0:d[y];x&&(S==null||S.set((0,sc.isIntersecting)(x,u)))})}));a.observe(s,{childList:!0,subtree:!0}),n.observer=a;let p=new sc.Subscription;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((0,sc.isIntersecting)(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 mx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),vx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
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 cc(t,e){U(e,!0),K(t,Tx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=At(),{ui:{t:n}}=Se(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Cx(),d=_(l),a=_(d),p=_(a),f=_(p);ac(f,{get message(){return s}}),h(p);var m=A(p,2);{var u=w=>{let x=g(()=>n("slow_video_notification_button"));Nv(w,{get label(){return r(x)},get onClick(){return e.onSelectAutoQuality}})};V(m,w=>{o||w(u)})}h(a);var y=A(a,2);Sa(y,{get onClick(){return e.onClose}}),h(d),h(l),ff(3,d,()=>O0,()=>({duration:i})),$(t,l),z()}var uc=require("@vkontakte/videoplayer-shared/es2018"),Fa="annotation",Ju=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",Fa),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=xs(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?he(w):null,T=d==null?void 0:d[y];x&&(T==null||T.set((0,uc.isIntersecting)(x,u)))})}));a.observe(s,{childList:!0,subtree:!0}),n.observer=a;let p=new uc.Subscription;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((0,uc.isIntersecting)(u,xs(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 Ex=M('<div class="container svelte-16aykgd"><!></div>'),Ix={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;
309
316
 
310
- animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
317
+ animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
311
318
 
312
- @keyframes svelte-f47ws8-videoPlayerStatusIconPopup {
319
+ @keyframes svelte-16aykgd-videoPlayerStatusIconPopup {
313
320
  from {
314
321
  opacity: 0;
315
322
  scale: 0.6;
@@ -336,8 +343,8 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
336
343
  opacity: 0;
337
344
  scale: 0;
338
345
  }
339
- }`};function Cv(t,e){U(e,!0),q(t,vx);let[i,o]=He(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:m}}=At(),u=0,y=Y(null),w=Y(!1);Ke(()=>{B(y,n()?Wr:Cs,!0)}),Ke(()=>{B(y,s()?Qs:null,!0)}),Ke(()=>{if(p)return u=window.setTimeout(()=>{u=0,s()&&r(y)===Qs&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B(y,null)},r(y)!==Qs?f:m),()=>{u&&(window.clearTimeout(u),u=0)}}),Ke(()=>{n()&&!r(w)&&(B(w,!0),B(y,null))});var x=qe(),S=ge(x);{var T=E=>{var L=qe(),k=ge(L);da(k,()=>r(y),I=>{var V=mx(),G=_(V),H=_(G);let F=g(()=>s()==="prev");Ci(H,()=>r(y),(W,J)=>{J(W,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),h(G),h(V),D(()=>st(G,`animation-duration: ${r(y)!==Qs?f:m}ms`)),$(I,V)}),$(E,L)};R(S,E=>{r(y)&&p&&E(T)})}$(t,x),z(),o()}var gx=M('<div><div data-testid="video-container"></div></div>'),hx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
340
- .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 Ha(t,e){U(e,!0),q(t,hx);let[i,o]=He(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(m,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:y}=At(),w=g(()=>a()&&n()%180?s().height/s().width:1);var x=gx();let S;x.__contextmenu=function(...L){var k;(k=e.onContextMenu)==null||k.apply(this,L)},x.__mousedown=function(...L){var k;(k=e.onMouseDown)==null||k.apply(this,L)},x.__mouseup=function(...L){var k;(k=e.onMouseUp)==null||k.apply(this,L)},x.__click=function(...L){var k;(k=e.onClick)==null||k.apply(this,L)},x.__dblclick=function(...L){var k;(k=e.onDblClick)==null||k.apply(this,L)};var T=_(x);let E;ot(T,L=>a(L),()=>a()),h(x),D((L,k)=>{S=te(x,1,"video-wrapper svelte-1czns9r",null,S,L),E=te(T,1,"video-container svelte-1czns9r",null,E,k),st(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Fe(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,x),z(),o()}ut(["contextmenu","mousedown","mouseup","click","dblclick"]);var _x=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},bx=M("<div><!></div>"),$x=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),yx=M("<div><!></div>"),xx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),wx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=M("<!> <!> <!>",1),Cx=M('<div class="blocked svelte-jtgjmv"></div>'),Tx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Ex={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 Ev(t,e){U(e,!0),q(t,Ex);let[i,o]=He(),n=()=>C(Tr,"$notificationsToShow$",i),s=()=>C(ii,"$playerPhase",i),l=()=>C(Ko,"$isLoaderVisible",i),d=()=>C(ri,"$adPlaybackState",i),a=()=>C(N,"$crashed",i),p=()=>C(Vi,"$isInteractiveTime$",i),f=()=>C(ci,"$settingsMenuVisible",i),m=()=>C(ln,"$isInteractiveExpectation$",i),u=()=>C(ko,"$controlsVisible",i),y=()=>C(qo,"$touched",i),w=()=>C(Vo,"$graphIsOpened$",i),x=()=>C(Xi,"$isFullscreen",i),S=()=>C(ar,"$autoplayNextEnabled$",i),T=()=>C(Po,"$postrollPassed",i),E=()=>C(yt,"$isEnded$",i),L=()=>C(qn,"$cursorInside",i),k=()=>C(Sr,"$isControlsAvailable",i),I=()=>C(zn,"$fakeIsPlaying$",i),V=()=>C(pn,"$bottomNoSmooth",i),G=()=>C(ro,"$interactiveTimeIndicator",i),H=()=>C(Yt,"$playerSize",i),F=()=>C(fi,"$is3DVideo",i),W=()=>C(no,"$contextMenuVisible$",i),J=()=>C(it,"$playbackState$",i),j=()=>C(ui,"$hotKeyMapData",i),le=()=>C(Ut,"$scrubbingInProgress",i),ie=()=>C(jt,"$volumeChangingInProgress",i),pe=()=>C(Ze,"$chromecastConnected$",i),he=()=>C(Jt,"$controlsTimeoutActive",i),ue=()=>C(pi,"$settingsMenuOpenedByKeyboard",i),Ne=()=>C(fo,"$contextMenuOpenedByKeyboard$",i),oe=()=>C($o,"$contextMenuOpenedByHotKey$",i),Ve=()=>C(Rn,"$contextMenuButtonRef$",i),ne=()=>C(No,"$contextMenuLastActiveElem$",i),O=()=>C(qi,"$isFullscreenOpenedByKeyboard",i),ce=()=>C(Wt,"$language$",i),Le=()=>C(gi,"$icon3DVideoVisible",i),ve=()=>C(Ei,"$chromecastDeviceName$",i),ee=()=>C(Xt,"$currentSubtitle$",i),me=()=>C(Dt,"$currentSubtitleCaptions$",i),De=()=>C(si,"$position$",i),fe=()=>C(ct,"$duration$",i),dt=()=>C(Mo,"$isLive$",i),Z=()=>C(an,"$isPlaying$",i),Pe=()=>C(cn,"$contextMenuPosition$",i),Ie=()=>C(Lo,"$showHotKeyMap",i),Ue=()=>C(Ao,"$debugPanelVisible",i),nt=()=>C(En,"$userActionsDisabled$",i),ft=v(e,"videoContainer",15),mt=v(e,"adsSlotId",3,void 0),St=v(e,"adsParams",3,void 0),Xe=v(e,"adsAutoplayParam",3,void 0),Ht=v(e,"duration",3,void 0),Qt=v(e,"logoTargetUrl",3,""),Gt=v(e,"showNextPrevButtons",3,!1),Ft=v(e,"nextButtonActive",3,!1),re=v(e,"prevButtonActive",3,!1),Bt=v(e,"endScreenVideoTitle",3,void 0),_e=v(e,"endScreenVideoThumb",3,void 0),xe=v(e,"isOneVideoPlaylist",3,!1),de=v(e,"shadowRootContainer",3,void 0),Be=v(e,"outerContainerRef",3,void 0),We=v(e,"playerStarted",3,!1),ke=v(e,"fullScreenTarget",3,void 0),Qe=v(e,"showMiniTimer",3,!1),Re=v(e,"showEndScreen",3,!0),Ye=v(e,"keyboardControls",15),Pt=e.store.getLogger().createComponentLog("Root component"),Wt=e.store.interfaceLanguage$,it=e.store.state.playbackState$,ri=e.store.ads.playbackState,si=e.store.state.positionWithScrubbing$,ct=e.store.state.duration$,ii=e.store.playerPhase,Xi=e.store.ui.isFullscreen,qi=e.store.ui.isFullscreenOpenedByKeyboard,ko=e.store.ui.controlsVisible,ci=e.store.ui.settingsMenu.visible$,pi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ut=e.store.ui.scrubbingInProgress,jt=e.store.ui.volumeChangingInProgress,no=e.store.ui.contextMenu.visible$,Ao=e.store.ui.debugPanelVisible,Ko=e.store.state.isLoaderVisible,yt=e.store.state.isEnded$,Ze=e.store.state.chromecastConnected$,Ei=e.store.state.chromecastDeviceName$,Po=e.store.ads.postrollPassed,Mo=e.store.state.isLive$,an=e.store.state.isPlaying$,N=e.store.state.crashed$,Je=e.store.webApi.annotationsApi,ht=e.store.webApi.pictureInPictureApi,Xt=e.store.state.currentSubtitle$,Dt=e.store.state.currentSubtitleCaptions$,Yt=e.store.ui.playerSize,fi=e.store.ui.is3DVideo,gi=e.store.ui.icon3DVideoVisible,vt=e.store.state.isInteractive,Vi=e.store.state.isInteractiveTime$,ln=e.store.state.isInteractiveExpectation$,dn=e.store.state.hasInteractiveBranches,qo=e.store.ui.touched,ui=e.store.ui.modals.hotKeyMap.data,Lo=e.store.ui.modals.hotKeyMap.show,wr=e.store.ui.overlayContainer$,ro=e.store.ui.controls.interactiveTimeIndicator,so=e.store.state.showInteractiveTimeIndicator,cn=e.store.ui.contextMenu.position$,un=e.store.actions.internal.setQuality,Qo=e.store.actions.internal.closeSettingsMenu,ar=e.store.ui.autoplayNextEnabled$,En=e.store.ui.userActionsDisabled,Sr=e.store.ui.isControlsAvailable,as=e.store.ui.videoTitleInfo,In=e.store.actions.internal.getVideoElement,Cr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:zn,notifications$:Wn,graphIsOpened$:Vo}=vo(),Ri=Y(void 0),kn=Y(void 0),An=Y(void 0),Pn=Y(void 0),lr,dr,cr;ui.set(b1());let{closeNotification:ur,notificationsToShow$:Tr}=Wn,ls=g(()=>!!n().slow_video),Kn=()=>ur("slow_video"),go=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Mn=Y(void 0),pn=se(!1),gt,Jt=se(!1),Go=se(),qn=se(!1),fn=Y(!1),ho=Y(!1),Ii=Y(!1),xi=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),jo=g(()=>p()&&!f()&&!(r(fn)||r(ho))&&!(r(Ii)&&!m())),Qn=!0,qr=g(()=>e.uiConfig.features.thumbTimer&&Qe()&&s()==="video"&&!u()&&!a()&&!vt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Qr=g(()=>s()==="video"&&!w()&&x()),pr=Y(!1),mn=g(()=>(Re()||e.showAutoplayNext&&S())&&!!Bt()&&!!_e()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(pr)),ds=g(()=>L()&&!(u()||r(mn))&&!p()&&k()),Ln=Y(!1),Ro=g(()=>I()!==null),{toggle:Gn}=zn,vn=!1,Kt=null;ht==null||ht.setContext(Kl());let jn=()=>{e.autoplay&&!vt&&e.uiConfig.controls.showOnStartupAtAutoplay&&at(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:jn});let Er=()=>{window.clearTimeout(lr),Jt.set(!1)},Gr=()=>{window.clearTimeout(dr),Go.set(null)},at=we=>{Er(),Jt.set(!0),lr=window.setTimeout(()=>Jt.set(!1),we);let xt=we-100;gt=window.setTimeout(()=>{V()&&pn.set(!1)},xt>0?xt:we)},oi=(we,xt)=>{Gr(),Go.set(xt),dr=window.setTimeout(()=>Go.set(null),we)},ao=fi.subscribe(we=>{gi.set(we),we&&(window.clearTimeout(cr),cr=window.setTimeout(()=>gi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),lo=async()=>{var xt,ni,wi,Xo;let we=Ds();if(we){let Bi=bd(),Di=hi();we=Bi===Di||Bi===de()}if(we){at(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ht==null?void 0:ht.exit())}catch(Bi){Pt({message:String(Bi)})}}Xi.set(we),e.store.getAdmanWrapper().setFullscreen(we),x()?(ni=(xt=e.store.callbacks)==null?void 0:xt.onFullscreenEnter)==null||ni.call(xt):(Xo=(wi=e.store.callbacks)==null?void 0:wi.onFullscreenExit)==null||Xo.call(wi)},gn=we=>{let{width:xt,height:ni}=we.target;Yt.set({width:xt,height:ni})},co=()=>{let{width:we,height:xt}=r(Ri).getBoundingClientRect();Yt.set({width:we,height:xt})};Lt(()=>{var xt;return _u(lo),e.uiConfig.features.annotationsInside&&(Je==null||Je.init(r(Ri))),ba(ht)&&(ht==null||ht.assignPlayerContainer(r(Ri)),ht==null||ht.setExternalEventHandlers({resize:gn,leavepictureinpicture:co})),e.interactiveContainer&&((xt=ft().parentElement)==null||xt.insertBefore(e.interactiveContainer,ft().nextSibling)),()=>{window.clearTimeout(lr),window.clearTimeout(gt),window.clearTimeout(dr),window.clearTimeout(cr),ao(),ht==null||ht.dispose().catch(ni=>{Pt({message:String(ni)})}),bu(lo)}});let hi=()=>{let we=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Be()?r(Ri):Be(),xt=we.getRootNode(),ni=xt instanceof ShadowRoot?xt.host:xt,wi=ke()instanceof HTMLElement&&ke().contains(ni);return e.uiConfig.allowChangingFullscreenTarget&&ke()&&wi?ke():we},Ni=()=>{no.set(!1)},Oi=()=>{Qo(),Ni()},hn=async()=>{if(!Cr()){Pt({message:"fullscreen disabled"});return}Ni(),Ds()?(await hu(document),Pt({message:"exit fullscreen"})):(Pt({message:"request fullscreen"}),await gu(hi()))},fr=we=>{w()||(we.preventDefault(),no.set(!0),cn.set({left:we.clientX,top:we.clientY}))};function cs(){qn.set(!0),vt||at(e.uiConfig.controls.hideTimeoutCursor)}function jr(){vt||(pn.set(!0),at(e.uiConfig.controls.hideTimeoutCursor))}function us(){qn.set(!1),B(ho,!1),B(fn,!1),vn=!1,e.store.actions.internal.releaseCamera(),at(e.uiConfig.controls.hideTimeout)}function mr(we){return we?we.offsetTop+mr(we.offsetParent):0}function _o(we){return we?we.offsetLeft+_o(we.offsetParent):0}function Vn(we){if(G()&&so){let xt=we.currentTarget,ni=mr(xt),wi=_o(xt),Xo=we.pageX-wi,Bi=we.pageY-ni,{left:Di,bottom:lt,right:zt}=G(),Hi=zt-Di;return Xo>=Di-Hi&&Bi<=lt+Hi}}function Ir(we){if(r(Ri)){let xt=mr(we.currentTarget),ni=H().height,wi=we.pageY-xt;if(Vn(we)){B(ho,!1);return}wi<40?B(ho,!0):wi>ni-40?B(fn,!0):(B(ho,!1),f()||B(fn,!1))}}function kr(we){Ir(we),r(jo)||at(e.uiConfig.controls.hideTimeoutCursor),F()&&vn&&Kt&&e.store.actions.internal.moveCameraFocusPX(Kt.clientX-we.clientX,Kt.clientY-we.clientY,we.timeStamp-Kt.timeStamp),Kt=we}let rt=we=>{we.preventDefault(),we.button===0&&(vn=!0,e.store.actions.internal.holdCamera()),at(e.uiConfig.controls.hideTimeoutCursor)},kt=we=>{we.preventDefault(),we.button===0&&(Kt=we,vn=!1,e.store.actions.internal.releaseCamera()),at(e.uiConfig.controls.hideTimeoutCursor)},_i=we=>{we.preventDefault(),Qn&&(Pt({message:"double click on video"}),hn(),at(e.uiConfig.controls.hideTimeoutCursor))},uo=we=>{var xt;if(we.preventDefault(),W()||f()){Oi();return}if(!(E()&&!dn)){if(r(Ro))return Gn();if((xt=Ye())==null||xt.focus(),!We()){e.firstStart(),at(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==Tv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),at(e.uiConfig.controls.hideTimeoutCursor)}},po=we=>{Oi(),qo.set(!0),at(e.uiConfig.controls.hideTimeout),we&&oi(e.uiConfig.controls.hideHotKeyHelpers,we)},Ji=()=>{var we,xt;Oi(),(we=e.store.callbacks)!=null&&we.onOpenHotKeyMap?(xt=e.store.callbacks)==null||xt.onOpenHotKeyMap(j()):Lo.update(ni=>!ni)},eo=()=>{qo.set(!0)},fo=e.store.ui.contextMenu.openedByBtnKeyboard$,Rn=e.store.ui.contextMenu.btnRef$,bo=Y(void 0),$o=e.store.ui.contextMenu.openedByHotKey$,No=e.store.ui.contextMenu.lastActiveElem$;Ke(()=>{wr.set(r(Mn))}),Ke(()=>{B(Ii,r(xi)&&J()!==Tv.PlaybackState.PLAYING,!0),r(xi)||Ct(()=>B(xi,!0))}),Ke(()=>{ko.set((r(Ii)||E()||f()||le()||ie()||pe()||he())&&!r(jo)&&(s()==="video"||s()==="ads")&&!a()&&k())}),Ke(()=>{!le()&&r(Ln)&&!p()&&at(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>B(Ln,le(),!0))}),Ke(()=>{r(Pn),f(),ue(),Ct(()=>Td(r(Pn),f(),ue()))}),Ke(()=>{r(bo),W(),Ne(),oe(),Ct(()=>{let we=Ne()||oe();Td(r(bo),W(),we)})}),Ke(()=>{let we=Ve();we&&(W(),Ct(()=>bl(we,W(),fo)))}),Ke(()=>{let we=ne();we&&(W(),Ct(()=>S1(we,W(),$o)))}),Ke(()=>{var we;!O()&&x()&&(Ct(()=>qi.set(!1)),(we=Ye())==null||we.focus())}),Ke(()=>{w()&&Oi()});let Yn=K("video360"),Yo=Y(void 0),Ar=we=>{as.set(Fn(In(),{title:r(Yo)},"title",we))},vr=(we,xt)=>{var Bi,Di;let ni=(Di=(Bi=e.store.callbacks)==null?void 0:Bi.uiInfo)==null?void 0:Di.onUpcomingLiveViewStateChanged;if(!ni)return;let wi=!!xt,Xo={...Fn(r(Ri),{upcomingLiveScreen:xt},"upcomingLiveScreen",wi),...we};ni(Xo)};var Pr=Tx();Et("blur",oa,Oi);var yo=ge(Pr);yo.__mousemove=kr;var Mr=_(yo);let ze=g(()=>s()==="ads"),Zt=g(()=>r(Ro)?Gn:void 0);ot(Uf(Mr,{toggleFullscreen:hn,hideContextMenu:Oi,showHotKeyHelpers:po,showKeyMap:Ji,get isAds(){return r(ze)},get fakePlayButtonHandler(){return r(Zt)},get nextButtonActive(){return Ft()},get prevButtonActive(){return re()},children:(we,xt)=>{var ni=Sx(),wi=ge(ni);Ha(wi,{get hideCursor(){return r(ds)},onClick:uo,onContextMenu:fr,onMouseDown:rt,onMouseUp:kt,onDblClick:_i,get videoContainer(){return ft()},set videoContainer(Di){ft(Di)}});var Xo=A(wi,2);ca(Xo,()=>"slot",!1,(Di,lt)=>{Ae(Di,()=>({name:Da}))});var Bi=A(Xo,2);da(Bi,ce,Di=>{var lt=wx(),zt=ge(lt);let Hi=g(()=>s()!=="thumb"||a()||vt&&e.autoplay);Na(zt,{get hidden(){return r(Hi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var bn=A(zt,2);Cv(bn,{});var $n=A(bn,2);{var gr=je=>{let li=g(()=>{var wo;return(wo=e.live)==null?void 0:wo.startTime});ec(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(li)},onUpcomingLiveViewStateChanged:vr})};R($n,je=>{s()==="LiveWaitingStart"&&je(gr)})}var Lr=A($n,2);{var ps=je=>{Oa(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Lr,je=>{s()==="LiveWaitingRecover"&&je(ps)})}var ki=A(Lr,2);{var Ai=je=>{Oa(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(ki,je=>{s()==="LiveWaitingRecord"&&je(Ai)})}var Oo=A(ki,2);{var Bo=je=>{var li=bx();let wo;var fs=_(li);yd(fs,{get adsSlotId(){return mt()},get adsParams(){return St()},get adsAutoplayParam(){return Xe()},get duration(){return Ht()},get adsExternalApi(){return e.adsExternalApi}}),h(li),D(en=>wo=te(li,1,"ads-container svelte-jtgjmv",null,wo,en),[()=>({hidden:s()!=="ads"})]),$(je,li)};R(Oo,je=>{e.showAds&&We()&&je(Bo)})}var hr=A(Oo,2);{var xo=je=>{let li=g(()=>!Re()&&e.showAutoplayNext&&S());Df(je,{get title(){return Bt()},get thumb(){return _e()},get isHide(){return r(li)},clickCloseIcon:()=>B(pr,!0)})};R(hr,je=>{r(mn)&&Bt()&&_e()&&je(xo)})}var Zn=A(hr,2);{var wt=je=>{let li=g(()=>!u());Jm(je,{get title(){return e.title},get isHidden(){return r(li)},onVisibilityChanged:Ar,get ref(){return r(Yo)},set ref(wo){B(Yo,wo,!0)}})};R(Zn,je=>{r(Qr)&&je(wt)})}var $t=A(Zn,2);{var mo=je=>{let li=g(()=>s()==="video"&&u());Xd(je,{get isShifted(){return r(li)}})};R($t,je=>{F()&&je(mo)})}var Jo=A($t,2);{var Qi=je=>{var li=$x(),wo=_(li);_d(wo,{get"aria-label"(){return Yn}}),h(li),$(je,li)};R(Jo,je=>{Le()&&je(Qi)})}var ai=A(Jo,2);{var Fi=je=>{Jd(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ve()}})};R(ai,je=>{pe()&&je(Fi)})}var Is=A(ai,2);{var Vr=je=>{Va(je,{get shifted(){return u()},get captions(){return me()},get position(){return De()},get playerSize(){return H()}})};R(Is,je=>{ee().value!=="off"&&je(Vr)})}var hc=A(Is,2);{var sp=je=>{var li=yx();li.__contextmenu=fr,li.__click=[_x,W,no,f,ci,Oi];var wo=_(li);Ra(wo,{}),h(li),$(je,li)};R(hc,je=>{a()&&je(sp)})}var _c=A(hc,2);{var ap=je=>{let li=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),wo=g(()=>s()==="ads"),fs=g(()=>e.canRewindLive&&fe()!==0);Zd(je,{get bottomHidden(){return r(li)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return r(wo)},get canRewindLive(){return r(fs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Gt()},get nextButtonActive(){return Ft()},get prevButtonActive(){return re()},get isOneVideoPlaylist(){return xe()},customFullscreenSupported:Qn,toggleFullscreen:hn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(kn)},set playerControlsWrapperRef(en){B(kn,en,!0)},get playerControlsRef(){return r(An)},set playerControlsRef(en){B(An,en,!0)}})};R(_c,je=>{We()&&je(ap)})}var bc=A(_c,2);{var lp=je=>{var li=xx(),wo=_(li);let fs=g(()=>{var en;return(en=r(An))==null?void 0:en.clientHeight});nc(wo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(fs)},returnFocus:()=>{var en;return(en=Ye())==null?void 0:en.focus()},get ref(){return r(Pn)},set ref(en){B(Pn,en,!0)}}),h(li),$(je,li)};R(bc,je=>{!pe()&&s()!=="ads"&&je(lp)})}var $c=A(bc,2);let dp=g(()=>!r(qr));Sd($c,{get isLive(){return dt()},get isHidden(){return r(dp)},get isPlaying(){return Z()},get position(){return De()},get duration(){return fe()}});var yc=A($c,2);jm(yc,{get data(){return Go}});var xc=A(yc,2);Of(xc,{get supportLink(){return e.supportLink},returnFocus:()=>{var je;return(je=Ye())==null?void 0:je.focus()},get visible(){return W()},get playerContainerRef(){return r(Ri)},get controlsContainerRef(){return r(kn)},get position(){return Pe()},get menuElementRef(){return r(bo)},set menuElementRef(je){B(bo,je,!0)}});var wc=A(xc,2);{var cp=je=>{rc(je,{onClose:Kn,onSelectAutoQuality:()=>{un("auto"),Kn()}})};R(wc,je=>{r(ls)&&je(cp)})}var Sc=A(wc,2);{var up=je=>{Sa(je,{})};R(Sc,je=>{r(go)&&je(up)})}var Cc=A(Sc,2);{var za=je=>{Kf(je,{})};R(Cc,je=>{Ie()&&je(za)})}var pp=A(Cc,2);{var Tc=je=>{Id(je,{})};R(pp,je=>{Ue()&&je(Tc)})}$(Di,lt)}),$(we,ni)},$$slots:{default:!0}}),we=>Ye(we),()=>Ye());var bi=A(Mr,2);ot(bi,we=>B(Mn,we),()=>r(Mn)),h(yo),ot(yo,we=>B(Ri,we),()=>r(Ri));var _n=A(yo,2);{var Zo=we=>{var xt=Cx();$(we,xt)};R(_n,we=>{nt()&&we(Zo)})}Et("mouseenter",yo,cs),Et("mouseleave",yo,us),Et("click",yo,eo,!0),Et("focusin",yo,jr,!0),$(t,Pr),z(),o()}ut(["mousemove","contextmenu","click"]);var js=require("@vkontakte/videoplayer-core/es2018"),T0=require("@vkontakte/videoplayer-shared/es2018");var Ix=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),kx=M("<div><!></div>"),Ax={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
346
+ }`};function pc(t,e){K(t,Ix);let i=v(e,"isPrev",3,!1);var o=Be(),n=pe(o);gs(n,()=>e.Icon,s=>{var l=Ex(),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(()=>lt(l,`animation-duration: ${e.duration}ms`)),$(s,l)}),$(t,o)}var Ov=require("@vkontakte/videoplayer-core/es2018"),kx=M('<div class="container svelte-1sw36pi"><!></div>'),Ax={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 Bv(t,e){U(e,!0),K(t,Ax);let[i,o]=Oe(),n=()=>C(l,"$playbackState$",i),s=()=>C(d,"$isPlaying$",i),{state:{playbackState$:l,isPlaying$:d}}=Se(),{features:{playbackStatusShow:a},playbackStatusAnimationDuration:p}=At(),f=0,m=X(null),u=X(!1);Ue(()=>{n()===Ov.PlaybackState.PLAYING?O(m,Kr,!0):n()===Ov.PlaybackState.PAUSED?O(m,Ss,!0):O(m,null)}),Ue(()=>{if(a)return f=window.setTimeout(()=>{f=0,O(m,null)},p),()=>{f&&(window.clearTimeout(f),f=0)}}),Ue(()=>{s()&&!r(u)&&(O(u,!0),O(m,null))});var y=Be(),w=pe(y);{var x=T=>{var S=kx(),E=_(S);pc(E,{get duration(){return p},get Icon(){return r(m)}}),h(S),$(T,S)};V(w,T=>{r(m)&&a&&T(x)})}$(t,y),z(),o()}var Px=M('<div><div data-testid="video-container"></div></div>'),Lx={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 Ha(t,e){U(e,!0),K(t,Lx);let[i,o]=Oe(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(m,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:u}}=Se(),{isSmoothVideoRotate:y}=At(),w=g(()=>a()&&n()%180?s().height/s().width:1);var x=Px();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 S=_(x);let E;at(S,R=>a(R),()=>a()),h(x),D((R,I)=>{T=ne(x,1,"video-wrapper svelte-1czns9r",null,T,R),E=ne(S,1,"video-container svelte-1czns9r",null,E,I),lt(S,`transform: rotate(${n()}deg) scale(${r(w)})`),De(S,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,x),z(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Mx=ye('<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 Dv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Mx();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var Vx=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),Rx={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 Fv(t,e){U(e,!0),K(t,Rx);let{ui:{t:i}}=Se();var o=Vx();let n;var s=_(o),l=_(s,!0);h(s);var d=A(s,2);Dv(d,{}),h(o),D((a,p)=>{n=ne(o,1,"root svelte-1gi6268",null,n,a),me(l,p)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),z()}var Nx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Ox=M("<div><!></div>"),Bx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Dx=M("<div><!></div>"),Fx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Hx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Ux=M("<!> <!> <!>",1),zx=M('<div class="blocked svelte-jtgjmv"></div>'),Wx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Kx={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 Uv(t,e){U(e,!0),K(t,Kx);let[i,o]=Oe(),n=()=>C(Zr,"$notificationsToShow$",i),s=()=>C(bo,"$playerPhase",i),l=()=>C(Ze,"$isLoaderVisible",i),d=()=>C(Zt,"$adPlaybackState",i),a=()=>C(qt,"$crashed",i),p=()=>C(wn,"$isInteractiveTime$",i),f=()=>C(Bt,"$settingsMenuVisible",i),m=()=>C(Kn,"$isInteractiveExpectation$",i),u=()=>C(gt,"$controlsVisible",i),y=()=>C(so,"$touched",i),w=()=>C(Yr,"$graphIsOpened$",i),x=()=>C(Ji,"$isFullscreen",i),T=()=>C(Er,"$autoplayNextEnabled$",i),S=()=>C(on,"$postrollPassed",i),E=()=>C(Si,"$isEnded$",i),R=()=>C(co,"$cursorInside",i),I=()=>C(Gr,"$isControlsAvailable",i),P=()=>C(rn,"$doubleForwardOn$",i),B=()=>C(an,"$fakeIsPlaying$",i),F=()=>C(kn,"$bottomNoSmooth",i),H=()=>C(Sn,"$interactiveTimeIndicator",i),W=()=>C(yi,"$playerSize",i),Y=()=>C(St,"$is3DVideo",i),oe=()=>C(Cn,"$doubleForwardAvailable$",i),G=()=>C(Bi,"$contextMenuVisible$",i),ge=()=>C(ni,"$playbackState$",i),ee=()=>C(qn,"$hotKeyMapData",i),fe=()=>C(Ct,"$scrubbingInProgress",i),ue=()=>C(Xt,"$volumeChangingInProgress",i),ce=()=>C(Mo,"$chromecastConnected$",i),Pe=()=>C(dn,"$controlsTimeoutActive",i),Me=()=>C(Ut,"$settingsMenuOpenedByKeyboard",i),re=()=>C(Rn,"$contextMenuOpenedByKeyboard$",i),Ve=()=>C(Lr,"$contextMenuOpenedByHotKey$",i),ae=()=>C($r,"$contextMenuButtonRef$",i),k=()=>C(Xr,"$contextMenuLastActiveElem$",i),ot=()=>C(ei,"$isFullscreenOpenedByKeyboard",i),Ne=()=>C(Mt,"$language$",i),Q=()=>C(Ci,"$icon3DVideoVisible",i),te=()=>C(Vo,"$chromecastDeviceName$",i),Re=()=>C(ti,"$currentSubtitle$",i),Xe=()=>C($i,"$currentSubtitleCaptions$",i),_e=()=>C(gi,"$position$",i),J=()=>C(Ei,"$duration$",i),xe=()=>C(N,"$isLive$",i),Ce=()=>C(tt,"$isPlaying$",i),He=()=>C($o,"$contextMenuPosition$",i),nt=()=>C(ao,"$showHotKeyMap",i),bt=()=>C(yt,"$debugPanelVisible",i),ct=()=>C(Qr,"$userActionsDisabled$",i),$t=v(e,"videoContainer",15),et=v(e,"adsSlotId",3,void 0),zt=v(e,"adsParams",3,void 0),Qt=v(e,"adsAutoplayParam",3,void 0),Gt=v(e,"duration",3,void 0),jt=v(e,"logoTargetUrl",3,""),Ee=v(e,"showNextPrevButtons",3,!1),Yt=v(e,"nextButtonActive",3,!1),we=v(e,"prevButtonActive",3,!1),be=v(e,"endScreenVideoTitle",3,void 0),de=v(e,"endScreenVideoThumb",3,void 0),Qe=v(e,"isOneVideoPlaylist",3,!1),Fe=v(e,"shadowRootContainer",3,void 0),mt=v(e,"outerContainerRef",3,void 0),Ae=v(e,"playerStarted",3,!1),We=v(e,"fullScreenTarget",3,void 0),ut=v(e,"showMiniTimer",3,!1),ze=v(e,"showEndScreen",3,!0),rt=v(e,"keyboardControls",15),Ke=e.store.getLogger().createComponentLog("Root component"),Mt=e.store.interfaceLanguage$,ni=e.store.state.playbackState$,Zt=e.store.ads.playbackState,gi=e.store.state.positionWithScrubbing$,Ei=e.store.state.duration$,bo=e.store.playerPhase,Ji=e.store.ui.isFullscreen,ei=e.store.ui.isFullscreenOpenedByKeyboard,gt=e.store.ui.controlsVisible,Bt=e.store.ui.settingsMenu.visible$,Ut=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ct=e.store.ui.scrubbingInProgress,Xt=e.store.ui.volumeChangingInProgress,Bi=e.store.ui.contextMenu.visible$,yt=e.store.ui.debugPanelVisible,Ze=e.store.state.isLoaderVisible,Si=e.store.state.isEnded$,Mo=e.store.state.chromecastConnected$,Vo=e.store.state.chromecastDeviceName$,on=e.store.ads.postrollPassed,N=e.store.state.isLive$,tt=e.store.state.isPlaying$,qt=e.store.state.crashed$,Jt=e.store.webApi.annotationsApi,ht=e.store.webApi.pictureInPictureApi,ti=e.store.state.currentSubtitle$,$i=e.store.state.currentSubtitleCaptions$,yi=e.store.ui.playerSize,St=e.store.ui.is3DVideo,Ci=e.store.ui.icon3DVideoVisible,ro=e.store.state.isInteractive,wn=e.store.state.isInteractiveTime$,Kn=e.store.state.isInteractiveExpectation$,fi=e.store.state.hasInteractiveBranches,so=e.store.ui.touched,qn=e.store.ui.modals.hotKeyMap.data,ao=e.store.ui.modals.hotKeyMap.show,lo=e.store.ui.overlayContainer$,Sn=e.store.ui.controls.interactiveTimeIndicator,nn=e.store.state.showInteractiveTimeIndicator,$o=e.store.ui.contextMenu.position$,cr=e.store.actions.internal.setQuality,Qn=e.store.actions.internal.closeSettingsMenu,Er=e.store.ui.autoplayNextEnabled$,Qr=e.store.ui.userActionsDisabled,Gr=e.store.ui.isControlsAvailable,jr=e.store.ui.videoTitleInfo,rn=e.store.ui.doubleForwardOn$,Cn=e.store.ui.doubleForwardAvailable$,Ro=e.store.actions.internal.getVideoElement,sn=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:an,notifications$:ur,graphIsOpened$:Yr}=_o(),yo=X(void 0),Ir=X(void 0),Tn=X(void 0),ln=X(void 0),pr,fr,En;qn.set(O1());let{closeNotification:No,notificationsToShow$:Zr}=ur,mr=g(()=>!!n().slow_video),vt=()=>No("slow_video"),si=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),In=X(void 0),kn=se(!1),vr,dn=se(!1),cn=se(),co=se(!1),uo=X(!1),jo=X(!1),po=X(!1),An=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),gr=g(()=>p()&&!f()&&!(r(uo)||r(jo))&&!(r(po)&&!m())),kr=!0,ds=g(()=>e.uiConfig.features.thumbTimer&&ut()&&s()==="video"&&!u()&&!a()&&!ro&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Pn=g(()=>s()==="video"&&!w()&&x()),Ki=X(!1),Gn=g(()=>(ze()||e.showAutoplayNext&&T())&&!!be()&&!!de()&&(e.showAds&&S()||!e.showAds)&&E()&&!a()&&!r(Ki)),hr=g(()=>R()&&!(u()||r(Gn))&&!p()&&I()&&!P()),ai=X(!1),Ln=g(()=>B()!==null),{toggle:_r}=an,un=!1,_t=null;ht==null||ht.setContext(jl());let li=()=>{e.autoplay&&!ro&&e.uiConfig.controls.showOnStartupAtAutoplay&&hi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:li});let eo=()=>{window.clearTimeout(pr),dn.set(!1)},xo=()=>{window.clearTimeout(fr),cn.set(null)},hi=Z=>{eo(),dn.set(!0),pr=window.setTimeout(()=>dn.set(!1),Z);let qe=Z-100;vr=window.setTimeout(()=>{F()&&kn.set(!1)},qe>0?qe:Z)},Oo=(Z,qe)=>{xo(),cn.set(qe),fr=window.setTimeout(()=>cn.set(null),Z)},wo=St.subscribe(Z=>{Ci.set(Z),Z&&(window.clearTimeout(En),En=window.setTimeout(()=>Ci.set(!1),e.uiConfig.controls.hide360IconTimeout))}),to=async()=>{var qe,Dt,ri,_i;let Z=Ds();if(Z){let Mi=wd(),Di=jn();Z=Mi===Di||Mi===Fe()}if(Z){hi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ht==null?void 0:ht.exit())}catch(Mi){Ke({message:String(Mi)})}}Ji.set(Z),e.store.getAdmanWrapper().setFullscreen(Z),x()?(Dt=(qe=e.store.callbacks)==null?void 0:qe.onFullscreenEnter)==null||Dt.call(qe):(_i=(ri=e.store.callbacks)==null?void 0:ri.onFullscreenExit)==null||_i.call(ri)},Mn=Z=>{let{width:qe,height:Dt}=Z.target;yi.set({width:qe,height:Dt})},fo=()=>{let{width:Z,height:qe}=r(yo).getBoundingClientRect();yi.set({width:Z,height:qe})};Vt(()=>{var qe;return Eu(to),e.uiConfig.features.annotationsInside&&(Jt==null||Jt.init(r(yo))),$a(ht)&&(ht==null||ht.assignPlayerContainer(r(yo)),ht==null||ht.setExternalEventHandlers({resize:Mn,leavepictureinpicture:fo})),e.interactiveContainer&&((qe=$t().parentElement)==null||qe.insertBefore(e.interactiveContainer,$t().nextSibling)),()=>{window.clearTimeout(pr),window.clearTimeout(vr),window.clearTimeout(fr),window.clearTimeout(En),wo(),ht==null||ht.dispose().catch(Dt=>{Ke({message:String(Dt)})}),Iu(to)}});let jn=()=>{let Z=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!mt()?r(yo):mt(),qe=Z.getRootNode(),Dt=qe instanceof ShadowRoot?qe.host:qe,ri=We()instanceof HTMLElement&&We().contains(Dt);return e.uiConfig.allowChangingFullscreenTarget&&We()&&ri?We():Z},So=()=>{Bi.set(!1)},Bo=()=>{Qn(),So()},br=async()=>{if(!sn()){Ke({message:"fullscreen disabled"});return}So(),Ds()?(await Tu(document),Ke({message:"exit fullscreen"})):(Ke({message:"request fullscreen"}),await Cu(jn()))},pn=Z=>{w()||(Z.preventDefault(),Bi.set(!0),$o.set({left:Z.clientX,top:Z.clientY}))};function Do(){co.set(!0),ro||hi(e.uiConfig.controls.hideTimeoutCursor)}function Yn(Z){var _i,Mi;let{relatedTarget:qe}=Z,ri=!!(qe&&((_i=r(Tn))!=null&&_i.contains(qe)))&&((Mi=rt())==null?void 0:Mi.isFocused());!ro&&!ri&&(kn.set(!0),hi(e.uiConfig.controls.hideTimeoutCursor))}function Ar(){co.set(!1),O(jo,!1),O(uo,!1),un=!1,e.store.actions.internal.releaseCamera(),hi(e.uiConfig.controls.hideTimeout),P()&&Li()}function Zn(Z){return Z?Z.offsetTop+Zn(Z.offsetParent):0}function st(Z){return Z?Z.offsetLeft+st(Z.offsetParent):0}function Lt(Z){if(H()&&nn){let qe=Z.currentTarget,Dt=Zn(qe),ri=st(qe),_i=Z.pageX-ri,Mi=Z.pageY-Dt,{left:Di,bottom:vn,right:Vi}=H(),Ti=Vi-Di;return _i>=Di-Ti&&Mi<=vn+Ti}}function xi(Z){if(r(yo)){let qe=Zn(Z.currentTarget),Dt=W().height,ri=Z.pageY-qe;if(Lt(Z)){O(jo,!1);return}ri<40?O(jo,!0):ri>Dt-40?O(uo,!0):(O(jo,!1),f()||O(uo,!1))}}function mo(Z){xi(Z),!r(gr)&&!P()&&hi(e.uiConfig.controls.hideTimeoutCursor),Y()&&un&&_t&&e.store.actions.internal.moveCameraFocusPX(_t.clientX-Z.clientX,_t.clientY-Z.clientY,Z.timeStamp-_t.timeStamp),_t=Z}let qi=null,vo=()=>{qi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),eo()},e.uiConfig.doubleForwardActivationTime)},Li=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),qi&&clearTimeout(qi),qi=null},go=Z=>{Z.preventDefault(),Z.button===0&&(un=!0,e.store.actions.internal.holdCamera(),oe()&&vo()),!un&&hi(e.uiConfig.controls.hideTimeoutCursor)},fn=Z=>{Z.preventDefault(),Z.button===0&&(_t=Z,un=!1,e.store.actions.internal.releaseCamera()),!P()&&hi(e.uiConfig.controls.hideTimeoutCursor)},Vn=Z=>{Z.preventDefault(),kr&&(Ke({message:"double click on video"}),br(),hi(e.uiConfig.controls.hideTimeoutCursor))},Co=Z=>{var qe;if(Z.preventDefault(),P()){Li();return}if(qi&&Li(),G()||f()){Bo();return}if(!(E()&&!fi)){if(r(Ln))return _r();if((qe=rt())==null||qe.focus(),!Ae()){e.firstStart(),hi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ge()!==Hv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),hi(e.uiConfig.controls.hideTimeoutCursor)}},Qi=Z=>{Bo(),so.set(!0),hi(e.uiConfig.controls.hideTimeout),Z&&Oo(e.uiConfig.controls.hideHotKeyHelpers,Z)},Pr=()=>{var Z,qe;Bo(),(Z=e.store.callbacks)!=null&&Z.onOpenHotKeyMap?(qe=e.store.callbacks)==null||qe.onOpenHotKeyMap(ee()):ao.update(Dt=>!Dt)},Xn=()=>{so.set(!0)},Rn=e.store.ui.contextMenu.openedByBtnKeyboard$,$r=e.store.ui.contextMenu.btnRef$,yr=X(void 0),Lr=e.store.ui.contextMenu.openedByHotKey$,Xr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{lo.set(r(In))}),Ue(()=>{O(po,r(An)&&ge()!==Hv.PlaybackState.PLAYING,!0),r(An)||Et(()=>O(An,!0))}),Ue(()=>{var qe,Dt;let Z=(r(po)||E()||f()||fe()||ue()||ce()||Pe())&&!r(gr)&&(s()==="video"||s()==="ads")&&!a()&&I();gt.set(Z),!Z&&!Pe()&&e.uiConfig.returnFocusOnControlsHide&&((qe=r(Tn))!=null&&qe.contains(Vu()))&&((Dt=rt())==null||Dt.focus())}),Ue(()=>{!fe()&&r(ai)&&!p()&&hi(e.uiConfig.controls.hideTimeoutCursor),Et(()=>O(ai,fe(),!0))}),Ue(()=>{r(ln),f(),Me(),Et(()=>Ad(r(ln),f(),Me()))}),Ue(()=>{r(yr),G(),re(),Ve(),Et(()=>{let Z=re()||Ve();Ad(r(yr),G(),Z)})}),Ue(()=>{let Z=ae();Z&&(G(),Et(()=>bl(Z,G(),Rn)))}),Ue(()=>{let Z=k();Z&&(G(),Et(()=>U1(Z,G(),Lr)))}),Ue(()=>{var Z;!ot()&&x()&&(Et(()=>ei.set(!1)),(Z=rt())==null||Z.focus())}),Ue(()=>{w()&&Bo()});let Ge=q("video360"),Wt=X(void 0),di=Z=>{jr.set(zn(Ro(),{title:r(Wt)},"title",Z))},mn=(Z,qe)=>{var Mi,Di;let Dt=(Di=(Mi=e.store.callbacks)==null?void 0:Mi.uiInfo)==null?void 0:Di.onUpcomingLiveViewStateChanged;if(!Dt)return;let ri=!!qe,_i={...zn(r(yo),{upcomingLiveScreen:qe},"upcomingLiveScreen",ri),...Z};Dt(_i)};var To=Wx();kt("blur",ra,Bo);var Fo=pe(To);Fo.__mousemove=mo;var Ho=_(Fo);let Mr=g(()=>s()==="ads"),Gs=g(()=>r(Ln)?_r:void 0);at(em(Ho,{startDoubleForwardActivationTimer:vo,stopDoubleForward:Li,toggleFullscreen:br,hideContextMenu:Bo,showHotKeyHelpers:Qi,showKeyMap:Pr,get isAds(){return r(Mr)},get fakePlayButtonHandler(){return r(Gs)},get nextButtonActive(){return Yt()},get prevButtonActive(){return we()},children:(Z,qe)=>{var Dt=Ux(),ri=pe(Dt);Ha(ri,{get hideCursor(){return r(hr)},onClick:Co,onContextMenu:pn,onMouseDown:go,onMouseUp:fn,onDblClick:Vn,get videoContainer(){return $t()},set videoContainer(Di){$t(Di)}});var _i=A(ri,2);ua(_i,()=>"slot",!1,(Di,vn)=>{Te(Di,()=>({name:Fa}))});var Mi=A(_i,2);gs(Mi,Ne,Di=>{var vn=Hx(),Vi=pe(vn);let Ti=g(()=>s()!=="thumb"||a()||ro&&e.autoplay);Oa(Vi,{get hidden(){return r(Ti)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:pn,onClick:So});var Eo=A(Vi,2);Bv(Eo,{});var Jn=A(Eo,2);Fv(Jn,{get isVisible(){return P()}});var er=A(Jn,2);{var Ii=Ye=>{let ui=g(()=>{var Uo;return(Uo=e.live)==null?void 0:Uo.startTime});rc(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ui)},onUpcomingLiveViewStateChanged:mn,onContextMenu:pn,onClick:So})};V(er,Ye=>{s()==="LiveWaitingStart"&&Ye(Ii)})}var js=A(er,2);{var Tt=Ye=>{Ba(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:pn,onClick:So})};V(js,Ye=>{s()==="LiveWaitingRecover"&&Ye(Tt)})}var pt=A(js,2);{var ho=Ye=>{Ba(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:pn,onClick:So})};V(pt,Ye=>{s()==="LiveWaitingRecord"&&Ye(ho)})}var Yo=A(pt,2);{var Gi=Ye=>{var ui=Ox();let Uo;var Zs=_(ui);Cd(Zs,{get adsSlotId(){return et()},get adsParams(){return zt()},get adsAutoplayParam(){return Qt()},get duration(){return Gt()},get adsExternalApi(){return e.adsExternalApi}}),h(ui),D(gn=>Uo=ne(ui,1,"ads-container svelte-jtgjmv",null,Uo,gn),[()=>({hidden:s()!=="ads"})]),$(Ye,ui)};V(Yo,Ye=>{e.showAds&&Ae()&&Ye(Gi)})}var ci=A(Yo,2);{var Fi=Ye=>{let ui=g(()=>!ze()&&e.showAutoplayNext&&T());Zf(Ye,{get title(){return be()},get thumb(){return de()},get isHide(){return r(ui)},clickCloseIcon:()=>O(Ki,!0)})};V(ci,Ye=>{r(Gn)&&be()&&de()&&Ye(Fi)})}var Is=A(ci,2);{var Fl=Ye=>{let ui=g(()=>!u());uv(Ye,{get title(){return e.title},get isHidden(){return r(ui)},onVisibilityChanged:di,get ref(){return r(Wt)},set ref(Uo){O(Wt,Uo,!0)}})};V(Is,Ye=>{r(Pn)&&Ye(Fl)})}var wc=A(Is,2);{var cs=Ye=>{let ui=g(()=>s()==="video"&&u());oc(Ye,{get isShifted(){return r(ui)}})};V(wc,Ye=>{Y()&&Ye(cs)})}var Sc=A(wc,2);{var vp=Ye=>{var ui=Bx(),Uo=_(ui);xd(Uo,{get"aria-label"(){return Ge}}),h(ui),$(Ye,ui)};V(Sc,Ye=>{Q()&&Ye(vp)})}var Cc=A(Sc,2);{var gp=Ye=>{nc(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return te()}})};V(Cc,Ye=>{ce()&&Ye(gp)})}var Tc=A(Cc,2);{var hp=Ye=>{Ra(Ye,{get shifted(){return u()},get captions(){return Xe()},get position(){return _e()},get playerSize(){return W()}})};V(Tc,Ye=>{Re().value!=="off"&&Ye(hp)})}var Ec=A(Tc,2);{var _p=Ye=>{var ui=Dx();ui.__contextmenu=pn,ui.__click=[Nx,G,Bi,f,Bt,Bo];var Uo=_(ui);Na(Uo,{}),h(ui),$(Ye,ui)};V(Ec,Ye=>{a()&&Ye(_p)})}var Ic=A(Ec,2);{var bp=Ye=>{let ui=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Uo=g(()=>s()==="ads"),Zs=g(()=>e.canRewindLive&&J()!==0);ic(Ye,{get bottomHidden(){return r(ui)},get bottomNoSmooth(){return F()},get showControls(){return u()},get isAds(){return r(Uo)},get canRewindLive(){return r(Zs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return jt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ee()},get nextButtonActive(){return Yt()},get prevButtonActive(){return we()},get isOneVideoPlaylist(){return Qe()},customFullscreenSupported:kr,toggleFullscreen:br,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Ir)},set playerControlsWrapperRef(gn){O(Ir,gn,!0)},get playerControlsRef(){return r(Tn)},set playerControlsRef(gn){O(Tn,gn,!0)}})};V(Ic,Ye=>{Ae()&&Ye(bp)})}var kc=A(Ic,2);{var $p=Ye=>{var ui=Fx(),Uo=_(ui);let Zs=g(()=>{var gn;return(gn=r(Tn))==null?void 0:gn.clientHeight});dc(Uo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Zs)},returnFocus:()=>{var gn;return(gn=rt())==null?void 0:gn.focus()},get ref(){return r(ln)},set ref(gn){O(ln,gn,!0)}}),h(ui),$(Ye,ui)};V(kc,Ye=>{!ce()&&s()!=="ads"&&Ye($p)})}var Ac=A(kc,2);let yp=g(()=>!r(ds));Id(Ac,{get isLive(){return xe()},get isHidden(){return r(yp)},get isPlaying(){return Ce()},get position(){return _e()},get duration(){return J()}});var Pc=A(Ac,2);av(Pc,{get data(){return cn}});var Ys=A(Pc,2);jf(Ys,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ye;return(Ye=rt())==null?void 0:Ye.focus()},get visible(){return G()},get playerContainerRef(){return r(yo)},get position(){return He()},get menuElementRef(){return r(yr)},set menuElementRef(Ye){O(yr,Ye,!0)}});var Lc=A(Ys,2);{var Mc=Ye=>{cc(Ye,{onClose:vt,onSelectAutoQuality:()=>{cr("auto"),vt()}})};V(Lc,Ye=>{r(mr)&&Ye(Mc)})}var Hl=A(Lc,2);{var xp=Ye=>{Ca(Ye,{})};V(Hl,Ye=>{r(si)&&Ye(xp)})}var Ul=A(Hl,2);{var zl=Ye=>{om(Ye,{})};V(Ul,Ye=>{nt()&&Ye(zl)})}var Vc=A(Ul,2);{var wp=Ye=>{Ld(Ye,{})};V(Vc,Ye=>{bt()&&Ye(wp)})}$(Di,vn)}),$(Z,Dt)},$$slots:{default:!0}}),Z=>rt(Z),()=>rt());var Jr=A(Ho,2);at(Jr,Z=>O(In,Z),()=>r(In)),h(Fo),at(Fo,Z=>O(yo,Z),()=>r(yo));var Nn=A(Fo,2);{var Es=Z=>{var qe=zx();$(Z,qe)};V(Nn,Z=>{ct()&&Z(Es)})}kt("mouseenter",Fo,Do),kt("mouseleave",Fo,Ar),kt("click",Fo,Xn,!0),kt("focusin",Fo,Yn,!0),$(t,To),z(),o()}dt(["mousemove","contextmenu","click"]);var Qs=require("@vkontakte/videoplayer-core/es2018"),W0=require("@vkontakte/videoplayer-shared/es2018");var qx=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),Qx=M("<div><!></div>"),Gx={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;
341
348
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
342
349
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
343
350
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -353,7 +360,7 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
353
360
  100% {
354
361
  opacity: 0;
355
362
  }
356
- }.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 Ku(t,e){U(e,!0),q(t,Ax);let i=v(e,"seekStep",3,0),o=Y(!1),n=0,s=0,l=Y(ti(i())),d=m=>{m.stopPropagation(),s+=1,B(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,B(o,!1)},300)};rn(()=>{window.clearTimeout(n)});var a=kx();a.__click=d;var p=_(a);{var f=m=>{var u=Ix(),y=ge(u),w=A(y,2),x=_(w),S=_(x),T=A(S,2),E=A(T,2);h(x);var L=A(x,2),k=_(L,!0);h(L),h(w),D(I=>{var V,G,H,F;te(y,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(G=e.side)!=null?G:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),te(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),be(k,I)},[()=>K("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(m,u)};R(p,m=>{r(o)&&m(f)})}h(a),D(()=>{var m;return te(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),$(t,a),z()}ut(["click"]);var Px=(t,e,i)=>{e(!1),i()},Mx=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),Lx={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 Iv(t,e){U(e,!0),q(t,Lx);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),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()};Lt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),T=ge(S);{var E=L=>{var k=Mx(),I=A(ge(k),2),V=_(I),G=_(V),H=_(G,!0);h(G);var F=A(G,2);wa(F,{onClick:x}),h(V);var W=A(V,2);W.__click=[Px,p,m];var J=_(W),j=_(J),le=_(j);let ie;var pe=A(le,2);{var he=Ve=>{kd(Ve,{get isRunning(){return s()},onTimerEnded:w})};R(pe,Ve=>{n()&&Ve(he)})}h(j),h(J);var ue=A(J,2),Ne=_(ue),oe=_(Ne,!0);h(Ne),h(ue),h(W),h(I),D((Ve,ne)=>{be(H,Ve),st(j,`background-image: url('${e.thumb}')`),ie=te(le,1,"thumb-overlay svelte-1qdxi6t",null,ie,ne),be(oe,e.title)},[()=>n()?K("end_screen_next_video"):K("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(L,k)};R(T,L=>{e.isHide||L(E)})}$(t,S),z(),o()}ut(["click"]);var y0=require("@vkontakte/videoplayer-core/es2018");var x0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Lt(()=>{y0.clientChecker.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))}),rn(()=>{i==null||i(),clearTimeout(o)})};var w0=require("@vkontakte/videoplayer-core/es2018");var qu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var S0=require("@vkontakte/videoplayer-core/es2018"),C0=({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=()=>S0.clientChecker.device.isIOS&&$e(l)===w0.VideoFormat.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 qu(w),S=$e(d),T=$e(s),E=$e(n);for(let I of S)T.some(G=>G.value===I.id)&&x.attach(I,E.value===I.id);let L=d.subscribe(I=>{for(let V of I)x.updateSrc(V)}),k=()=>{let I=x.getCurrentShowingId();o($e(s).find(V=>V.value===I))};w.textTracks.addEventListener("change",k),a=()=>{L(),x.detachAll(),w.textTracks.removeEventListener("change",k)}};Lt(()=>i.subscribe(u)),rn(m)};var Vx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Rx=M("<!> <!>",1),Nx=M("<div><!></div>"),Ox=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Bx=M("<div><!></div>"),Dx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Hx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Fx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Ux={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 kv(t,e){var Er,Gr;U(e,!0),q(t,Ux);let[i,o]=He(),n=()=>C(Qe,"$playerPhase",i),s=()=>C(Xi,"$isLoaderVisible",i),l=()=>C(Be,"$adPlaybackState",i),d=()=>C(Ko,"$crashed",i),a=()=>C(In,"$notificationsToShow$",i),p=()=>C(de,"$playbackState$",i),f=()=>C(Bt,"$graphIsOpened$",i),m=()=>C(Wt,"$interactiveHideMobileControls",i),u=()=>C(qi,"$isEnded$",i),y=()=>C(Yt,"$isInteractiveExpectation$",i),w=()=>C(Ye,"$controlsVisible",i),x=()=>C(vt,"$touched",i),S=()=>C(ln,"$autoplayNextEnabled$",i),T=()=>C(pi,"$postrollPassed",i),E=()=>C(Wn,"$bottomNoSmooth",i),L=()=>C(Ei,"$videoSize",i),k=()=>C(N,"$playerSize",i),I=()=>C(Re,"$isFullscreen",i),V=()=>C(We,"$position$",i),G=()=>C(ke,"$duration$",i),H=()=>C(dn,"$loadedMetadata",i),F=()=>C(it,"$settingsMenuVisible",i),W=()=>C(si,"$scrubbingInProgress",i),J=()=>C(ct,"$volumeChangingInProgress",i),j=()=>C(ko,"$chromecastConnected$",i),le=()=>C(Pt,"$isControlsAvailable",i),ie=()=>C(Dt,"$isInteractiveTime$",i),pe=()=>C(no,"$isActiveLive",i),he=()=>C(ri,"$settingsMenuOpenedByKeyboard",i),ue=()=>C(xe,"$language$",i),Ne=()=>C(gi,"$disabledControls$",i),oe=()=>C(Je,"$is3DVideo",i),Ve=()=>C(ht,"$icon3DVideoVisible",i),ne=()=>C(ci,"$chromecastDeviceName$",i),O=()=>C(Po,"$currentSubtitle$",i),ce=()=>C(Mo,"$currentSubtitleCaptions$",i),Le=()=>C(an,"$realDuration$",i),ve=()=>C(Ut,"$isLive$",i),ee=()=>C(jt,"$isPlaying$",i),me=()=>C(ii,"$debugPanelVisible",i),De=v(e,"videoContainer",15),fe=v(e,"adsSlotId",3,void 0),dt=v(e,"adsParams",3,void 0),Z=v(e,"adsAutoplayParam",3,void 0),Pe=v(e,"duration",3,void 0),Ie=v(e,"logoTargetUrl",3,""),Ue=v(e,"showNextPrevButtons",3,!1),nt=v(e,"nextButtonActive",3,!1),ft=v(e,"prevButtonActive",3,!1),mt=v(e,"endScreenVideoTitle",3,void 0),St=v(e,"endScreenVideoThumb",3,void 0),Xe=v(e,"isOneVideoPlaylist",3,!1),Ht=v(e,"showMiniTimer",3,!1),Qt=v(e,"fullScreenTarget",3,void 0),Gt=v(e,"playerStarted",3,!1),Ft=v(e,"showEndScreen",3,!0),{notifications$:re,graphIsOpened$:Bt}=vo(),_e=e.store.getLogger().createComponentLog("Root component"),xe=e.store.interfaceLanguage$,de=e.store.state.playbackState$,Be=e.store.ads.playbackState,We=e.store.state.positionWithScrubbing$,ke=e.store.state.duration$,Qe=e.store.playerPhase,Re=e.store.ui.isFullscreen,Ye=e.store.ui.controlsVisible,Pt=e.store.ui.isControlsAvailable,Wt=e.store.ui.interactiveHideMobileControls,it=e.store.ui.settingsMenu.visible$,ri=e.store.ui.settingsMenu.openedByBtnKeyboard$,si=e.store.ui.scrubbingInProgress,ct=e.store.ui.volumeChangingInProgress,ii=e.store.ui.debugPanelVisible,Xi=e.store.state.isLoaderVisible,qi=e.store.state.isEnded$,ko=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,pi=e.store.ads.postrollPassed,Ut=e.store.state.isLive$,jt=e.store.state.isPlaying$,no=e.store.state.isActiveLive$,Ao=e.store.state.isRewindableLive$,Ko=e.store.state.crashed$,yt=e.store.webApi.annotationsApi,Ze=e.store.webApi.pictureInPictureApi,Ei=e.store.state.videoSize$,Po=e.store.state.currentSubtitle$,Mo=e.store.state.currentSubtitleCaptions$,an=e.store.state.duration$,N=e.store.ui.playerSize,Je=e.store.ui.is3DVideo,ht=e.store.ui.icon3DVideoVisible,Xt=e.store.state.isInteractive,Dt=e.store.state.isInteractiveTime$,Yt=e.store.state.isInteractiveExpectation$,fi=e.store.state.hasInteractiveBranches,gi=e.store.ui.controls.disabledControls$,vt=e.store.ui.touched,Vi=e.store.ui.overlayContainer$,ln=e.store.ui.autoplayNextEnabled$,dn=e.store.state.loadedMetadata$,qo=e.store.actions.internal.closeSettingsMenu,ui=(Er=e.store.callbacks)==null?void 0:Er.onDisabledPlayPrevChapterClick,Lo=(Gr=e.store.callbacks)==null?void 0:Gr.onDisabledSeekToInteractiveClick,wr=e.store.actions.internal.setQuality,ro=Y(void 0),so=Y(void 0),cn=Y(void 0),un=Y(void 0),Qo,ar,En=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Sr=Y(void 0),{closeNotification:as,notificationsToShow$:In}=re,Cr=g(()=>!!a().slow_video),zn=()=>as("slow_video"),Wn=se(!1),Vo,Ri=Y(!1),kn=g(()=>p()!==js.PlaybackState.PLAYING),An=Y(!1),Pn=g(()=>f()||m()||!r(Ri)&&(u()&&!!fi||r(kn)&&y())),lr=Y(!0),dr=g(()=>e.uiConfig.features.thumbTimer&&Ht()&&n()==="video"&&!w()&&!d()&&!Xt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),cr=Y(!1),ur=g(()=>(Ft()||e.showAutoplayNext&&S())&&!!mt()&&!!St()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(cr)),Tr=Y(!1);Ze==null||Ze.setContext(Kl());let ls=at=>{at&&!Xt&&go(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:ls});let Kn=()=>{clearTimeout(Qo),B(Ri,!1),m()&&Wt.set(!1)},go=at=>{Kn(),B(Ri,!0),Qo=setTimeout(()=>B(Ri,!1),at);let oi=at-100;Vo=setTimeout(()=>{E()&&Wn.set(!1)},oi>0?oi:at)},Mn=Je.subscribe(at=>{ht.set(at),at&&(clearTimeout(ar),ar=setTimeout(()=>ht.set(!1),e.uiConfig.controls.hide360IconTimeout))}),pn=async(at=Ds())=>{var oi,ao,lo,gn,co,hi;if(at&&!js.clientChecker.device.isIOS){let Ni=bd(),Oi=ho(),hn=js.clientChecker.browser.isSamsungBrowser&&Ni===e.shadowRootContainer;at=Ni===Oi||hn}if(at){go(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ze==null?void 0:Ze.exit())}catch(Ni){_e({message:String(Ni)})}try{let Ni=(oi=L())!=null&&oi.width&&((ao=L())!=null&&ao.height)?L():k();await _1(Ni)}catch(Ni){_e({message:String(Ni)})}}Re.set(at),e.store.getAdmanWrapper().setFullscreen(at),I()?(gn=(lo=e.store.callbacks)==null?void 0:lo.onFullscreenEnter)==null||gn.call(lo):(hi=(co=e.store.callbacks)==null?void 0:co.onFullscreenExit)==null||hi.call(co)},gt=at=>{let oi=at,{width:ao,height:lo}=oi.target;N.set({width:ao,height:lo})},Jt=()=>{let{width:at,height:oi}=r(ro).getBoundingClientRect();N.set({width:at,height:oi})};Lt(()=>{var at;return _u(pn),e.uiConfig.features.annotationsInside&&(yt==null||yt.init(r(ro))),ba(Ze)&&(Ze==null||Ze.assignPlayerContainer(r(ro)),Ze==null||Ze.setExternalEventHandlers({resize:gt,leavepictureinpicture:Jt})),B(lr,!js.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((at=De().parentElement)==null||at.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(Qo),clearTimeout(Vo),clearTimeout(ar),Mn(),Ze==null||Ze.dispose().catch(oi=>{_e({message:String(oi)})}),bu(pn)}});let Go=Y(!0),qn=Y(!0),fn=at=>{let oi=V()+(at==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;oi<0?(B(Go,!1),oi=0):oi>=G()&&(B(qn,!1),oi=G()),B(An,!0),e.seekTime(oi)},ho=()=>js.clientChecker.device.isIOS?r(ro):!e.uiConfig.allowChangingFullscreenTarget||!Qt()?e.outerContainerRef:Qt().contains(e.outerContainerRef)?Qt():e.outerContainerRef,Ii=async()=>{try{if(Ds())await hu(document),_e({message:"exit fullscreen"});else{if(_e({message:"request fullscreen"}),js.clientChecker.device.isIOS&&!H())return;await gu(ho())}}catch(at){_e({message:String(at)})}},xi=()=>{qo()},jo=at=>{if(at.preventDefault(),F()){xi();return}if(!Gt()){e.firstStart(),go(e.uiConfig.controls.hideTimeoutCursor);return}B(An,!1),w()?Kn():go(e.uiConfig.controls.hideTimeoutMobile)},Qn=()=>{vt.set(!0)},qr=()=>{Xt||(Wn.set(!0),go(e.uiConfig.controls.hideTimeoutCursor))},Qr=at=>{ui&&(ui(at),go(e.uiConfig.controls.hideTimeoutMobile))},pr=at=>{Lo&&(Lo(at),go(e.uiConfig.controls.hideTimeoutMobile))};Ke(()=>{Vi.set(r(Sr))}),Ke(()=>{Ye.set((r(kn)||F()||W()||J()||j()||!r(ur)&&(u()||r(Ri)&&!r(An)))&&!r(Pn)&&n()==="video"&&!d()&&le())}),Ke(()=>{!W()&&r(Tr)&&!ie()&&go(e.uiConfig.controls.hideTimeoutMobile),B(Tr,W(),!0)}),Ke(()=>{B(Go,V()>0),B(qn,!pe()&&V()<G(),!0)}),Ke(()=>{Td(r(un),F(),he(),!0)});let mn=K("aria_label_video_player"),ds=K("video360");x0({fullScreenChangeHandler:pn,getFullscreenTarget:ho}),C0({store:e.store,getFullscreenTarget:ho});let Ln=(at,oi)=>{var co,hi;let ao=(hi=(co=e.store.callbacks)==null?void 0:co.uiInfo)==null?void 0:hi.onUpcomingLiveViewStateChanged;if(!ao)return;let lo=!!oi,gn={...Fn(r(ro),{upcomingLiveScreen:oi},"upcomingLiveScreen",lo),...at};ao(gn)};var Ro=Fx();Et("blur",oa,xi);var Gn=_(Ro);Ha(Gn,{onClick:jo,get videoContainer(){return De()},set videoContainer(at){De(at)}});var vn=A(Gn,2);ca(vn,()=>"slot",!1,(at,oi)=>{Ae(at,()=>({name:Da}))});var Kt=A(vn,2);da(Kt,ue,at=>{var oi=Hx(),ao=ge(oi);let lo=g(()=>n()!=="thumb"||d()||Xt&&e.autoplay);Na(ao,{get hidden(){return r(lo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var gn=A(ao,2);{var co=ze=>{var Zt=Rx(),bi=ge(Zt);{var _n=xt=>{let ni=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Ku(xt,{side:"left",get seekStep(){return r(ni)},handleSingleFirstClick:jo,handleSecondClick:()=>fn("backward")})};R(bi,xt=>{r(Go)&&xt(_n)})}var Zo=A(bi,2);{var we=xt=>{let ni=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Ku(xt,{side:"right",get seekStep(){return r(ni)},handleSingleFirstClick:jo,handleSecondClick:()=>fn("forward")})};R(Zo,xt=>{r(qn)&&xt(we)})}$(ze,Zt)};R(gn,ze=>{e.canRewindLive&&Ao&&!Ne().has("TIMELINE")&&ze(co)})}var hi=A(gn,2);{var Ni=ze=>{let Zt=g(()=>{var bi;return(bi=e.live)==null?void 0:bi.startTime});ec(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Zt)},onUpcomingLiveViewStateChanged:Ln})};R(hi,ze=>{n()==="LiveWaitingStart"&&ze(Ni)})}var Oi=A(hi,2);{var hn=ze=>{Oa(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Oi,ze=>{n()==="LiveWaitingRecover"&&ze(hn)})}var fr=A(Oi,2);{var cs=ze=>{Oa(ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(fr,ze=>{n()==="LiveWaitingRecord"&&ze(cs)})}var jr=A(fr,2);{var us=ze=>{var Zt=Nx();let bi;var _n=_(Zt);yd(_n,{get adsSlotId(){return fe()},get adsParams(){return dt()},get adsAutoplayParam(){return Z()},get duration(){return Pe()},get adsExternalApi(){return e.adsExternalApi}}),h(Zt),D(Zo=>bi=te(Zt,1,"ads-container svelte-7yl31d",null,bi,Zo),[()=>({hidden:n()!=="ads"})]),$(ze,Zt)};R(jr,ze=>{e.showAds&&Gt()&&ze(us)})}var mr=A(jr,2);{var _o=ze=>{let Zt=g(()=>!Ft()&&e.showAutoplayNext&&S());Iv(ze,{get title(){return mt()},get thumb(){return St()},get isHide(){return r(Zt)},clickCloseIcon:()=>B(cr,!0)})};R(mr,ze=>{r(ur)&&mt()&&St()&&ze(_o)})}var Vn=A(mr,2);{var Ir=ze=>{Xd(ze,{})};R(Vn,ze=>{oe()&&ze(Ir)})}var kr=A(Vn,2);{var rt=ze=>{var Zt=Ox(),bi=_(Zt);_d(bi,{get"aria-label"(){return ds}}),h(Zt),$(ze,Zt)};R(kr,ze=>{Ve()&&ze(rt)})}var kt=A(kr,2);{var _i=ze=>{Jd(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R(kt,ze=>{j()&&ze(_i)})}var uo=A(kt,2);{var po=ze=>{Va(ze,{get shifted(){return w()},get captions(){return ce()},get position(){return V()},get playerSize(){return k()},isMobile:!0})};R(uo,ze=>{O().value!=="off"&&ze(po)})}var Ji=A(uo,2);{var eo=ze=>{var Zt=Bx();Zt.__click=[Vx,F,it,xi];var bi=_(Zt);Ra(bi,{}),h(Zt),$(ze,Zt)};R(Ji,ze=>{d()&&ze(eo)})}var fo=A(Ji,2);{var Rn=ze=>{let Zt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),bi=g(()=>n()==="ads"),_n=g(()=>e.canRewindLive&&Le()!==0);Zd(ze,{get bottomHidden(){return r(Zt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(bi)},get canRewindLive(){return r(_n)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ie()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ue()},get nextButtonActive(){return nt()},get prevButtonActive(){return ft()},get isOneVideoPlaylist(){return Xe()},get customFullscreenSupported(){return r(lr)},get endScreenShown(){return r(ur)},toggleFullscreen:Ii,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Qr,onDisabledSeekToInteractiveClick:pr,get playerControlsWrapperRef(){return r(so)},set playerControlsWrapperRef(Zo){B(so,Zo,!0)},get playerControlsRef(){return r(cn)},set playerControlsRef(Zo){B(cn,Zo,!0)}})};R(fo,ze=>{Gt()&&ze(Rn)})}var bo=A(fo,2);{var $o=ze=>{var Zt=Dx(),bi=_(Zt);nc(bi,{get supportLink(){return e.supportLink},get returnFocus(){return T0.noop},get ref(){return r(un)},set ref(_n){B(un,_n,!0)}}),h(Zt),$(ze,Zt)};R(bo,ze=>{F()&&ze($o)})}var No=A(bo,2);let Yn=g(()=>!r(dr));Sd(No,{get isLive(){return ve()},get isHidden(){return r(Yn)},get isPlaying(){return ee()},get position(){return V()},get duration(){return G()}});var Yo=A(No,2);{var Ar=ze=>{Sa(ze,{})};R(Yo,ze=>{r(En)&&ze(Ar)})}var vr=A(Yo,2);{var Pr=ze=>{Id(ze,{})};R(vr,ze=>{me()&&ze(Pr)})}var yo=A(vr,2);{var Mr=ze=>{rc(ze,{onClose:zn,onSelectAutoQuality:()=>{wr("auto"),zn()}})};R(yo,ze=>{r(Cr)&&ze(Mr)})}$(at,oi)});var jn=A(Kt,2);ot(jn,at=>B(Sr,at),()=>r(Sr)),h(Ro),ot(Ro,at=>B(ro,at),()=>r(ro)),D(()=>Fe(Ro,"aria-label",mn)),Et("click",Ro,Qn,!0),Et("focusin",Ro,qr,!0),$(t,Ro),z(),o()}ut(["click"]);function Qu(t){let e="";return Zi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Zi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Zi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Zi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Zi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Zi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Zi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Zi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Zi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Zi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Zi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Zi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Zi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Zi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Zi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Zi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Zi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Zi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Zi(t.font)&&(e+=`--font:${t.font};`),Zi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Zi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Zi(t){return typeof t=="string"&&!t.includes(";")}var E0=require("@vkontakte/videoplayer-shared/es2018");var zx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Wx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Av(t,e){U(e,!0),q(t,Wx);let[i,o]=He(),n=()=>C(J,"$playerSize",i),s=()=>C(I,"$isPlaying$",i),l=()=>C(L,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(E,"$crashed$",i),f=()=>C(V,"$currentSubtitle$",i),m=()=>C(G,"$currentSubtitleCaptions$",i),u=()=>C(k,"$positionExact$",i),y=()=>C(F,"$isLive$",i),w=()=>C(W,"$isRewindableLive$",i),x=v(e,"outsideDuration",3,0),S=v(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:L,positionExact$:k,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:G,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:W},ui:{playerSize:J,controls:j},actions:{internal:{getVideoElement:le}}}=Ee(),ie=8,pe=Y(!1),he=ti({}),ue=()=>{B(pe,!0)},Ne=()=>{B(pe,!1)},oe=(0,E0.debounceFn)(El,260);Ke(()=>{n(),oe(le(),j,he,r(pe))});let Ve=g(()=>s()?Cn(l()-d()):Cn(isFinite(l())?l():x()));var ne=zx(),O=_(ne);Ha(O,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Ie){S(Ie)}});var ce=A(O,2);ca(ce,()=>"slot",!1,(Ie,Ue)=>{Ae(Ie,()=>({name:Da}))});var Le=A(ce,2);let ve=g(()=>a()!=="thumb"||p());Na(Le,{get hidden(){return r(ve)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ee=A(Le,2);{var me=Ie=>{Va(Ie,{shifted:!1,get captions(){return m()},get position(){return u()},get playerSize(){return n()}})};R(ee,Ie=>{f().value!=="off"&&Ie(me)})}var De=A(ee,2),fe=_(De);wd(fe,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(Ve)}}),h(De);var dt=A(De,2);let Z;var Pe=_(dt);Ia(Pe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ie,tooltipRightOffset:ie,get ref(){return he.timeline},set ref(Ie){he.timeline=Ie}}),h(dt),h(ne),D(Ie=>Z=te(dt,1,"timeline svelte-1qfjf44",null,Z,Ie),[()=>({visible:r(pe)})]),Et("mouseenter",ne,ue),Et("mouseleave",ne,Ne),$(t,ne),z(),o()}var Kx=M("<div><!></div>"),qx={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--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;
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 ep(t,e){U(e,!0),K(t,Gx);let i=v(e,"seekStep",3,0),o=X(!1),n=0,s=0,l=X(ii(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)};en(()=>{window.clearTimeout(n)});var a=Qx();a.__click=d;var p=_(a);{var f=m=>{var u=qx(),y=pe(u),w=A(y,2),x=_(w),T=_(x),S=A(T,2),E=A(S,2);h(x);var R=A(x,2),I=_(R,!0);h(R),h(w),D(P=>{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(S,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ne(E,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),me(I,P)},[()=>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 jx=(t,e,i)=>{e(!1),i()},Yx=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),Zx={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 zv(t,e){U(e,!0),K(t,Zx);let[i,o]=Oe(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Se(),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()};Vt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var T=Be(),S=pe(T);{var E=R=>{var I=Yx(),P=A(pe(I),2),B=_(P),F=_(B),H=_(F,!0);h(F);var W=A(F,2);Sa(W,{onClick:x}),h(B);var Y=A(B,2);Y.__click=[jx,p,m];var oe=_(Y),G=_(oe),ge=_(G);let ee;var fe=A(ge,2);{var ue=re=>{Md(re,{get isRunning(){return s()},onTimerEnded:w})};V(fe,re=>{n()&&re(ue)})}h(G),h(oe);var ce=A(oe,2),Pe=_(ce),Me=_(Pe,!0);h(Pe),h(ce),h(Y),h(P),D((re,Ve)=>{me(H,re),lt(G,`background-image: url('${e.thumb}')`),ee=ne(ge,1,"thumb-overlay svelte-1qdxi6t",null,ee,Ve),me(Me,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(R,I)};V(S,R=>{e.isHide||R(E)})}$(t,T),z(),o()}dt(["click"]);var D0=require("@vkontakte/videoplayer-core/es2018");var F0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Vt(()=>{D0.clientChecker.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))}),en(()=>{i==null||i(),clearTimeout(o)})};var H0=require("@vkontakte/videoplayer-core/es2018");var tp=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var U0=require("@vkontakte/videoplayer-core/es2018"),z0=({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=()=>U0.clientChecker.device.isIOS&&he(l)===H0.VideoFormat.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 tp(w),T=he(d),S=he(s),E=he(n);for(let P of T)S.some(F=>F.value===P.id)&&x.attach(P,E.value===P.id);let R=d.subscribe(P=>{for(let B of P)x.updateSrc(B)}),I=()=>{let P=x.getCurrentShowingId();o(he(s).find(B=>B.value===P))};w.textTracks.addEventListener("change",I),a=()=>{R(),x.detachAll(),w.textTracks.removeEventListener("change",I)}};Vt(()=>i.subscribe(u)),en(m)};var Xx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Jx=M("<!> <!>",1),e5=M("<div><!></div>"),t5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),i5=M("<div><!></div>"),o5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),n5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),r5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),s5={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 Wv(t,e){var _r,un;U(e,!0),K(t,s5);let[i,o]=Oe(),n=()=>C(Ae,"$playerPhase",i),s=()=>C(Ei,"$isLoaderVisible",i),l=()=>C(Qe,"$adPlaybackState",i),d=()=>C(Bi,"$crashed",i),a=()=>C(Gr,"$notificationsToShow$",i),p=()=>C(de,"$playbackState$",i),f=()=>C(Yt,"$graphIsOpened$",i),m=()=>C(rt,"$interactiveHideMobileControls",i),u=()=>C(bo,"$isEnded$",i),y=()=>C(ti,"$isInteractiveExpectation$",i),w=()=>C(ut,"$controlsVisible",i),x=()=>C(St,"$touched",i),T=()=>C(ro,"$autoplayNextEnabled$",i),S=()=>C(gt,"$postrollPassed",i),E=()=>C(Cn,"$bottomNoSmooth",i),R=()=>C(Si,"$videoSize",i),I=()=>C(N,"$playerSize",i),P=()=>C(We,"$isFullscreen",i),B=()=>C(Fe,"$position$",i),F=()=>C(mt,"$duration$",i),H=()=>C(wn,"$loadedMetadata",i),W=()=>C(Ke,"$settingsMenuVisible",i),Y=()=>C(ni,"$scrubbingInProgress",i),oe=()=>C(Zt,"$volumeChangingInProgress",i),G=()=>C(Ji,"$chromecastConnected$",i),ge=()=>C(ze,"$isControlsAvailable",i),ee=()=>C(ht,"$isInteractiveTime$",i),fe=()=>C(Ct,"$isActiveLive",i),ue=()=>C(Mt,"$settingsMenuOpenedByKeyboard",i),ce=()=>C(be,"$language$",i),Pe=()=>C(yi,"$disabledControls$",i),Me=()=>C(tt,"$is3DVideo",i),re=()=>C(qt,"$icon3DVideoVisible",i),Ve=()=>C(ei,"$chromecastDeviceName$",i),ae=()=>C(Mo,"$currentSubtitle$",i),k=()=>C(Vo,"$currentSubtitleCaptions$",i),ot=()=>C(on,"$realDuration$",i),Ne=()=>C(Bt,"$isLive$",i),Q=()=>C(Ut,"$isPlaying$",i),te=()=>C(gi,"$debugPanelVisible",i),Re=v(e,"videoContainer",15),Xe=v(e,"adsSlotId",3,void 0),_e=v(e,"adsParams",3,void 0),J=v(e,"adsAutoplayParam",3,void 0),xe=v(e,"duration",3,void 0),Ce=v(e,"logoTargetUrl",3,""),He=v(e,"showNextPrevButtons",3,!1),nt=v(e,"nextButtonActive",3,!1),bt=v(e,"prevButtonActive",3,!1),ct=v(e,"endScreenVideoTitle",3,void 0),$t=v(e,"endScreenVideoThumb",3,void 0),et=v(e,"isOneVideoPlaylist",3,!1),zt=v(e,"showMiniTimer",3,!1),Qt=v(e,"fullScreenTarget",3,void 0),Gt=v(e,"playerStarted",3,!1),jt=v(e,"showEndScreen",3,!0),{notifications$:Ee,graphIsOpened$:Yt}=_o(),we=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,de=e.store.state.playbackState$,Qe=e.store.ads.playbackState,Fe=e.store.state.positionWithScrubbing$,mt=e.store.state.duration$,Ae=e.store.playerPhase,We=e.store.ui.isFullscreen,ut=e.store.ui.controlsVisible,ze=e.store.ui.isControlsAvailable,rt=e.store.ui.interactiveHideMobileControls,Ke=e.store.ui.settingsMenu.visible$,Mt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ni=e.store.ui.scrubbingInProgress,Zt=e.store.ui.volumeChangingInProgress,gi=e.store.ui.debugPanelVisible,Ei=e.store.state.isLoaderVisible,bo=e.store.state.isEnded$,Ji=e.store.state.chromecastConnected$,ei=e.store.state.chromecastDeviceName$,gt=e.store.ads.postrollPassed,Bt=e.store.state.isLive$,Ut=e.store.state.isPlaying$,Ct=e.store.state.isActiveLive$,Xt=e.store.state.isRewindableLive$,Bi=e.store.state.crashed$,yt=e.store.webApi.annotationsApi,Ze=e.store.webApi.pictureInPictureApi,Si=e.store.state.videoSize$,Mo=e.store.state.currentSubtitle$,Vo=e.store.state.currentSubtitleCaptions$,on=e.store.state.duration$,N=e.store.ui.playerSize,tt=e.store.ui.is3DVideo,qt=e.store.ui.icon3DVideoVisible,Jt=e.store.state.isInteractive,ht=e.store.state.isInteractiveTime$,ti=e.store.state.isInteractiveExpectation$,$i=e.store.state.hasInteractiveBranches,yi=e.store.ui.controls.disabledControls$,St=e.store.ui.touched,Ci=e.store.ui.overlayContainer$,ro=e.store.ui.autoplayNextEnabled$,wn=e.store.state.loadedMetadata$,Kn=e.store.actions.internal.closeSettingsMenu,fi=(_r=e.store.callbacks)==null?void 0:_r.onDisabledPlayPrevChapterClick,so=(un=e.store.callbacks)==null?void 0:un.onDisabledSeekToInteractiveClick,qn=e.store.actions.internal.setQuality,ao=X(void 0),lo=X(void 0),Sn=X(void 0),nn=X(void 0),$o,cr,Qn=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Er=X(void 0),{closeNotification:Qr,notificationsToShow$:Gr}=Ee,jr=g(()=>!!a().slow_video),rn=()=>Qr("slow_video"),Cn=se(!1),Ro,sn=X(!1),an=g(()=>p()!==Qs.PlaybackState.PLAYING),ur=X(!1),Yr=g(()=>f()||m()||!r(sn)&&(u()&&!!$i||r(an)&&y())),yo=X(!0),Ir=g(()=>e.uiConfig.features.thumbTimer&&zt()&&n()==="video"&&!w()&&!d()&&!Jt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Tn=X(!1),ln=g(()=>(jt()||e.showAutoplayNext&&T())&&!!ct()&&!!$t()&&(e.showAds&&S()||!e.showAds)&&u()&&!d()&&!r(Tn)),pr=X(!1);Ze==null||Ze.setContext(jl());let fr=_t=>{_t&&!Jt&&No(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:fr});let En=()=>{clearTimeout($o),O(sn,!1),m()&&rt.set(!1)},No=_t=>{En(),O(sn,!0),$o=setTimeout(()=>O(sn,!1),_t);let li=_t-100;Ro=setTimeout(()=>{E()&&Cn.set(!1)},li>0?li:_t)},Zr=tt.subscribe(_t=>{qt.set(_t),_t&&(clearTimeout(cr),cr=setTimeout(()=>qt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),mr=async(_t=Ds())=>{var li,eo,xo,hi,Oo,wo;if(_t&&!Qs.clientChecker.device.isIOS){let to=wd(),Mn=dn(),fo=Qs.clientChecker.browser.isSamsungBrowser&&to===e.shadowRootContainer;_t=to===Mn||fo}if(_t){No(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ze==null?void 0:Ze.exit())}catch(to){we({message:String(to)})}try{let to=(li=R())!=null&&li.width&&((eo=R())!=null&&eo.height)?R():I();await N1(to)}catch(to){we({message:String(to)})}}We.set(_t),e.store.getAdmanWrapper().setFullscreen(_t),P()?(hi=(xo=e.store.callbacks)==null?void 0:xo.onFullscreenEnter)==null||hi.call(xo):(wo=(Oo=e.store.callbacks)==null?void 0:Oo.onFullscreenExit)==null||wo.call(Oo)},vt=_t=>{let li=_t,{width:eo,height:xo}=li.target;N.set({width:eo,height:xo})},si=()=>{let{width:_t,height:li}=r(ao).getBoundingClientRect();N.set({width:_t,height:li})};Vt(()=>{var _t;return Eu(mr),e.uiConfig.features.annotationsInside&&(yt==null||yt.init(r(ao))),$a(Ze)&&(Ze==null||Ze.assignPlayerContainer(r(ao)),Ze==null||Ze.setExternalEventHandlers({resize:vt,leavepictureinpicture:si})),O(yo,!Qs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((_t=Re().parentElement)==null||_t.insertBefore(e.interactiveContainer,Re().nextSibling)),()=>{clearTimeout($o),clearTimeout(Ro),clearTimeout(cr),Zr(),Ze==null||Ze.dispose().catch(li=>{we({message:String(li)})}),Iu(mr)}});let In=X(!0),kn=X(!0),vr=_t=>{let li=B()+(_t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;li<0?(O(In,!1),li=0):li>=F()&&(O(kn,!1),li=F()),O(ur,!0),e.seekTime(li)},dn=()=>Qs.clientChecker.device.isIOS?r(ao):!e.uiConfig.allowChangingFullscreenTarget||!Qt()?e.outerContainerRef:Qt().contains(e.outerContainerRef)?Qt():e.outerContainerRef,cn=async()=>{try{if(Ds())await Tu(document),we({message:"exit fullscreen"});else{if(we({message:"request fullscreen"}),Qs.clientChecker.device.isIOS&&!H())return;await Cu(dn())}}catch(_t){we({message:String(_t)})}},co=()=>{Kn()},uo=_t=>{if(_t.preventDefault(),W()){co();return}if(!Gt()){e.firstStart(),No(e.uiConfig.controls.hideTimeoutCursor);return}O(ur,!1),w()?En():No(e.uiConfig.controls.hideTimeoutMobile)},jo=()=>{St.set(!0)},po=()=>{Jt||(Cn.set(!0),No(e.uiConfig.controls.hideTimeoutCursor))},An=_t=>{fi&&(fi(_t),No(e.uiConfig.controls.hideTimeoutMobile))},gr=_t=>{so&&(so(_t),No(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{Ci.set(r(Er))}),Ue(()=>{ut.set((r(an)||W()||Y()||oe()||G()||!r(ln)&&(u()||r(sn)&&!r(ur)))&&!r(Yr)&&n()==="video"&&!d()&&ge())}),Ue(()=>{!Y()&&r(pr)&&!ee()&&No(e.uiConfig.controls.hideTimeoutMobile),O(pr,Y(),!0)}),Ue(()=>{O(In,B()>0),O(kn,!fe()&&B()<F(),!0)}),Ue(()=>{Ad(r(nn),W(),ue(),!0)});let kr=q("aria_label_video_player"),ds=q("video360");F0({fullScreenChangeHandler:mr,getFullscreenTarget:dn}),z0({store:e.store,getFullscreenTarget:dn});let Pn=(_t,li)=>{var Oo,wo;let eo=(wo=(Oo=e.store.callbacks)==null?void 0:Oo.uiInfo)==null?void 0:wo.onUpcomingLiveViewStateChanged;if(!eo)return;let xo=!!li,hi={...zn(r(ao),{upcomingLiveScreen:li},"upcomingLiveScreen",xo),..._t};eo(hi)};var Ki=r5();kt("blur",ra,co);var Gn=_(Ki);Ha(Gn,{onClick:uo,get videoContainer(){return Re()},set videoContainer(_t){Re(_t)}});var hr=A(Gn,2);ua(hr,()=>"slot",!1,(_t,li)=>{Te(_t,()=>({name:Fa}))});var ai=A(hr,2);gs(ai,ce,_t=>{var li=n5(),eo=pe(li);let xo=g(()=>n()!=="thumb"||d()||Jt&&e.autoplay);Oa(eo,{get hidden(){return r(xo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var hi=A(eo,2);{var Oo=Ge=>{var Wt=Jx(),di=pe(Wt);{var mn=Ho=>{let Mr=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ep(Ho,{side:"left",get seekStep(){return r(Mr)},handleSingleFirstClick:uo,handleSecondClick:()=>vr("backward")})};V(di,Ho=>{r(In)&&Ho(mn)})}var To=A(di,2);{var Fo=Ho=>{let Mr=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ep(Ho,{side:"right",get seekStep(){return r(Mr)},handleSingleFirstClick:uo,handleSecondClick:()=>vr("forward")})};V(To,Ho=>{r(kn)&&Ho(Fo)})}$(Ge,Wt)};V(hi,Ge=>{e.canRewindLive&&Xt&&!Pe().has("TIMELINE")&&Ge(Oo)})}var wo=A(hi,2);{var to=Ge=>{let Wt=g(()=>{var di;return(di=e.live)==null?void 0:di.startTime});rc(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Wt)},onUpcomingLiveViewStateChanged:Pn})};V(wo,Ge=>{n()==="LiveWaitingStart"&&Ge(to)})}var Mn=A(wo,2);{var fo=Ge=>{Ba(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Mn,Ge=>{n()==="LiveWaitingRecover"&&Ge(fo)})}var jn=A(Mn,2);{var So=Ge=>{Ba(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(jn,Ge=>{n()==="LiveWaitingRecord"&&Ge(So)})}var Bo=A(jn,2);{var br=Ge=>{var Wt=e5();let di;var mn=_(Wt);Cd(mn,{get adsSlotId(){return Xe()},get adsParams(){return _e()},get adsAutoplayParam(){return J()},get duration(){return xe()},get adsExternalApi(){return e.adsExternalApi}}),h(Wt),D(To=>di=ne(Wt,1,"ads-container svelte-7yl31d",null,di,To),[()=>({hidden:n()!=="ads"})]),$(Ge,Wt)};V(Bo,Ge=>{e.showAds&&Gt()&&Ge(br)})}var pn=A(Bo,2);{var Do=Ge=>{let Wt=g(()=>!jt()&&e.showAutoplayNext&&T());zv(Ge,{get title(){return ct()},get thumb(){return $t()},get isHide(){return r(Wt)},clickCloseIcon:()=>O(Tn,!0)})};V(pn,Ge=>{r(ln)&&ct()&&$t()&&Ge(Do)})}var Yn=A(pn,2);{var Ar=Ge=>{oc(Ge,{})};V(Yn,Ge=>{Me()&&Ge(Ar)})}var Zn=A(Yn,2);{var st=Ge=>{var Wt=t5(),di=_(Wt);xd(di,{get"aria-label"(){return ds}}),h(Wt),$(Ge,Wt)};V(Zn,Ge=>{re()&&Ge(st)})}var Lt=A(Zn,2);{var xi=Ge=>{nc(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ve()}})};V(Lt,Ge=>{G()&&Ge(xi)})}var mo=A(Lt,2);{var qi=Ge=>{Ra(Ge,{get shifted(){return w()},get captions(){return k()},get position(){return B()},get playerSize(){return I()},isMobile:!0})};V(mo,Ge=>{ae().value!=="off"&&Ge(qi)})}var vo=A(mo,2);{var Li=Ge=>{var Wt=i5();Wt.__click=[Xx,W,Ke,co];var di=_(Wt);Na(di,{}),h(Wt),$(Ge,Wt)};V(vo,Ge=>{d()&&Ge(Li)})}var go=A(vo,2);{var fn=Ge=>{let Wt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),di=g(()=>n()==="ads"),mn=g(()=>e.canRewindLive&&ot()!==0);ic(Ge,{get bottomHidden(){return r(Wt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(di)},get canRewindLive(){return r(mn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ce()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return He()},get nextButtonActive(){return nt()},get prevButtonActive(){return bt()},get isOneVideoPlaylist(){return et()},get customFullscreenSupported(){return r(yo)},get endScreenShown(){return r(ln)},toggleFullscreen:cn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:An,onDisabledSeekToInteractiveClick:gr,get playerControlsWrapperRef(){return r(lo)},set playerControlsWrapperRef(To){O(lo,To,!0)},get playerControlsRef(){return r(Sn)},set playerControlsRef(To){O(Sn,To,!0)}})};V(go,Ge=>{Gt()&&Ge(fn)})}var Vn=A(go,2);{var Co=Ge=>{var Wt=o5(),di=_(Wt);dc(di,{get supportLink(){return e.supportLink},get returnFocus(){return W0.noop},get ref(){return r(nn)},set ref(mn){O(nn,mn,!0)}}),h(Wt),$(Ge,Wt)};V(Vn,Ge=>{W()&&Ge(Co)})}var Qi=A(Vn,2);let Pr=g(()=>!r(Ir));Id(Qi,{get isLive(){return Ne()},get isHidden(){return r(Pr)},get isPlaying(){return Q()},get position(){return B()},get duration(){return F()}});var Xn=A(Qi,2);{var Rn=Ge=>{Ca(Ge,{})};V(Xn,Ge=>{r(Qn)&&Ge(Rn)})}var $r=A(Xn,2);{var yr=Ge=>{Ld(Ge,{})};V($r,Ge=>{te()&&Ge(yr)})}var Lr=A($r,2);{var Xr=Ge=>{cc(Ge,{onClose:rn,onSelectAutoQuality:()=>{qn("auto"),rn()}})};V(Lr,Ge=>{r(jr)&&Ge(Xr)})}$(_t,li)});var Ln=A(ai,2);at(Ln,_t=>O(Er,_t),()=>r(Er)),h(Ki),at(Ki,_t=>O(ao,_t),()=>r(ao)),D(()=>De(Ki,"aria-label",kr)),kt("click",Ki,jo,!0),kt("focusin",Ki,po,!0),$(t,Ki),z(),o()}dt(["click"]);function ip(t){let e="";return Xi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Xi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Xi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Xi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Xi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Xi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Xi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Xi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Xi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Xi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Xi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Xi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Xi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Xi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Xi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Xi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Xi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Xi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Xi(t.font)&&(e+=`--font:${t.font};`),Xi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Xi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Xi(t){return typeof t=="string"&&!t.includes(";")}var K0=require("@vkontakte/videoplayer-shared/es2018");var a5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),l5={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 Kv(t,e){U(e,!0),K(t,l5);let[i,o]=Oe(),n=()=>C(oe,"$playerSize",i),s=()=>C(P,"$isPlaying$",i),l=()=>C(R,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(S,"$playerPhase",i),p=()=>C(E,"$crashed$",i),f=()=>C(B,"$currentSubtitle$",i),m=()=>C(F,"$currentSubtitleCaptions$",i),u=()=>C(I,"$positionExact$",i),y=()=>C(W,"$isLive$",i),w=()=>C(Y,"$isRewindableLive$",i),x=v(e,"outsideDuration",3,0),T=v(e,"videoContainer",15),{playerPhase:S,state:{crashed$:E,duration$:R,positionExact$:I,isPlaying$:P,currentSubtitle$:B,currentSubtitleCaptions$:F,positionWithScrubbing$:H,isLive$:W,isRewindableLive$:Y},ui:{playerSize:oe,controls:G},actions:{internal:{getVideoElement:ge}}}=Se(),ee=8,fe=X(!1),ue=ii({}),ce=()=>{O(fe,!0)},Pe=()=>{O(fe,!1)},Me=(0,K0.debounceFn)(El,260);Ue(()=>{n(),Me(ge(),G,ue,r(fe))});let re=g(()=>s()?yn(l()-d()):yn(isFinite(l())?l():x()));var Ve=a5(),ae=_(Ve);Ha(ae,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(Ce){T(Ce)}});var k=A(ae,2);ua(k,()=>"slot",!1,(Ce,He)=>{Te(Ce,()=>({name:Fa}))});var ot=A(k,2);let Ne=g(()=>a()!=="thumb"||p());Oa(ot,{get hidden(){return r(Ne)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Q=A(ot,2);{var te=Ce=>{Ra(Ce,{shifted:!1,get captions(){return m()},get position(){return u()},get playerSize(){return n()}})};V(Q,Ce=>{f().value!=="off"&&Ce(te)})}var Re=A(Q,2),Xe=_(Re);Ed(Xe,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(re)}}),h(Re);var _e=A(Re,2);let J;var xe=_(_e);ka(xe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ee,tooltipRightOffset:ee,get ref(){return ue.timeline},set ref(Ce){ue.timeline=Ce}}),h(_e),h(Ve),D(Ce=>J=ne(_e,1,"timeline svelte-1qfjf44",null,J,Ce),[()=>({visible:r(fe)})]),kt("mouseenter",Ve,ce),kt("mouseleave",Ve,Pe),$(t,Ve),z(),o()}var d5=M("<div><!></div>"),c5={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;
357
364
 
358
365
  /* USER DEFINED COLORS */
359
366
 
@@ -379,12 +386,12 @@ Try switching the\xA0quality to\xA0Auto.`},p1=mb;var xs=new Map;xs.set(fl.Interf
379
386
  rgba(9, 9, 9, 0.46) 80%,
380
387
  rgba(10, 10, 10, 0.48) 86.67%,
381
388
  rgba(10, 10, 10, 0.50) 100%
382
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
383
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-16kg8zb {color-scheme:light dark;}.root.visible-outside.svelte-16kg8zb {overflow:visible;}
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;}
384
391
 
385
- /* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
386
- /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
387
- /* css reset end */.hidden {visibility:hidden;opacity:0;}.out-of-flow {content-visibility:hidden !important;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
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);}
388
395
 
389
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Pv(t,e){U(e,!0),q(t,qx);let[i,o]=He(),n=()=>C(Qt,"$isLive$",i),s=()=>C(Ko,"$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),S=v(e,"subtitlesForcedLanguage",7),T=v(e,"live",7),E=v(e,"preload",7),L=v(e,"autoplay",7),k=v(e,"volume",7,void 0),I=v(e,"muted",7,void 0),V=v(e,"fromTime",7),G=v(e,"canRewindLive",7),H=v(e,"showAds",7),F=v(e,"adsSlotId",7,void 0),W=v(e,"adsParams",7,void 0),J=v(e,"adsAutoplayParam",7,void 0),j=v(e,"duration",7,void 0),le=v(e,"logoClickable",7),ie=v(e,"logoHidden",7),pe=v(e,"isMobile",7),he=v(e,"showNextPrevButtons",7,!1),ue=v(e,"nextButtonActive",7,!1),Ne=v(e,"prevButtonActive",7,!1),oe=v(e,"endScreenVideoTitle",7,void 0),Ve=v(e,"endScreenVideoThumb",7,void 0),ne=v(e,"isOneVideoPlaylist",7,!1),O=v(e,"supportLink",7),ce=v(e,"shadowRootContainer",7),Le=v(e,"outerContainerRef",7),ve=v(e,"fullScreenTarget",7,void 0),ee=v(e,"failoverHosts",7,void 0),me=v(e,"showMiniTimer",7,!1),De=v(e,"saveRate",7),fe=v(e,"seekToInteractive",7,Fa.noop),dt=v(e,"playPrevChapter",7,Fa.noop),Z=v(e,"volumeMultiplier",7),Pe=v(e,"showAutoplayNext",7),Ie=v(e,"showEndScreen",7,!0),Ue=v(e,"keyboardControls",15,void 0),{subscribers:nt,stores:ft}=a();Ah(f());let mt=At(),St=f().logoLink,Xe=d().ui.debugPanelVisible,Ht=d().ui.playerSize,Qt=d().state.isLive$,Ft=d().state.isInteractive&&Ml.clientChecker.device.isAndroid,re=Y(void 0),Bt=null,_e=Y(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Fh(d(),ft),Ke(()=>{var N,Je;d().ui.isMobile.set(pe()),(Je=(N=p().callbacks)==null?void 0:N.onDomReady)==null||Je.call(N)});let xe=(N=!1)=>{B(_e,!0),N?d().actions.external.firstStart(H()):d().actions.internal.firstStart(H())},de=()=>{if(mt.features.qualityDetailsSubMenuEnabled){let N=l1(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{d1(d().videoId),hf()&&d().actions.internal.setTrafficSavingEnabled(!0);let Je=ff(d().videoId);Je&&d().actions.internal.setQuality(Je)}};function Be(N){var Yt,fi,gi;let Je=l()||N;Je&&d().initVideo({container:r(re),sources:Je,failoverHosts:ee(),subtitles:x(),subtitlesForcedLanguage:S(),volumeMultiplier:Z()});let ht=Fa.safeStorage.get(fd)==="true";Xe.set(ht),V()>0&&d().actions.external.seekTime(V());let Xt=pe()?mt.volumeDefault:(fi=(Yt=k())!=null?Yt:au())!=null?fi:mt.volumeDefault,Dt=(gi=I())!=null?gi:i1();if(d().actions.external.setVolume(Xt),d().actions.external.setMuted(Dt),d().getAdmanWrapper().setInitialVolume(Dt?0:Xt),de(),mt.features.saveRate&&De()){let vt=r1();vt&&!n()&&d().actions.internal.setPlaybackRate(vt)}if(Pe()){let vt=a1();vt&&d().actions.internal.setAutoplayNextEnabled(vt)}d().ui.isAutoplay.set(L()),L()&&xe(),E()&&mt.features.preload&&d().actions.internal.preload()}let We=N=>{if(window.ResizeObserver){let Je,ht;Bt=new ResizeObserver((0,Fa.throttleFn)(Xt=>{let Dt=Xt[0];if(Dt.contentBoxSize){let Yt=Array.isArray(Dt.contentBoxSize)?Dt.contentBoxSize[0]:Dt.contentBoxSize;Je=Yt.inlineSize,ht=Yt.blockSize}else Dt.contentRect&&(Je=Dt.contentRect.width,ht=Dt.contentRect.height);Ht.set({width:Je,height:ht})},300)),Bt.observe(N)}Ht.set({width:N.clientWidth,height:N.clientHeight})},ke=()=>{document.hidden&&d().actions.external.stop()};Lt(()=>{var ht,Xt,Dt,Yt;Ft&&document.addEventListener("visibilitychange",ke),mt.debugLog&&d().actions.internal.startLogging(),We(r(re));let N=nt.map(fi=>fi.init({store:d(),microStores:ft,config:p(),interactiveController:w(),uiConfig:f()})),Je=()=>{Ft&&document.removeEventListener("visibilitychange",ke),Bt==null||Bt.disconnect(),N.forEach(fi=>fi.unsubscribe()),d().destroy()};return((ht=T())==null?void 0:ht.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Je):((Xt=T())==null?void 0:Xt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Je):(((Dt=T())==null?void 0:Dt.status)==="finished"||((Yt=T())==null?void 0:Yt.status)==="postlive")&&!(l()&&(0,Ml.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Je):(Be(),Je)});function Qe(){r(_e)?d().actions.external.play():xe(!0)}function Re(){d().actions.external.pause()}function Ye(N){d().actions.external.setMuted(N)}function Pt(){d().actions.external.toggleSubtitle()}function Wt(N,Je){d().actions.external.changeSubtitle(N,Je)}function it(N){d().actions.external.changeAudioStream(N)}function ri(){var N;(N=d().webApi.slotsApi)!=null&&N.haveSlots()&&d().actions.external.hideControls()}function si(){var N;(N=d().webApi.slotsApi)!=null&&N.haveSlots()&&d().actions.external.showControls()}function ct(N){pe()||N>=0&&N<=1&&d().actions.external.setVolume(N)}function ii(N){d().actions.internal.seekTime(N,I0.SeekAction.UNKNOWN)}function Xi(N){d().actions.external.seekEpisodeStartTime(N)}function qi(){d().actions.external.returnFocusToEpisodes()}function ko(N){d().actions.external.setPlaybackRate(N)}function ci(N){d().actions.external.setAutoQualityLimits(N)}function pi(){d().actions.external.setQuality("auto")}function Ut(N){d().actions.external.setTrafficSavingEnabled(N)}function jt(N){d().actions.external.setHighQualityEnabled(N)}let no=Qu(mt.view),Ao=p().playerView==="preview",Ko=d().state.availableSubtitlesList$;if(mt.features.initSubtitles){let N=!1;Ke(()=>{var Je;if(!N&&s().length){N=!0;let ht;if(mt.features.userVideoPrefs&&d().videoId){let Dt=uu(mt.userSalt,String(d().videoId));Dt!=null&&Dt.subtitleTrackId&&(ht=s().find(Yt=>Yt.value===Dt.subtitleTrackId))}let Xt=(Je=S())!=null?Je:bf();Xt&&(ht=s().find(Dt=>Dt.language===Xt)),d().actions.internal.setSubtitle(ht)}})}var yt=Kx();let Ze;var Ei=_(yt);{var Po=N=>{kv(N,{get store(){return d()},get uiConfig(){return mt},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return L()},get canRewindLive(){return G()},get showAds(){return H()},get adsSlotId(){return F()},get adsParams(){return W()},get adsAutoplayParam(){return J()},get duration(){return j()},get logoClickable(){return le()},get logoHidden(){return ie()},get logoTargetUrl(){return St},get nextButtonActive(){return ue()},get prevButtonActive(){return Ne()},get endScreenVideoTitle(){return oe()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return ne()},get supportLink(){return O()},get shadowRootContainer(){return ce()},get outerContainerRef(){return Le()},get fullScreenTarget(){return ve()},get showMiniTimer(){return me()},get playerStarted(){return r(_e)},get seekToInteractive(){return fe()},get playPrevChapter(){return dt()},firstStart:xe,seekTime:ii,get showEndScreen(){return Ie()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return he()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(re)},set videoContainer(Je){B(re,Je,!0)}})},Mo=N=>{var Je=qe(),ht=ge(Je);{var Xt=Yt=>{Av(Yt,{get thumbUrl(){return u()},get outsideDuration(){return j()},get canRewindLive(){return G()},get videoContainer(){return r(re)},set videoContainer(fi){B(re,fi,!0)}})},Dt=Yt=>{Ev(Yt,{get store(){return d()},get uiConfig(){return mt},get title(){return m()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return L()},get canRewindLive(){return G()},get showAds(){return H()},get adsSlotId(){return F()},get adsParams(){return W()},get adsAutoplayParam(){return J()},get duration(){return j()},get logoClickable(){return le()},get logoHidden(){return ie()},get logoTargetUrl(){return St},get nextButtonActive(){return ue()},get prevButtonActive(){return Ne()},get endScreenVideoTitle(){return oe()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return ne()},get supportLink(){return O()},get shadowRootContainer(){return ce()},get outerContainerRef(){return Le()},get fullScreenTarget(){return ve()},get showMiniTimer(){return me()},get playerStarted(){return r(_e)},get seekToInteractive(){return fe()},get playPrevChapter(){return dt()},firstStart:xe,get showEndScreen(){return Ie()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return he()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(re)},set videoContainer(fi){B(re,fi,!0)},get keyboardControls(){return Ue()},set keyboardControls(fi){Ue(fi)}})};R(ht,Yt=>{Ao?Yt(Xt):Yt(Dt,!1)})}$(N,Je)};R(Ei,N=>{pe()?N(Po):N(Mo,!1)})}h(yt),D(N=>{Ze=te(yt,1,"root svelte-16kg8zb",null,Ze,N),st(yt,no)},[()=>({"root--miui-browser":Ml.clientChecker.device.isMobile&&Ml.clientChecker.browser.isMiuiBrowser,"visible-outside":Ao})]),$(t,yt);var an=z({initVideo:Be,play:Qe,pause:Re,setMuted:Ye,toggleSubtitle:Pt,changeSubtitle:Wt,changeAudioStream:it,hideControls:ri,showControls:si,setVolume:ct,seekTime:ii,seekEpisodeStartTime:Xi,returnFocusToEpisodes:qi,setPlaybackRate:ko,setAutoQualityLimits:ci,setAutoQuality:pi,toggleTrafficSaving:Ut,toggleHighQuality:jt,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 S()},set subtitlesForcedLanguage(N){S(N)},get live(){return T()},set live(N){T(N)},get preload(){return E()},set preload(N){E(N)},get autoplay(){return L()},set autoplay(N){L(N)},get volume(){return k()},set volume(N){k(N)},get muted(){return I()},set muted(N){I(N)},get fromTime(){return V()},set fromTime(N){V(N)},get canRewindLive(){return G()},set canRewindLive(N){G(N)},get showAds(){return H()},set showAds(N){H(N)},get adsSlotId(){return F()},set adsSlotId(N){F(N)},get adsParams(){return W()},set adsParams(N){W(N)},get adsAutoplayParam(){return J()},set adsAutoplayParam(N){J(N)},get duration(){return j()},set duration(N){j(N)},get logoClickable(){return le()},set logoClickable(N){le(N)},get logoHidden(){return ie()},set logoHidden(N){ie(N)},get isMobile(){return pe()},set isMobile(N){pe(N)},get showNextPrevButtons(){return he()},set showNextPrevButtons(N){he(N)},get nextButtonActive(){return ue()},set nextButtonActive(N){ue(N)},get prevButtonActive(){return Ne()},set prevButtonActive(N){Ne(N)},get endScreenVideoTitle(){return oe()},set endScreenVideoTitle(N){oe(N)},get endScreenVideoThumb(){return Ve()},set endScreenVideoThumb(N){Ve(N)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(N){ne(N)},get supportLink(){return O()},set supportLink(N){O(N)},get shadowRootContainer(){return ce()},set shadowRootContainer(N){ce(N)},get outerContainerRef(){return Le()},set outerContainerRef(N){Le(N)},get fullScreenTarget(){return ve()},set fullScreenTarget(N){ve(N)},get failoverHosts(){return ee()},set failoverHosts(N){ee(N)},get showMiniTimer(){return me()},set showMiniTimer(N){me(N)},get saveRate(){return De()},set saveRate(N){De(N)},get showAutoplayNext(){return Pe()},set showAutoplayNext(N){Pe(N)},get seekToInteractive(){return fe()},set seekToInteractive(N){fe(N)},get playPrevChapter(){return dt()},set playPrevChapter(N){dt(N)},get volumeMultiplier(){return Z()},set volumeMultiplier(N){Z(N)},get showEndScreen(){return Ie()},set showEndScreen(N){Ie(N)},get keyboardControls(){return Ue()},set keyboardControls(N){Ue(N)}});return o(),an}var Qx=Ce('<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 Mv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Qx();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}function Lv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Mv(t,{get style(){return r(o)}})}var Gx=M('<div class="title svelte-1y9fytq"> </div>'),jx=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Yx={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 Vv(t,e){q(t,Yx);var i=jx(),o=_(i);{var n=d=>{var a=Gx(),p=_(a,!0);h(a),D(()=>be(p,e.title)),$(d,a)};R(o,d=>{e.title&&d(n)})}var s=A(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Lv(d,{get isWhite(){return r(a)}})};R(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),D(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var Zx=M('<div class="playerError svelte-m5iv29"><!></div>'),Xx={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 Rv(t){q(t,Xx);var e=Zx(),i=_(e);Ra(i,{}),h(e),$(t,e)}var np=require("@vkontakte/videoplayer-shared/es2018"),Li=require("@vkontakte/videoplayer-shared/es2018"),gc=require("@vkontakte/videoplayer-core/es2018"),Bl=require("@vkontakte/videoplayer-statistics/es2018");var ju=require("@vkontakte/videoplayer-shared/es2018"),Gu=class{constructor(){this.subscription=new ju.Subscription,this.logger=new ju.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,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()}};var Vl=require("@vkontakte/videoplayer-shared/es2018");var Jx=Ce('<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 Nv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Jx();Ae(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);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Se(),h(o),$(t,o)}var e5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),t5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Ov(t,e){U(e,!0),q(t,t5);let[i,o]=He(),n=()=>C(p,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Ee(),d=At(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,u=g(()=>n()&&m("pip_dummy_title")),y=Qu(d.view);var w=e5();let x;var S=_(w);let T;var E=_(S);Nv(E,{}),h(S);var L=A(S,2),k=_(L,!0);h(L),h(w),D((I,V)=>{x=te(w,1,"player-pip-dummy svelte-1pbsod4",null,x,I),st(w,y),T=te(S,1,"dummy-image svelte-1pbsod4",null,T,V),be(k,r(u))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var i5=Object.defineProperty,o5=(t,e,i)=>e in t?i5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ll=(t,e,i)=>o5(t,typeof e!="symbol"?e+"":e,i),n5=460,r5=280,ac=class{constructor({enabled:e=!0}={enabled:!0}){Ll(this,"playerDomElement"),Ll(this,"playerParentShadowRoot"),Ll(this,"playerDummyElement"),Ll(this,"svelteContext"),Ll(this,"pipWindow"),Ll(this,"info",{isActive$:new Vl.ValueSubject(!1),isEnabled$:new Vl.ValueSubject(!1),type:1}),this.info.isEnabled$=new Vl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Vl.detectEmbed)();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:n5,height:r5,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(`
390
- `),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=is(Ov,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||(la(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 k0(t){return t instanceof ac}var Yu=class{static getLatestSupportedVersion(e){let i=new _a(e),o=new ac(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lc(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var A0="Inner error. Unexpectedly root annotation container null reference exception",P0="Annotation with such name already exists",M0="Annotation with such name does not exist";var Rl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Nl=require("@vkontakte/videoplayer-shared/es2018"),s5="1",a5=100,Zu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Nl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Nl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},a5);this.subscriptions.add((0,Nl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Rl(A0);if(this.annotations.has(e))throw new Rl(P0);i.style.zIndex=(o=i.style.zIndex)!=null?o:s5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Rl(M0);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(){}};var Ua=require("@vkontakte/videoplayer-shared/es2018"),sn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ua.assertNonNullable)(e),(0,Ua.assertNonNullable)(i),(0,Ua.assertNonNullable)(n),n.interactiveData&&(0,Ua.assertNonNullable)(o),this.subscription=new Ua.Subscription,this.subscription}};var dc=class extends sn{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 cc=class extends sn{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 uc=class extends sn{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}};var L0=require("@vkontakte/videoplayer-shared/es2018"),Bv=se(!1),Xu=null,pc=class extends sn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bv,set:(i,o=!1)=>{i!==$e(Bv)&&(this.clearTimeout(),Bv.set(i),!i&&Xu&&(Xu=!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((0,L0.combine)({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&&Xu===null&&(Xu=!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)}};var Ju=require("@vkontakte/videoplayer-shared/es2018");var fc=class extends sn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:Ju.noop};this.checkIfShouldHide=i=>qs(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(sf),!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(sf),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Ju.combine)({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}};var Dv=require("@vkontakte/videoplayer-shared/es2018"),mc=class extends sn{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 Dv.ValueSubject(!1),isEnabled$:new Dv.ValueSubject(!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}};var tp=require("@vkontakte/videoplayer-shared/es2018");var ep=require("@vkontakte/videoplayer-shared/es2018"),V0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?l5({maxCount:t}):void 0,e!==0?d5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},l5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,ep.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},d5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(ep.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>ep.safeStorage.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 vc=class extends sn{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=V0({maxShowCount:s,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,tp.filterChanged)(),(0,tp.filter)(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 R0=()=>[dc,cc,uc,pc,fc,mc,vc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Ol=require("@vkontakte/videoplayer-shared/es2018");var ip=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 c5=Object.defineProperty,u5=(t,e,i)=>e in t?c5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qt=(t,e,i)=>u5(t,typeof e!="symbol"?e+"":e,i),p5={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Li.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Un=Y(void 0),op=class extends HTMLElement{constructor(){super(),qt(this,"svelteStubComponent"),qt(this,"svelteRootComponent"),qt(this,"svelteErrorComponent"),qt(this,"store"),qt(this,"microStoresRoot"),qt(this,"statistics"),qt(this,"sentry"),qt(this,"_shadowRoot"),qt(this,"playerContainer"),qt(this,"rootContainer"),qt(this,"shadowRootContainer"),qt(this,"playerId"),qt(this,"uiConfig"),qt(this,"coreConfig"),qt(this,"statisticsConfig"),qt(this,"interactiveController"),qt(this,"interactiveContainer"),qt(this,"graphMadePause"),qt(this,"currentPlayingVideoIndex",0),qt(this,"needToRepeatPlaylist",!1),qt(this,"videoConfig"),qt(this,"pictureInPictureApi"),qt(this,"mediaSessionApi"),qt(this,"unsubscribePlayerPhaseSubscription"),qt(this,"logger"),qt(this,"log"),qt(this,"subscription"),qt(this,"interactiveSubscription"),qt(this,"annotationsApi"),qt(this,"slotsApi"),qt(this,"focusManager"),qt(this,"prevIsid"),qt(this,"isInited",!1),qt(this,"internalsExposure",null),qt(this,"shadowDOMCallbacksDisabled",!1),qt(this,"fatalError$",new np.ValueSubject(null)),qt(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:S,deviceId:T,interactiveData:E}=lc(this.videoConfig,i),L=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,k=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new Bl.OneStat({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:V,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...L&&(!this.isInited||k)&&{projectId:Number(L)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(H){console.error(H),this.log({message:H.message})}}),Ol.devNull.create("ui"),this.logger=new Li.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Li.Subscription,this.interactiveSubscription=new Li.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=is(Rv,{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=ti({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=is(Vv,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),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(),Ol.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=lc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Bl.ThinOneStat.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:S,preload:T,autoplay:E,volume:L,muted:k,fromTime:I,canRewindLive:V,supportLink:G,showAds:H,adsSlotId:F,adsParams:W={},adsAutoplayParam:J,interfaceLanguage:j,isCyrillicRelatedInterface:le,logoClickable:ie,logoHidden:pe,isMobile:he,isTouch:ue,isAudioDisabled:Ne,isLiveCatchUpMode:oe,fullScreenTarget:Ve,failoverHosts:ne,canDownload:O,callbacks:ce,interactiveData:Le,showThumbTimer:ve,additionalButtons:ee=[],additionalSettingsMenuItems:me=[],additionalContextMenuItems:De=[],repeat:fe,loop:dt,saveRate:Z,volumeMultiplier:Pe,showEndScreen:Ie,showAutoplayNext:Ue,mediascopePixels:nt}=lc(this.videoConfig,i),{sources:ft,title:mt,thumbUrl:St,unitedVideoId:Xe,isClip:Ht=!1,duration:Qt,adsParams:Gt={},videoEpisodes:Ft,previewThumbsData:re,subtitles:Bt,subtitlesForcedLanguage:_e,live:xe,adsExternalApi:de}=e;if(!ft&&!xe){let ci=new Error("empty sources and live");this.fatalError$.next(ci),(n=ce.onCrashed)==null||n.call(ce,ci.message);return}let Be={...W,...Gt},We=this.getNextVideoInfo(),ke={sources:ft,title:mt,thumbUrl:St,subtitles:Bt,subtitlesForcedLanguage:_e,unitedVideoId:Xe,isClip:Ht,live:xe,albumId:w,statPlace:x,autoplay:E,muted:k,volume:L,fromTime:I,canRewindLive:V,showAds:H,adsSlotId:F,adsParams:Be,adsAutoplayParam:J,duration:Qt,logoClickable:ie,logoHidden:pe,isTouch:ue!=null?ue:he,repeat:fe,loop:dt,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:We.nextVideoTitle,endScreenVideoThumb:We.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Qe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(ke)}`});let Re=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Ye=(Re==null?void 0:Re.oneStat)||this.createOneStat(e,i),Pt=this.createThinOneStat(e,i),Wt;nt&&(Wt=new Bl.MediascopePixel({pixels:nt})),(Ye||Pt)&&(this.statistics=new Lu(Ye,Pt,Wt,Re==null?void 0:Re.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ha(this.uiConfig.sentry,{version:ma,env:nu},{movieId:Xe,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ue!=null?ue:he,clip:Ht}),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,...ha.getInstance()};let ri=!!Le,si=[],ct="tooltip_interactive_go_back_disabled_first";if(ri&&this.interactiveController){let ci=this.interactiveController.state.isInitialChapter$.getValue(),pi=this.interactiveController.getHistoryState();ci&&si.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||si.push("SEEK_TO_INTERACTIVE_BUTTON"),pi.hasPrevChapter$.getValue()||(si.push("PLAY_PREV_CHAPTER_BUTTON"),ci||(pi.isGoBackLimited$.getValue()?ct="tooltip_interactive_go_back_disabled_limit":ct="tooltip_interactive_go_back_disabled"))}let ii=()=>{var ci;this.isInited=!1,this.prevIsid=void 0;let pi=(o==null?void 0:o.info.isEnded$.getValue())&&((ci=this.interactiveController)==null?void 0:ci.state.isEndChapter$.getValue());ce.onReplayInteractiveVideo&&!pi?ce.onReplayInteractiveVideo():this.replayInteractiveVideo()},Xi=fe&&this.videoConfig.videos.length===1;this.store=X1({player:o,interfaceLanguage:j,isCyrillicRelatedInterface:le,videoId:Xe,isClip:Ht,isLiveCatchUpMode:oe,isAudioDisabled:Ne,statAuthToken:S,callbacks:ce,webApi:Qe,videoEpisodes:Ft,previewThumbsData:re,canDownload:O,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:si,isInteractive:ri,saveRate:Z,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ii,playPrevChapterDisabledTooltip:ct,hasInteractiveBranches:!!((y=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],additionalSettingsMenuItems:me!=null?me:[],additionalContextMenuItems:De!=null?De:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:this.uiConfig.features.useLoopSetting?dt:Xi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:qi}=this.microStoresRoot=R0(),ko=()=>{var ci,pi,Ut,jt,no,Ao;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onCurrentFormatChanged)==null?void 0:Ze.call(ce,yt)})),this.subscription.add(qi.interactiveControlsOpacity$.subscribe(yt=>{var Ze;yt!==null&&((Ze=this==null?void 0:this.interactiveController)==null||Ze.setDisabledControls(yt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onThroughputEstimationChanged)==null?void 0:Ze.call(ce,yt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onTrafficSavingEnabledChanged)==null?void 0:Ze.call(ce,yt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onHighQualityEnabledChanged)==null?void 0:Ze.call(ce,yt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onAutoQualityEnabledChanged)==null?void 0:Ze.call(ce,!!yt)})),this.subscription.add(new Li.Observable(yt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ze=>yt.next(Ze)))}).pipe((0,Li.skip)(1)).subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onCurrentPlaybackRateChanged)==null?void 0:Ze.call(ce,yt)})),this.subscription.add(this.store.state.volume$.subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onVolumeChange)==null?void 0:Ze.call(ce,yt)})),this.subscription.add(this.store.state.muted$.subscribe(yt=>{var Ze,Ei,Po,Mo;if(yt)(Ze=ce==null?void 0:ce.onMute)==null||Ze.call(ce);else{let an=(Po=((Ei=this.store)==null?void 0:Ei.state.volume$)&&$e(this.store.state.volume$))!=null?Po:0;(Mo=ce==null?void 0:ce.onUnmute)==null||Mo.call(ce,an)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onVideoBitrateChanged)==null?void 0:Ze.call(ce,yt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(yt=>{var Ze;let Ei=(Ze=this.store)==null?void 0:Ze.ui.controls.disabledControls$;Ei&&(yt&&!Ei.includes(md)&&Ei.add(md),yt||Ei.remove(md))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async yt=>{var Ze;if(!gc.clientChecker.browser.isSamsungBrowser||!yt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((Ze=this.videoConfig)==null?void 0:Ze.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(yt=>{var Ze;return(Ze=ce==null?void 0:ce.onVSIDChanged)==null?void 0:Ze.call(ce,yt)})),this.initMediaSession(),B(Un,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ft,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:mt,thumbUrl:St,subtitles:Bt,subtitlesForcedLanguage:_e,live:xe,preload:T,autoplay:E,muted:k,volume:L,fromTime:I,canRewindLive:V,supportLink:G,showAds:H,adsSlotId:F,adsParams:Be,adsAutoplayParam:J,duration:Qt,logoClickable:ie,logoHidden:pe,isMobile:ue!=null?ue:he,failoverHosts:ne,fullScreenTarget:Ve,saveRate:Z,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ve,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:We.nextVideoTitle,endScreenVideoThumb:We.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Pe,showEndScreen:Ie,showAutoplayNext:Ue,adsExternalApi:de},!0);let Ko={target:this.playerContainer,props:r(Un)};this.svelteRootComponent=is(Pv,Ko),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ut=(pi=(ci=this.videoConfig)==null?void 0:ci.callbacks)==null?void 0:pi.onInited)==null||Ut.call(pi)),(jt=this.internalsExposure)==null||jt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ao=(no=this.videoConfig)==null?void 0:no.callbacks)!=null&&Ao.onDevNullLog)?Ol.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Ol.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?gc.clientChecker.isInited$.subscribe(ci=>{ci&&(console.log("UI SDK async start"),ko())}):ko()}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&&(0,Li.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,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(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 S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let E=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var L,k,I,V,G,H;if(!this.store||!this.microStoresRoot)return;let F=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(vd)),T==="action-choice-canceled"){let W=$e(this.store.state.isPlaying$)||F;if(((I=(L=this.videoConfig)==null?void 0:L.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&W){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(V=this.videoConfig)==null?void 0:(G=V.callbacks).onDisabledInteractiveClick)==null||H.call(G)}})),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(vd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var L,k,I;E.length&&((I=(k=(L=this.videoConfig)==null?void 0:L.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||I.call(k,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,L,k;(k=(E=this.videoConfig)==null?void 0:(L=E.callbacks).onInteractiveChapterChanged)==null||k.call(L,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,L,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(E=this.videoConfig)==null?void 0:(L=E.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(L)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,s,l,d,a,p,f,m,u,y,w,x,S,T,E,L,k,I,V,G,H,F,W,J,j,le,ie;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=lc(p5,(0,Li.cloneDeepWith)(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.playerId=(0,Li.getPlayerId)(e.playerId),this.uiConfig=kh((s=i.ui)!=null?s:{}),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 Li.InternalsExposure("ui",this.playerId))),Ol.devNull.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:[(0,np.now)()]}),(0,Li.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),(0,Li.isNonNullable)(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=(S=(x=this.uiConfig.features.dpip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.uiConfig.ads.paramsOverride={preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(L=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?L:this.videoConfig.isMobile,(k=this.videoConfig).autoplay&&(k.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(V=this.uiConfig.ads.slot)!=null?V:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((G=this.uiConfig.showLogo)!=null?G:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(W=this.uiConfig.features.endScreen)!=null?W:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(J=this.uiConfig.features.autoplayNext)!=null?J:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((le=this.videoConfig.videos)!=null&&le[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=Yu.getLatestSupportedVersion(pe):this.pictureInPictureApi=new _a(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Gu:void 0,this.slotsApi=this.uiConfig.features.slots?new Wu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Zu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),k0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ie=this.slotsApi)==null||ie.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new ip(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(Un)&&(r(Un).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Un).nextButtonActive=this.isNextButtonActive(),r(Un).prevButtonActive=this.isPrevButtonActive(),r(Un).endScreenVideoTitle=o.nextVideoTitle,r(Un).endScreenVideoThumb=o.nextVideoThumb,r(Un).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(Un)&&(r(Un).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Un).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Un).nextButtonActive=this.isNextButtonActive(),r(Un).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((0,Li.once)()).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&&la(e)}};var Dl=require("@vkontakte/videoplayer-shared/es2018"),rp=require("@vkontakte/videoplayer-core/es2018"),f5=()=>{window.customElements.define("vk-video-player",op)};
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 qv(t,e){U(e,!0),K(t,c5);let[i,o]=Oe(),n=()=>C(Qt,"$isLive$",i),s=()=>C(Bi,"$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),S=v(e,"live",7),E=v(e,"preload",7),R=v(e,"autoplay",7),I=v(e,"volume",7,void 0),P=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),ge=v(e,"logoClickable",7),ee=v(e,"logoHidden",7),fe=v(e,"isMobile",7),ue=v(e,"showNextPrevButtons",7,!1),ce=v(e,"nextButtonActive",7,!1),Pe=v(e,"prevButtonActive",7,!1),Me=v(e,"endScreenVideoTitle",7,void 0),re=v(e,"endScreenVideoThumb",7,void 0),Ve=v(e,"isOneVideoPlaylist",7,!1),ae=v(e,"supportLink",7),k=v(e,"shadowRootContainer",7),ot=v(e,"outerContainerRef",7),Ne=v(e,"fullScreenTarget",7,void 0),Q=v(e,"failoverHosts",7,void 0),te=v(e,"showMiniTimer",7,!1),Re=v(e,"saveRate",7),Xe=v(e,"seekToInteractive",7,Ua.noop),_e=v(e,"playPrevChapter",7,Ua.noop),J=v(e,"volumeMultiplier",7),xe=v(e,"showAutoplayNext",7),Ce=v(e,"showEndScreen",7,!0),He=v(e,"keyboardControls",15,void 0),{subscribers:nt,stores:bt}=a();Gh(f());let ct=At(),$t=f().logoLink,et=d().ui.debugPanelVisible,zt=d().ui.playerSize,Qt=d().state.isLive$,jt=d().state.isInteractive&&Ll.clientChecker.device.isAndroid,Ee=X(void 0),Yt=null,we=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}),r1(d(),bt),Ue(()=>{var N,tt;d().ui.isMobile.set(fe()),(tt=(N=p().callbacks)==null?void 0:N.onDomReady)==null||tt.call(N)});let be=(N=!1)=>{O(we,!0),N?d().actions.external.firstStart(H()):d().actions.internal.firstStart(H())},de=()=>{if(ct.features.qualityDetailsSubMenuEnabled){let N=T1(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{E1(d().videoId),kf()&&d().actions.internal.setTrafficSavingEnabled(!0);let tt=Cf(d().videoId);tt&&d().actions.internal.setQuality(tt)}};function Qe(N){var ti,$i,yi;let tt=l()||N;tt&&d().initVideo({container:r(Ee),sources:tt,failoverHosts:Q(),subtitles:x(),subtitlesForcedLanguage:T(),volumeMultiplier:J()});let qt=Ua.safeStorage.get(hd)==="true";et.set(qt),B()>0&&d().actions.external.seekTime(B());let Jt=fe()?ct.volumeDefault:($i=(ti=I())!=null?ti:gu())!=null?$i:ct.volumeDefault,ht=(yi=P())!=null?yi:$1();if(d().actions.external.setVolume(Jt),d().actions.external.setMuted(ht),d().getAdmanWrapper().setInitialVolume(ht?0:Jt),de(),ct.features.saveRate&&Re()){let St=w1();St&&!n()&&d().actions.internal.setPlaybackRate(St)}if(xe()){let St=C1();St&&d().actions.internal.setAutoplayNextEnabled(St)}d().ui.isAutoplay.set(R()),R()&&be(),E()&&ct.features.preload&&d().actions.internal.preload()}let Fe=N=>{if(window.ResizeObserver){let tt,qt;Yt=new ResizeObserver((0,Ua.throttleFn)(Jt=>{let ht=Jt[0];if(ht.contentBoxSize){let ti=Array.isArray(ht.contentBoxSize)?ht.contentBoxSize[0]:ht.contentBoxSize;tt=ti.inlineSize,qt=ti.blockSize}else ht.contentRect&&(tt=ht.contentRect.width,qt=ht.contentRect.height);zt.set({width:tt,height:qt})},300)),Yt.observe(N)}zt.set({width:N.clientWidth,height:N.clientHeight})},mt=()=>{document.hidden&&d().actions.external.stop()};Vt(()=>{var qt,Jt,ht,ti;jt&&document.addEventListener("visibilitychange",mt),ct.debugLog&&d().actions.internal.startLogging(),Fe(r(Ee));let N=nt.map($i=>$i.init({store:d(),microStores:bt,config:p(),interactiveController:w(),uiConfig:f()})),tt=()=>{jt&&document.removeEventListener("visibilitychange",mt),Yt==null||Yt.disconnect(),N.forEach($i=>$i.unsubscribe()),d().destroy()};return((qt=S())==null?void 0:qt.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),tt):((Jt=S())==null?void 0:Jt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),tt):(((ht=S())==null?void 0:ht.status)==="finished"||((ti=S())==null?void 0:ti.status)==="postlive")&&!(l()&&(0,Ll.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),tt):(Qe(),tt)});function Ae(){r(we)?d().actions.external.play():be(!0)}function We(){d().actions.external.pause()}function ut(N){d().actions.external.setMuted(N)}function ze(){d().actions.external.toggleSubtitle()}function rt(N,tt){d().actions.external.changeSubtitle(N,tt)}function Ke(N){d().actions.external.changeAudioStream(N)}function Mt(){var N;(N=d().webApi.slotsApi)!=null&&N.haveSlots()&&d().actions.external.hideControls()}function ni(){var N;(N=d().webApi.slotsApi)!=null&&N.haveSlots()&&d().actions.external.showControls()}function Zt(N){fe()||N>=0&&N<=1&&d().actions.external.setVolume(N)}function gi(N){d().actions.internal.seekTime(N,q0.SeekAction.UNKNOWN)}function Ei(N){d().actions.external.seekEpisodeStartTime(N)}function bo(){d().actions.external.returnFocusToEpisodes()}function Ji(N){d().actions.external.setPlaybackRate(N)}function ei(N){d().actions.external.setAutoQualityLimits(N)}function gt(){d().actions.external.setQuality("auto")}function Bt(N){d().actions.external.setTrafficSavingEnabled(N)}function Ut(N){d().actions.external.setHighQualityEnabled(N)}let Ct=ip(ct.view),Xt=p().playerView==="preview",Bi=d().state.availableSubtitlesList$;if(ct.features.initSubtitles){let N=!1;Ue(()=>{var tt;if(!N&&s().length){N=!0;let qt;if(ct.features.userVideoPrefs&&d().videoId){let ht=$u(ct.userSalt,String(d().videoId));ht!=null&&ht.subtitleTrackId&&(qt=s().find(ti=>ti.value===ht.subtitleTrackId))}let Jt=(tt=T())!=null?tt:Pf();Jt&&(qt=s().find(ht=>ht.language===Jt)),d().actions.internal.setSubtitle(qt)}})}var yt=d5();let Ze;var Si=_(yt);{var Mo=N=>{Wv(N,{get store(){return d()},get uiConfig(){return ct},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},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 ge()},get logoHidden(){return ee()},get logoTargetUrl(){return $t},get nextButtonActive(){return ce()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return Me()},get endScreenVideoThumb(){return re()},get isOneVideoPlaylist(){return Ve()},get supportLink(){return ae()},get shadowRootContainer(){return k()},get outerContainerRef(){return ot()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return te()},get playerStarted(){return r(we)},get seekToInteractive(){return Xe()},get playPrevChapter(){return _e()},firstStart:be,seekTime:gi,get showEndScreen(){return Ce()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return ue()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(Ee)},set videoContainer(tt){O(Ee,tt,!0)}})},Vo=N=>{var tt=Be(),qt=pe(tt);{var Jt=ti=>{Kv(ti,{get thumbUrl(){return u()},get outsideDuration(){return G()},get canRewindLive(){return F()},get videoContainer(){return r(Ee)},set videoContainer($i){O(Ee,$i,!0)}})},ht=ti=>{Uv(ti,{get store(){return d()},get uiConfig(){return ct},get title(){return m()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},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 ge()},get logoHidden(){return ee()},get logoTargetUrl(){return $t},get nextButtonActive(){return ce()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return Me()},get endScreenVideoThumb(){return re()},get isOneVideoPlaylist(){return Ve()},get supportLink(){return ae()},get shadowRootContainer(){return k()},get outerContainerRef(){return ot()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return te()},get playerStarted(){return r(we)},get seekToInteractive(){return Xe()},get playPrevChapter(){return _e()},firstStart:be,get showEndScreen(){return Ce()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return ue()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(Ee)},set videoContainer($i){O(Ee,$i,!0)},get keyboardControls(){return He()},set keyboardControls($i){He($i)}})};V(qt,ti=>{Xt?ti(Jt):ti(ht,!1)})}$(N,tt)};V(Si,N=>{fe()?N(Mo):N(Vo,!1)})}h(yt),D(N=>{Ze=ne(yt,1,"vk-vp-root svelte-78n29",null,Ze,N),lt(yt,Ct)},[()=>({"root--miui-browser":Ll.clientChecker.device.isMobile&&Ll.clientChecker.browser.isMiuiBrowser,"visible-outside":Xt})]),$(t,yt);var on=z({initVideo:Qe,play:Ae,pause:We,setMuted:ut,toggleSubtitle:ze,changeSubtitle:rt,changeAudioStream:Ke,hideControls:Mt,showControls:ni,setVolume:Zt,seekTime:gi,seekEpisodeStartTime:Ei,returnFocusToEpisodes:bo,setPlaybackRate:Ji,setAutoQualityLimits:ei,setAutoQuality:gt,toggleTrafficSaving:Bt,toggleHighQuality:Ut,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 S()},set live(N){S(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 P()},set muted(N){P(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 ge()},set logoClickable(N){ge(N)},get logoHidden(){return ee()},set logoHidden(N){ee(N)},get isMobile(){return fe()},set isMobile(N){fe(N)},get showNextPrevButtons(){return ue()},set showNextPrevButtons(N){ue(N)},get nextButtonActive(){return ce()},set nextButtonActive(N){ce(N)},get prevButtonActive(){return Pe()},set prevButtonActive(N){Pe(N)},get endScreenVideoTitle(){return Me()},set endScreenVideoTitle(N){Me(N)},get endScreenVideoThumb(){return re()},set endScreenVideoThumb(N){re(N)},get isOneVideoPlaylist(){return Ve()},set isOneVideoPlaylist(N){Ve(N)},get supportLink(){return ae()},set supportLink(N){ae(N)},get shadowRootContainer(){return k()},set shadowRootContainer(N){k(N)},get outerContainerRef(){return ot()},set outerContainerRef(N){ot(N)},get fullScreenTarget(){return Ne()},set fullScreenTarget(N){Ne(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 xe()},set showAutoplayNext(N){xe(N)},get seekToInteractive(){return Xe()},set seekToInteractive(N){Xe(N)},get playPrevChapter(){return _e()},set playPrevChapter(N){_e(N)},get volumeMultiplier(){return J()},set volumeMultiplier(N){J(N)},get showEndScreen(){return Ce()},set showEndScreen(N){Ce(N)},get keyboardControls(){return He()},set keyboardControls(N){He(N)}});return o(),on}var u5=ye('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Qv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=u5();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}function Gv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Qv(t,{get style(){return r(o)}})}var p5=M('<div class="title svelte-1y9fytq"> </div>'),f5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),m5={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 jv(t,e){K(t,m5);var i=f5(),o=_(i);{var n=d=>{var a=p5(),p=_(a,!0);h(a),D(()=>me(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);Gv(d,{get isWhite(){return r(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),D(()=>lt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var v5=M('<div class="playerError svelte-m5iv29"><!></div>'),g5={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 Yv(t){K(t,g5);var e=v5(),i=_(e);Na(i,{}),h(e),$(t,e)}var fp=require("@vkontakte/videoplayer-shared/es2018"),Oi=require("@vkontakte/videoplayer-shared/es2018"),xc=require("@vkontakte/videoplayer-core/es2018"),Bl=require("@vkontakte/videoplayer-statistics/es2018");var np=require("@vkontakte/videoplayer-shared/es2018"),op=class{constructor(){this.subscription=new np.Subscription,this.logger=new np.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,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=he(e.state.currentPlaybackRate$),n=he(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()}};var Vl=require("@vkontakte/videoplayer-shared/es2018");var h5=ye('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Zv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=h5();Te(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);ve(n,()=>{var s;return(s=e.children)!=null?s:le}),$e(),h(o),$(t,o)}var _5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),b5={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 Xv(t,e){U(e,!0),K(t,b5);let[i,o]=Oe(),n=()=>C(p,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Se(),d=At(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,u=g(()=>n()&&m("pip_dummy_title")),y=ip(d.view);var w=_5();let x;var T=_(w);let S;var E=_(T);Zv(E,{}),h(T);var R=A(T,2),I=_(R,!0);h(R),h(w),D((P,B)=>{x=ne(w,1,"player-pip-dummy svelte-1pbsod4",null,x,P),lt(w,y),S=ne(T,1,"dummy-image svelte-1pbsod4",null,S,B),me(I,r(u))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var $5=Object.defineProperty,y5=(t,e,i)=>e in t?$5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ml=(t,e,i)=>y5(t,typeof e!="symbol"?e+"":e,i),x5=460,w5=280,fc=class{constructor({enabled:e=!0}={enabled:!0}){Ml(this,"playerDomElement"),Ml(this,"playerParentShadowRoot"),Ml(this,"playerDummyElement"),Ml(this,"svelteContext"),Ml(this,"pipWindow"),Ml(this,"info",{isActive$:new Vl.ValueSubject(!1),isEnabled$:new Vl.ValueSubject(!1),type:1}),this.info.isEnabled$=new Vl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Vl.detectEmbed)();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:x5,height:w5,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=Dr(Xv,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(ca(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}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 Q0(t){return t instanceof fc}var rp=class{static getLatestSupportedVersion(e){let i=new ba(e),o=new fc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function mc(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 G0="Inner error. Unexpectedly root annotation container null reference exception",j0="Annotation with such name already exists",Y0="Annotation with such name does not exist";var Rl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Nl=require("@vkontakte/videoplayer-shared/es2018"),S5="1",C5=100,sp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Nl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Nl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},C5);this.subscriptions.add((0,Nl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Rl(G0);if(this.annotations.has(e))throw new Rl(j0);i.style.zIndex=(o=i.style.zIndex)!=null?o:S5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Rl(Y0);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(){}};var za=require("@vkontakte/videoplayer-shared/es2018"),tn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,za.assertNonNullable)(e),(0,za.assertNonNullable)(i),(0,za.assertNonNullable)(n),n.interactiveData&&(0,za.assertNonNullable)(o),this.subscription=new za.Subscription,this.subscription}};var vc=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 gc=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=he(f),u=()=>m&&he(p);return o.add(p.subscribe(y=>{if(!m)return;let w=he(l);he(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=he(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var hc=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}};var Z0=require("@vkontakte/videoplayer-shared/es2018"),Jv=se(!1),ap=null,_c=class extends tn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Jv,set:(i,o=!1)=>{i!==he(Jv)&&(this.clearTimeout(),Jv.set(i),!i&&ap&&(ap=!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=>{he(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,Z0.combine)({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&&ap===null&&(ap=!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)}};var lp=require("@vkontakte/videoplayer-shared/es2018");var bc=class extends tn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:lp.noop};this.checkIfShouldHide=i=>ys(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(he(l)))return;let a=he(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,u=he(p),y=he(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),m.remove(_f),!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(_f),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,lp.combine)({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}};var eg=require("@vkontakte/videoplayer-shared/es2018"),$c=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 eg.ValueSubject(!1),isEnabled$:new eg.ValueSubject(!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}};var cp=require("@vkontakte/videoplayer-shared/es2018");var dp=require("@vkontakte/videoplayer-shared/es2018"),X0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?T5({maxCount:t}):void 0,e!==0?E5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},T5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,dp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},E5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(dp.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>dp.safeStorage.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 yc=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=X0({maxShowCount:s,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,cp.filterChanged)(),(0,cp.filter)(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 J0=()=>[vc,gc,hc,_c,bc,$c,yc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Ol=require("@vkontakte/videoplayer-shared/es2018");var up=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var I5=M('<div class="root svelte-9ubj1t"><!></div>'),k5={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 tg(t,e){U(e,!0),K(t,k5);let i=null,o=X(null);Ue(()=>(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=Be(),l=pe(s);{var d=a=>{var p=Be(),f=pe(p);gs(f,()=>r(o),m=>{var u=I5(),y=_(u);let w=g(()=>r(o)==="prev");pc(y,{get duration(){return e.animationDuration},get Icon(){return jd},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 A5=Object.defineProperty,P5=(t,e,i)=>e in t?A5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Kt=(t,e,i)=>P5(t,typeof e!="symbol"?e+"":e,i),L5={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Oi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,xc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Wn=X(void 0),ig=ii({animationDuration:0,playbackStatusShow:!1}),pp=class extends HTMLElement{constructor(){super(),Kt(this,"svelteStubComponent"),Kt(this,"svelteRootComponent"),Kt(this,"sveltePersistentLayerComponent"),Kt(this,"svelteErrorComponent"),Kt(this,"store"),Kt(this,"microStoresRoot"),Kt(this,"statistics"),Kt(this,"sentry"),Kt(this,"_shadowRoot"),Kt(this,"playerContainer"),Kt(this,"rootContainer"),Kt(this,"shadowRootContainer"),Kt(this,"playerId"),Kt(this,"uiConfig"),Kt(this,"coreConfig"),Kt(this,"statisticsConfig"),Kt(this,"interactiveController"),Kt(this,"interactiveContainer"),Kt(this,"graphMadePause"),Kt(this,"currentPlayingVideoIndex",0),Kt(this,"needToRepeatPlaylist",!1),Kt(this,"videoConfig"),Kt(this,"pictureInPictureApi"),Kt(this,"mediaSessionApi"),Kt(this,"unsubscribePlayerPhaseSubscription"),Kt(this,"logger"),Kt(this,"log"),Kt(this,"subscription"),Kt(this,"interactiveSubscription"),Kt(this,"annotationsApi"),Kt(this,"slotsApi"),Kt(this,"focusManager"),Kt(this,"prevIsid"),Kt(this,"isInited",!1),Kt(this,"internalsExposure",null),Kt(this,"shadowDOMCallbacksDisabled",!1),Kt(this,"fatalError$",new fp.ValueSubject(null)),Kt(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:S,interactiveData:E}=mc(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:P,isClip:B=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new Bl.OneStat({movieId:P,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:S,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})}}),Ol.devNull.create("ui"),this.logger=new Oi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Oi.Subscription,this.interactiveSubscription=new Oi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Dr(Yv,{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=ii({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Dr(jv,l),this.sveltePersistentLayerComponent=Dr(tg,{target:this.playerContainer,props:ig})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;ig.animationDuration=e,ig.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(),Ol.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=mc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Bl.ThinOneStat.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:S,autoplay:E,volume:R,muted:I,fromTime:P,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:W,adsParams:Y={},adsAutoplayParam:oe,interfaceLanguage:G,isCyrillicRelatedInterface:ge,logoClickable:ee,logoHidden:fe,isMobile:ue,isTouch:ce,isAudioDisabled:Pe,isLiveCatchUpMode:Me,fullScreenTarget:re,failoverHosts:Ve,canDownload:ae,callbacks:k,interactiveData:ot,showThumbTimer:Ne,additionalButtons:Q=[],additionalSettingsMenuItems:te=[],additionalContextMenuItems:Re=[],repeat:Xe,loop:_e,saveRate:J,volumeMultiplier:xe,showEndScreen:Ce,showAutoplayNext:He,mediascopePixels:nt}=mc(this.videoConfig,i),{sources:bt,title:ct,thumbUrl:$t,unitedVideoId:et,isClip:zt=!1,duration:Qt,adsParams:Gt={},videoEpisodes:jt,previewThumbsData:Ee,subtitles:Yt,subtitlesForcedLanguage:we,live:be,adsExternalApi:de}=e;if(!bt&&!be){let ei=new Error("empty sources and live");this.fatalError$.next(ei),(n=k.onCrashed)==null||n.call(k,ei.message);return}let Qe={...Y,...Gt},Fe=this.getNextVideoInfo(),mt={sources:bt,title:ct,thumbUrl:$t,subtitles:Yt,subtitlesForcedLanguage:we,unitedVideoId:et,isClip:zt,live:be,albumId:w,statPlace:x,autoplay:E,muted:I,volume:R,fromTime:P,canRewindLive:B,showAds:H,adsSlotId:W,adsParams:Qe,adsAutoplayParam:oe,duration:Qt,logoClickable:ee,logoHidden:fe,isTouch:ce!=null?ce:ue,repeat:Xe,loop:_e,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Fe.nextVideoTitle,endScreenVideoThumb:Fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ae={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(mt)}`});let We=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),ut=(We==null?void 0:We.oneStat)||this.createOneStat(e,i),ze=this.createThinOneStat(e,i),rt;nt&&(rt=new Bl.MediascopePixel({pixels:nt})),(ut||ze)&&(this.statistics=new zu(ut,ze,rt,We==null?void 0:We.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new _a(this.uiConfig.sentry,{version:va,env:fu},{movieId:et,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ce!=null?ce:ue,clip:zt}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,..._a.getInstance()};let Mt=!!ot,ni=[],Zt="tooltip_interactive_go_back_disabled_first";if(Mt&&this.interactiveController){let ei=this.interactiveController.state.isInitialChapter$.getValue(),gt=this.interactiveController.getHistoryState();ei&&ni.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ni.push("SEEK_TO_INTERACTIVE_BUTTON"),gt.hasPrevChapter$.getValue()||(ni.push("PLAY_PREV_CHAPTER_BUTTON"),ei||(gt.isGoBackLimited$.getValue()?Zt="tooltip_interactive_go_back_disabled_limit":Zt="tooltip_interactive_go_back_disabled"))}let gi=()=>{var ei;this.isInited=!1,this.prevIsid=void 0;let gt=(o==null?void 0:o.info.isEnded$.getValue())&&((ei=this.interactiveController)==null?void 0:ei.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!gt?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},Ei=Xe&&this.videoConfig.videos.length===1;this.store=g0({player:o,interfaceLanguage:G,isCyrillicRelatedInterface:ge,videoId:et,isClip:zt,isLiveCatchUpMode:Me,isAudioDisabled:Pe,statAuthToken:T,callbacks:k,webApi:Ae,videoEpisodes:jt,previewThumbsData:Ee,canDownload:ae,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ni,isInteractive:Mt,saveRate:J,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:gi,playPrevChapterDisabledTooltip:Zt,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:ei=>{var gt;return(gt=this.sveltePersistentLayerComponent)==null?void 0:gt.startVideoChangedAnimation(ei)},looped:this.uiConfig.features.useLoopSetting?_e:Ei,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:bo}=this.microStoresRoot=J0(),Ji=()=>{var ei,gt,Bt,Ut,Ct,Xt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Ze.call(k,yt)})),this.subscription.add(bo.interactiveControlsOpacity$.subscribe(yt=>{var Ze;yt!==null&&((Ze=this==null?void 0:this.interactiveController)==null||Ze.setDisabledControls(yt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Ze.call(k,yt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Ze.call(k,yt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Ze.call(k,yt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Ze.call(k,!!yt)})),this.subscription.add(new Oi.Observable(yt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ze=>yt.next(Ze)))}).pipe((0,Oi.skip)(1)).subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Ze.call(k,yt)})),this.subscription.add(this.store.state.volume$.subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onVolumeChange)==null?void 0:Ze.call(k,yt)})),this.subscription.add(this.store.state.muted$.subscribe(yt=>{var Ze,Si,Mo,Vo;if(yt)(Ze=k==null?void 0:k.onMute)==null||Ze.call(k);else{let on=(Mo=((Si=this.store)==null?void 0:Si.state.volume$)&&he(this.store.state.volume$))!=null?Mo:0;(Vo=k==null?void 0:k.onUnmute)==null||Vo.call(k,on)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Ze.call(k,yt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(yt=>{var Ze;let Si=(Ze=this.store)==null?void 0:Ze.ui.controls.disabledControls$;Si&&(yt&&!Si.includes(_d)&&Si.add(_d),yt||Si.remove(_d))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async yt=>{var Ze;if(!xc.clientChecker.browser.isSamsungBrowser||!yt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((Ze=this.videoConfig)==null?void 0:Ze.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(yt=>{var Ze;return(Ze=k==null?void 0:k.onVSIDChanged)==null?void 0:Ze.call(k,yt)})),this.initMediaSession(),O(Wn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:bt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ct,thumbUrl:$t,subtitles:Yt,subtitlesForcedLanguage:we,live:be,preload:S,autoplay:E,muted:I,volume:R,fromTime:P,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:W,adsParams:Qe,adsAutoplayParam:oe,duration:Qt,logoClickable:ee,logoHidden:fe,isMobile:ce!=null?ce:ue,failoverHosts:Ve,fullScreenTarget:re,saveRate:J,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Fe.nextVideoTitle,endScreenVideoThumb:Fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:xe,showEndScreen:Ce,showAutoplayNext:He,adsExternalApi:de},!0);let Bi={target:this.playerContainer,props:r(Wn)};this.svelteRootComponent=Dr(qv,Bi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Bt=(gt=(ei=this.videoConfig)==null?void 0:ei.callbacks)==null?void 0:gt.onInited)==null||Bt.call(gt)),(Ut=this.internalsExposure)==null||Ut.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Xt=(Ct=this.videoConfig)==null?void 0:Ct.callbacks)!=null&&Xt.onDevNullLog)?Ol.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Ol.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?xc.clientChecker.isInited$.subscribe(ei=>{ei&&(console.log("UI SDK async start"),Ji())}):Ji()}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&&(0,Oi.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,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?he(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(S=>{if(!this.isInited)return;let E=this.store;S?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(S=>{this.store&&this.store.state.isInteractiveExpectation$.set(S)}));let T=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(S=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...S.config,title:(f==null?void 0:f.title)||S.config.title};let E=T?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(S.player,E),T&&(T=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:S,actionType:E})=>{var R,I,P,B,F,H;if(!this.store||!this.microStoresRoot)return;let W=w.getValue();if(S==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(bd)),S==="action-choice-canceled"){let Y=he(this.store.state.isPlaying$)||W;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(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:S,removeAllOpenURI:E})=>{this.store&&S==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(bd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let S=this.interactiveController.getHistoryState();this.subscription.add(S.history$.subscribe(E=>{var R,I,P;E.length&&((P=(I=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||P.call(I,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(S=>{var E,R,I;(I=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||I.call(R,S.chapter,S.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var S,E,R,I;(S=this.microStoresRoot)==null||S.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(S=>{this.log({message:S.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,S,E,R,I,P,B,F,H,W,Y,oe,G,ge,ee;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let fe=new Error("empty videos");this.fatalError$.next(fe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,fe.message);return}else this.fatalError$.next(null);if(this.videoConfig=mc(L5,(0,Oi.cloneDeepWith)(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.playerId=(0,Oi.getPlayerId)(e.playerId),this.uiConfig=Qh((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new Oi.InternalsExposure("ui",this.playerId))),Ol.devNull.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:[(0,fp.now)()]}),(0,Oi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),(0,Oi.isNonNullable)(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:(S=this.uiConfig.ads.preview)!=null?S: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=(P=this.uiConfig.ads.enable)!=null?P: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&&((ge=this.videoConfig.videos)!=null&&ge[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=rp.getLatestSupportedVersion(fe):this.pictureInPictureApi=new ba(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new op:void 0,this.slotsApi=this.uiConfig.features.slots?new Ju:void 0,this.annotationsApi=this.uiConfig.features.annotations?new sp(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]),Q0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ee=this.slotsApi)==null||ee.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new up(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Wn)&&(r(Wn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Wn).nextButtonActive=this.isNextButtonActive(),r(Wn).prevButtonActive=this.isPrevButtonActive(),r(Wn).endScreenVideoTitle=o.nextVideoTitle,r(Wn).endScreenVideoThumb=o.nextVideoThumb,r(Wn).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(Wn)&&(r(Wn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Wn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Wn).nextButtonActive=this.isNextButtonActive(),r(Wn).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=he(this.store.state.positionExact$),l=he(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Oi.once)()).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&&ca(e)}};var Dl=require("@vkontakte/videoplayer-shared/es2018"),mp=require("@vkontakte/videoplayer-core/es2018"),M5=()=>{window.customElements.define("vk-video-player",pp)};