@vkontakte/videoplayer 1.1.65-dev.b4cd3784.0 → 1.1.65-dev.d779f3ab.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.65-dev.b4cd3784.0
3
- * Fri, 20 Jun 2025 14:12:43 GMT
2
+ * @vkontakte/videoplayer v1.1.65-dev.d779f3ab.0
3
+ * Wed, 02 Jul 2025 13:59:31 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-65/doc/
5
5
  */
6
- "use strict";var x0=Object.create;var Al=Object.defineProperty,w0=Object.defineProperties,S0=Object.getOwnPropertyDescriptor,C0=Object.getOwnPropertyDescriptors,T0=Object.getOwnPropertyNames,$v=Object.getOwnPropertySymbols,I0=Object.getPrototypeOf,yv=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable;var xv=t=>{throw TypeError(t)};var qu=(t,e,i)=>e in t?Al(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))yv.call(e,i)&&qu(t,i,e[i]);if($v)for(var i of $v(e))k0.call(e,i)&&qu(t,i,e[i]);return t},Ut=(t,e)=>w0(t,C0(e));var E0=(t,e)=>{for(var i in e)Al(t,i,{get:e[i],enumerable:!0})},wv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of T0(e))!yv.call(t,n)&&n!==i&&Al(t,n,{get:()=>e[n],enumerable:!(o=S0(e,n))||o.enumerable});return t};var Sv=(t,e,i)=>(i=t!=null?x0(I0(t)):{},wv(e||!t||!t.__esModule?Al(i,"default",{value:t,enumerable:!0}):i,t)),P0=t=>wv(Al({},"__esModule",{value:!0}),t);var Dn=(t,e,i)=>qu(t,typeof e!="symbol"?e+"":e,i),Ku=(t,e,i)=>e.has(t)||xv("Cannot "+i);var Pi=(t,e,i)=>(Ku(t,e,"read from private field"),i?i.call(t):e.get(t)),ps=(t,e,i)=>e.has(t)?xv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ba=(t,e,i,o)=>(Ku(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Cv=(t,e,i)=>(Ku(t,e,"access private method"),i);var Tt=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())});var zx={};E0(zx,{ControlButtonType:()=>Ed,GridTypes:()=>Cr,InterfaceLanguage:()=>Il.InterfaceLanguage,MenuItemType:()=>pl,PlayerPhase:()=>Ur,VERSION:()=>ta,VKNumericLanguage:()=>Il.VKNumericLanguage,VideoFormat:()=>Ou.VideoFormat,VideoQuality:()=>Ou.VideoQuality,loadVKLangPack:()=>Il.loadVKLangPack,registerPlayerWebComponent:()=>Ux});module.exports=P0(zx);var fs="[",Ns="[!",Ds="]",Gr={};var Ai=Symbol(),_i=Symbol("filename"),Tv=Symbol("hmr"),Iv="http://www.w3.org/1999/xhtml",Qu="http://www.w3.org/2000/svg";var fc=!0;var Ev,Pv,kv=(Pv=(Ev=globalThis.process)==null?void 0:Ev.env)==null?void 0:Pv.NODE_ENV,Ee=kv&&!kv.toLowerCase().startsWith("prod");var Uo=Symbol("$state"),Yr=Symbol("$state metadata"),Ml=Symbol("legacy props"),Av=Symbol("");var _r=Array.isArray,Mv=Array.prototype.indexOf,Ll=Array.from,Gu=Object.keys,io=Object.defineProperty,On=Object.getOwnPropertyDescriptor,mc=Object.getOwnPropertyDescriptors,Yu=Object.prototype,Lv=Array.prototype,jr=Object.getPrototypeOf;function ms(t){return typeof t=="function"}var ie=()=>{};function Vv(t){return t()}function vs(t){for(var e=0;e<t.length;e++)t[e]()}var Vl=[],ju=[];function Rv(){var t=Vl;Vl=[],vs(t)}function A0(){var t=ju;ju=[],vs(t)}function nn(t){Vl.length===0&&queueMicrotask(Rv),Vl.push(t)}function Zu(){Vl.length>0&&Rv(),ju.length>0&&A0()}function vc(t){return t===this.v}function Na(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Bv(t,e){return t!==e}function Da(t){return!Na(t,this.v)}function Nv(){if(Ee){let t=new Error(`derived_references_self
6
+ "use strict";var C0=Object.create;var Ol=Object.defineProperty,T0=Object.defineProperties,I0=Object.getOwnPropertyDescriptor,E0=Object.getOwnPropertyDescriptors,k0=Object.getOwnPropertyNames,kv=Object.getOwnPropertySymbols,P0=Object.getPrototypeOf,Pv=Object.prototype.hasOwnProperty,A0=Object.prototype.propertyIsEnumerable;var Av=t=>{throw TypeError(t)};var Xu=(t,e,i)=>e in t?Ol(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,z=(t,e)=>{for(var i in e||(e={}))Pv.call(e,i)&&Xu(t,i,e[i]);if(kv)for(var i of kv(e))A0.call(e,i)&&Xu(t,i,e[i]);return t},Ot=(t,e)=>T0(t,E0(e));var M0=(t,e)=>{for(var i in e)Ol(t,i,{get:e[i],enumerable:!0})},Mv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of k0(e))!Pv.call(t,n)&&n!==i&&Ol(t,n,{get:()=>e[n],enumerable:!(o=I0(e,n))||o.enumerable});return t};var Lv=(t,e,i)=>(i=t!=null?C0(P0(t)):{},Mv(e||!t||!t.__esModule?Ol(i,"default",{value:t,enumerable:!0}):i,t)),L0=t=>Mv(Ol({},"__esModule",{value:!0}),t);var Gn=(t,e,i)=>Xu(t,typeof e!="symbol"?e+"":e,i),Ju=(t,e,i)=>e.has(t)||Av("Cannot "+i);var Mi=(t,e,i)=>(Ju(t,e,"read from private field"),i?i.call(t):e.get(t)),Ts=(t,e,i)=>e.has(t)?Av("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ha=(t,e,i,o)=>(Ju(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Vv=(t,e,i)=>(Ju(t,e,"access private method"),i);var Tt=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},r=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,r);d((i=i.apply(t,e)).next())});var Yx={};M0(Yx,{ControlButtonType:()=>Nd,GridTypes:()=>Vr,InterfaceLanguage:()=>Ml.InterfaceLanguage,MenuItemType:()=>gl,PlayerPhase:()=>es,VERSION:()=>ua,VKNumericLanguage:()=>Ml.VKNumericLanguage,VideoFormat:()=>qu.VideoFormat,VideoQuality:()=>qu.VideoQuality,loadVKLangPack:()=>Ml.loadVKLangPack,registerPlayerWebComponent:()=>Gx});module.exports=L0(Yx);var Is="[",Qs="[!",Gs="]",ss={};var Li=Symbol(),vi=Symbol("filename"),Rv=Symbol("hmr"),Bv="http://www.w3.org/1999/xhtml",ep="http://www.w3.org/2000/svg";var bc=!0;var Dv,Ov,Nv=(Ov=(Dv=globalThis.process)==null?void 0:Dv.env)==null?void 0:Ov.NODE_ENV,Ve=Nv&&!Nv.toLowerCase().startsWith("prod");var Xo=Symbol("$state"),as=Symbol("$state metadata"),Hl=Symbol("legacy props"),Hv=Symbol("");var Ir=Array.isArray,Fv=Array.prototype.indexOf,Fl=Array.from,tp=Object.keys,lo=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,$c=Object.getOwnPropertyDescriptors,ip=Object.prototype,Uv=Array.prototype,ls=Object.getPrototypeOf;function Es(t){return typeof t=="function"}var ne=()=>{};function zv(t){return t()}function ks(t){for(var e=0;e<t.length;e++)t[e]()}var Ul=[],op=[];function Wv(){var t=Ul;Ul=[],ks(t)}function V0(){var t=op;op=[],ks(t)}function cn(t){Ul.length===0&&queueMicrotask(Wv),Ul.push(t)}function np(){Ul.length>0&&Wv(),op.length>0&&V0()}function yc(t){return t===this.v}function Fa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function qv(t,e){return t!==e}function Ua(t){return!Fa(t,this.v)}function Kv(){if(Ve){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 Dv(t){if(Ee){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 Qv(t){if(Ve){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 Ov(){if(Ee){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 Hv(t){if(Ee){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 Gv(){if(Ve){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yv(t){if(Ve){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 Fv(){if(Ee){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 jv(){if(Ve){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 Uv(){if(Ee){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 Zv(){if(Ve){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 zv(){if(Ee){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 Wv(t){if(Ee){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 Xv(){if(Ve){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Jv(t){if(Ve){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 qv(t){if(Ee){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 eg(t){if(Ve){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 Kv(t){if(Ee){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 tg(t){if(Ve){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 Qv(){if(Ee){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 Gv(){if(Ee){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 Yv(){if(Ee){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function jv(){if(Ee){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Br=!1,Nr=!1;function Zv(){Br=!0}var Rl=null;function Zr(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 ig(){if(Ve){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function og(){if(Ve){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ng(){if(Ve){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function rg(){if(Ve){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Gr=!1,Yr=!1;function sg(){Gr=!0}var zl=null;function ds(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;io(e,"stack",{value:n.join(`
25
- `)}),io(e,"name",{value:`${t}Error`})}return e}var Os=new Set,Oa=new Map;function tp(t){Os=t}function Ki(t,e){var i={f:0,v:t,reactions:null,equals:vc,rv:0,wv:0};return Ee&&Nr&&(i.created=e!=null?e:Zr("CreatedAt"),i.debug=null),i}function J(t){return M0(Ki(t))}function Jr(t,e=!1){var o,n;let i=Ki(t);return e||(i.equals=Da),Br&&Vt!==null&&Vt.l!==null&&((n=(o=Vt.l).s)!=null?n:o.s=[]).push(i),i}function M0(t){return Kt!==null&&!Fn&&(Kt.f&2)!==0&&(br===null?eg([t]):br.push(t)),t}function D(t,e){return Kt!==null&&!Fn&&Dr()&&(Kt.f&18)!==0&&(br===null||!br.includes(t))&&jv(),Ha(t,e)}function Ha(t,e){var o;if(!t.equals(e)){var i=t.v;if(Fs?Oa.set(t,e):Oa.set(t,i),t.v=e,t.wv=Nl(),Ee&&Nr&&(t.updated=Zr("UpdatedAt"),Mt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Jv(t,2048),Dr()&&Mt!==null&&(Mt.f&1024)!==0&&(Mt.f&96)===0&&(Hn===null?tg([t]):Hn.push(t)),Ee&&Os.size>0){let n=Array.from(Os);for(let a of n)(a.f&1024)!==0&&an(a,4096),gs(a)&&Fa(a);Os.clear()}}return e}function Jv(t,e){var i=t.reactions;if(i!==null)for(var o=Dr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===Mt)){if(Ee&&(d&262144)!==0){Os.add(s);continue}an(s,e),(d&1280)!==0&&((d&2)!==0?Jv(s,4096):Ua(s))}}}function v(t){var e=2050,i=Kt!==null&&(Kt.f&2)!==0?Kt:null;Mt===null||i!==null&&(i.f&256)!==0?e|=256:Mt.f|=1048576;let o={ctx:Vt,deps:null,effects:null,equals:vc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Mt};return Ee&&Nr&&(o.created=Zr("CreatedAt")),o}function yr(t){let e=v(t);return e.equals=Da,e}function gc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)no(e[i])}}var ip=[];function L0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function V0(t){var e,i=Mt;if(oo(L0(t)),Ee){let o=Os;tp(new Set);try{ip.includes(t)&&Nv(),ip.push(t),gc(t),e=hc(t)}finally{oo(i),tp(o),ip.pop()}}else try{gc(t),e=hc(t)}finally{oo(i)}return e}function np(t){var e=V0(t),i=(es||(t.f&256)!==0)&&t.deps!==null?4096:1024;an(t,i),t.equals(e)||(t.v=e,t.wv=Nl())}var Us="font-weight: bold",zs="font-weight: normal";function ig(t,e,i){Ee?console.warn(`%c[svelte] hydration_attribute_changed
24
+ `];for(let a=0;a<o.length;a++){let r=o[a];if(r!=="Error"){if(r.includes("validate_each_keys"))return null;r.includes("svelte/src/internal")||n.push(r)}}if(n.length===1)return null;lo(e,"stack",{value:n.join(`
25
+ `)}),lo(e,"name",{value:`${t}Error`})}return e}var Ys=new Set,za=new Map;function lp(t){Ys=t}function Gi(t,e){var i={f:0,v:t,reactions:null,equals:yc,rv:0,wv:0};return Ve&&Yr&&(i.created=e!=null?e:ds("CreatedAt"),i.debug=null),i}function J(t){return R0(Gi(t))}function us(t,e=!1){var o,n;let i=Gi(t);return e||(i.equals=Ua),Gr&&Vt!==null&&Vt.l!==null&&((n=(o=Vt.l).s)!=null?n:o.s=[]).push(i),i}function R0(t){return zt!==null&&!Zn&&(zt.f&2)!==0&&(Er===null?dg([t]):Er.push(t)),t}function D(t,e){return zt!==null&&!Zn&&jr()&&(zt.f&18)!==0&&(Er===null||!Er.includes(t))&&rg(),Wa(t,e)}function Wa(t,e){var o;if(!t.equals(e)){var i=t.v;if(Zs?za.set(t,e):za.set(t,i),t.v=e,t.wv=ql(),Ve&&Yr&&(t.updated=ds("UpdatedAt"),At!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),lg(t,2048),jr()&&At!==null&&(At.f&1024)!==0&&(At.f&96)===0&&(jn===null?cg([t]):jn.push(t)),Ve&&Ys.size>0){let n=Array.from(Ys);for(let a of n)(a.f&1024)!==0&&fn(a,4096),Ps(a)&&qa(a);Ys.clear()}}return e}function lg(t,e){var i=t.reactions;if(i!==null)for(var o=jr(),n=i.length,a=0;a<n;a++){var r=i[a],d=r.f;if((d&2048)===0&&!(!o&&r===At)){if(Ve&&(d&262144)!==0){Ys.add(r);continue}fn(r,e),(d&1280)!==0&&((d&2)!==0?lg(r,4096):Ka(r))}}}function v(t){var e=2050,i=zt!==null&&(zt.f&2)!==0?zt:null;At===null||i!==null&&(i.f&256)!==0?e|=256:At.f|=1048576;let o={ctx:Vt,deps:null,effects:null,equals:yc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:At};return Ve&&Yr&&(o.created=ds("CreatedAt")),o}function Pr(t){let e=v(t);return e.equals=Ua,e}function xc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)uo(e[i])}}var dp=[];function B0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function N0(t){var e,i=At;if(co(B0(t)),Ve){let o=Ys;lp(new Set);try{dp.includes(t)&&Kv(),dp.push(t),xc(t),e=wc(t)}finally{co(i),lp(o),dp.pop()}}else try{xc(t),e=wc(t)}finally{co(i)}return e}function up(t){var e=N0(t),i=(ps||(t.f&256)!==0)&&t.deps!==null?4096:1024;fn(t,i),t.equals(e)||(t.v=e,t.wv=ql())}var Xs="font-weight: bold",Js="font-weight: normal";function ug(t,e,i){Ve?console.warn(`%c[svelte] hydration_attribute_changed
26
26
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
27
- https://svelte.dev/e/hydration_attribute_changed`,Us,zs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function og(t){Ee?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Xs,Js):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function pg(t){Ve?console.warn(`%c[svelte] hydration_html_changed
28
28
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
29
- https://svelte.dev/e/hydration_html_changed`,Us,zs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ws(t){Ee?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Xs,Js):console.warn("https://svelte.dev/e/hydration_html_changed")}function ea(t){Ve?console.warn(`%c[svelte] hydration_mismatch
30
30
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
31
- https://svelte.dev/e/hydration_mismatch`,Us,zs):console.warn("https://svelte.dev/e/hydration_mismatch")}function ng(){Ee?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Xs,Js):console.warn("https://svelte.dev/e/hydration_mismatch")}function fg(){Ve?console.warn(`%c[svelte] lifecycle_double_unmount
32
32
  %cTried to unmount a component that was not mounted
33
- https://svelte.dev/e/lifecycle_double_unmount`,Us,zs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function rg(t,e,i){Ee?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Xs,Js):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function mg(t,e,i){Ve?console.warn(`%c[svelte] ownership_invalid_binding
34
34
  %c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
35
- https://svelte.dev/e/ownership_invalid_binding`,Us,zs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function rp(t,e){Ee?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Xs,Js):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function pp(t,e){Ve?console.warn(`%c[svelte] ownership_invalid_mutation
36
36
  %c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
37
- https://svelte.dev/e/ownership_invalid_mutation`,Us,zs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function _c(t){Ee?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Xs,Js):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Sc(t){Ve?console.warn(`%c[svelte] state_proxy_equality_mismatch
38
38
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
39
- https://svelte.dev/e/state_proxy_equality_mismatch`,Us,zs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var je=!1;function ro(t){je=t}var $t;function bi(t){if(t===null)throw Ws(),Gr;return $t=t}function Oi(){return bi(Po($t))}function g(t){if(je){if(Po($t)!==null)throw Ws(),Gr;$t=t}}function ye(t=1){if(je){for(var e=t,i=$t;e--;)i=Po(i);$t=i}}function za(){for(var t=0,e=$t;;){if(e.nodeType===8){var i=e.data;if(i===Ds){if(t===0)return e;t-=1}else(i===fs||i===Ns)&&(t+=1)}var o=Po(e);e.remove(),e=o}}function me(t,e=null,i){var u,f;var o=null;if(Ee&&Nr&&(o=Zr("CreatedAt")),typeof t!="object"||t===null||Uo in t)return t;let n=jr(t);if(n!==Yu&&n!==Lv)return t;var a=new Map,s=_r(t),d=Ki(0);s&&a.set("length",Ki(t.length,o));var l;if(Ee)if(l={parent:e,owners:null},i){let y=(f=(u=i.v)==null?void 0:u[Yr])==null?void 0:f.owners;l.owners=y?new Set(y):null}else l.owners=e===null?Vt!==null?new Set([Vt.function]):null:new Set;return new Proxy(t,{defineProperty(y,p,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Qv();var w=a.get(p);return w===void 0?(w=Ki(b.value,o),a.set(p,w)):D(w,me(b.value,l)),!0},deleteProperty(y,p){var b=a.get(p);if(b===void 0)p in y&&a.set(p,Ki(Ai,o));else{if(s&&typeof p=="string"){var w=a.get("length"),_=Number(p);Number.isInteger(_)&&_<w.v&&D(w,_)}D(b,Ai),sg(d)}return!0},get(y,p,b){var I;if(Ee&&p===Yr)return l;if(p===Uo)return t;var w=a.get(p),_=p in y;if(w===void 0&&(!_||(I=On(y,p))!=null&&I.writable)&&(w=Ki(me(_?y[p]:Ai,l),o),a.set(p,w)),w!==void 0){var C=r(w);if(Ee){var T=C==null?void 0:C[Yr];T&&(T==null?void 0:T.parent)!==l&&sp(l,T)}return C===Ai?void 0:C}return Reflect.get(y,p,b)},getOwnPropertyDescriptor(y,p){var b=Reflect.getOwnPropertyDescriptor(y,p);if(b&&"value"in b){var w=a.get(p);w&&(b.value=r(w))}else if(b===void 0){var _=a.get(p),C=_==null?void 0:_.v;if(_!==void 0&&C!==Ai)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return b},has(y,p){var C;if(Ee&&p===Yr||p===Uo)return!0;var b=a.get(p),w=b!==void 0&&b.v!==Ai||Reflect.has(y,p);if(b!==void 0||Mt!==null&&(!w||(C=On(y,p))!=null&&C.writable)){b===void 0&&(b=Ki(w?me(y[p],l):Ai,o),a.set(p,b));var _=r(b);if(_===Ai)return!1}return w},set(y,p,b,w){var q;var _=a.get(p),C=p in y;if(s&&p==="length")for(var T=b;T<_.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Ai):T in y&&(I=Ki(Ai,o),a.set(T+"",I))}if(_===void 0?(!C||(q=On(y,p))!=null&&q.writable)&&(_=Ki(void 0,o),D(_,me(b,l)),a.set(p,_)):(C=_.v!==Ai,D(_,me(b,l))),Ee){var M=b==null?void 0:b[Yr];M&&(M==null?void 0:M.parent)!==l&&sp(l,M),ag(l)}var P=Reflect.getOwnPropertyDescriptor(y,p);if(P!=null&&P.set&&P.set.call(w,b),!C){if(s&&typeof p=="string"){var k=a.get("length"),V=Number(p);Number.isInteger(V)&&V>=k.v&&D(k,V+1)}sg(d)}return!0},ownKeys(y){r(d);var p=Reflect.ownKeys(y).filter(_=>{var C=a.get(_);return C===void 0||C.v!==Ai});for(var[b,w]of a)w.v!==Ai&&!(b in y)&&p.push(b);return p},setPrototypeOf(){Gv()}})}function sg(t,e=1){D(t,t.v+e)}function bc(t){return t!==null&&typeof t=="object"&&Uo in t?t[Uo]:t}function lg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(bc(this[l])===a){_c("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(bc(this[l])===a){_c("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(bc(this[l])===a){_c("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var qs,dg,Dl,cg,ug;function $c(){if(qs===void 0){qs=window,dg=document,Dl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;cg=On(e,"firstChild").get,ug=On(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,Ee&&(t.__svelte_meta=null,lg())}}function ln(t=""){return document.createTextNode(t)}function $i(t){return cg.call(t)}function Po(t){return ug.call(t)}function h(t,e){if(!je)return $i(t);var i=$i($t);if(i===null)i=$t.appendChild(ln());else if(e&&i.nodeType!==3){var o=ln();return i==null||i.before(o),bi(o),o}return bi(i),i}function fe(t,e){var n,a;if(!je){var i=$i(t);return i.nodeType===8&&i.data===""?Po(i):i}if(e&&((n=$t)==null?void 0:n.nodeType)!==3){var o=ln();return(a=$t)==null||a.before(o),bi(o),o}return $t}function A(t,e=1,i=!1){let o=je?$t:t;for(var n;e--;)n=o,o=Po(o);if(!je)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=ln();return o===null?n==null||n.after(s):o.before(s),bi(s),s}return bi(o),o}function Ol(t){t.textContent=""}var pg=new WeakSet,yc=!1,Ul=!1,Hl=null,Ks=!1,Fs=!1;function dp(t){Fs=t}var Fl=[],wc=[],Kt=null,Fn=!1;function bo(t){Kt=t}var Mt=null;function oo(t){Mt=t}var br=null;function eg(t){br=t}var dn=null,zn=0,Hn=null;function tg(t){Hn=t}var hg=1,Sc=0,es=!1,Bl=null;function Nl(){return++hg}function gs(t){var y,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&Mt!==null&&!es,l=i.length;if(s||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(s||!((y=a==null?void 0:a.reactions)!=null&&y.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);s&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],gs(a)&&np(a),a.wv>t.wv)return!0}(!o||Mt!==null&&!es)&&an(t,1024)}return!1}function fg(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw yc=!1,t}function mg(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function qa(t,e,i,o){var f,y;if(yc){if(i===null&&(yc=!1),mg(e))throw t;return}if(i!==null&&(yc=!0),!Ee||o===null||!(t instanceof Error)||pg.has(t)){fg(t,e);return}pg.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ee){var d=(y=s.function)==null?void 0:y[_i];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=Dl?" ":" ";io(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Xs,Js):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Xe=!1;function po(t){Xe=t}var gt;function gi(t){if(t===null)throw ea(),ss;return gt=t}function Fi(){return gi(Bo(gt))}function g(t){if(Xe){if(Bo(gt)!==null)throw ea(),ss;gt=t}}function Se(t=1){if(Xe){for(var e=t,i=gt;e--;)i=Bo(i);gt=i}}function Qa(){for(var t=0,e=gt;;){if(e.nodeType===8){var i=e.data;if(i===Gs){if(t===0)return e;t-=1}else(i===Is||i===Qs)&&(t+=1)}var o=Bo(e);e.remove(),e=o}}function ge(t,e=null,i){var u,f;var o=null;if(Ve&&Yr&&(o=ds("CreatedAt")),typeof t!="object"||t===null||Xo in t)return t;let n=ls(t);if(n!==ip&&n!==Uv)return t;var a=new Map,r=Ir(t),d=Gi(0);r&&a.set("length",Gi(t.length,o));var l;if(Ve)if(l={parent:e,owners:null},i){let $=(f=(u=i.v)==null?void 0:u[as])==null?void 0:f.owners;l.owners=$?new Set($):null}else l.owners=e===null?Vt!==null?new Set([Vt.function]):null:new Set;return new Proxy(t,{defineProperty($,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&ig();var w=a.get(p);return w===void 0?(w=Gi(_.value,o),a.set(p,w)):D(w,ge(_.value,l)),!0},deleteProperty($,p){var _=a.get(p);if(_===void 0)p in $&&a.set(p,Gi(Li,o));else{if(r&&typeof p=="string"){var w=a.get("length"),b=Number(p);Number.isInteger(b)&&b<w.v&&D(w,b)}D(_,Li),vg(d)}return!0},get($,p,_){var I;if(Ve&&p===as)return l;if(p===Xo)return t;var w=a.get(p),b=p in $;if(w===void 0&&(!b||(I=Yn($,p))!=null&&I.writable)&&(w=Gi(ge(b?$[p]:Li,l),o),a.set(p,w)),w!==void 0){var C=s(w);if(Ve){var T=C==null?void 0:C[as];T&&(T==null?void 0:T.parent)!==l&&fp(l,T)}return C===Li?void 0:C}return Reflect.get($,p,_)},getOwnPropertyDescriptor($,p){var _=Reflect.getOwnPropertyDescriptor($,p);if(_&&"value"in _){var w=a.get(p);w&&(_.value=s(w))}else if(_===void 0){var b=a.get(p),C=b==null?void 0:b.v;if(b!==void 0&&C!==Li)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has($,p){var C;if(Ve&&p===as||p===Xo)return!0;var _=a.get(p),w=_!==void 0&&_.v!==Li||Reflect.has($,p);if(_!==void 0||At!==null&&(!w||(C=Yn($,p))!=null&&C.writable)){_===void 0&&(_=Gi(w?ge($[p],l):Li,o),a.set(p,_));var b=s(_);if(b===Li)return!1}return w},set($,p,_,w){var W;var b=a.get(p),C=p in $;if(r&&p==="length")for(var T=_;T<b.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Li):T in $&&(I=Gi(Li,o),a.set(T+"",I))}if(b===void 0?(!C||(W=Yn($,p))!=null&&W.writable)&&(b=Gi(void 0,o),D(b,ge(_,l)),a.set(p,b)):(C=b.v!==Li,D(b,ge(_,l))),Ve){var M=_==null?void 0:_[as];M&&(M==null?void 0:M.parent)!==l&&fp(l,M),gg(l)}var P=Reflect.getOwnPropertyDescriptor($,p);if(P!=null&&P.set&&P.set.call(w,_),!C){if(r&&typeof p=="string"){var E=a.get("length"),R=Number(p);Number.isInteger(R)&&R>=E.v&&D(E,R+1)}vg(d)}return!0},ownKeys($){s(d);var p=Reflect.ownKeys($).filter(b=>{var C=a.get(b);return C===void 0||C.v!==Li});for(var[_,w]of a)w.v!==Li&&!(_ in $)&&p.push(_);return p},setPrototypeOf(){og()}})}function vg(t,e=1){D(t,t.v+e)}function Cc(t){return t!==null&&typeof t=="object"&&Xo in t?t[Xo]:t}function hg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,r){let d=i.call(this,a,r);if(d===-1){for(let l=r!=null?r:0;l<this.length;l+=1)if(Cc(this[l])===a){Sc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,r){let d=o.call(this,a,r!=null?r:this.length-1);if(d===-1){for(let l=0;l<=(r!=null?r:this.length-1);l+=1)if(Cc(this[l])===a){Sc("array.lastIndexOf(...)");break}}return d},t.includes=function(a,r){let d=n.call(this,a,r);if(!d){for(let l=0;l<this.length;l+=1)if(Cc(this[l])===a){Sc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ta,_g,Kl,bg,$g;function Tc(){if(ta===void 0){ta=window,_g=document,Kl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;bg=Yn(e,"firstChild").get,$g=Yn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,Ve&&(t.__svelte_meta=null,hg())}}function mn(t=""){return document.createTextNode(t)}function hi(t){return bg.call(t)}function Bo(t){return $g.call(t)}function h(t,e){if(!Xe)return hi(t);var i=hi(gt);if(i===null)i=gt.appendChild(mn());else if(e&&i.nodeType!==3){var o=mn();return i==null||i.before(o),gi(o),o}return gi(i),i}function _e(t,e){var n,a;if(!Xe){var i=hi(t);return i.nodeType===8&&i.data===""?Bo(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==3){var o=mn();return(a=gt)==null||a.before(o),gi(o),o}return gt}function A(t,e=1,i=!1){let o=Xe?gt:t;for(var n;e--;)n=o,o=Bo(o);if(!Xe)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var r=mn();return o===null?n==null||n.after(r):o.before(r),gi(r),r}return gi(o),o}function Ql(t){t.textContent=""}var yg=new WeakSet,Ic=!1,jl=!1,Gl=null,ia=!1,Zs=!1;function gp(t){Zs=t}var Yl=[],kc=[],zt=null,Zn=!1;function wo(t){zt=t}var At=null;function co(t){At=t}var Er=null;function dg(t){Er=t}var vn=null,Jn=0,jn=null;function cg(t){jn=t}var Tg=1,Pc=0,ps=!1,Wl=null;function ql(){return++Tg}function Ps(t){var $,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,r=(e&512)!==0,d=o&&At!==null&&!ps,l=i.length;if(r||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(r||!(($=a==null?void 0:a.reactions)!=null&&$.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);r&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],Ps(a)&&up(a),a.wv>t.wv)return!0}(!o||At!==null&&!ps)&&fn(t,1024)}return!1}function xg(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw Ic=!1,t}function wg(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ya(t,e,i,o){var f,$;if(Ic){if(i===null&&(Ic=!1),wg(e))throw t;return}if(i!==null&&(Ic=!0),!Ve||o===null||!(t instanceof Error)||yg.has(t)){xg(t,e);return}yg.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let r=o;for(;r!==null;){if(Ve){var d=($=r.function)==null?void 0:$[vi];if(d){let p=d.split("/").pop();n.push(p)}}r=r.p}let l=Kl?" ":" ";lo(t,"message",{value:t.message+`
40
40
  ${n.map(p=>`
41
41
  ${l}in ${p}`).join("")}
42
- `}),io(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
43
- `),b=[];for(let w=0;w<p.length;w++){let _=p[w];_.includes("svelte/src/internal")||b.push(_)}io(t,"stack",{value:b.join(`
44
- `)})}if(fg(t,e),mg(e))throw t}function _g(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?_g(a,e,!1):e===a&&(i?an(a,2048):(a.f&1024)!==0&&an(a,4096),Ua(a))}}function hc(t){var b,w;var e=dn,i=zn,o=Hn,n=Kt,a=es,s=br,d=Vt,l=Fn,u=t.f;dn=null,zn=0,Hn=null,es=(u&256)!==0&&(Fn||!Ks||Kt===null),Kt=(u&96)===0?t:null,br=null,Wl(t.ctx),Fn=!1,Sc++;try{var f=(0,t.fn)(),y=t.deps;if(dn!==null){var p;if(zl(t,zn),y!==null&&zn>0)for(y.length=zn+dn.length,p=0;p<dn.length;p++)y[zn+p]=dn[p];else t.deps=y=dn;if(!es)for(p=zn;p<y.length;p++)((w=(b=y[p]).reactions)!=null?w:b.reactions=[]).push(t)}else y!==null&&zn<y.length&&(zl(t,zn),y.length=zn);if(Dr()&&Hn!==null&&!Fn&&y!==null&&(t.f&6146)===0)for(p=0;p<Hn.length;p++)_g(Hn[p],t);return n!==null&&(Sc++,Hn!==null&&(o===null?o=Hn:o.push(...Hn))),f}finally{dn=e,zn=i,Hn=o,Kt=n,es=a,br=s,Wl(d),Fn=l}}function R0(t,e){let i=e.reactions;if(i!==null){var o=Mv.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&&(dn===null||!dn.includes(e))&&(an(e,4096),(e.f&768)===0&&(e.f^=512),gc(e),zl(e,0))}function zl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)R0(t,i[o])}function Fa(t){var e=t.f;if((e&16384)===0){an(t,1024);var i=Mt,o=Vt,n=Ks;if(Mt=t,Ks=!0,Ee){var a=cn;ql(t.component_function)}try{(e&16)!==0?bg(t):up(t),cp(t);var s=hc(t);t.teardown=typeof s=="function"?s:null,t.wv=hg;var d=t.deps;if(Ee&&Nr&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=Nl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ee&&wc.push(t)}catch(u){qa(u,t,i,o||t.ctx)}finally{Ks=n,Mt=i,Ee&&ql(a)}}}function vg(){console.error("Last ten effects were: ",wc.slice(-10).map(t=>t.fn)),wc=[]}function B0(){try{Fv()}catch(t){if(Ee&&io(t,"stack",{value:""}),Hl!==null)if(Ee)try{qa(t,Hl,null,null)}catch(e){throw vg(),e}else qa(t,Hl,null,null);else throw Ee&&vg(),t}}function ap(){var t=Ks;try{var e=0;for(Ks=!0;Fl.length>0;){e++>1e3&&B0();var i=Fl,o=i.length;Fl=[];for(var n=0;n<o;n++){var a=D0(i[n]);N0(a)}}}finally{Ul=!1,Ks=t,Hl=null,Ee&&(wc=[]),Oa.clear()}}function N0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{gs(o)&&(Fa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?pp(o):o.fn=null))}catch(n){qa(n,o,null,o.ctx)}}}function Ua(t){Ul||(Ul=!0,queueMicrotask(ap));for(var e=Hl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Fl.push(e)}function D0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Kt;try{Kt=i,gs(i)&&Fa(i)}catch(u){qa(u,i,null,i.ctx)}finally{Kt=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Ka(t){var e;for(t&&(Ul=!0,ap(),e=t()),Zu();Fl.length>0;)Ul=!0,ap(),Zu();return e}function $o(){return Tt(this,null,function*(){yield Promise.resolve(),Ka()})}function r(t){var e=t.f,i=(e&2)!==0;if(Bl!==null&&Bl.add(t),Kt!==null&&!Fn){br!==null&&br.includes(t)&&Yv();var o=Kt.deps;t.rv<Sc&&(t.rv=Sc,dn===null&&o!==null&&o[zn]===t?zn++:dn===null?dn=[t]:(!es||!dn.includes(t))&&dn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,gs(n)&&np(n)),Ee&&Nr&&Rl!==null&&Kt!==null&&Rl.reaction===Kt){if(t.debug)t.debug();else if(t.created){var s=Rl.entries.get(t);s===void 0&&(s={read:[]},Rl.entries.set(t,s)),s.read.push(Zr("TracedAt"))}}return Fs&&Oa.has(t)?Oa.get(t):t.v}function It(t){var e=Fn;try{return Fn=!0,t()}finally{Fn=e}}var O0=-7169;function an(t,e){t.f=t.f&O0|e}function Tc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Uo in t)Cc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Uo in i&&Cc(i)}}}function Cc(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{Cc(t[o],e)}catch(n){}let i=jr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=mc(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function mp(t){Mt===null&&Kt===null&&Hv(t),Kt!==null&&(Kt.f&256)!==0&&Mt===null&&Ov(),Fs&&Dv(t)}function H0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Qs(t,e,i,o=!0){var l;var n=Mt;if(Ee)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Vt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ee&&(a.component_function=cn),i)try{Fa(a),a.f|=32768}catch(u){throw no(a),u}else e!==null&&Ua(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&H0(a,n),Kt!==null&&(Kt.f&2)!==0)){var d=Kt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function un(t){let e=Qs(8,null,!1);return an(e,1024),e.teardown=t,e}function Ue(t){var n;mp("$effect");var e=Mt!==null&&(Mt.f&32)!==0&&Vt!==null&&!Vt.m;if(Ee&&io(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Mt,reaction:Kt})}else{var o=$n(t);return o}}function Qa(t){return mp("$effect.pre"),Ee&&io(t,"name",{value:"$effect.pre"}),yo(t)}function kc(t){let e=Qs(64,t,!0);return()=>{no(e)}}function yg(t){let e=Qs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?yn(e,()=>{no(e),o(void 0)}):(no(e),o(void 0))})}function $n(t){return Qs(4,t,!1)}function yo(t){return Qs(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return Ee&&io(n,"name",{value:"{expression}"}),so(n)}function so(t,e=0){return Qs(24|e,t,!0)}function Qi(t,e=!0){return Qs(40,t,!0,e)}function cp(t){var e=t.teardown;if(e!==null){let i=Fs,o=Kt;dp(!0),bo(null);try{e.call(null)}finally{dp(i),bo(o)}}}function up(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:no(i,e),i=o}}function bg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&no(e),e=i}}function no(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:Po(o);o.remove(),o=a}i=!0}up(t,e&&!i),zl(t,0),an(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();cp(t);var d=t.parent;d!==null&&d.first!==null&&pp(t),Ee&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function pp(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 yn(t,e){var i=[];Ec(t,i,!0),vp(i,()=>{no(t),e&&e()})}function vp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ec(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;Ec(o,e,a?i:!1),o=n}}}function ts(t){xg(t,!0)}function xg(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),gs(t)&&(an(t,2048),Ua(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;xg(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var F0={},U0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,z0=/@(.+):(\d+):(\d+)$/;function W0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
- `)){let n=(i=U0.exec(o))!=null?i:z0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function wg(){var e;let t=(e=W0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=F0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var Pc=Symbol("ADD_OWNER");function gp(t,e,i=!1,o=!1){if(t&&!i){let n=cn,a=t[Yr];if(a&&!hp(a,n)){let s=_p(a);e&&e[_i]!==n[_i]&&!o&&rg(n[_i],e[_i],s[_i])}}Ac(t,e,new Set)}function sp(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function Ac(t,e,i){var a;let o=t==null?void 0:t[Yr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),Pc in t&&t[Pc])yo(()=>{t[Pc](e)});else{var n=jr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ai;yo(()=>{let l=t[s];d!==l&&(d=l,Ac(l,e,i))})}else Ac(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Ac(t[s],e,i)}}}function hp(t,e){return t.owners===null?!0:t.owners.has(e)||_i in e&&[...t.owners].some(i=>i[_i]===e[_i])||t.parent!==null&&hp(t.parent,e)}function _p(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:_p(t.parent)}var q0=!1;function ag(t){if(q0)return;let e=wg();if(e&&!hp(t,e)){let i=_p(t);i[_i]!==e[_i]?rp(e[_i],i[_i]):rp()}}function Ga(t){if(Ee){let e=new Error(`lifecycle_outside_component
42
+ `}),lo(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
43
+ `),_=[];for(let w=0;w<p.length;w++){let b=p[w];b.includes("svelte/src/internal")||_.push(b)}lo(t,"stack",{value:_.join(`
44
+ `)})}if(xg(t,e),wg(e))throw t}function Ig(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?Ig(a,e,!1):e===a&&(i?fn(a,2048):(a.f&1024)!==0&&fn(a,4096),Ka(a))}}function wc(t){var _,w;var e=vn,i=Jn,o=jn,n=zt,a=ps,r=Er,d=Vt,l=Zn,u=t.f;vn=null,Jn=0,jn=null,ps=(u&256)!==0&&(Zn||!ia||zt===null),zt=(u&96)===0?t:null,Er=null,Xl(t.ctx),Zn=!1,Pc++;try{var f=(0,t.fn)(),$=t.deps;if(vn!==null){var p;if(Zl(t,Jn),$!==null&&Jn>0)for($.length=Jn+vn.length,p=0;p<vn.length;p++)$[Jn+p]=vn[p];else t.deps=$=vn;if(!ps)for(p=Jn;p<$.length;p++)((w=(_=$[p]).reactions)!=null?w:_.reactions=[]).push(t)}else $!==null&&Jn<$.length&&(Zl(t,Jn),$.length=Jn);if(jr()&&jn!==null&&!Zn&&$!==null&&(t.f&6146)===0)for(p=0;p<jn.length;p++)Ig(jn[p],t);return n!==null&&(Pc++,jn!==null&&(o===null?o=jn:o.push(...jn))),f}finally{vn=e,Jn=i,jn=o,zt=n,ps=a,Er=r,Xl(d),Zn=l}}function D0(t,e){let i=e.reactions;if(i!==null){var o=Fv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(vn===null||!vn.includes(e))&&(fn(e,4096),(e.f&768)===0&&(e.f^=512),xc(e),Zl(e,0))}function Zl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)D0(t,i[o])}function qa(t){var e=t.f;if((e&16384)===0){fn(t,1024);var i=At,o=Vt,n=ia;if(At=t,ia=!0,Ve){var a=gn;Jl(t.component_function)}try{(e&16)!==0?Eg(t):_p(t),hp(t);var r=wc(t);t.teardown=typeof r=="function"?r:null,t.wv=Tg;var d=t.deps;if(Ve&&Yr&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=ql(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ve&&kc.push(t)}catch(u){Ya(u,t,i,o||t.ctx)}finally{ia=n,At=i,Ve&&Jl(a)}}}function Sg(){console.error("Last ten effects were: ",kc.slice(-10).map(t=>t.fn)),kc=[]}function O0(){try{jv()}catch(t){if(Ve&&lo(t,"stack",{value:""}),Gl!==null)if(Ve)try{Ya(t,Gl,null,null)}catch(e){throw Sg(),e}else Ya(t,Gl,null,null);else throw Ve&&Sg(),t}}function mp(){var t=ia;try{var e=0;for(ia=!0;Yl.length>0;){e++>1e3&&O0();var i=Yl,o=i.length;Yl=[];for(var n=0;n<o;n++){var a=F0(i[n]);H0(a)}}}finally{jl=!1,ia=t,Gl=null,Ve&&(kc=[]),za.clear()}}function H0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{Ps(o)&&(qa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?bp(o):o.fn=null))}catch(n){Ya(n,o,null,o.ctx)}}}function Ka(t){jl||(jl=!0,queueMicrotask(mp));for(var e=Gl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Yl.push(e)}function F0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var r=zt;try{zt=i,Ps(i)&&qa(i)}catch(u){Ya(u,i,null,i.ctx)}finally{zt=r}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function ja(t){var e;for(t&&(jl=!0,mp(),e=t()),np();Yl.length>0;)jl=!0,mp(),np();return e}function So(){return Tt(this,null,function*(){yield Promise.resolve(),ja()})}function s(t){var e=t.f,i=(e&2)!==0;if(Wl!==null&&Wl.add(t),zt!==null&&!Zn){Er!==null&&Er.includes(t)&&ng();var o=zt.deps;t.rv<Pc&&(t.rv=Pc,vn===null&&o!==null&&o[Jn]===t?Jn++:vn===null?vn=[t]:(!ps||!vn.includes(t))&&vn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,Ps(n)&&up(n)),Ve&&Yr&&zl!==null&&zt!==null&&zl.reaction===zt){if(t.debug)t.debug();else if(t.created){var r=zl.entries.get(t);r===void 0&&(r={read:[]},zl.entries.set(t,r)),r.read.push(ds("TracedAt"))}}return Zs&&za.has(t)?za.get(t):t.v}function It(t){var e=Zn;try{return Zn=!0,t()}finally{Zn=e}}var U0=-7169;function fn(t,e){t.f=t.f&U0|e}function Mc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Xo in t)Ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Xo in i&&Ac(i)}}}function Ac(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{Ac(t[o],e)}catch(n){}let i=ls(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=$c(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(r){}}}}}function yp(t){At===null&&zt===null&&Yv(t),zt!==null&&(zt.f&256)!==0&&At===null&&Gv(),Zs&&Qv(t)}function z0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function oa(t,e,i,o=!0){var l;var n=At;if(Ve)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Vt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ve&&(a.component_function=gn),i)try{qa(a),a.f|=32768}catch(u){throw uo(a),u}else e!==null&&Ka(a);var r=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!r&&o&&(n!==null&&z0(a,n),zt!==null&&(zt.f&2)!==0)){var d=zt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function hn(t){let e=oa(8,null,!1);return fn(e,1024),e.teardown=t,e}function ze(t){var n;yp("$effect");var e=At!==null&&(At.f&32)!==0&&Vt!==null&&!Vt.m;if(Ve&&lo(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:At,reaction:zt})}else{var o=In(t);return o}}function Za(t){return yp("$effect.pre"),Ve&&lo(t,"name",{value:"$effect.pre"}),Co(t)}function Vc(t){let e=oa(64,t,!0);return()=>{uo(e)}}function Pg(t){let e=oa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?En(e,()=>{uo(e),o(void 0)}):(uo(e),o(void 0))})}function In(t){return oa(4,t,!1)}function Co(t){return oa(8,t,!0)}function k(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(s));return Ve&&lo(n,"name",{value:"{expression}"}),fo(n)}function fo(t,e=0){return oa(24|e,t,!0)}function Yi(t,e=!0){return oa(40,t,!0,e)}function hp(t){var e=t.teardown;if(e!==null){let i=Zs,o=zt;gp(!0),wo(null);try{e.call(null)}finally{gp(i),wo(o)}}}function _p(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:uo(i,e),i=o}}function Eg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&uo(e),e=i}}function uo(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:Bo(o);o.remove(),o=a}i=!0}_p(t,e&&!i),Zl(t,0),fn(t,16384);var r=t.transitions;if(r!==null)for(let l of r)l.stop();hp(t);var d=t.parent;d!==null&&d.first!==null&&bp(t),Ve&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function bp(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 En(t,e){var i=[];Rc(t,i,!0),xp(i,()=>{uo(t),e&&e()})}function xp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Rc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let r of t.transitions)(r.is_global||i)&&e.push(r);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;Rc(o,e,a?i:!1),o=n}}}function fs(t){Ag(t,!0)}function Ag(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),Ps(t)&&(fn(t,2048),Ka(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ag(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var W0={},q0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,K0=/@(.+):(\d+):(\d+)$/;function Q0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=q0.exec(o))!=null?i:K0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Mg(){var e;let t=(e=Q0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=W0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var Bc=Symbol("ADD_OWNER");function wp(t,e,i=!1,o=!1){if(t&&!i){let n=gn,a=t[as];if(a&&!Sp(a,n)){let r=Cp(a);e&&e[vi]!==n[vi]&&!o&&mg(n[vi],e[vi],r[vi])}}Nc(t,e,new Set)}function fp(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function Nc(t,e,i){var a;let o=t==null?void 0:t[as];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),Bc in t&&t[Bc])Co(()=>{t[Bc](e)});else{var n=ls(t);if(n===Object.prototype)for(let r in t)if((a=Object.getOwnPropertyDescriptor(t,r))!=null&&a.get){let d=Li;Co(()=>{let l=t[r];d!==l&&(d=l,Nc(l,e,i))})}else Nc(t[r],e,i);else if(n===Array.prototype)for(let r=0;r<t.length;r+=1)Nc(t[r],e,i)}}}function Sp(t,e){return t.owners===null?!0:t.owners.has(e)||vi in e&&[...t.owners].some(i=>i[vi]===e[vi])||t.parent!==null&&Sp(t.parent,e)}function Cp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Cp(t.parent)}var G0=!1;function gg(t){if(G0)return;let e=Mg();if(e&&!Sp(t,e)){let i=Cp(t);i[vi]!==e[vi]?pp(e[vi],i[vi]):pp()}}function Xa(t){if(Ve){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Vt=null;function Wl(t){Vt=t}var cn=null;function ql(t){cn=t}function Ya(t){return bp("getContext").get(t)}function ja(t,e){let i=bp("setContext");return Ee&&It(()=>gp(e,null,!0)),i.set(t,e),e}function Ql(){return bp("getAllContexts")}function F(t,e=!1,i){var o=Vt={p:Vt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Br&&!e&&(Vt.l={s:null,u:null,r1:[],r2:Ki(!1)}),un(()=>{o.d=!0}),Ee&&(Vt.function=i,cn=i)}function U(t){var s,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Mt,o=Kt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];oo(a.effect),bo(a.reaction),$n(a.fn)}}finally{oo(i),bo(o)}}Vt=e.p,Ee&&(cn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Dr(){return!Br||Vt!==null&&Vt.l===null}function bp(t){var e;return Vt===null&&Ga(t),(e=Vt.c)!=null?e:Vt.c=new Map(Q0(Vt)||void 0)}function Q0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var G0=/\r/g;function Sg(t){t=t.replace(G0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Cg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var Y0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Tg(t){return Y0.includes(t)}var j0=["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 Z0={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 Ig(t){var e;return t=t.toLowerCase(),(e=Z0[t])!=null?e:t}var Ww=[...j0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var X0=["touchstart","touchmove"];function kg(t){return X0.includes(t)}var J0=["textarea","script","style","title"];function Eg(t){return J0.includes(t)}function $p(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Pg=new Map;function Ag(t,e){var i=Pg.get(t);i||(i=new Set,Pg.set(t,i)),i.add(e)}function yp(t,e){if(e){let i=document.body;t.autofocus=!0,nn(()=>{document.activeElement===i&&t.focus()})}}function Gl(t){var e=Kt,i=Mt;bo(null),oo(null);try{return t()}finally{bo(e),oo(i)}}var xp=new Set,Mc=new Set;function Gs(t){if(!je)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function wp(t,e,i,o={}){function n(a){if(o.capture||Za.call(e,a),!a.cancelBubble)return Gl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?nn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Pt(t,e,i,o,n){var a={capture:o,passive:n},s=wp(t,e,i,a);(e===document.body||e===window||e===document)&&un(()=>{e.removeEventListener(t,s,a)})}function lt(t){for(var e=0;e<t.length;e++)xp.add(t[e]);for(var i of Mc)i(t)}function Za(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){io(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Kt,y=Mt;bo(null),oo(null);try{for(var p,b=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+o];if(_!=null&&(!a.disabled||t.target===a))if(_r(_)){var[C,...T]=_;C.apply(a,[t,...T])}else _.call(a,t)}catch(M){p?b.push(M):p=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let M of b)queueMicrotask(()=>{throw M});throw p}}finally{t.__root=e,delete t.currentTarget,bo(f),oo(y)}}}var t_;function Mg(){t_=void 0}function Xa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function xo(t,e){var i=Mt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(je)return xo($t,null),$t;n===void 0&&(n=Xa(a?t:"<!>"+t),i||(n=$i(n)));var s=o||Dl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=$i(s),l=s.lastChild;xo(d,l)}else xo(s,s);return s}}function xe(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return xo($t,null),$t;if(!s){var d=Xa(a),l=$i(d);if(n)for(s=document.createDocumentFragment();$i(l);)s.appendChild($i(l));else s=$i(l)}var u=s.cloneNode(!0);if(n){var f=$i(u),y=u.lastChild;xo(f,y)}else xo(u,u);return u}}function Or(t=""){if(!je){var e=ln(t+"");return xo(e,e),e}var i=$t;return i.nodeType!==3&&(i.before(i=ln()),bi(i)),xo(i,i),i}function He(){if(je)return xo($t,null),$t;var t=document.createDocumentFragment(),e=document.createComment(""),i=ln();return t.append(e,i),xo(e,i),t}function $(t,e){if(je){Mt.nodes_end=$t,Oi();return}t!==null&&t.before(e)}var Yl=!0;function Lc(t){Yl=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function is(t,e){return Vg(t,e)}function Cp(t,e){var s;$c(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=$t;try{for(var a=$i(i);a&&(a.nodeType!==8||a.data!==fs);)a=Po(a);if(!a)throw Gr;ro(!0),bi(a),Oi();let d=Vg(t,Ut(W({},e),{anchor:a}));if($t===null||$t.nodeType!==8||$t.data!==Ds)throw Ws(),Gr;return ro(!1),d}catch(d){if(d===Gr)return e.recover===!1&&Uv(),$c(),Ol(i),ro(!1),is(t,e);throw d}finally{ro(o),bi(n),Mg()}}var Ja=new Map;function Vg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){$c();var d=new Set,l=y=>{for(var p=0;p<y.length;p++){var b=y[p];if(!d.has(b)){d.add(b);var w=kg(b);e.addEventListener(b,Za,{passive:w});var _=Ja.get(b);_===void 0?(document.addEventListener(b,Za,{passive:w}),Ja.set(b,1)):Ja.set(b,_+1)}}};l(Ll(xp)),Mc.add(l);var u=void 0,f=yg(()=>{var y=i!=null?i:e.appendChild(ln());return Qi(()=>{if(a){F({});var p=Vt;p.c=a}n&&(o.$$events=n),je&&xo(y,null),Yl=s,u=t(y,o)||{},Yl=!0,je&&(Mt.nodes_end=$t),a&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,Za);var b=Ja.get(p);--b===0?(document.removeEventListener(p,Za),Ja.delete(p)):Ja.set(p,b)}Mc.delete(l),y!==i&&((w=y.parentNode)==null||w.removeChild(y))}});return Sp.set(u,f),u}var Sp=new WeakMap;function Ys(t,e){let i=Sp.get(t);return i?(Sp.delete(t),i(e)):(Ee&&ng(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){je&&i===0&&Oi();var n=t,a=null,s=null,d=Ai,l=i>0?65536:0,u=!1;let f=(p,b=!0)=>{u=!0,y(b,p)},y=(p,b)=>{if(d===(d=p))return;let w=!1;if(je&&o!==-1){if(i===0){let C=n.data;C===fs?o=0:C===Ns?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>i;!!d===_&&(n=za(),bi(n),ro(!1),w=!0,o=-1)}d?(a?ts(a):b&&(a=Qi(()=>b(n))),s&&yn(s,()=>{s=null})):(s?ts(s):b&&(s=Qi(()=>b(n,[i+1,o]))),a&&yn(a,()=>{a=null})),w&&ro(!0)};so(()=>{u=!1,e(f),u||y(null,null)},l),je&&(n=$t)}function js(t,e,i){je&&Oi();var o=t,n=Ai,a,s=Dr()?Bv:Na;so(()=>{s(n,n=e())&&(a&&yn(a),a=Qi(()=>i(o)))}),je&&(o=$t)}var _s=null;function kp(t){_s=t}function jl(t,e){return e}function r_(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Ec(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Ol(l),l.append(i),o.clear(),hs(t,e[0].prev,e[a-1].next)}vp(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),hs(t,f.prev,f.next)),no(f.e,!d)}})}function Ci(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var u=t;s=je?bi($i(u)):u.appendChild(ln())}je&&Oi();var f=null,y=!1,p=yr(()=>{var b=i();return _r(b)?b:b==null?[]:Ll(b)});so(()=>{var b=r(p),w=b.length;if(y&&w===0)return;y=w===0;let _=!1;if(je){var C=s.data===Ns;C!==(w===0)&&(s=za(),bi(s),ro(!1),_=!0)}if(je){for(var T=null,I,M=0;M<w;M++){if($t.nodeType===8&&$t.data===Ds){s=$t,_=!0,ro(!1);break}var P=b[M],k=o(P,M);I=Ng($t,d,T,null,P,k,M,n,e,i),d.items.set(k,I),T=I}w>0&&bi(za())}je||s_(b,d,s,n,e,o,i),a!==null&&(w===0?f?ts(f):f=Qi(()=>a(s)):f!==null&&yn(f,()=>{f=null})),_&&ro(!0),r(p)}),je&&(s=$t)}function s_(t,e,i,o,n,a,s){var ue,Pe,Le,he;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,y=e.first,p=y,b,w=null,_,C=[],T=[],I,M,P,k;if(d)for(k=0;k<u;k+=1)I=t[k],M=a(I,k),P=f.get(M),P!==void 0&&((ue=P.a)==null||ue.measure(),(_!=null?_:_=new Set).add(P));for(k=0;k<u;k+=1){if(I=t[k],M=a(I,k),P=f.get(M),P===void 0){var V=p?p.e.nodes_start:i;w=Ng(V,e,w,w===null?e.first:w.next,I,M,k,o,n,s),f.set(M,w),C=[],T=[],p=w.next;continue}if(l&&a_(P,I,k,n),(P.e.f&8192)!==0&&(ts(P.e),d&&((Pe=P.a)==null||Pe.unfix(),(_!=null?_:_=new Set).delete(P))),P!==p){if(b!==void 0&&b.has(P)){if(C.length<T.length){var q=T[0],Z;w=q.prev;var H=C[0],G=C[C.length-1];for(Z=0;Z<C.length;Z+=1)Rg(C[Z],q,i);for(Z=0;Z<T.length;Z+=1)b.delete(T[Z]);hs(e,H.prev,G.next),hs(e,w,H),hs(e,G,q),p=q,w=G,k-=1,C=[],T=[]}else b.delete(P),Rg(P,p,i),hs(e,P.prev,P.next),hs(e,P,w===null?e.first:w.next),hs(e,w,P),w=P;continue}for(C=[],T=[];p!==null&&p.k!==M;)(p.e.f&8192)===0&&(b!=null?b:b=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;P=p}C.push(P),w=P,p=P.next}if(p!==null||b!==void 0){for(var oe=b===void 0?[]:Ll(b);p!==null;)(p.e.f&8192)===0&&oe.push(p),p=p.next;var X=oe.length;if(X>0){var ae=(n&4)!==0&&u===0?i:null;if(d){for(k=0;k<X;k+=1)(Le=oe[k].a)==null||Le.measure();for(k=0;k<X;k+=1)(he=oe[k].a)==null||he.fix()}r_(e,oe,ae,f)}}d&&nn(()=>{var le;if(_!==void 0)for(P of _)(le=P.a)==null||le.apply()}),Mt.first=e.first&&e.first.e,Mt.last=w&&w.e}function a_(t,e,i,o){(o&1)!==0&&Ha(t.v,e),(o&2)!==0?Ha(t.i,i):t.i=i}function Ng(t,e,i,o,n,a,s,d,l,u){var f=_s,y=(l&1)!==0,p=(l&16)===0,b=y?p?Jr(n):Ki(n):n,w=(l&2)===0?s:Ki(s);Ee&&y&&(b.debug=()=>{var C=typeof w=="number"?s:w.v;u()[C]});var _={i:w,v:b,k:a,a:null,e:null,prev:i,next:o};_s=_;try{return _.e=Qi(()=>d(t,b,w,u),je),_.e.prev=i&&i.e,_.e.next=o&&o.e,i===null?e.first=_:(i.next=_,i.e.next=_.e),o!==null&&(o.prev=_,o.e.prev=_.e),_}finally{_s=f}}function Rg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Po(a);n.before(a),a=s}}function hs(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 a,s;if(!e||e===Sg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=cn)!=null&&s[_i]&&(o=`in ${cn[_i]}`),og($p(o))}function Zl(t,e,i,o,n){var a=t,s="",d;so(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Oi();return}d!==void 0&&(no(d),d=void 0),s!==""&&(d=Qi(()=>{if(je){for(var u=$t.data,f=Oi(),y=f;f!==null&&(f.nodeType!==8||f.data!=="");)y=f,f=Po(f);if(f===null)throw Ws(),Gr;Ee&&!n&&l_(f.parentNode,u,s),xo($t,y),a=bi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var b=Xa(p);if((i||o)&&(b=$i(b)),xo($i(b),b.lastChild),i||o)for(;$i(b);)a.before($i(b));else a.before(b)}))})}function ge(t,e,...i){var o=t,n=ie,a;so(()=>{n!==(n=e())&&(a&&(no(a),a=null),Ee&&n==null&&zv(),a=Qi(()=>n(o,...i)))},65536),je&&(o=$t)}function Ti(t,e,i){je&&Oi();var o=t,n,a;so(()=>{n!==(n=e())&&(a&&(yn(a),a=null),n&&(a=Qi(()=>i(o,n))))},65536),je&&(o=$t)}function Zs(t,e,i,o,n,a){var w;let s=je;je&&Oi();var d=Ee&&a&&((w=Vt)==null?void 0:w.function[_i]),l,u,f=null;je&&$t.nodeType===1&&(f=$t,Oi());var y=je?$t:t,p,b=_s;so(()=>{let _=e()||null;var C=n?n():i||_==="svg"?Qu:null;if(_!==l){var T=_s;kp(b),p&&(_===null?yn(p,()=>{p=null,u=null}):_===u?ts(p):(no(p),Lc(!1))),_&&_!==u&&(p=Qi(()=>{if(f=je?f:C?document.createElementNS(C,_):document.createElement(_),Ee&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),xo(f,f),o){je&&Eg(_)&&f.append(document.createComment(""));var I=je?$i(f):f.appendChild(ln());je&&(I===null?ro(!1):bi(I)),o(f,I)}Mt.nodes_end=f,y.before(f)})),l=_,l&&(u=l),Lc(!0),kp(T)}},65536),s&&(ro(!0),bi(y))}var Pp;function Dg(t){return Pp=t.target,new Ep(t)}var os,sr,Ep=class{constructor(e){ps(this,os);ps(this,sr);var a,s;var i=new Map,o=(d,l)=>{var u=Jr(l);return i.set(d,u),u};let n=new Proxy(Ut(W({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===Ml?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return D((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});Ba(this,sr,(e.hydrate?Cp:is)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Ka(),Ba(this,os,n.$$events);for(let d of Object.keys(Pi(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||io(this,d,{get(){return Pi(this,sr)[d]},set(l){Pi(this,sr)[d]=l},enumerable:!0});Pi(this,sr).$set=d=>{Object.assign(n,d)},Pi(this,sr).$destroy=()=>{Ys(Pi(this,sr))}}$set(e){Pi(this,sr).$set(e)}$on(e,i){Pi(this,os)[e]=Pi(this,os)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,os)[e].push(o),()=>{Pi(this,os)[e]=Pi(this,os)[e].filter(n=>n!==o)}}$destroy(){Pi(this,sr).$destroy()}};os=new WeakMap,sr=new WeakMap;function K(t,e){nn(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Pp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ee&&Ag(e.hash,d)}})}function Og(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Og(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Hg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Og(t))&&(o&&(o+=" "),o+=e);return o}function Xl(t){return typeof t=="object"?Hg(t):t!=null?t:""}var Fg=[...`
48
- \r\f\xA0\v\uFEFF`];function zg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Fg.includes(o[s-1]))&&(d===o.length||Fg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Ug(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Ap(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Wg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Ap)),n&&l.push(...Object.keys(n).map(Ap));var u=0,f=-1;let _=t.length;for(var y=0;y<_;y++){var p=t[y];if(d?p==="/"&&t[y-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[y+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=y;else if(p===";"||y===_-1){if(f!==-1){var b=Ap(t.substring(u,f).trim());if(!l.includes(b)){p!==";"&&y++;var w=t.substring(u,y).trim();i+=" "+w+";"}}u=y+1,f=-1}}}}return o&&(i+=Ug(o)),n&&(i+=Ug(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=zg(i,o,a);(!je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function Mp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function at(t,e,i,o){var n=t.__style;if(je||n!==e){var a=Wg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Mp(t,i==null?void 0:i[0],o[0]),Mp(t,i==null?void 0:i[1],o[1],"important")):Mp(t,i,o));return o}var el=Symbol("class"),tl=Symbol("style"),Qg=Symbol("is custom element"),Gg=Symbol("is html");function Yg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=jg(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||v_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Av]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Zg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ie(t,e,i,o,n=!1){var P;var a=jg(t),s=a[Qg],d=!a[Gg];let l=je&&s;l&&ro(!1);var u=e||{},f=t.tagName==="OPTION";for(var y in e)y in i||(i[y]=null);i.class?i.class=Xl(i.class):(o||i[el])&&(i.class=null),i[tl]&&((P=i.style)!=null||(i.style=null));var p=Zg(t);for(let k in i){let V=i[k];if(f&&k==="value"&&V==null){t.value=t.__value="",u[k]=V;continue}if(k==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,b,V,o,e==null?void 0:e[el],i[el]),u[k]=V,u[el]=i[el];continue}if(k==="style"){at(t,V,e==null?void 0:e[tl],i[tl]),u[k]=V,u[tl]=i[tl];continue}var w=u[k];if(V!==w){u[k]=V;var _=k[0]+k[1];if(_!=="$$")if(_==="on"){let q={},Z="$$"+k,H=k.slice(2);var C=Tg(H);if(Cg(H)&&(H=H.slice(0,-7),q.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(H,u[Z],q),u[Z]=null}if(V!=null)if(C)t[`__${H}`]=V,lt([H]);else{let G=function(oe){u[k].call(this,oe)};var M=G;u[Z]=wp(H,t,G,q)}else C&&(t[`__${H}`]=void 0)}else if(k==="style")De(t,k,V);else if(k==="autofocus")yp(t,!!V);else if(!s&&(k==="__value"||k==="value"&&V!=null))t.value=t.__value=V;else if(k==="selected"&&f)Yg(t,V);else{var T=k;d||(T=Ig(T));var I=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!I)if(a[k]=null,T==="value"||T==="checked"){let q=t,Z=e===void 0;if(T==="value"){let H=q.defaultValue;q.removeAttribute(T),q.defaultValue=H,q.value=q.__value=Z?H:null}else{let H=q.defaultChecked;q.removeAttribute(T),q.defaultChecked=H,q.checked=Z?H:!1}}else t.removeAttribute(k);else I||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&De(t,T,V,n)}}}return l&&ro(!0),u}function jg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Qg]:t.nodeName.includes("-"),[Gg]:t.namespaceURI===Iv}}var qg=new Map;function Zg(t){var e=qg.get(t.nodeName);if(e)return e;qg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=mc(o);for(var a in i)i[a].set&&e.push(a);o=jr(o)}return e}function v_(t,e,i){var o;Ee&&(e==="srcset"&&g_(t,i)||Lp((o=t.getAttribute(e))!=null?o:"",i)||ig(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Lp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Kg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function g_(t,e){var i=Kg(t.srcset),o=Kg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Lp(i[s][0],n)||Lp(n,i[s][0])))}var h_=fc?()=>performance.now():()=>Date.now(),wr={tick:t=>(fc?requestAnimationFrame:ie)(t),now:()=>h_(),tasks:new Set};function Xg(){let t=wr.now();wr.tasks.forEach(e=>{e.c(t)||(wr.tasks.delete(e),e.f())}),wr.tasks.size!==0&&wr.tick(Xg)}function Jg(t){let e;return wr.tasks.size===0&&wr.tick(Xg),{promise:new Promise(i=>{wr.tasks.add(e={c:t,f:i})}),abort(){wr.tasks.delete(e)}}}function Vc(t,e){Gl(()=>{t.dispatchEvent(new CustomEvent(e))})}function y_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function eh(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=y_(n.trim());e[s]=a.trim()}return e}var x_=t=>t;function Rp(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,y=e.style.overflow,p,b;function w(){var V;var P=Kt,k=Mt;bo(null),oo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{bo(P),oo(k)}}var _={is_global:d,in(){var P;if(e.inert=f,!n){b==null||b.abort(),(P=b==null?void 0:b.reset)==null||P.call(b);return}a||p==null||p.abort(),Vc(e,"introstart"),p=Vp(e,w(),b,1,()=>{Vc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=y})},out(P){if(!a){P==null||P(),u=void 0;return}e.inert=!0,Vc(e,"outrostart"),b=Vp(e,w(),p,0,()=>{Vc(e,"outroend"),P==null||P()})},stop:()=>{p==null||p.abort(),b==null||b.abort()}},C=Mt;if(((M=C.transitions)!=null?M:C.transitions=[]).push(_),n&&Yl){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&$n(()=>{It(()=>_.in())})}}function Vp(t,e,i,o,n){var a=o===1;if(ms(e)){var s,d=!1;return nn(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Vp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:u,tick:f,easing:y=x_}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var b=eh(u(0,1));p.push(b,b)}var w=()=>1-o,_=t.animate(p,{duration:l});return _.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(u)for(var k=Math.ceil(I/16.666666666666668),V=0;V<=k;V+=1){var q=C+T*y(V/k),Z=eh(u(q,1-q));M.push(Z),P||(P=Z.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var G=_.currentTime;return C+T*y(G/I)},f&&Jg(()=>{if(_.playState!=="running")return!1;var G=w();return f(G,1-G),!0})}_=t.animate(M,{duration:I,fill:"forwards"}),_.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var bs,il,Jl,Bc,th,Nc=class Nc{constructor(e){ps(this,Bc);ps(this,bs,new WeakMap);ps(this,il);ps(this,Jl);Ba(this,Jl,e)}observe(e,i){var o=Pi(this,bs).get(e)||new Set;return o.add(i),Pi(this,bs).set(e,o),Cv(this,Bc,th).call(this).observe(e,Pi(this,Jl)),()=>{var n=Pi(this,bs).get(e);n.delete(i),n.size===0&&(Pi(this,bs).delete(e),Pi(this,il).unobserve(e))}}};bs=new WeakMap,il=new WeakMap,Jl=new WeakMap,Bc=new WeakSet,th=function(){var e;return(e=Pi(this,il))!=null?e:Ba(this,il,new ResizeObserver(i=>{for(var o of i){Nc.entries.set(o.target,o);for(var n of Pi(this,bs).get(o.target)||[])n(o)}}))},Dn(Nc,"entries",new WeakMap);var Bp=Nc;var C_=new Bp({box:"border-box"});function Hr(t,e,i){var o=C_.observe(t,()=>i(t[e]));$n(()=>(It(()=>i(t[e])),o))}function ih(t,e){return t===e||(t==null?void 0:t[Uo])===e}function _t(t={},e,i,o){return $n(()=>{var n,a;return yo(()=>{n=a,a=(o==null?void 0:o())||[],It(()=>{t!==i(...a)&&(e(t,...a),n&&ih(i(...n),t)&&e(null,...n))})}),()=>{nn(()=>{a&&ih(i(...a),t)&&e(null,...a)})}}),t}function Sr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>Tc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Qa(()=>{oh(e,o),vs(i.b)}),Ue(()=>{let n=It(()=>i.m.map(Vv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ue(()=>{oh(e,o),vs(i.a)})}function oh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Kv(e)},set:o=>{i=o}})}};I_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var I_;function Gt(t){Vt===null&&Ga("onMount"),Br&&Vt.l!==null?T_(Vt).m.push(t):Ue(()=>{let e=It(t);if(typeof e=="function")return e})}function xn(t){Vt===null&&Ga("onDestroy"),Gt(()=>()=>It(t))}function T_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function ed(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=It(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ol=[];function ar(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ie){let i=null,o=new Set;function n(d){if(Na(t,d)&&(t=d,i)){let l=!ol.length;for(let u of o)u[1](),ol.push(u,t);if(l){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}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 a=e.length<2;return ar(i,(s,d)=>{let l=!1,u=[],f=0,y=ie,p=()=>{if(f)return;y();let w=e(o?u[0]:u,s,d);a?s(w):y=typeof w=="function"?w:ie},b=n.map((w,_)=>ed(w,C=>{u[_]=C,f&=~(1<<_),l&&p()},()=>{f|=1<<_}));return l=!0,p(),function(){vs(b),y(),l=!1}})}function we(t){let e;return ed(t,i=>e=i)(),e}var Dc=!1,Np=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Jr(void 0),unsubscribe:ie};if(o.store!==t&&!(Np in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=ed(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&Np in i?we(t):r(o.source)}function Oe(){let t={};function e(){un(()=>{for(var i in t)t[i].unsubscribe();io(t,Np,{enumerable:!1,value:!0})})}return[t,e]}function Dp(t){var e=Dc;try{return Dc=!1,[t(),Dc]}finally{Dc=e}}var V_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&qv(`${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 Me(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},V_)}var R_={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 a=On(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=On(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Uo||e===Ml)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){ms(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ns(...t){return new Proxy({props:t},R_)}function nh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var q,Z;var n=(i&1)!==0,a=!Br||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=Dp(()=>t[e]):u=t[e];var f=Uo in t||Ml in t,y=s&&((Z=(q=On(t,e))==null?void 0:q.set)!=null?Z:f&&e in t&&(H=>t[e]=H))||void 0,p=o,b=!0,w=!1,_=()=>(w=!0,b&&(b=!1,d?p=It(o):p=o),p);u===void 0&&o!==void 0&&(y&&a&&Wv(e),u=_(),y&&y(u));var C;if(a)C=()=>{var H=t[e];return H===void 0?_():(b=!0,w=!1,H)};else{var T=(n?v:yr)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(p=void 0),H===void 0?p:H}}if((i&4)===0)return C;if(y){var I=t.$$legacy;return function(H,G){return arguments.length>0?((!a||!G||I||l)&&y(G?C():H),H):C()}}var M=!1,P=!1,k=Jr(u),V=v(()=>{var H=C(),G=r(k);return M?(M=!1,P=!0,G):(P=!1,k.v=H)});return s&&r(V),n||(V.equals=Da),function(H,G){if(Bl!==null&&(M=P,C(),r(k)),arguments.length>0){let oe=G?r(V):a&&s?me(H):H;if(!V.equals(oe)){if(M=!0,D(k,oe),w&&p!==void 0&&(p=oe),nh(V))return H;It(()=>r(V))}return H}return nh(V)?V.v:r(V)}}var B_;typeof HTMLElement=="function"&&(B_=class extends HTMLElement{constructor(e,i,o){super();Dn(this,"$$ctor");Dn(this,"$$s");Dn(this,"$$c");Dn(this,"$$cn",!1);Dn(this,"$$d",{});Dn(this,"$$r",!1);Dn(this,"$$p_d",{});Dn(this,"$$l",{});Dn(this,"$$l_u",new Map);Dn(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))}}connectedCallback(){return Tt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=N_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Op(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Dg({component:this.$$ctor,target:this.shadowRoot||this,props:Ut(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=kc(()=>{yo(()=>{var a;this.$$r=!0;for(let s of Gu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Op(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Op(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 Gu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Op(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function N_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var rh="5";var sh,ah,lh;typeof window!="undefined"&&((lh=(ah=(sh=window.__svelte)!=null?sh:window.__svelte={}).v)!=null?lh:ah.v=new Set).add(rh);var Iu=require("@vkontakte/videoplayer-core/es2015"),xY=require("@vkontakte/videoplayer-core/es2015"),Ia=require("@vkontakte/videoplayer-shared/es2015"),s0=require("@vkontakte/videoplayer-statistics/es2015");var Xs=require("@vkontakte/videoplayer-shared/es2015");var O_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Xs.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:Xs.VideoQuality.Q_480P,highQualityLimit:Xs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null}},dh=t=>(0,Xs.fillWithDefault)(t,O_),ch=t=>ja("ui-config",t),Yt=()=>Ya("ui-config");var td="vk_player_debug_panel_opened";var uh="videoplayer",ph="videoplayer";var Fr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},fh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),mh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),vh=new Set(["ShiftRight","ShiftLeft"]);var gh=["TIMELINE"],id=[...gh,"GRAPH_BUTTON"],Hp=[...gh,"PLAY_BUTTON"],od=[...id,"PLAY_BUTTON"];var Cr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Cr||{}),ea={xs:0,s:1,m:2,l:3,xl:4};var nd=require("@vkontakte/videoplayer-shared/es2015"),hh=require("@vkontakte/videoplayer-core/es2015"),_h=require("@vkontakte/videoplayer-statistics/es2015");var Oc="prod",ta="1.1.65-dev.b4cd3784.0";var ia=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var bh=Symbol("storeContext"),$h=Symbol("microStoresContext"),yh=(t,e)=>{ja(bh,t),ja($h,e),Oc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ya(bh);return(0,nd.assertNonNullable)(t,"Store context is empty!"),t},ao=()=>{let t=Ya($h);return(0,nd.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>Fc(t,t.getValue(),e),Fc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),xh=(t,e,i,o)=>{var P,k,V,q,Z,H;let n=t.info,{width:a,height:s}=we(i.ui.playerSize),d=(k=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?k:0,l=(q=(V=n.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?q:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ta} (core: ${hh.VERSION}, stat: ${_h.VERSION}, shared: ${nd.VERSION})`,y=we(i.state.errorLog$),p=y.length?`
49
- `+y.map((G,oe)=>{var Pe;let X=`${oe}) Type: ${G.id}
50
- `,ae=`Message: ${G.message} (${G.thrown})
51
- `,ue=`Trace: ${(Pe=G.thrown)==null?void 0:Pe.stack}
52
- `;return X+ae+ue}).join(`
53
- `):void 0,b=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),_=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(Z=w==null?void 0:w.codec)!=null?Z:""}`+(w!=null&&w.hdr?" (HDR)":"")),_&&C.push(`Audio: ${(H=_==null?void 0:_.codec)!=null?H:""}`+(_!=null&&_.language?` (${_.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let G=n.availableQualitiesFps$.getValue()[T];I=G?`${G}fps`:""}let M={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:we(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${u} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:b,Position:`${we(i.state.positionExact$)}s`,State:`${we(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:p};return Object.entries(M).filter(([G,oe])=>oe!==void 0).map(([G,oe])=>`${G}: ${oe}`).join(`
54
- `)},wh=(t,e,i)=>{var q,Z,H,G;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s={version:ta,viewport:`${n}x${a}`,volume:Math.round(we(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),y=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(y&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-we(i.state.positionExact$),0));let b=o.throughputEstimation$.getValue();b&&(s.speed=b);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let _=o.liveLatency$.getValue();_&&(s.liveLatency=_);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let I=we(i.vsid);typeof I=="string"&&(s.vsid=I);let M=(q=t.info.currentVideoStream$.getValue())==null?void 0:q.codec;M&&(s.videoCodec=M);let P=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.codec;P&&(s.audioCodec=P),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let V=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return V&&(s.audioLanguage=V),s},Sh=(t,e)=>ia(t,e,"mp4"),Ch=t=>!t.type,Th=t=>!!t.type,Ih=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Hc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Tt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield 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/es2015"),vP=require("@vkontakte/videoplayer-core/es2015");var kh="vk_player_prefer_traffic_saving_enabled",Eh="vk_player_preferred_volume",Ph="vk_player_prefer_volume_mute",zp="vk_player_preferred_quality",Fp="vk_player_preferred_default_quality_settings",Up="vk_player_preferred_quality_settings_by_video",Ah="vk_player_preferred_stream_language",Mh="vk_player_preferred_rate",Lh="vk_player_preferred_autoplay_next",Vh=t=>t>1?1:t<0?0:t,Wp=t=>Mi.safeStorage.set(Eh,Vh(t).toString(10)),Uc=()=>{let t=Mi.safeStorage.get(Eh);return(0,Mi.isNullable)(t)?void 0:Vh(parseFloat(t))},qp=(t,e)=>Mi.safeStorage.set(zp,JSON.stringify({videoId:t,value:e})),sd=()=>Mi.safeStorage.remove(zp),Kp=t=>{let e=Mi.safeStorage.get(zp);if((0,Mi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){sd();return}return o},Qp=(t,e)=>{e?Mi.safeStorage.set(t,"true"):Mi.safeStorage.remove(t)},Gp=t=>Mi.safeStorage.get(t)==="true",Yp=t=>Qp(Ph,t),Rh=()=>Gp(Ph),rd=t=>Qp(kh,t),jp=()=>Gp(kh),Bh=()=>Mi.safeStorage.get(Ah),Zp=t=>Mi.safeStorage.set(Ah,t),Nh=t=>Mi.safeStorage.set(Mh,JSON.stringify({rate:t})),Dh=()=>{let t=Mi.safeStorage.get(Mh);if((0,Mi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Oh=t=>Qp(Lh,t),Hh=()=>Gp(Lh),H_=()=>{let t=f=>{Mi.safeStorage.set(Fp,JSON.stringify(f))},e=()=>{try{let f=Mi.safeStorage.get(Fp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Mi.safeStorage.get(Up);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Mi.safeStorage.set(Up,JSON.stringify(f))},n=f=>{u(f);let y=f?i():null;if(y&&(y==null?void 0:y.videoId)===f)return Ut(W({},y),{appliesTo:"to-video"});y&&a();let p=e();return p?Ut(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Mi.safeStorage.remove(Up)},s=()=>{Mi.safeStorage.remove(Fp)},d=(f,y="as-default")=>{f.type==="exact_quality"?o(f):y==="as-default"?t(f):o(f)},l=f=>{let y=n(f);if(y){switch(y.type){case"traffic_saving":rd(!0);break;case"exact_quality":qp(f,y.quality)}a(),s()}},u=f=>{let y=Kp(f);if(y){o({type:"exact_quality",videoId:f,quality:y});return}jp()&&t({type:"traffic_saving",videoId:f}),rd(!1),sd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Fh,migrateSettingsToLegacyWay:Uh,savePreferredQualitySettings:zc,savePreferredDefaultQualitySettings:gP,removePreferredQualitySettingsByVideo:hP,getPreferredDefaultQualitySettings:Wc}=H_();var tv=require("@vkontakte/videoplayer-core/es2015");var F_=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function ad(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=F_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),$(t,o)}var nl=require("@vkontakte/videoplayer-shared/es2015");var U_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_volume:"\u0417\u0432\u0443\u043A",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
47
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Vt=null;function Xl(t){Vt=t}var gn=null;function Jl(t){gn=t}function Ja(t){return Tp("getContext").get(t)}function el(t,e){let i=Tp("setContext");return Ve&&It(()=>wp(e,null,!0)),i.set(t,e),e}function td(){return Tp("getAllContexts")}function O(t,e=!1,i){var o=Vt={p:Vt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Gr&&!e&&(Vt.l={s:null,u:null,r1:[],r2:Gi(!1)}),hn(()=>{o.d=!0}),Ve&&(Vt.function=i,gn=i)}function H(t){var r,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=At,o=zt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];co(a.effect),wo(a.reaction),In(a.fn)}}finally{co(i),wo(o)}}Vt=e.p,Ve&&(gn=(d=(r=e.p)==null?void 0:r.function)!=null?d:null),e.m=!0}return t||{}}function jr(){return!Gr||Vt!==null&&Vt.l===null}function Tp(t){var e;return Vt===null&&Xa(t),(e=Vt.c)!=null?e:Vt.c=new Map(j0(Vt)||void 0)}function j0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Z0=/\r/g;function Lg(t){t=t.replace(Z0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Vg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var X0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Rg(t){return X0.includes(t)}var J0=["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 e_={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 Bg(t){var e;return t=t.toLowerCase(),(e=e_[t])!=null?e:t}var jw=[...J0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var t_=["touchstart","touchmove"];function Ng(t){return t_.includes(t)}var i_=["textarea","script","style","title"];function Dg(t){return i_.includes(t)}function Ip(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Og=new Map;function Hg(t,e){var i=Og.get(t);i||(i=new Set,Og.set(t,i)),i.add(e)}function Ep(t,e){if(e){let i=document.body;t.autofocus=!0,cn(()=>{document.activeElement===i&&t.focus()})}}function id(t){var e=zt,i=At;wo(null),co(null);try{return t()}finally{wo(e),co(i)}}var kp=new Set,Dc=new Set;function na(t){if(!Xe)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Pp(t,e,i,o={}){function n(a){if(o.capture||tl.call(e,a),!a.cancelBubble)return id(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?cn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Pt(t,e,i,o,n){var a={capture:o,passive:n},r=Pp(t,e,i,a);(e===document.body||e===window||e===document)&&hn(()=>{e.removeEventListener(t,r,a)})}function ct(t){for(var e=0;e<t.length;e++)kp.add(t[e]);for(var i of Dc)i(t)}function tl(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,r=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(r=l)}if(a=n[r]||t.target,a!==e){lo(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=zt,$=At;wo(null),co(null);try{for(var p,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(Ir(b)){var[C,...T]=b;C.apply(a,[t,...T])}else b.call(a,t)}catch(M){p?_.push(M):p=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let M of _)queueMicrotask(()=>{throw M});throw p}}finally{t.__root=e,delete t.currentTarget,wo(f),co($)}}}var n_;function Fg(){n_=void 0}function il(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function To(t,e){var i=At;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Xe)return To(gt,null),gt;n===void 0&&(n=il(a?t:"<!>"+t),i||(n=hi(n)));var r=o||Kl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(r),l=r.lastChild;To(d,l)}else To(r,r);return r}}function Ce(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,r;return()=>{if(Xe)return To(gt,null),gt;if(!r){var d=il(a),l=hi(d);if(n)for(r=document.createDocumentFragment();hi(l);)r.appendChild(hi(l));else r=hi(l)}var u=r.cloneNode(!0);if(n){var f=hi(u),$=u.lastChild;To(f,$)}else To(u,u);return u}}function Zr(t=""){if(!Xe){var e=mn(t+"");return To(e,e),e}var i=gt;return i.nodeType!==3&&(i.before(i=mn()),gi(i)),To(i,i),i}function Fe(){if(Xe)return To(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=mn();return t.append(e,i),To(e,i),t}function y(t,e){if(Xe){At.nodes_end=gt,Fi();return}t!==null&&t.before(e)}var od=!0;function Oc(t){od=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 ms(t,e){return zg(t,e)}function Mp(t,e){var r;Tc(),e.intro=(r=e.intro)!=null?r:!1;let i=e.target,o=Xe,n=gt;try{for(var a=hi(i);a&&(a.nodeType!==8||a.data!==Is);)a=Bo(a);if(!a)throw ss;po(!0),gi(a),Fi();let d=zg(t,Ot(z({},e),{anchor:a}));if(gt===null||gt.nodeType!==8||gt.data!==Gs)throw ea(),ss;return po(!1),d}catch(d){if(d===ss)return e.recover===!1&&Zv(),Tc(),Ql(i),po(!1),ms(t,e);throw d}finally{po(o),gi(n),Fg()}}var ol=new Map;function zg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:r=!0}){Tc();var d=new Set,l=$=>{for(var p=0;p<$.length;p++){var _=$[p];if(!d.has(_)){d.add(_);var w=Ng(_);e.addEventListener(_,tl,{passive:w});var b=ol.get(_);b===void 0?(document.addEventListener(_,tl,{passive:w}),ol.set(_,1)):ol.set(_,b+1)}}};l(Fl(kp)),Dc.add(l);var u=void 0,f=Pg(()=>{var $=i!=null?i:e.appendChild(mn());return Yi(()=>{if(a){O({});var p=Vt;p.c=a}n&&(o.$$events=n),Xe&&To($,null),od=r,u=t($,o)||{},od=!0,Xe&&(At.nodes_end=gt),a&&H()}),()=>{var w;for(var p of d){e.removeEventListener(p,tl);var _=ol.get(p);--_===0?(document.removeEventListener(p,tl),ol.delete(p)):ol.set(p,_)}Dc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return Ap.set(u,f),u}var Ap=new WeakMap;function ra(t,e){let i=Ap.get(t);return i?(Ap.delete(t),i(e)):(Ve&&fg(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Xe&&i===0&&Fi();var n=t,a=null,r=null,d=Li,l=i>0?65536:0,u=!1;let f=(p,_=!0)=>{u=!0,$(_,p)},$=(p,_)=>{if(d===(d=p))return;let w=!1;if(Xe&&o!==-1){if(i===0){let C=n.data;C===Is?o=0:C===Qs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=Qa(),gi(n),po(!1),w=!0,o=-1)}d?(a?fs(a):_&&(a=Yi(()=>_(n))),r&&En(r,()=>{r=null})):(r?fs(r):_&&(r=Yi(()=>_(n,[i+1,o]))),a&&En(a,()=>{a=null})),w&&po(!0)};fo(()=>{u=!1,e(f),u||$(null,null)},l),Xe&&(n=gt)}function sa(t,e,i){Xe&&Fi();var o=t,n=Li,a,r=jr()?qv:Fa;fo(()=>{r(n,n=e())&&(a&&En(a),a=Yi(()=>i(o)))}),Xe&&(o=gt)}var Ms=null;function Rp(t){Ms=t}function nd(t,e){return e}function l_(t,e,i,o){for(var n=[],a=e.length,r=0;r<a;r++)Rc(e[r].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Ql(l),l.append(i),o.clear(),As(t,e[0].prev,e[a-1].next)}xp(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),As(t,f.prev,f.next)),uo(f.e,!d)}})}function wi(t,e,i,o,n,a=null){var r=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var u=t;r=Xe?gi(hi(u)):u.appendChild(mn())}Xe&&Fi();var f=null,$=!1,p=Pr(()=>{var _=i();return Ir(_)?_:_==null?[]:Fl(_)});fo(()=>{var _=s(p),w=_.length;if($&&w===0)return;$=w===0;let b=!1;if(Xe){var C=r.data===Qs;C!==(w===0)&&(r=Qa(),gi(r),po(!1),b=!0)}if(Xe){for(var T=null,I,M=0;M<w;M++){if(gt.nodeType===8&&gt.data===Gs){r=gt,b=!0,po(!1);break}var P=_[M],E=o(P,M);I=Kg(gt,d,T,null,P,E,M,n,e,i),d.items.set(E,I),T=I}w>0&&gi(Qa())}Xe||d_(_,d,r,n,e,o,i),a!==null&&(w===0?f?fs(f):f=Yi(()=>a(r)):f!==null&&En(f,()=>{f=null})),b&&po(!0),s(p)}),Xe&&(r=gt)}function d_(t,e,i,o,n,a,r){var de,Le,Ne,he;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,$=e.first,p=$,_,w=null,b,C=[],T=[],I,M,P,E;if(d)for(E=0;E<u;E+=1)I=t[E],M=a(I,E),P=f.get(M),P!==void 0&&((de=P.a)==null||de.measure(),(b!=null?b:b=new Set).add(P));for(E=0;E<u;E+=1){if(I=t[E],M=a(I,E),P=f.get(M),P===void 0){var R=p?p.e.nodes_start:i;w=Kg(R,e,w,w===null?e.first:w.next,I,M,E,o,n,r),f.set(M,w),C=[],T=[],p=w.next;continue}if(l&&c_(P,I,E,n),(P.e.f&8192)!==0&&(fs(P.e),d&&((Le=P.a)==null||Le.unfix(),(b!=null?b:b=new Set).delete(P))),P!==p){if(_!==void 0&&_.has(P)){if(C.length<T.length){var W=T[0],K;w=W.prev;var U=C[0],j=C[C.length-1];for(K=0;K<C.length;K+=1)Wg(C[K],W,i);for(K=0;K<T.length;K+=1)_.delete(T[K]);As(e,U.prev,j.next),As(e,w,U),As(e,j,W),p=W,w=j,E-=1,C=[],T=[]}else _.delete(P),Wg(P,p,i),As(e,P.prev,P.next),As(e,P,w===null?e.first:w.next),As(e,w,P),w=P;continue}for(C=[],T=[];p!==null&&p.k!==M;)(p.e.f&8192)===0&&(_!=null?_:_=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;P=p}C.push(P),w=P,p=P.next}if(p!==null||_!==void 0){for(var ae=_===void 0?[]:Fl(_);p!==null;)(p.e.f&8192)===0&&ae.push(p),p=p.next;var G=ae.length;if(G>0){var ce=(n&4)!==0&&u===0?i:null;if(d){for(E=0;E<G;E+=1)(Ne=ae[E].a)==null||Ne.measure();for(E=0;E<G;E+=1)(he=ae[E].a)==null||he.fix()}l_(e,ae,ce,f)}}d&&cn(()=>{var ue;if(b!==void 0)for(P of b)(ue=P.a)==null||ue.apply()}),At.first=e.first&&e.first.e,At.last=w&&w.e}function c_(t,e,i,o){(o&1)!==0&&Wa(t.v,e),(o&2)!==0?Wa(t.i,i):t.i=i}function Kg(t,e,i,o,n,a,r,d,l,u){var f=Ms,$=(l&1)!==0,p=(l&16)===0,_=$?p?us(n):Gi(n):n,w=(l&2)===0?r:Gi(r);Ve&&$&&(_.debug=()=>{var C=typeof w=="number"?r:w.v;u()[C]});var b={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};Ms=b;try{return b.e=Yi(()=>d(t,_,w,u),Xe),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{Ms=f}}function Wg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var r=Bo(a);n.before(a),a=r}}function As(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 u_(t,e,i){var a,r;if(!e||e===Lg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(r=gn)!=null&&r[vi]&&(o=`in ${gn[vi]}`),pg(Ip(o))}function rd(t,e,i,o,n){var a=t,r="",d;fo(()=>{var l;if(r===(r=(l=e())!=null?l:"")){Xe&&Fi();return}d!==void 0&&(uo(d),d=void 0),r!==""&&(d=Yi(()=>{if(Xe){for(var u=gt.data,f=Fi(),$=f;f!==null&&(f.nodeType!==8||f.data!=="");)$=f,f=Bo(f);if(f===null)throw ea(),ss;Ve&&!n&&u_(f.parentNode,u,r),To(gt,$),a=gi(f);return}var p=r+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var _=il(p);if((i||o)&&(_=hi(_)),To(hi(_),_.lastChild),i||o)for(;hi(_);)a.before(hi(_));else a.before(_)}))})}function $e(t,e,...i){var o=t,n=ne,a;fo(()=>{n!==(n=e())&&(a&&(uo(a),a=null),Ve&&n==null&&Xv(),a=Yi(()=>n(o,...i)))},65536),Xe&&(o=gt)}function Si(t,e,i){Xe&&Fi();var o=t,n,a;fo(()=>{n!==(n=e())&&(a&&(En(a),a=null),n&&(a=Yi(()=>i(o,n))))},65536),Xe&&(o=gt)}function aa(t,e,i,o,n,a){var w;let r=Xe;Xe&&Fi();var d=Ve&&a&&((w=Vt)==null?void 0:w.function[vi]),l,u,f=null;Xe&&gt.nodeType===1&&(f=gt,Fi());var $=Xe?gt:t,p,_=Ms;fo(()=>{let b=e()||null;var C=n?n():i||b==="svg"?ep:null;if(b!==l){var T=Ms;Rp(_),p&&(b===null?En(p,()=>{p=null,u=null}):b===u?fs(p):(uo(p),Oc(!1))),b&&b!==u&&(p=Yi(()=>{if(f=Xe?f:C?document.createElementNS(C,b):document.createElement(b),Ve&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),To(f,f),o){Xe&&Dg(b)&&f.append(document.createComment(""));var I=Xe?hi(f):f.appendChild(mn());Xe&&(I===null?po(!1):gi(I)),o(f,I)}At.nodes_end=f,$.before(f)})),l=b,l&&(u=l),Oc(!0),Rp(T)}},65536),r&&(po(!0),gi($))}var Np;function Qg(t){return Np=t.target,new Bp(t)}var vs,vr,Bp=class{constructor(e){Ts(this,vs);Ts(this,vr);var a,r;var i=new Map,o=(d,l)=>{var u=us(l);return i.set(d,u),u};let n=new Proxy(Ot(z({},e.props||{}),{$$events:{}}),{get(d,l){var u;return s((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===Hl?!0:(s((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return D((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});Ha(this,vr,(e.hydrate?Mp:ms)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((r=e==null?void 0:e.props)!=null&&r.$$host)||e.sync===!1)&&ja(),Ha(this,vs,n.$$events);for(let d of Object.keys(Mi(this,vr)))d==="$set"||d==="$destroy"||d==="$on"||lo(this,d,{get(){return Mi(this,vr)[d]},set(l){Mi(this,vr)[d]=l},enumerable:!0});Mi(this,vr).$set=d=>{Object.assign(n,d)},Mi(this,vr).$destroy=()=>{ra(Mi(this,vr))}}$set(e){Mi(this,vr).$set(e)}$on(e,i){Mi(this,vs)[e]=Mi(this,vs)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,vs)[e].push(o),()=>{Mi(this,vs)[e]=Mi(this,vs)[e].filter(n=>n!==o)}}$destroy(){Mi(this,vr).$destroy()}};vs=new WeakMap,vr=new WeakMap;function q(t,e){cn(()=>{var n,a,r;var i=t.getRootNode(),o=i.host?i:(r=(n=i.head)!=null?n:i.ownerDocument.head)!=null?r:(a=Np)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ve&&Hg(e.hash,d)}})}function Gg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Gg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Yg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Gg(t))&&(o&&(o+=" "),o+=e);return o}function sd(t){return typeof t=="object"?Yg(t):t!=null?t:""}var jg=[...`
48
+ \r\f\xA0\v\uFEFF`];function Xg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,r=0;(r=o.indexOf(n,r))>=0;){var d=r+a;(r===0||jg.includes(o[r-1]))&&(d===o.length||jg.includes(o[d]))?o=(r===0?"":o.substring(0,r))+o.substring(d+1):r=d}}return o===""?null:o}function Zg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Dp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Jg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,r=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Dp)),n&&l.push(...Object.keys(n).map(Dp));var u=0,f=-1;let b=t.length;for(var $=0;$<b;$++){var p=t[$];if(d?p==="/"&&t[$-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[$+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?r++:p===")"&&r--,!d&&a===!1&&r===0){if(p===":"&&f===-1)f=$;else if(p===";"||$===b-1){if(f!==-1){var _=Dp(t.substring(u,f).trim());if(!l.includes(_)){p!==";"&&$++;var w=t.substring(u,$).trim();i+=" "+w+";"}}u=$+1,f=-1}}}}return o&&(i+=Zg(o)),n&&(i+=Zg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var r=t.__className;if(Xe||r!==i){var d=Xg(i,o,a);(!Xe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function Op(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function lt(t,e,i,o){var n=t.__style;if(Xe||n!==e){var a=Jg(e,o);(!Xe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Op(t,i==null?void 0:i[0],o[0]),Op(t,i==null?void 0:i[1],o[1],"important")):Op(t,i,o));return o}var nl=Symbol("class"),rl=Symbol("style"),ih=Symbol("is custom element"),oh=Symbol("is html");function nh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=rh(t);if(Xe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||__(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Hv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&sh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Pe(t,e,i,o,n=!1){var P;var a=rh(t),r=a[ih],d=!a[oh];let l=Xe&&r;l&&po(!1);var u=e||{},f=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=sd(i.class):(o||i[nl])&&(i.class=null),i[rl]&&((P=i.style)!=null||(i.style=null));var p=sh(t);for(let E in i){let R=i[E];if(f&&E==="value"&&R==null){t.value=t.__value="",u[E]=R;continue}if(E==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,_,R,o,e==null?void 0:e[nl],i[nl]),u[E]=R,u[nl]=i[nl];continue}if(E==="style"){lt(t,R,e==null?void 0:e[rl],i[rl]),u[E]=R,u[rl]=i[rl];continue}var w=u[E];if(R!==w){u[E]=R;var b=E[0]+E[1];if(b!=="$$")if(b==="on"){let W={},K="$$"+E,U=E.slice(2);var C=Rg(U);if(Vg(U)&&(U=U.slice(0,-7),W.capture=!0),!C&&w){if(R!=null)continue;t.removeEventListener(U,u[K],W),u[K]=null}if(R!=null)if(C)t[`__${U}`]=R,ct([U]);else{let j=function(ae){u[E].call(this,ae)};var M=j;u[K]=Pp(U,t,j,W)}else C&&(t[`__${U}`]=void 0)}else if(E==="style")De(t,E,R);else if(E==="autofocus")Ep(t,!!R);else if(!r&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)nh(t,R);else{var T=E;d||(T=Bg(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!r&&!I)if(a[E]=null,T==="value"||T==="checked"){let W=t,K=e===void 0;if(T==="value"){let U=W.defaultValue;W.removeAttribute(T),W.defaultValue=U,W.value=W.__value=K?U:null}else{let U=W.defaultChecked;W.removeAttribute(T),W.defaultChecked=U,W.checked=K?U:!1}}else t.removeAttribute(E);else I||p.includes(T)&&(r||typeof R!="string")?t[T]=R:typeof R!="function"&&De(t,T,R,n)}}}return l&&po(!0),u}function rh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ih]:t.nodeName.includes("-"),[oh]:t.namespaceURI===Bv}}var eh=new Map;function sh(t){var e=eh.get(t.nodeName);if(e)return e;eh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=$c(o);for(var a in i)i[a].set&&e.push(a);o=ls(o)}return e}function __(t,e,i){var o;Ve&&(e==="srcset"&&b_(t,i)||Hp((o=t.getAttribute(e))!=null?o:"",i)||ug(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Hp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function th(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function b_(t,e){var i=th(t.srcset),o=th(e);return o.length===i.length&&o.every(([n,a],r)=>a===i[r][1]&&(Hp(i[r][0],n)||Hp(n,i[r][0])))}var $_=bc?()=>performance.now():()=>Date.now(),Mr={tick:t=>(bc?requestAnimationFrame:ne)(t),now:()=>$_(),tasks:new Set};function ah(){let t=Mr.now();Mr.tasks.forEach(e=>{e.c(t)||(Mr.tasks.delete(e),e.f())}),Mr.tasks.size!==0&&Mr.tick(ah)}function lh(t){let e;return Mr.tasks.size===0&&Mr.tick(ah),{promise:new Promise(i=>{Mr.tasks.add(e={c:t,f:i})}),abort(){Mr.tasks.delete(e)}}}function Hc(t,e){id(()=>{t.dispatchEvent(new CustomEvent(e))})}function S_(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 dh(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let r=S_(n.trim());e[r]=a.trim()}return e}var C_=t=>t;function Up(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,r=n&&a,d=(t&4)!==0,l=r?"both":n?"in":"out",u,f=e.inert,$=e.style.overflow,p,_;function w(){var R;var P=zt,E=At;wo(null),co(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{wo(P),co(E)}}var b={is_global:d,in(){var P;if(e.inert=f,!n){_==null||_.abort(),(P=_==null?void 0:_.reset)==null||P.call(_);return}a||p==null||p.abort(),Hc(e,"introstart"),p=Fp(e,w(),_,1,()=>{Hc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=$})},out(P){if(!a){P==null||P(),u=void 0;return}e.inert=!0,Hc(e,"outrostart"),_=Fp(e,w(),p,0,()=>{Hc(e,"outroend"),P==null||P()})},stop:()=>{p==null||p.abort(),_==null||_.abort()}},C=At;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&od){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&In(()=>{It(()=>b.in())})}}function Fp(t,e,i,o,n){var a=o===1;if(Es(e)){var r,d=!1;return cn(()=>{if(!d){var C=e({direction:a?"in":"out"});r=Fp(t,C,i,o,n)}}),{abort:()=>{d=!0,r==null||r.abort()},deactivate:()=>r.deactivate(),reset:()=>r.reset(),t:()=>r.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:f,easing:$=C_}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var _=dh(u(0,1));p.push(_,_)}var w=()=>1-o,b=t.animate(p,{duration:l});return b.onfinish=()=>{var U;var C=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(u)for(var E=Math.ceil(I/16.666666666666668),R=0;R<=E;R+=1){var W=C+T*$(R/E),K=dh(u(W,1-W));M.push(K),P||(P=K.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var j=b.currentTime;return C+T*$(j/I)},f&&lh(()=>{if(b.playState!=="running")return!1;var j=w();return f(j,1-j),!0})}b=t.animate(M,{duration:I,fill:"forwards"}),b.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ls,sl,ad,Uc,ch,zc=class zc{constructor(e){Ts(this,Uc);Ts(this,Ls,new WeakMap);Ts(this,sl);Ts(this,ad);Ha(this,ad,e)}observe(e,i){var o=Mi(this,Ls).get(e)||new Set;return o.add(i),Mi(this,Ls).set(e,o),Vv(this,Uc,ch).call(this).observe(e,Mi(this,ad)),()=>{var n=Mi(this,Ls).get(e);n.delete(i),n.size===0&&(Mi(this,Ls).delete(e),Mi(this,sl).unobserve(e))}}};Ls=new WeakMap,sl=new WeakMap,ad=new WeakMap,Uc=new WeakSet,ch=function(){var e;return(e=Mi(this,sl))!=null?e:Ha(this,sl,new ResizeObserver(i=>{for(var o of i){zc.entries.set(o.target,o);for(var n of Mi(this,Ls).get(o.target)||[])n(o)}}))},Gn(zc,"entries",new WeakMap);var zp=zc;var E_=new zp({box:"border-box"});function Xr(t,e,i){var o=E_.observe(t,()=>i(t[e]));In(()=>(It(()=>i(t[e])),o))}function uh(t,e){return t===e||(t==null?void 0:t[Xo])===e}function ot(t={},e,i,o){return In(()=>{var n,a;return Co(()=>{n=a,a=(o==null?void 0:o())||[],It(()=>{t!==i(...a)&&(e(t,...a),n&&uh(i(...n),t)&&e(null,...n))})}),()=>{cn(()=>{a&&uh(i(...a),t)&&e(null,...a)})}}),t}function Lr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>Mc(e.s);if(t){let n=0,a={},r=v(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>s(r)}i.b.length&&Za(()=>{ph(e,o),ks(i.b)}),ze(()=>{let n=It(()=>i.m.map(zv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&ze(()=>{ph(e,o),ks(i.a)})}function ph(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}if(Ve){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;tg(e)},set:o=>{i=o}})}};P_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var P_;function Ht(t){Vt===null&&Xa("onMount"),Gr&&Vt.l!==null?k_(Vt).m.push(t):ze(()=>{let e=It(t);if(typeof e=="function")return e})}function kn(t){Vt===null&&Xa("onDestroy"),Ht(()=>()=>It(t))}function k_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function ld(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=It(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var al=[];function gr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=ne){let i=null,o=new Set;function n(d){if(Fa(t,d)&&(t=d,i)){let l=!al.length;for(let u of o)u[1](),al.push(u,t);if(l){for(let u=0;u<al.length;u+=2)al[u][0](al[u+1]);al.length=0}}}function a(d){n(d(t))}function r(d,l=ne){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ne),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:r}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return gr(i,(r,d)=>{let l=!1,u=[],f=0,$=ne,p=()=>{if(f)return;$();let w=e(o?u[0]:u,r,d);a?r(w):$=typeof w=="function"?w:ne},_=n.map((w,b)=>ld(w,C=>{u[b]=C,f&=~(1<<b),l&&p()},()=>{f|=1<<b}));return l=!0,p(),function(){ks(_),$(),l=!1}})}function we(t){let e;return ld(t,i=>e=i)(),e}var Wc=!1,Wp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:us(void 0),unsubscribe:ne};if(o.store!==t&&!(Wp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=ld(t,r=>{n?o.source.v=r:D(o.source,r)}),n=!1}return t&&Wp in i?we(t):s(o.source)}function Oe(){let t={};function e(){hn(()=>{for(var i in t)t[i].unsubscribe();lo(t,Wp,{enumerable:!1,value:!0})})}return[t,e]}function qp(t){var e=Wc;try{return Wc=!1,[t(),Wc]}finally{Wc=e}}var N_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ve&&eg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Re(t,e,i){return new Proxy(Ve?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},N_)}var D_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Es(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];Es(n)&&(n=n());let a=Yn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Es(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Yn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Xo||e===Hl)return!1;for(let i of t.props)if(Es(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Es(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function gs(...t){return new Proxy({props:t},D_)}function fh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var W,K;var n=(i&1)!==0,a=!Gr||(i&2)!==0,r=(i&8)!==0,d=(i&16)!==0,l=!1,u;r?[u,l]=qp(()=>t[e]):u=t[e];var f=Xo in t||Hl in t,$=r&&((K=(W=Yn(t,e))==null?void 0:W.set)!=null?K:f&&e in t&&(U=>t[e]=U))||void 0,p=o,_=!0,w=!1,b=()=>(w=!0,_&&(_=!1,d?p=It(o):p=o),p);u===void 0&&o!==void 0&&($&&a&&Jv(e),u=b(),$&&$(u));var C;if(a)C=()=>{var U=t[e];return U===void 0?b():(_=!0,w=!1,U)};else{var T=(n?v:Pr)(()=>t[e]);T.f|=131072,C=()=>{var U=s(T);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return C;if($){var I=t.$$legacy;return function(U,j){return arguments.length>0?((!a||!j||I||l)&&$(j?C():U),U):C()}}var M=!1,P=!1,E=us(u),R=v(()=>{var U=C(),j=s(E);return M?(M=!1,P=!0,j):(P=!1,E.v=U)});return r&&s(R),n||(R.equals=Ua),function(U,j){if(Wl!==null&&(M=P,C(),s(E)),arguments.length>0){let ae=j?s(R):a&&r?ge(U):U;if(!R.equals(ae)){if(M=!0,D(E,ae),w&&p!==void 0&&(p=ae),fh(R))return U;It(()=>s(R))}return U}return fh(R)?R.v:s(R)}}var O_;typeof HTMLElement=="function"&&(O_=class extends HTMLElement{constructor(e,i,o){super();Gn(this,"$$ctor");Gn(this,"$$s");Gn(this,"$$c");Gn(this,"$$cn",!1);Gn(this,"$$d",{});Gn(this,"$$r",!1);Gn(this,"$$p_d",{});Gn(this,"$$l",{});Gn(this,"$$l_u",new Map);Gn(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))}}connectedCallback(){return Tt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return r=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),y(r,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=H_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let r=this.$$g_p(a.name);r in this.$$d||(this.$$d[r]=Kp(r,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Qg({component:this.$$ctor,target:this.shadowRoot||this,props:Ot(z({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Vc(()=>{Co(()=>{var a;this.$$r=!0;for(let r of tp(this.$$c)){if(!((a=this.$$p_d[r])!=null&&a.reflect))continue;this.$$d[r]=this.$$c[r];let d=Kp(r,this.$$d[r],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,d)}this.$$r=!1})});for(let a in this.$$l)for(let r of this.$$l[a]){let d=this.$$c.$on(a,r);this.$$l_u.set(r,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Kp(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 tp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Kp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function H_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var mh="5";var vh,gh,hh;typeof window!="undefined"&&((hh=(gh=(vh=window.__svelte)!=null?vh:window.__svelte={}).v)!=null?hh:gh.v=new Set).add(mh);var Tl=require("@vkontakte/videoplayer-core/es2015"),LY=require("@vkontakte/videoplayer-core/es2015"),Na=require("@vkontakte/videoplayer-shared/es2015"),p0=require("@vkontakte/videoplayer-statistics/es2015");var la=require("@vkontakte/videoplayer-shared/es2015");var U_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:la.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:la.VideoQuality.Q_480P,highQualityLimit:la.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null}},_h=t=>(0,la.fillWithDefault)(t,U_),bh=t=>el("ui-config",t),qt=()=>Ja("ui-config");var dd="vk_player_debug_panel_opened";var $h="videoplayer",yh="videoplayer";var Jr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},xh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),wh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Sh=new Set(["ShiftRight","ShiftLeft"]);var Ch=["TIMELINE"],cd=[...Ch,"GRAPH_BUTTON"],Qp=[...Ch,"PLAY_BUTTON"],ud=[...cd,"PLAY_BUTTON"];var Vr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Vr||{}),ca={xs:0,s:1,m:2,l:3,xl:4};var pd=require("@vkontakte/videoplayer-shared/es2015"),Th=require("@vkontakte/videoplayer-core/es2015"),Ih=require("@vkontakte/videoplayer-statistics/es2015");var qc="prod",ua="1.1.65-dev.d779f3ab.0";var pa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Eh=Symbol("storeContext"),kh=Symbol("microStoresContext"),Ph=(t,e)=>{el(Eh,t),el(kh,e),qc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Ja(Eh);return(0,pd.assertNonNullable)(t,"Store context is empty!"),t},mo=()=>{let t=Ja(kh);return(0,pd.assertNonNullable)(t,"MicroStores context is empty!"),t},ei=(t,e)=>Qc(t,t.getValue(),e),Qc=(t,e,i)=>gr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Ah=(t,e,i,o)=>{var R,W,K,U,j,ae,G,ce;let n=t.info,{width:a,height:r}=we(i.ui.playerSize),d=(W=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?W:0,l=(U=(K=n.rttEstimation$.getValue())==null?void 0:K.toFixed(0))!=null?U:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ua} (core: ${Th.VERSION}, stat: ${Ih.VERSION}, shared: ${pd.VERSION})`,$=we(i.state.errorLog$),p=$.length?`
49
+ `+$.map((de,Le)=>{var Me;let Ne=`${Le}) Type: ${de.id}
50
+ `,he=`Message: ${de.message} (${de.thrown})
51
+ `,ue=`Trace: ${(Me=de.thrown)==null?void 0:Me.stack}
52
+ `;return Ne+he+ue}).join(`
53
+ `):void 0,_=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(j=w==null?void 0:w.codec)!=null?j:""}`+(w!=null&&w.hdr?" (HDR)":"")),b&&C.push(`Audio: ${(ae=b==null?void 0:b.codec)!=null?ae:""}`+(b!=null&&b.language?` (${b.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let de=n.availableQualitiesFps$.getValue()[T];I=de?`${de}fps`:""}let M=(ce=(G=n.currentBuffer$.getValue())==null?void 0:G.end)!=null?ce:0,P=Math.max(M-we(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:we(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${u} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:_,Position:`${we(i.state.positionExact$)}s`,Buffer:`${P}s`,State:`${we(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${r}`,URL:window.location.href,Errors:p};return Object.entries(E).filter(([de,Le])=>Le!==void 0).map(([de,Le])=>`${de}: ${Le}`).join(`
54
+ `)},Mh=(t,e,i)=>{var W,K,U,j;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),r={version:ua,viewport:`${n}x${a}`,volume:Math.round(we(i.state.volume$)*100)};r.id=i.videoId,o.currentFormat$.getValue()&&(r.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(r.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),$=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&($&&p?r.buffer=f.end-p:r.buffer=Math.max(f.end-we(i.state.positionExact$),0)),r.position=we(i.state.positionExact$);let _=o.throughputEstimation$.getValue();_&&(r.speed=_);let w=o.videoBitrate$.getValue();w&&(r.bitrate=w);let b=o.liveLatency$.getValue();b&&(r.liveLatency=b);let C=o.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(r.currentAudioSegmentLength=T);let I=we(i.vsid);typeof I=="string"&&(r.vsid=I);let M=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;M&&(r.videoCodec=M);let P=(K=t.info.currentAudioStream$.getValue())==null?void 0:K.codec;P&&(r.audioCodec=P),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(r.hdr=!0);let R=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.language;return R&&(r.audioLanguage=R),r},Lh=(t,e)=>pa(t,e,"mp4"),Vh=t=>!t.type,Rh=t=>!!t.type,Bh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Kc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Tt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield 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/es2015"),yP=require("@vkontakte/videoplayer-core/es2015");var Nh="vk_player_prefer_traffic_saving_enabled",Dh="vk_player_preferred_volume",Oh="vk_player_prefer_volume_mute",jp="vk_player_preferred_quality",Gp="vk_player_preferred_default_quality_settings",Yp="vk_player_preferred_quality_settings_by_video",Hh="vk_player_preferred_stream_language",Fh="vk_player_preferred_rate",Uh="vk_player_preferred_autoplay_next",zh=t=>t>1?1:t<0?0:t,Zp=t=>Vi.safeStorage.set(Dh,zh(t).toString(10)),Gc=()=>{let t=Vi.safeStorage.get(Dh);return(0,Vi.isNullable)(t)?void 0:zh(parseFloat(t))},Xp=(t,e)=>Vi.safeStorage.set(jp,JSON.stringify({videoId:t,value:e})),md=()=>Vi.safeStorage.remove(jp),Jp=t=>{let e=Vi.safeStorage.get(jp);if((0,Vi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){md();return}return o},ef=(t,e)=>{e?Vi.safeStorage.set(t,"true"):Vi.safeStorage.remove(t)},tf=t=>Vi.safeStorage.get(t)==="true",of=t=>ef(Oh,t),Wh=()=>tf(Oh),fd=t=>ef(Nh,t),nf=()=>tf(Nh),qh=()=>Vi.safeStorage.get(Hh),rf=t=>Vi.safeStorage.set(Hh,t),Kh=t=>Vi.safeStorage.set(Fh,JSON.stringify({rate:t})),Qh=()=>{let t=Vi.safeStorage.get(Fh);if((0,Vi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Gh=t=>ef(Uh,t),Yh=()=>tf(Uh),z_=()=>{let t=f=>{Vi.safeStorage.set(Gp,JSON.stringify(f))},e=()=>{try{let f=Vi.safeStorage.get(Gp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Vi.safeStorage.get(Yp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Vi.safeStorage.set(Yp,JSON.stringify(f))},n=f=>{u(f);let $=f?i():null;if($&&($==null?void 0:$.videoId)===f)return Ot(z({},$),{appliesTo:"to-video"});$&&a();let p=e();return p?Ot(z({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Vi.safeStorage.remove(Yp)},r=()=>{Vi.safeStorage.remove(Gp)},d=(f,$="as-default")=>{f.type==="exact_quality"?o(f):$==="as-default"?t(f):o(f)},l=f=>{let $=n(f);if($){switch($.type){case"traffic_saving":fd(!0);break;case"exact_quality":Xp(f,$.quality)}a(),r()}},u=f=>{let $=Jp(f);if($){o({type:"exact_quality",videoId:f,quality:$});return}nf()&&t({type:"traffic_saving",videoId:f}),fd(!1),md()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:jh,migrateSettingsToLegacyWay:Zh,savePreferredQualitySettings:Yc,savePreferredDefaultQualitySettings:xP,removePreferredQualitySettingsByVideo:wP,getPreferredDefaultQualitySettings:jc}=z_();var cv=require("@vkontakte/videoplayer-core/es2015");var W_=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 vd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=W_();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),y(t,o)}var ll=require("@vkontakte/videoplayer-shared/es2015");var q_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_volume:"\u0417\u0432\u0443\u043A",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
55
55
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
56
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},zh=U_;var z_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume_on:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
56
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Xh=q_;var K_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
57
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
58
- Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.InterfaceLanguage.EN,Wh);rs.set(nl.InterfaceLanguage.RU,zh);var qh=new Map,Xp=({language:t,pack:e,fallback:i})=>{if(rs.has(t)){let o=rs.get(t);rs.set(t,W(W({},o),e))}else rs.set(t,e);qh.set(t,i)},Jp=t=>rs.has(t),ef=(t,e,i,o)=>{var s;let n=rs.get(t),a=n==null?void 0:n[e];if((0,nl.isNullable)(a)){let d=(s=qh.get(t))!=null?s:o,l=d?rs.get(d):void 0;a=l==null?void 0:l[e]}return(0,nl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},z=(t,e)=>{let{interfaceLanguage$:i}=Te(),o=we(i),n=Yt();return ef(o,t,e,n.defaultLanguage)};var UP=require("@vkontakte/videoplayer-core/es2015");var rl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(rl||(rl={}));var W_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,q_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,K_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qc="?",Q_="X-Sentry-Auth",G_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Y_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
59
- `),o,n;for(let a=0;a<i.length;++a){if(o=W_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||qc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=K_.exec(i[a]))n={filename:o[2],function:o[1]||qc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=q_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||qc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=qc),e.push(n)}return e.length?{value:Kh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Kh(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function j_(t){try{let e=Y_(t);if(e)return e}catch(e){}return{value:Kh(t),type:t&&t.name,stacktrace:{frames:[]}}}function Z_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Kc=class{constructor(e){if(e&&e.dsn){let i=G_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Ut(W({},this.getRequestBlank()),{exception:{values:[j_(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(Q_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Z_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Qh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function X_(){return window}var Qc=class t extends Kc{constructor(e,i=X_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},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",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Ut(W({},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:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ut(W({},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=>Qh(i,o))):!1}getRequestBlank(){return W(Ut(W({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(W({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=>Qh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return Ut(W({},i),{[o]:a||d?[...a||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var oa=require("@vkontakte/videoplayer-shared/es2015");var Gc=null,na=class{constructor(e,i,o={}){!Gc&&e.dsn&&(this.sentryClient=new Qc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new oa.Subscription,this.options=e,this.context=o,Gc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Gc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:y}=s,{errorType:p,category:b}=i;if((0,oa.isNonNullable)(b)&&y.includes(b)||(0,oa.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,oa.isNonNullable)(b)&&u.includes(b)||(0,oa.isNonNullable)(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(W(W({},a),o));try{p&&n.captureMessage(p,i.fatal?rl.fatal:rl.error),n.report(e)}catch(_){console.error(_)}}}static getInstance(){return Gc}};var Ur=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Ur||{});var Yc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},jc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Gh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},ld=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},$s=()=>!!ld(),Zc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Xc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Yh=t=>{let e=window.screen;return(n=>Tt(void 0,null,function*(){return 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 tf=require("@vkontakte/videoplayer-core/es2015"),jh=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")},{description:z("hotkey_map_item_next_video_description"),value:z("hotkey_map_item_next_video_value")},{description:z("hotkey_map_item_prev_video_description"),value:z("hotkey_map_item_prev_video_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:tf.clientChecker.device.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:tf.clientChecker.device.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});var sl=require("@vkontakte/videoplayer-shared/es2015");var ra=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,sl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new sl.ValueSubject(!1),isEnabled$:new sl.ValueSubject(!1),type:0};this.info.isEnabled$=new sl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Tt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return Tt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return Tt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=W({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return Tt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function sa(t){return t instanceof ra}var al=require("@vkontakte/videoplayer-shared/es2015");Zv();function rf(t,e){F(e,!1);let i=Te();Gt(()=>{i.getAdmanWrapper().startPostroll()}),Sr(),U()}var Zh=require("@vkontakte/videoplayer-shared/es2015");var J_=(t,e)=>{t.stopPropagation(),e()()},eb=L('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),tb=L("<div><!></div>"),ib={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 sf(t,e){F(e,!0),K(t,ib);let[i,o]=Oe(),n=()=>S(u,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,Zh.noop),u=Te().ui.isMobile,f=v(()=>a()>0&&a()>=s());var y=tb();let p;var b=h(y);{var w=C=>{var T=eb();T.__click=[J_,d];var I=h(T);ye(),g(T),E(M=>ve(I,`${M!=null?M:""} `),[()=>z("skip_ads_now")]),$(C,T)},_=C=>{var T=Or();E(I=>ve(T,I),[()=>z("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),$(C,T)};R(b,C=>{r(f)?C(w):C(_,!1)})}g(y),E(C=>p=ee(y,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,y),U(),o()}lt(["click"]);var ob=L('<button class="svelte-1wy3dql"> </button>'),nb={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 af(t,e){F(e,!1),K(t,nb),Sr();var i=ob(),o=h(i,!0);g(i),E(n=>ve(o,n),[()=>z("visit_advertiser")],yr),$(t,i),U()}var rb=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),sb=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),ab={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
58
+ Try switching the\xA0quality to\xA0Auto.`},Jh=K_;var hs=new Map;hs.set(ll.InterfaceLanguage.EN,Jh);hs.set(ll.InterfaceLanguage.RU,Xh);var e1=new Map,sf=({language:t,pack:e,fallback:i})=>{if(hs.has(t)){let o=hs.get(t);hs.set(t,z(z({},o),e))}else hs.set(t,e);e1.set(t,i)},af=t=>hs.has(t),lf=(t,e,i,o)=>{var r;let n=hs.get(t),a=n==null?void 0:n[e];if((0,ll.isNullable)(a)){let d=(r=e1.get(t))!=null?r:o,l=d?hs.get(d):void 0;a=l==null?void 0:l[e]}return(0,ll.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},F=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=we(i),n=qt();return lf(o,t,e,n.defaultLanguage)};var GP=require("@vkontakte/videoplayer-core/es2015");var dl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(dl||(dl={}));var Q_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,G_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Y_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Zc="?",j_="X-Sentry-Auth",Z_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function X_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
59
+ `),o,n;for(let a=0;a<i.length;++a){if(o=Q_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Zc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Y_.exec(i[a]))n={filename:o[2],function:o[1]||Zc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=G_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Zc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Zc),e.push(n)}return e.length?{value:t1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function t1(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function J_(t){try{let e=X_(t);if(e)return e}catch(e){}return{value:t1(t),type:t&&t.name,stacktrace:{frames:[]}}}function eb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Xc=class{constructor(e){if(e&&e.dsn){let i=Z_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Ot(z({},this.getRequestBlank()),{exception:{values:[J_(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(j_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:eb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function i1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function tb(){return window}var Jc=class t extends Xc{constructor(e,i=tb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:r=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=r,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",z({},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",z({},e)),this}setUser(e){return this.setKeyState("user",z({},e)),this}clone(){let e=new t(Ot(z({},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:[z({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ot(z({},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=>i1(i,o))):!1}getRequestBlank(){return z(Ot(z({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(z({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=>i1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,r=e[o],d=Array.isArray(r)?r:null;return Ot(z({},i),{[o]:a||d?[...a||[],...d||[]]:z(z({},typeof n!="string"?n:{}),typeof r!="string"?r:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var fa=require("@vkontakte/videoplayer-shared/es2015");var eu=null,ma=class{constructor(e,i,o={}){!eu&&e.dsn&&(this.sentryClient=new Jc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new fa.Subscription,this.options=e,this.context=o,eu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),eu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:r}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:$}=r,{errorType:p,category:_}=i;if((0,fa.isNonNullable)(_)&&$.includes(_)||(0,fa.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,fa.isNonNullable)(_)&&u.includes(_)||(0,fa.isNonNullable)(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(z({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(z(z({},a),o));try{p&&n.captureMessage(p,i.fatal?dl.fatal:dl.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return eu}};var es=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(es||{});var tu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},iu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),o1=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},gd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Vs=()=>!!gd(),ou=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},nu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},n1=t=>{let e=window.screen;return(n=>Tt(void 0,null,function*(){return 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 df=require("@vkontakte/videoplayer-core/es2015"),r1=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:df.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:df.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var cl=require("@vkontakte/videoplayer-shared/es2015");var va=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,cl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new cl.ValueSubject(!1),isEnabled$:new cl.ValueSubject(!1),type:0};this.info.isEnabled$=new cl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Tt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return Tt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return Tt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=z({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return Tt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(r=this.playerDummyElement)==null||r.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ga(t){return t instanceof va}var ul=require("@vkontakte/videoplayer-shared/es2015");sg();function pf(t,e){O(e,!1);let i=Ee();Ht(()=>{i.getAdmanWrapper().startPostroll()}),Lr(),H()}var s1=require("@vkontakte/videoplayer-shared/es2015");var ib=(t,e)=>{t.stopPropagation(),e()()},ob=L('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),nb=L("<div><!></div>"),rb={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){O(e,!0),q(t,rb);let[i,o]=Oe(),n=()=>S(u,"$isMobile",i),a=m(e,"position",3,0),r=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,s1.noop),u=Ee().ui.isMobile,f=v(()=>a()>0&&a()>=r());var $=nb();let p;var _=h($);{var w=C=>{var T=ob();T.__click=[ib,d];var I=h(T);Se(),g(T),k(M=>be(I,`${M!=null?M:""} `),[()=>F("skip_ads_now")]),y(C,T)},b=C=>{var T=Zr();k(I=>be(T,I),[()=>F("skip_ads_after",{time:Math.ceil(r()-a()).toFixed(0)})]),y(C,T)};V(_,C=>{s(f)?C(w):C(b,!1)})}g($),k(C=>p=ee($,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:s(f)})]),y(t,$),H(),o()}ct(["click"]);var sb=L('<button class="svelte-1wy3dql"> </button>'),ab={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 mf(t,e){O(e,!1),q(t,ab),Lr();var i=sb(),o=h(i,!0);g(i),k(n=>be(o,n),[()=>F("visit_advertiser")],Pr),y(t,i),H()}var lb=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),db=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),cb={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
61
61
  360deg,
62
62
  rgba(0, 0, 0, 0) 0%,
63
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
67
67
  rgba(0, 0, 0, 0.5) 77%,
68
68
  rgba(0, 0, 0, 0.55) 88%,
69
69
  rgba(0, 0, 0, 0.65) 100%
70
- );}`};function dd(t,e){F(e,!0),K(t,ab);let[i,o]=Oe(),n=()=>S(Z,"$canSkipAd",i),a=()=>S(q,"$adPlaybackState",i),s=()=>S(I,"$isMobile",i),d=()=>S(H,"$adPosition",i),l=()=>S(G,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),y=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),b=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),_=Te(),C=Yt(),T=_.state.isEnded$,I=_.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=J(void 0),k=J(void 0),V=!1,q=_.ads.playbackState,Z=_.ads.canSkip,H=_.ads.position,G=_.ads.secondsToWatchBeforeSkip,oe=v(()=>n()&&a()!=="inactive"),X=v(()=>s()&&a()!=="inactive"&&M);Gt(()=>{var Re;let be=_.getAdmanWrapper();if(al.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,al.now)(),f()]}),!f()){be.onAdmanLoadingError();return}let We=ke=>{be.initAdman(ke),V=!0},se=new AbortController,Q=()=>{se.abort()},{width:_e,height:te}=we(_.ui.playerSize),Fe=we(_.ui.isFullscreen),Xe=(Re=b())!=null?Re:we(_.ui.isAutoplay),Se={width:_e,height:te,isFullscreen:Fe,isAutoplay:Xe,adsContainer:r(P),adsVideoElement:r(k),slotId:f(),params:y(),previewParam:p(),duration:w()};return window.AdmanHTML?We(Se):be.loadAdman(se.signal).then(()=>{We(Se)}).catch(()=>{be.onAdmanLoadingError()}),()=>{al.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,al.now)(),f()]}),!V&&Q()}});var ae=sb(),ue=h(ae);{var Pe=be=>{var We=rb();$(be,We)};R(ue,be=>{s()&&be(Pe)})}var Le=A(ue,2);_t(Le,be=>D(k,be),()=>r(k));var he=A(Le,2);{var le=be=>{sf(be,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return _.actions.internal.skipAd}})};R(he,be=>{r(oe)&&be(le)})}var Ae=A(he,2);{var re=be=>{rf(be,{})};R(Ae,be=>{u()&&be(re)})}var N=A(Ae,2);{var pe=be=>{af(be,{})};R(N,be=>{r(X)&&be(pe)})}g(ae),_t(ae,be=>D(P,be),()=>r(P)),$(t,ae),U(),o()}var pn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var lb=xe('<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 lf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=lb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i))),$(t,o)}var db=xe('<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 df(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=db();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i))),$(t,o)}function cd(t,e){let i=m(e,"isActive",3,!1);var o=He(),n=fe(o);{var a=d=>{df(d,{})},s=d=>{lf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var cb=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),ub=L('<div class="live-icon svelte-1s15d2i"><!></div>'),pb=L('<span class="text svelte-1s15d2i"> </span>'),fb=L("<div><!> <!></div>"),mb={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),
70
+ );}`};function hd(t,e){O(e,!0),q(t,cb);let[i,o]=Oe(),n=()=>S(K,"$canSkipAd",i),a=()=>S(W,"$adPlaybackState",i),r=()=>S(I,"$isMobile",i),d=()=>S(U,"$adPosition",i),l=()=>S(j,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),$=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),_=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),b=Ee(),C=qt(),T=b.state.isEnded$,I=b.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=J(void 0),E=J(void 0),R=!1,W=b.ads.playbackState,K=b.ads.canSkip,U=b.ads.position,j=b.ads.secondsToWatchBeforeSkip,ae=v(()=>n()&&a()!=="inactive"),G=v(()=>r()&&a()!=="inactive"&&M);Ht(()=>{var oe;let te=b.getAdmanWrapper();if(ul.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ul.now)(),f()]}),!f()){te.onAdmanLoadingError();return}let qe=ke=>{te.initAdman(ke),R=!0},re=new AbortController,ve=()=>{re.abort()},{width:ye,height:X}=we(b.ui.playerSize),We=we(b.ui.isFullscreen),tt=(oe=_())!=null?oe:we(b.ui.isAutoplay),Te={width:ye,height:X,isFullscreen:We,isAutoplay:tt,adsContainer:s(P),adsVideoElement:s(E),slotId:f(),params:$(),previewParam:p(),duration:w()};return window.AdmanHTML?qe(Te):te.loadAdman(re.signal).then(()=>{qe(Te)}).catch(()=>{te.onAdmanLoadingError()}),()=>{ul.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ul.now)(),f()]}),!R&&ve()}});var ce=db(),de=h(ce);{var Le=te=>{var qe=lb();y(te,qe)};V(de,te=>{r()&&te(Le)})}var Ne=A(de,2);ot(Ne,te=>D(E,te),()=>s(E));var he=A(Ne,2);{var ue=te=>{ff(te,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};V(he,te=>{s(ae)&&te(ue)})}var Me=A(he,2);{var le=te=>{pf(te,{})};V(Me,te=>{u()&&te(le)})}var N=A(Me,2);{var je=te=>{mf(te,{})};V(N,te=>{s(G)&&te(je)})}g(ce),ot(ce,te=>D(P,te),()=>s(P)),y(t,ce),H(),o()}var _n=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var ub=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 vf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=ub();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i))),y(t,o)}var pb=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 gf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=pb();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i))),y(t,o)}function _d(t,e){let i=m(e,"isActive",3,!1);var o=Fe(),n=_e(o);{var a=d=>{gf(d,{})},r=d=>{vf(d,{})};V(n,d=>{i()?d(a):d(r,!1)})}y(t,o)}var fb=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),mb=L('<div class="live-icon svelte-1s15d2i"><!></div>'),vb=L('<span class="text svelte-1s15d2i"> </span>'),gb=L("<div><!> <!></div>"),hb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
71
71
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
72
72
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
73
73
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -138,10 +138,10 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
138
138
  100% {
139
139
  transform: scaleY(0.6);
140
140
  }
141
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function ud(t,e){K(t,mb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=fb();let s;var d=h(a);{var l=p=>{var b=cb();$(p,b)};R(d,p=>{i()&&p(l)})}var u=A(d,2);{var f=p=>{var b=ub(),w=h(b);cd(w,{isActive:!0}),g(b),$(p,b)},y=p=>{var b=pb(),w=h(b,!0);g(b),E(()=>ve(w,e.time)),$(p,b)};R(u,p=>{o()?p(f):p(y,!1)})}g(a),E(p=>s=ee(a,1,"wrapper svelte-1s15d2i",null,s,p),[()=>({live:o(),playing:n()})]),$(t,a)}var vb=L('<div role="timer" data-testid="thumb-timer"><!></div>'),gb={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
142
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function pd(t,e){F(e,!0),K(t,gb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>pn(e.duration-e.position));var s=vb();let d;var l=h(s);ud(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),E(u=>d=ee(s,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),$(t,s),U()}var ll=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 s1=require("@vkontakte/videoplayer-core/es2015");var cf=require("@vkontakte/videoplayer-core/es2015");var lr=t=>{t.stopPropagation(),t.preventDefault()},_b=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},bb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},$b=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},yb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Xh=t=>t.code==="Escape",xb=t=>t.code==="ArrowLeft",fd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Jh=t=>{if($b(t)){lr(t),bb(t.target);return}yb(t)&&(lr(t),_b(t.target))},ws=t=>!cf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||cf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",dl=(t,e,i)=>Tt(void 0,null,function*(){yield $o(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(yield $o(),i.set(!1),t.focus())}),e1=(t,e,i)=>Tt(void 0,null,function*(){yield $o(),t&&!e&&we(i)&&(i.set(!1),t.focus())}),cl=(t,e,i)=>Tt(void 0,null,function*(){var n;yield $o(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),t1=(t,e)=>Tt(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Jc=(t,e)=>{Jh(t),Xh(t)&&(lr(t),e())},eu=(t,e)=>Tt(void 0,null,function*(){fd(t,["ArrowRight"])&&(lr(t),e())}),i1=(t,e,i)=>Tt(void 0,null,function*(){if(Jh(t),xb(t)){lr(t),e();return}Xh(t)&&(lr(t),i())}),ul=(t,e)=>{fd(t)&&(lr(t),e())},o1=(t,e,i)=>{if(fd(t))lr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),lr(t);return}o==="ArrowRight"&&!e&&(i(!0),lr(t))}},n1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},r1=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 da=require("@vkontakte/videoplayer-shared/es2015");var Tr={"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 uf=require("@vkontakte/videoplayer-shared/es2015");var Sb=(t,e)=>{ul(t,()=>e())},Cb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Tb={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function pf(t,e){F(e,!0),K(t,Tb);let i=m(e,"onClick",3,uf.noop),o=m(e,"closeContextMenu",3,uf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Cb();a.__click=n,a.__keydown=[Sb,n];var s=h(a,!0);g(a),E(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),ve(s,e.label)}),$(t,a),U()}lt(["click","keydown"]);var la=(t,e)=>t.weight-e.weight;var pl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(pl||{});var Ib=(t,e)=>{Jc(t,e)},kb=t=>{t.preventDefault()},Eb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Pb={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 ff(t,e){F(e,!0),K(t,Pb);let[i,o]=Oe(),n=()=>S(oe,"$isLive$",i),a=()=>S(Pe,"$isPiPEnabled$",i),s=()=>S(G,"$chromecastState$",i),d=()=>S(Le,"$pictureInPictureApiIsActive$",i),l=()=>S(ue,"$isLooped$",i),u=()=>S(X,"$positionExact$",i),f=()=>S(q,"$additionalContextMenuItems$",i),y=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),b=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),_=m(e,"menuElementRef",15,void 0),C=J(0),T=J(0),I=Te(),{pictureInPicture$:M}=ao(),P=Yt(),k=I.ui.contextMenu.visible$,V=I.ui.debugPanelVisible,q=I.ui.additionalContextMenuItems$,Z=I.ui.t,H=I.actions.internal.togglePictureInPicture,G=I.state.chromecastState$,oe=I.state.isLive$,X=I.state.positionExact$,ae=I.state.isInteractive,ue=I.state.looped$,{isEnabled$:Pe,isActive$:Le}=M,he=v(()=>{var Ve;return P.features.copyVideoLink&&((Ve=I.callbacks)==null?void 0:Ve.onCopyVideoLink)}),le=v(()=>r(he)&&!n()&&!ae),Ae=v(()=>{var Ve;return!!((Ve=I.callbacks)!=null&&Ve.onCopyEmbedCodeClicked)}),re=v(()=>a()&&s()!==s1.ChromecastState.CONNECTED&&!ae),N=v(()=>P.features.videoRotate&&!ae),pe=v(()=>P.showSupport&&!d()),be=v(()=>P.features.saveTraceInfoToFile),We=()=>{var Ve;k.set(!1),(Ve=e.returnFocus)==null||Ve.call(e)},se=(Ve,ot)=>{if(!_()||!b()||!w())return;let et=_().getBoundingClientRect(),yt=b().getBoundingClientRect();D(C,Ve-yt.left),D(T,ot-yt.top),r(C)+et.width>yt.width&&D(C,yt.width-et.width),r(T)+et.height>yt.height&&D(T,yt.height-et.height),D(C,me(Math.max(r(C),0))),D(T,me(Math.max(r(T),0)))};Ue(()=>{Tt(this,null,function*(){if(_()&&b()&&w()){yield $o();let{top:ot,left:et,bottom:yt,right:ft}=p(),vt=et!=null?et:0,Ht=ot!=null?ot:0,Ye=_().getBoundingClientRect();(0,da.isNullable)(et)&&!(0,da.isNullable)(ft)&&(vt=ft-Ye.width),(0,da.isNullable)(ot)&&!(0,da.isNullable)(yt)&&(Ht=yt-Ye.height),vt=Math.max(vt,0),Ht=Math.max(Ht,0),se(vt,Ht)}})});let Q=()=>{I.actions.internal.videoRotate()},_e=()=>{(0,da.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},te=()=>{let Ve=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let ot=new Blob([...Ve],{type:"plain/text"}),et=window.URL.createObjectURL(ot);ia(et,"vk_player_debug_info","txt")}else ll(I.actions.internal.getDebugTextData())},Fe=()=>{let Ve=I.actions.internal.getTraceTextData(),ot=new Blob([...Ve],{type:"application/json"}),et=window.URL.createObjectURL(ot);ia(et,"vk_player_trace_info","json")},Xe=()=>{V.set(!0)},Se=()=>Tt(this,null,function*(){var Ve;try{H()}finally{(Ve=e.returnFocus)==null||Ve.call(e)}}),Re=()=>{I.actions.internal.setLooped(!l())},ke=()=>{var Ve,ot;if(r(Ae)){let et=(ot=(Ve=I.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:ot.call(Ve);et&&ll(et)}},ze=(Ve=!1)=>{var ot,et;if((ot=I.callbacks)!=null&&ot.onCopyVideoLink){let yt=(et=I.callbacks)==null?void 0:et.onCopyVideoLink(Ve,u());yt&&ll(yt)}},ct=v(()=>P.features.saveDebugInfoToFile?Z("menu_save_debug"):Z("menu_copy_debug")),ut=v(()=>r(he)?{id:"copy-link",weight:Tr["copy-link"],label:Z("menu_copy_video_link"),onClick:()=>ze()}:void 0),nt=v(()=>r(le)?{id:"copy-link-timestamp",weight:Tr["copy-link-timestamp"],label:Z("menu_copy_video_link_with_timestamp"),onClick:()=>ze(!0)}:void 0),At=v(()=>r(Ae)?{id:"copy-embed-code",weight:Tr["copy-embed-code"],label:Z("menu_copy_embed_code"),onClick:ke}:void 0),bt=v(()=>r(re)?{id:"pip",weight:Tr.pip,label:Z("menu_pip"),onClick:Se}:void 0),Zt=v(()=>({id:"video-loop",weight:Tr["video-loop"],label:l()?Z("menu_video_loop_off"):Z("menu_video_loop_on"),ariaLabel:Z("aria_label_menu_loop"),onClick:Re})),ei=v(()=>r(N)?{id:"rotate",weight:Tr.rotate,label:Z("menu_video_rotate"),ariaLabel:Z("aria_label_menu_rotate"),onClick:Q}:void 0),Rt=v(()=>r(pe)?{id:"report",weight:Tr.report,label:Z("menu_report"),ariaLabel:`${Z("menu_report")}. ${Z("aria_label_new_tab_alert")}`,onClick:_e}:void 0),Ot=v(()=>({id:"save-debug",weight:Tr["save-debug"],label:r(ct),onClick:te})),O=v(()=>r(be)?{id:"save-trace",weight:Tr["save-trace"],label:Z("menu_save_debug"),onClick:Fe}:void 0),$e=v(()=>({id:"debug-info",weight:Tr["debug-info"],label:Z("menu_debug_overlay"),ariaLabel:Z("aria_label_menu_debug_overlay"),onClick:Xe})),ne=v(()=>[r(ut),r(nt),r(At),r(bt),r(Zt),r(ei),r(Rt),r(Ot),r(O),r($e),...f()].filter(Ve=>!!Ve).sort(la));var Ne=He(),Ge=fe(Ne);{var Ze=Ve=>{var ot=Eb();ot.__contextmenu=[kb],ot.__keydown=[Ib,We],Ci(ot,21,()=>r(ne),et=>et.id,(et,yt)=>{pf(et,{get id(){return r(yt).id},get label(){return r(yt).label},get ariaLabel(){return r(yt).ariaLabel},get onClick(){return r(yt).onClick},closeContextMenu:We})}),g(ot),_t(ot,et=>_(et),()=>_()),E(()=>{var et,yt;return at(ot,`top: ${(et=r(T))!=null?et:""}px; left: ${(yt=r(C))!=null?yt:""}px;`)}),$(Ve,ot)};R(Ge,Ve=>{y()&&Ve(Ze)})}$(t,Ne),U(),o()}lt(["contextmenu","keydown"]);var tu=class{constructor(e){this.value=e,this.next=null}};var fl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new tu(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 Ab=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Mb={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 md(t,e){F(e,!0),K(t,Mb);let i=m(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,s=120,d=60,l=s/d;Gt(()=>{r(o).width=s,r(o).height=a,D(n,me(r(o).getContext("2d")))});function u(p,b,w,_,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(b,w,_,C)}Ue(()=>{let p="";if(r(n)){let b=i()[0];for(let _=1;_<i().length;_++)i()[_]>b&&(b=i()[_]);r(n).clearRect(0,0,s,a);let w=d-1;for(let _=i().length-1;_>=0;_--){let C=w*l,T=b>0?a*(i()[_]/b):0;u(r(n),C,0,l,T),p=T+" "+p,w--}}});var f=Ab(),y=h(f);_t(y,p=>D(o,p),()=>r(o)),g(f),$(t,f),U()}var mf=require("@vkontakte/videoplayer-shared/es2015");var Lb=(t,e)=>{t.stopPropagation(),mf.safeStorage.remove(td),e.set(!1)},Vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),zb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),qb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Qb=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Gb={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 vd(t,e){F(e,!0),K(t,Gb);let[i,o]=Oe(),n=()=>S(d,"$isMobile",i),a=Te(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(me(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=J(0),y=J(0),p=J(0),b=new fl(60),w=new fl(60),_=new fl(60),C=J(me([])),T=J(me([])),I=J(me([])),M=z("aria_label_debug_panel");Gt(()=>{mf.safeStorage.set(td,"true"),a.actions.internal.startLogging(),u&&(D(y,me(u.getVideoPlaybackQuality().droppedVideoFrames)),D(f,me(u.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,me(a.actions.internal.getDebugPanelData()))},500),$e;return u&&($e=window.setInterval(()=>{if(u){D(y,me(u.getVideoPlaybackQuality().droppedVideoFrames));let ne=u.getVideoPlaybackQuality().totalVideoFrames;D(p,ne-r(f)),D(f,me(ne)),b.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&_.push(r(l).bitrate),D(C,me(b.getValuesFromBottom())),D(T,me(w.getValuesFromBottom())),D(I,me(_.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),$e&&clearInterval($e)}});var P=Qb();let k;De(P,"aria-label",M);var V=h(P);V.__click=[Lb,s];var q=A(V,2),Z=h(q),H=A(h(Z),2),G=h(H,!0);g(H),g(Z);var oe=A(Z,2);{var X=O=>{var $e=Vb(),ne=A(h($e),2),Ne=h(ne,!0);g(ne),g($e),E(()=>ve(Ne,r(l).id)),$(O,$e)};R(oe,O=>{r(l).id&&O(X)})}var ae=A(oe,2);{var ue=O=>{var $e=Rb(),ne=A(h($e),2),Ne=h(ne,!0);g(ne),g($e),E(()=>ve(Ne,r(l).vsid)),$(O,$e)};R(ae,O=>{r(l).vsid&&O(ue)})}var Pe=A(ae,2);{var Le=O=>{var $e=Bb(),ne=A(h($e),2),Ne=h(ne,!0);g(ne),g($e),E(()=>ve(Ne,r(l).provider)),$(O,$e)};R(Pe,O=>{r(l).provider&&O(Le)})}var he=A(Pe,2);{var le=O=>{var $e=Nb(),ne=A(h($e),2),Ne=h(ne);g(ne),g($e),E(()=>{var Ge,Ze;return ve(Ne,`Video: ${r(l).videoCodec||""} ${(Ge=r(l).hdr?"(HDR)":"")!=null?Ge:""}
141
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function bd(t,e){q(t,hb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=gb();let r;var d=h(a);{var l=p=>{var _=fb();y(p,_)};V(d,p=>{i()&&p(l)})}var u=A(d,2);{var f=p=>{var _=mb(),w=h(_);_d(w,{isActive:!0}),g(_),y(p,_)},$=p=>{var _=vb(),w=h(_,!0);g(_),k(()=>be(w,e.time)),y(p,_)};V(u,p=>{o()?p(f):p($,!1)})}g(a),k(p=>r=ee(a,1,"wrapper svelte-1s15d2i",null,r,p),[()=>({live:o(),playing:n()})]),y(t,a)}var _b=L('<div role="timer" data-testid="thumb-timer"><!></div>'),bb={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
142
+ opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function $d(t,e){O(e,!0),q(t,bb);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>_n(e.duration-e.position));var r=_b();let d;var l=h(r);bd(l,{get time(){return s(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(r),k(u=>d=ee(r,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),y(t,r),H()}var pl=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 v1=require("@vkontakte/videoplayer-core/es2015");var hf=require("@vkontakte/videoplayer-core/es2015");var hr=t=>{t.stopPropagation(),t.preventDefault()},yb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},xb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},wb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Sb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},a1=t=>t.code==="Escape",Cb=t=>t.code==="ArrowLeft",yd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},l1=t=>{if(wb(t)){hr(t),xb(t.target);return}Sb(t)&&(hr(t),yb(t.target))},Ns=t=>!hf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||hf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",fl=(t,e,i)=>Tt(void 0,null,function*(){yield So(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(yield So(),i.set(!1),t.focus())}),d1=(t,e,i)=>Tt(void 0,null,function*(){yield So(),t&&!e&&we(i)&&(i.set(!1),t.focus())}),ml=(t,e,i)=>Tt(void 0,null,function*(){var n;yield So(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),c1=(t,e)=>Tt(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),ru=(t,e)=>{l1(t),a1(t)&&(hr(t),e())},su=(t,e)=>Tt(void 0,null,function*(){yd(t,["ArrowRight"])&&(hr(t),e())}),u1=(t,e,i)=>Tt(void 0,null,function*(){if(l1(t),Cb(t)){hr(t),e();return}a1(t)&&(hr(t),i())}),vl=(t,e)=>{yd(t)&&(hr(t),e())},p1=(t,e,i)=>{if(yd(t))hr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),hr(t);return}o==="ArrowRight"&&!e&&(i(!0),hr(t))}},f1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},m1=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 ba=require("@vkontakte/videoplayer-shared/es2015");var Rr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var _f=require("@vkontakte/videoplayer-shared/es2015");var Ib=(t,e)=>{vl(t,()=>e())},Eb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),kb={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 bf(t,e){O(e,!0),q(t,kb);let i=m(e,"onClick",3,_f.noop),o=m(e,"closeContextMenu",3,_f.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Eb();a.__click=n,a.__keydown=[Ib,n];var r=h(a,!0);g(a),k(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),be(r,e.label)}),y(t,a),H()}ct(["click","keydown"]);var _a=(t,e)=>t.weight-e.weight;var gl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(gl||{});var Pb=(t,e)=>{ru(t,e)},Ab=t=>{t.preventDefault()},Mb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Lb={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 $f(t,e){O(e,!0),q(t,Lb);let[i,o]=Oe(),n=()=>S(ae,"$isLive$",i),a=()=>S(Le,"$isPiPEnabled$",i),r=()=>S(j,"$chromecastState$",i),d=()=>S(Ne,"$pictureInPictureApiIsActive$",i),l=()=>S(de,"$isLooped$",i),u=()=>S(G,"$positionExact$",i),f=()=>S(W,"$additionalContextMenuItems$",i),$=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),_=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),b=m(e,"menuElementRef",15,void 0),C=J(0),T=J(0),I=Ee(),{pictureInPicture$:M}=mo(),P=qt(),E=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,K=I.ui.t,U=I.actions.internal.togglePictureInPicture,j=I.state.chromecastState$,ae=I.state.isLive$,G=I.state.positionExact$,ce=I.state.isInteractive,de=I.state.looped$,{isEnabled$:Le,isActive$:Ne}=M,he=v(()=>{var me;return P.features.copyVideoLink&&((me=I.callbacks)==null?void 0:me.onCopyVideoLink)}),ue=v(()=>s(he)&&!n()&&!ce),Me=v(()=>{var me;return!!((me=I.callbacks)!=null&&me.onCopyEmbedCodeClicked)}),le=v(()=>a()&&r()!==v1.ChromecastState.CONNECTED&&!ce),N=v(()=>P.features.videoRotate&&!ce),je=v(()=>P.showSupport&&!d()),te=v(()=>P.features.saveTraceInfoToFile),qe=()=>{var me;E.set(!1),(me=e.returnFocus)==null||me.call(e)},re=(me,Qe)=>{if(!b()||!_()||!w())return;let nt=b().getBoundingClientRect(),et=_().getBoundingClientRect();D(C,me-et.left),D(T,Qe-et.top),s(C)+nt.width>et.width&&D(C,et.width-nt.width),s(T)+nt.height>et.height&&D(T,et.height-nt.height),D(C,ge(Math.max(s(C),0))),D(T,ge(Math.max(s(T),0)))};ze(()=>{Tt(this,null,function*(){if(b()&&_()&&w()){yield So();let{top:Qe,left:nt,bottom:et,right:St}=p(),ht=nt!=null?nt:0,Yt=Qe!=null?Qe:0,bt=b().getBoundingClientRect();(0,ba.isNullable)(nt)&&!(0,ba.isNullable)(St)&&(ht=St-bt.width),(0,ba.isNullable)(Qe)&&!(0,ba.isNullable)(et)&&(Yt=et-bt.height),ht=Math.max(ht,0),Yt=Math.max(Yt,0),re(ht,Yt)}})});let ve=()=>{I.actions.internal.videoRotate()},ye=()=>{(0,ba.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},X=()=>{let me=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let Qe=new Blob([...me],{type:"plain/text"}),nt=window.URL.createObjectURL(Qe);pa(nt,"vk_player_debug_info","txt")}else pl(I.actions.internal.getDebugTextData())},We=()=>{let me=I.actions.internal.getTraceTextData(),Qe=new Blob([...me],{type:"application/json"}),nt=window.URL.createObjectURL(Qe);pa(nt,"vk_player_trace_info","json")},tt=()=>{R.set(!0)},Te=()=>Tt(this,null,function*(){var me;try{U()}finally{(me=e.returnFocus)==null||me.call(e)}}),oe=()=>{I.actions.internal.setLooped(!l())},ke=()=>{var me,Qe;if(s(Me)){let nt=(Qe=(me=I.callbacks)==null?void 0:me.onCopyEmbedCodeClicked)==null?void 0:Qe.call(me);nt&&pl(nt)}},Ke=(me=!1)=>{var Qe,nt;if((Qe=I.callbacks)!=null&&Qe.onCopyVideoLink){let et=(nt=I.callbacks)==null?void 0:nt.onCopyVideoLink(me,u());et&&pl(et)}},st=v(()=>P.features.saveDebugInfoToFile?K("menu_save_debug"):K("menu_copy_debug")),ut=v(()=>s(he)?{id:"copy-link",weight:Rr["copy-link"],label:K("menu_copy_video_link"),onClick:()=>Ke()}:void 0),at=v(()=>s(ue)?{id:"copy-link-timestamp",weight:Rr["copy-link-timestamp"],label:K("menu_copy_video_link_with_timestamp"),onClick:()=>Ke(!0)}:void 0),Et=v(()=>s(Me)?{id:"copy-embed-code",weight:Rr["copy-embed-code"],label:K("menu_copy_embed_code"),onClick:ke}:void 0),ft=v(()=>s(le)?{id:"pip",weight:Rr.pip,label:K("menu_pip"),onClick:Te}:void 0),Xt=v(()=>({id:"video-loop",weight:Rr["video-loop"],label:l()?K("menu_video_loop_off"):K("menu_video_loop_on"),ariaLabel:K("aria_label_menu_loop"),onClick:oe})),si=v(()=>s(N)?{id:"rotate",weight:Rr.rotate,label:K("menu_video_rotate"),ariaLabel:K("aria_label_menu_rotate"),onClick:ve}:void 0),Wt=v(()=>s(je)?{id:"report",weight:Rr.report,label:K("menu_report"),ariaLabel:`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`,onClick:ye}:void 0),Mt=v(()=>({id:"save-debug",weight:Rr["save-debug"],label:s(st),onClick:X})),ie=v(()=>s(te)?{id:"save-trace",weight:Rr["save-trace"],label:K("menu_save_debug"),onClick:We}:void 0),Rt=v(()=>({id:"debug-info",weight:Rr["debug-info"],label:K("menu_debug_overlay"),ariaLabel:K("aria_label_menu_debug_overlay"),onClick:tt})),Z=v(()=>[s(ut),s(at),s(Et),s(ft),s(Xt),s(si),s(Wt),s(Mt),s(ie),s(Rt),...f()].filter(me=>!!me).sort(_a));var fe=Fe(),Ae=_e(fe);{var Be=me=>{var Qe=Mb();Qe.__contextmenu=[Ab],Qe.__keydown=[Pb,qe],wi(Qe,21,()=>s(Z),nt=>nt.id,(nt,et)=>{bf(nt,{get id(){return s(et).id},get label(){return s(et).label},get ariaLabel(){return s(et).ariaLabel},get onClick(){return s(et).onClick},closeContextMenu:qe})}),g(Qe),ot(Qe,nt=>b(nt),()=>b()),k(()=>{var nt,et;return lt(Qe,`top: ${(nt=s(T))!=null?nt:""}px; left: ${(et=s(C))!=null?et:""}px;`)}),y(me,Qe)};V(Ae,me=>{$()&&me(Be)})}y(t,fe),H(),o()}ct(["contextmenu","keydown"]);var au=class{constructor(e){this.value=e,this.next=null}};var hl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new au(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Vb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Rb={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 xd(t,e){O(e,!0),q(t,Rb);let i=m(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,r=120,d=60,l=r/d;Ht(()=>{s(o).width=r,s(o).height=a,D(n,ge(s(o).getContext("2d")))});function u(p,_,w,b,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(_,w,b,C)}ze(()=>{let p="";if(s(n)){let _=i()[0];for(let b=1;b<i().length;b++)i()[b]>_&&(_=i()[b]);s(n).clearRect(0,0,r,a);let w=d-1;for(let b=i().length-1;b>=0;b--){let C=w*l,T=_>0?a*(i()[b]/_):0;u(s(n),C,0,l,T),p=T+" "+p,w--}}});var f=Vb(),$=h(f);ot($,p=>D(o,p),()=>s(o)),g(f),y(t,f),H()}var yf=require("@vkontakte/videoplayer-shared/es2015");var Bb=(t,e)=>{t.stopPropagation(),yf.safeStorage.remove(dd),e.set(!1)},Nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),zb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),qb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Qb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Gb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),jb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Zb=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Xb={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 wd(t,e){O(e,!0),q(t,Xb);let[i,o]=Oe(),n=()=>S(d,"$isMobile",i),a=Ee(),r=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(ge(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=J(0),$=J(0),p=J(0),_=new hl(60),w=new hl(60),b=new hl(60),C=J(ge([])),T=J(ge([])),I=J(ge([])),M=F("aria_label_debug_panel");Ht(()=>{yf.safeStorage.set(dd,"true"),a.actions.internal.startLogging(),u&&(D($,ge(u.getVideoPlaybackQuality().droppedVideoFrames)),D(f,ge(u.getVideoPlaybackQuality().totalVideoFrames)));let Z=window.setInterval(()=>{D(l,ge(a.actions.internal.getDebugPanelData()))},500),fe;return u&&(fe=window.setInterval(()=>{if(u){D($,ge(u.getVideoPlaybackQuality().droppedVideoFrames));let Ae=u.getVideoPlaybackQuality().totalVideoFrames;D(p,Ae-s(f)),D(f,ge(Ae)),_.push(s(p)),s(l).speed&&w.push(s(l).speed),s(l).bitrate&&b.push(s(l).bitrate),D(C,ge(_.getValuesFromBottom())),D(T,ge(w.getValuesFromBottom())),D(I,ge(b.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Z),fe&&clearInterval(fe)}});var P=Zb();let E;De(P,"aria-label",M);var R=h(P);R.__click=[Bb,r];var W=A(R,2),K=h(W),U=A(h(K),2),j=h(U,!0);g(U),g(K);var ae=A(K,2);{var G=Z=>{var fe=Nb(),Ae=A(h(fe),2),Be=h(Ae,!0);g(Ae),g(fe),k(()=>be(Be,s(l).id)),y(Z,fe)};V(ae,Z=>{s(l).id&&Z(G)})}var ce=A(ae,2);{var de=Z=>{var fe=Db(),Ae=A(h(fe),2),Be=h(Ae,!0);g(Ae),g(fe),k(()=>be(Be,s(l).vsid)),y(Z,fe)};V(ce,Z=>{s(l).vsid&&Z(de)})}var Le=A(ce,2);{var Ne=Z=>{var fe=Ob(),Ae=A(h(fe),2),Be=h(Ae,!0);g(Ae),g(fe),k(()=>be(Be,s(l).provider)),y(Z,fe)};V(Le,Z=>{s(l).provider&&Z(Ne)})}var he=A(Le,2);{var ue=Z=>{var fe=Hb(),Ae=A(h(fe),2),Be=h(Ae);g(Ae),g(fe),k(()=>{var me,Qe;return be(Be,`Video: ${s(l).videoCodec||""} ${(me=s(l).hdr?"(HDR)":"")!=null?me:""}
143
143
  &
144
- Audio: ${r(l).audioCodec||""} ${(Ze=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Ze:""}`)}),$(O,$e)};R(he,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(le)})}var Ae=A(he,2);{var re=O=>{var $e=Db(),ne=A(h($e),2),Ne=h(ne,!0);g(ne),g($e),E(()=>ve(Ne,r(l).viewport)),$(O,$e)};R(Ae,O=>{r(l).viewport&&O(re)})}var N=A(Ae,2);{var pe=O=>{var $e=Ob(),ne=A(h($e),2),Ne=h(ne,!0);g(ne),g($e),E(()=>ve(Ne,r(l).videoSize)),$(O,$e)};R(N,O=>{r(l).videoSize&&O(pe)})}var be=A(N,2);{var We=O=>{var $e=Hb(),ne=A(h($e),2),Ne=h(ne,!0);g(ne),g($e),E(()=>ve(Ne,r(l).cdn)),$(O,$e)};R(be,O=>{r(l).cdn&&O(We)})}var se=A(be,2);{var Q=O=>{var $e=Fb(),ne=A(h($e),2),Ne=h(ne);g(ne),g($e),E(()=>{var Ge;return ve(Ne,`${(Ge=r(l).volume)!=null?Ge:""} %`)}),$(O,$e)};R(se,O=>{r(l).volume&&O(Q)})}var _e=A(se,2);{var te=O=>{var $e=Ub(),ne=A(h($e),2),Ne=h(ne);g(ne),g($e),E(Ge=>ve(Ne,`${Ge!=null?Ge:""} s`),[()=>r(l).buffer.toFixed(2)]),$(O,$e)};R(_e,O=>{r(l).buffer&&O(te)})}var Fe=A(_e,2);{var Xe=O=>{var $e=zb(),ne=A(h($e),2),Ne=h(ne);g(ne),g($e),E(Ge=>ve(Ne,`${Ge!=null?Ge:""} s`),[()=>r(l).liveLatency.toFixed(2)]),$(O,$e)};R(Fe,O=>{r(l).liveLatency&&O(Xe)})}var Se=A(Fe,2);{var Re=O=>{var $e=Wb(),ne=A(h($e),2),Ne=h(ne,!0);g(ne),g($e),E(Ge=>ve(Ne,Ge),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ge})=>Ge).map(({value:Ge,title:Ze})=>`${Ze} ${((Ge!=null?Ge:0)/1e3).toFixed(2)} s`).join(" & ")]),$(O,$e)};R(Se,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(Re)})}var ke=A(Se,2),ze=A(h(ke),2),ct=h(ze);g(ze),g(ke);var ut=A(ke,2);{var nt=O=>{var $e=qb(),ne=A(h($e),2);md(ne,{get values(){return r(T)}});var Ne=A(ne,2),Ge=h(Ne);g(Ne),g($e),E(Ze=>ve(Ge,`${Ze!=null?Ze:""} Kbps`),[()=>r(l).speed.toFixed(2)]),$(O,$e)};R(ut,O=>{r(l).speed&&O(nt)})}var At=A(ut,2);{var bt=O=>{var $e=Kb(),ne=A(h($e),2);md(ne,{get values(){return r(I)}});var Ne=A(ne,2),Ge=h(Ne);g(Ne),g($e),E(Ze=>ve(Ge,`${Ze!=null?Ze:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),$(O,$e)};R(At,O=>{r(l).bitrate&&O(bt)})}var Zt=A(At,2),ei=A(h(Zt),2);md(ei,{get values(){return r(C)}});var Rt=A(ei,2),Ot=h(Rt,!0);g(Rt),g(Zt),g(q),g(P),E(O=>{var $e,ne;k=ee(P,1,"container svelte-4deykz",null,k,O),ve(G,r(l).version),ve(ct,`${($e=r(y))!=null?$e:""} / ${(ne=r(f))!=null?ne:""} frames`),ve(Ot,r(p))},[()=>({"container-mobile":n()})]),$(t,P),U(),o()}lt(["click"]);var a1=require("@vkontakte/videoplayer-shared/es2015"),Yb=(t,e)=>{t.stopPropagation(),e()()},jb=L('<div class="close svelte-1ome55p"></div>'),Zb={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 ca(t,e){F(e,!0),K(t,Zb);let i=m(e,"onClick",3,a1.noop);var o=jb();o.__click=[Yb,i],$(t,o),U()}lt(["click"]);var l1=require("@vkontakte/videoplayer-shared/es2015"),Xb=L('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),Jb={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 gd(t,e){F(e,!0),K(t,Jb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,l1.noop),n=5e3,a=J(void 0),s,d,l=J(0),u;Ue(()=>{i()&&(d=Date.now(),D(l,me(requestAnimationFrame(y))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},y=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),s==null||s.stroke(),D(l,me(requestAnimationFrame(y)))):o()()};Gt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),xn(()=>{f()});var p=Xb(),b=h(p);_t(b,w=>D(a,w),()=>r(a)),ye(2),g(p),$(t,p),U()}var e$=(t,e,i)=>{e(!1),i()},t$=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),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 vf(t,e){F(e,!0),K(t,i$);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,b=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},_=()=>{e.clickCloseIcon(),b()};Gt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=He(),T=fe(C);{var I=M=>{var P=t$(),k=A(fe(P),2),V=h(k),q=h(V),Z=h(q,!0);g(q);var H=A(q,2);ca(H,{onClick:_}),g(V);var G=A(V,2);G.__click=[e$,u,y];var oe=h(G),X=h(oe),ae=h(X);let ue;var Pe=A(ae,2);{var Le=re=>{let N=v(()=>a()&&n());gd(re,{get isRunning(){return r(N)},onTimerEnded:w})};R(Pe,re=>{n()&&re(Le)})}g(X),g(oe);var he=A(oe,2),le=h(he),Ae=h(le,!0);g(le),g(he),g(G),g(k),E((re,N)=>{ve(Z,re),at(X,`background-image: url('${e.thumb}')`),ue=ee(ae,1,"thumb-overlay svelte-jfbaax",null,ue,N),ve(Ae,e.title)},[()=>z("end_screen_next_video"),()=>({withOpacity:n()})]),$(M,P)};R(T,M=>{e.isHide||M(I)})}$(t,C),U(),o()}lt(["click"]);var Cs=require("@vkontakte/videoplayer-core/es2015"),d1=require("@vkontakte/videoplayer-shared/es2015"),fn=require("@vkontakte/videoplayer-statistics/es2015");var gf=(t,e)=>Math.min(+(t+e).toFixed(2),1),hf=(t,e)=>Math.max(+(t-e).toFixed(2),0),iu=(t,e,i)=>{let o=gf(e,i);e<1?t.actions.internal.setVolume(o):we(t.state.muted$)&&t.actions.external.setMuted(!1)},ou=(t,e,i)=>{let o=hf(e,i);e>0&&t.actions.internal.setVolume(o)};var Ss=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var n$=(t,e)=>{e(t)},r$=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),s$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function _f(t,e){var Rt,Ot;F(e,!0),K(t,s$);let[i,o]=Oe(),n=()=>S(Z,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(ae,"$disabledControls$",i),d=()=>S(G,"$positionExact$",i),l=()=>S(oe,"$duration$",i),u=()=>S(Q,"$isAudioAvailable$",i),f=()=>S(X,"$volume$",i),y=()=>S(he,"$availablePlaybackRates$",i),p=()=>S(Le,"$currentPlaybackRate$",i),b=()=>S(te,"$isInteractiveTime$",i),w=()=>S(Fe,"$showInteractiveTimeIndicatorTooltip$",i),_=()=>S(pe,"$isEnded$",i),C=()=>S(ue,"$muted$",i),T=()=>S(Pe,"$currentSubtitle$",i),I=()=>S(be,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),P=m(e,"prevButtonActive",3,!1),k=Te(),V=Yt(),q=k.getLogger().createComponentLog("KeyboardControls component"),Z=k.state.playbackState$,H=k.ads.playbackState,G=k.state.positionExact$,oe=k.state.duration$,X=k.state.volume$,ae=k.ui.controls.disabledControls$,ue=k.state.muted$,Pe=k.state.currentSubtitle$,Le=k.state.currentPlaybackRate$,he=k.state.availablePlaybackRates$,le=k.ui.contextMenu.openedByHotKey$,Ae=k.ui.contextMenu.lastActiveElem$,re=k.ui.contextMenu.visible$,N=k.ui.contextMenu.position$,pe=k.state.isEnded$,be=k.ui.overlayContainer$,We=(Rt=k.callbacks)==null?void 0:Rt.onAudioDoesNotExistHint,se=(Ot=k.callbacks)==null?void 0:Ot.onAudioDisabledHint,Q=k.state.isAudioAvailable$,_e=k.state.isAudioDisabled,te=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Fe}=ao(),Xe=0,Se=!0,Re=J(void 0),ke=O=>(O!==Se&&(Se=O,Xe=0),Xe+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Xe)/1e3),ze=(O,$e=!1)=>{var li,Si;let ne=O.target,Ne=(li=ne==null?void 0:ne.getAttribute("role"))==null?void 0:li.includes("menuitem"),Ge=ne.classList.contains("btn"),Ze=O.code;if(Ge&&Ze==="Space")return!1;let Ve=mh.has(Ze);if(Ne&&Ve)return!1;let ot=!fh.has(Ze);if(O.ctrlKey&&ot||O.altKey&&ot||O.metaKey)return!1;let et=Ne&&Ze==="Escape";vh.has(Ze)||et||e.hideContextMenu();let yt=n()===Cs.PlaybackState.PLAYING||n()===Cs.PlaybackState.PAUSED,ft=e.isAds&&(a()==="paused"||a()==="playing"),vt=!ft&&!s().has("TIMELINE");if(!(yt||ft))return!1;q({message:`key down, code: ${Ze}, isExternal = ${$e}`});let Ht=!1,Ye=()=>{Ht=!0,$e||O.preventDefault()};switch(Ze){case"KeyJ":case"ArrowLeft":{if(!vt)break;if(O.ctrlKey||O.altKey){let it=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:it.text}),Ye()}else{let it=O.shiftKey?ke(!1):V.controls.seekStepKeyboard/1e3,Jt=Math.max(d()-it,0);d()>0&&(k.actions.internal.seekTime(Jt,fn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:it.toString()}),Ye())}break}case"KeyL":case"ArrowRight":{if(!vt)break;if(O.ctrlKey||O.altKey){let it=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:it.text}),Ye()}else{let it=O.shiftKey?ke(!0):V.controls.seekStepKeyboard/1e3,Jt=Math.min(d()+it,l());Math.round(d())<Math.round(l())&&(k.actions.internal.seekTime(Jt,fn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:it.toString()}),Ye())}break}case"ArrowUp":{if(Ss({isAudioDisabled:_e,audioDisabledHintCallback:se,isAudioAvailable:u(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let it=f(),Jt=V.controls.volumeStepKeyboard,Li=it<=1;if(iu(k,it,Jt),Li){let Zi=Math.round(gf(it,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zi}})}}Ye();break}case"ArrowDown":{if(Ss({isAudioDisabled:_e,audioDisabledHintCallback:se,isAudioAvailable:u(),audioIsNotExistHintCallback:We,isAds:e.isAds})){let it=f(),Jt=V.controls.volumeStepKeyboard,Li=it>=0;if(ou(k,it,Jt),Li){let Zi=Math.round(hf(it,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zi}})}}Ye();break}case"Comma":{if(O.shiftKey){k.actions.internal.decrementPlaybackRate();let it=y().find(Jt=>Jt.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:it==null?void 0:it.displayValue}),Ye()}else{if(ft||n()!==Cs.PlaybackState.PAUSED)break;let it=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(it,fn.SeekAction.DOUBLE_TAP),Ye())}break}case"Period":{if(O.shiftKey){k.actions.internal.incrementPlaybackRate();let it=y().find(Jt=>Jt.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:it==null?void 0:it.displayValue}),Ye()}else{if(ft||n()!==Cs.PlaybackState.PAUSED)break;let it=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(it,fn.SeekAction.DOUBLE_TAP),Ye())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(b()&&w()&&Fe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let it="PLAY";n()===Cs.PlaybackState.PAUSED?it="PAUSE":_()&&(it="REPLAY"),e.showHotKeyHelpers({type:it})}Ye();break;case"KeyM":{Ss({isAudioDisabled:_e,audioDisabledHintCallback:se,isAudioAvailable:u(),audioIsNotExistHintCallback:We,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),Ye();break}case"KeyF":e.toggleFullscreen(),Ye();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Si=T())==null?void 0:Si.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Ye();break;case"KeyI":k.actions.internal.togglePictureInPicture(),Ye();break;case"Digit1":case"Numpad1":if(O.shiftKey){let it=r1(I());N.set(it),Ae.set(ne),le.set(!0),re.set(!0),Ye();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,fn.SeekAction.DOUBLE_TAP),Ye();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Ye());break}case"KeyN":O.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),Ye());break;case"KeyP":O.shiftKey&&P()&&(k.actions.internal.prevVideoClick(),Ye());break;case"ShiftLeft":case"ShiftRight":Ye();break;case"Tab":case"Escape":case"Enter":break;default:(0,d1.checkNever)(Ze);break}return Ht},ct=O=>{let $e=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let ne=n()===Cs.PlaybackState.PLAYING||n()===Cs.PlaybackState.PAUSED,Ne=e.isAds&&(a()==="paused"||a()==="playing");if(ne||Ne)switch($e){case"ShiftLeft":case"ShiftRight":Xe=0;break}},ut=z("aria_label_video_player"),nt=()=>{var O;return(O=r(Re))==null?void 0:O.focus()},At=O=>O.type==="keydown"?ze(O,!0):(O.type==="keyup"&&ct(O),!1);var bt=r$();bt.__keyup=ct,bt.__keydown=[n$,ze],De(bt,"aria-label",ut);var Zt=h(bt);ge(Zt,()=>{var O;return(O=e.children)!=null?O:ie}),g(bt),_t(bt,O=>D(Re,O),()=>r(Re)),$(t,bt);var ei=U({focus:nt,handleExternalKeyboardEvent:At});return o(),ei}lt(["keyup","keydown"]);var a$=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),l$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
144
+ Audio: ${s(l).audioCodec||""} ${(Qe=s(l).audioLanguage?`(${s(l).audioLanguage})`:"")!=null?Qe:""}`)}),y(Z,fe)};V(he,Z=>{(s(l).videoCodec||s(l).audioCodec)&&Z(ue)})}var Me=A(he,2);{var le=Z=>{var fe=Fb(),Ae=A(h(fe),2),Be=h(Ae,!0);g(Ae),g(fe),k(()=>be(Be,s(l).viewport)),y(Z,fe)};V(Me,Z=>{s(l).viewport&&Z(le)})}var N=A(Me,2);{var je=Z=>{var fe=Ub(),Ae=A(h(fe),2),Be=h(Ae,!0);g(Ae),g(fe),k(()=>be(Be,s(l).videoSize)),y(Z,fe)};V(N,Z=>{s(l).videoSize&&Z(je)})}var te=A(N,2);{var qe=Z=>{var fe=zb(),Ae=A(h(fe),2),Be=h(Ae,!0);g(Ae),g(fe),k(()=>be(Be,s(l).cdn)),y(Z,fe)};V(te,Z=>{s(l).cdn&&Z(qe)})}var re=A(te,2);{var ve=Z=>{var fe=Wb(),Ae=A(h(fe),2),Be=h(Ae);g(Ae),g(fe),k(()=>{var me;return be(Be,`${(me=s(l).volume)!=null?me:""} %`)}),y(Z,fe)};V(re,Z=>{s(l).volume&&Z(ve)})}var ye=A(re,2);{var X=Z=>{var fe=qb(),Ae=A(h(fe),2),Be=h(Ae);g(Ae),g(fe),k(me=>be(Be,`${me!=null?me:""} s`),[()=>s(l).position.toFixed(2)]),y(Z,fe)};V(ye,Z=>{s(l).position&&Z(X)})}var We=A(ye,2);{var tt=Z=>{var fe=Kb(),Ae=A(h(fe),2),Be=h(Ae);g(Ae),g(fe),k(me=>be(Be,`${me!=null?me:""} s`),[()=>s(l).buffer.toFixed(2)]),y(Z,fe)};V(We,Z=>{s(l).buffer&&Z(tt)})}var Te=A(We,2);{var oe=Z=>{var fe=Qb(),Ae=A(h(fe),2),Be=h(Ae);g(Ae),g(fe),k(me=>be(Be,`${me!=null?me:""} s`),[()=>s(l).liveLatency.toFixed(2)]),y(Z,fe)};V(Te,Z=>{s(l).liveLatency&&Z(oe)})}var ke=A(Te,2);{var Ke=Z=>{var fe=Gb(),Ae=A(h(fe),2),Be=h(Ae,!0);g(Ae),g(fe),k(me=>be(Be,me),[()=>[{value:s(l).currentVideoSegmentLength,title:"Video:"},{value:s(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:me})=>me).map(({value:me,title:Qe})=>`${Qe} ${((me!=null?me:0)/1e3).toFixed(2)} s`).join(" & ")]),y(Z,fe)};V(ke,Z=>{(s(l).currentVideoSegmentLength||s(l).currentAudioSegmentLength)&&Z(Ke)})}var st=A(ke,2),ut=A(h(st),2),at=h(ut);g(ut),g(st);var Et=A(st,2);{var ft=Z=>{var fe=Yb(),Ae=A(h(fe),2);xd(Ae,{get values(){return s(T)}});var Be=A(Ae,2),me=h(Be);g(Be),g(fe),k(Qe=>be(me,`${Qe!=null?Qe:""} Kbps`),[()=>s(l).speed.toFixed(2)]),y(Z,fe)};V(Et,Z=>{s(l).speed&&Z(ft)})}var Xt=A(Et,2);{var si=Z=>{var fe=jb(),Ae=A(h(fe),2);xd(Ae,{get values(){return s(I)}});var Be=A(Ae,2),me=h(Be);g(Be),g(fe),k(Qe=>be(me,`${Qe!=null?Qe:""} Kbps`),[()=>s(l).bitrate.toFixed(2)]),y(Z,fe)};V(Xt,Z=>{s(l).bitrate&&Z(si)})}var Wt=A(Xt,2),Mt=A(h(Wt),2);xd(Mt,{get values(){return s(C)}});var ie=A(Mt,2),Rt=h(ie,!0);g(ie),g(Wt),g(W),g(P),k(Z=>{var fe,Ae;E=ee(P,1,"container svelte-4deykz",null,E,Z),be(j,s(l).version),be(at,`${(fe=s($))!=null?fe:""} / ${(Ae=s(f))!=null?Ae:""} frames`),be(Rt,s(p))},[()=>({"container-mobile":n()})]),y(t,P),H(),o()}ct(["click"]);var g1=require("@vkontakte/videoplayer-shared/es2015"),Jb=(t,e)=>{t.stopPropagation(),e()()},e$=L('<div class="close svelte-1ome55p"></div>'),t$={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 $a(t,e){O(e,!0),q(t,t$);let i=m(e,"onClick",3,g1.noop);var o=e$();o.__click=[Jb,i],y(t,o),H()}ct(["click"]);var h1=require("@vkontakte/videoplayer-shared/es2015"),i$=L('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),o$={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Sd(t,e){O(e,!0),q(t,o$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,h1.noop),n=5e3,a=J(void 0),r,d,l=J(0),u;ze(()=>{i()&&(d=Date.now(),D(l,ge(requestAnimationFrame($))))});let f=()=>{s(l)&&(cancelAnimationFrame(s(l)),D(l,0))},$=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<1?(r==null||r.clearRect(0,0,100,100),r==null||r.beginPath(),r==null||r.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),r==null||r.stroke(),D(l,ge(requestAnimationFrame($)))):o()()};Ht(()=>{if(r=s(a).getContext("2d"),!!r)return r.lineWidth=6,r.lineCap="round",r.strokeStyle="#fff",()=>{f()}}),kn(()=>{f()});var p=i$(),_=h(p);ot(_,w=>D(a,w),()=>s(a)),Se(2),g(p),y(t,p),H()}var n$=(t,e,i)=>{e(!1),i()},r$=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),s$={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 xf(t,e){O(e,!0),q(t,s$);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),r=Ee(),d=r.ui.autoplayNextEnabled$,l=r.ui.timerNextVideoRunning$,u=r.actions.internal.nextVideoClick,f=r.actions.internal.nextVideoAnnouncementShow,$=r.actions.internal.nextVideoAnnouncementClick,p=r.actions.internal.nextVideoAnnouncementAuto,_=r.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},b=()=>{e.clickCloseIcon(),_()};Ht(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Fe(),T=_e(C);{var I=M=>{var P=r$(),E=A(_e(P),2),R=h(E),W=h(R),K=h(W,!0);g(W);var U=A(W,2);$a(U,{onClick:b}),g(R);var j=A(R,2);j.__click=[n$,u,$];var ae=h(j),G=h(ae),ce=h(G);let de;var Le=A(ce,2);{var Ne=le=>{let N=v(()=>a()&&n());Sd(le,{get isRunning(){return s(N)},onTimerEnded:w})};V(Le,le=>{n()&&le(Ne)})}g(G),g(ae);var he=A(ae,2),ue=h(he),Me=h(ue,!0);g(ue),g(he),g(j),g(E),k((le,N)=>{be(K,le),lt(G,`background-image: url('${e.thumb}')`),de=ee(ce,1,"thumb-overlay svelte-jfbaax",null,de,N),be(Me,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),y(M,P)};V(T,M=>{e.isHide||M(I)})}y(t,C),H(),o()}ct(["click"]);var Os=require("@vkontakte/videoplayer-core/es2015"),_1=require("@vkontakte/videoplayer-shared/es2015"),bn=require("@vkontakte/videoplayer-statistics/es2015");var wf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Sf=(t,e)=>Math.max(+(t-e).toFixed(2),0),lu=(t,e,i)=>{let o=wf(e,i);e<1?t.actions.internal.setVolume(o):we(t.state.muted$)&&t.actions.external.setMuted(!1)},du=(t,e,i)=>{let o=Sf(e,i);e>0&&t.actions.internal.setVolume(o)};var Ds=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var l$=(t,e)=>{e(t)},d$=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),c$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Cf(t,e){var Wt,Mt;O(e,!0),q(t,c$);let[i,o]=Oe(),n=()=>S(K,"$playbackState$",i),a=()=>S(U,"$adPlaybackState",i),r=()=>S(ce,"$disabledControls$",i),d=()=>S(j,"$positionExact$",i),l=()=>S(ae,"$duration$",i),u=()=>S(ve,"$isAudioAvailable$",i),f=()=>S(G,"$volume$",i),$=()=>S(he,"$availablePlaybackRates$",i),p=()=>S(Ne,"$currentPlaybackRate$",i),_=()=>S(X,"$isInteractiveTime$",i),w=()=>S(We,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>S(je,"$isEnded$",i),C=()=>S(de,"$muted$",i),T=()=>S(Le,"$currentSubtitle$",i),I=()=>S(te,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),P=m(e,"prevButtonActive",3,!1),E=Ee(),R=qt(),W=E.getLogger().createComponentLog("KeyboardControls component"),K=E.state.playbackState$,U=E.ads.playbackState,j=E.state.positionExact$,ae=E.state.duration$,G=E.state.volume$,ce=E.ui.controls.disabledControls$,de=E.state.muted$,Le=E.state.currentSubtitle$,Ne=E.state.currentPlaybackRate$,he=E.state.availablePlaybackRates$,ue=E.ui.contextMenu.openedByHotKey$,Me=E.ui.contextMenu.lastActiveElem$,le=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,je=E.state.isEnded$,te=E.ui.overlayContainer$,qe=(Wt=E.callbacks)==null?void 0:Wt.onAudioDoesNotExistHint,re=(Mt=E.callbacks)==null?void 0:Mt.onAudioDisabledHint,ve=E.state.isAudioAvailable$,ye=E.state.isAudioDisabled,X=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:We}=mo(),tt=0,Te=!0,oe=J(void 0),ke=ie=>(ie!==Te&&(Te=ie,tt=0),tt+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*tt)/1e3),Ke=(ie,Rt=!1)=>{var Ti,Gt;let Z=ie.target,fe=(Ti=Z==null?void 0:Z.getAttribute("role"))==null?void 0:Ti.includes("menuitem"),Ae=Z.classList.contains("btn"),Be=ie.code;if(Ae&&Be==="Space")return!1;let me=wh.has(Be);if(fe&&me)return!1;let Qe=!xh.has(Be);if(ie.ctrlKey&&Qe||ie.altKey&&Qe||ie.metaKey)return!1;let nt=fe&&Be==="Escape";Sh.has(Be)||nt||e.hideContextMenu();let et=n()===Os.PlaybackState.PLAYING||n()===Os.PlaybackState.PAUSED,St=e.isAds&&(a()==="paused"||a()==="playing"),ht=!St&&!r().has("TIMELINE");if(!(et||St))return!1;W({message:`key down, code: ${Be}, isExternal = ${Rt}`});let Yt=!1,bt=()=>{Yt=!0,Rt||ie.preventDefault()};switch(Be){case"KeyJ":case"ArrowLeft":{if(!ht)break;if(ie.ctrlKey||ie.altKey){let Je=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(Je),Je&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Je.text}),bt()}else{let Je=ie.shiftKey?ke(!1):R.controls.seekStepKeyboard/1e3,ti=Math.max(d()-Je,0);d()>0&&(E.actions.internal.seekTime(ti,bn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Je.toString()}),bt())}break}case"KeyL":case"ArrowRight":{if(!ht)break;if(ie.ctrlKey||ie.altKey){let Je=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(Je),Je&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Je.text}),bt()}else{let Je=ie.shiftKey?ke(!0):R.controls.seekStepKeyboard/1e3,ti=Math.min(d()+Je,l());Math.round(d())<Math.round(l())&&(E.actions.internal.seekTime(ti,bn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Je.toString()}),bt())}break}case"ArrowUp":{if(Ds({isAudioDisabled:ye,audioDisabledHintCallback:re,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})){let Je=f(),ti=R.controls.volumeStepKeyboard,Ji=Je<=1;if(lu(E,Je,ti),Ji){let Ui=Math.round(wf(Je,ti)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ui}})}}bt();break}case"ArrowDown":{if(Ds({isAudioDisabled:ye,audioDisabledHintCallback:re,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})){let Je=f(),ti=R.controls.volumeStepKeyboard,Ji=Je>=0;if(du(E,Je,ti),Ji){let Ui=Math.round(Sf(Je,ti)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ui}})}}bt();break}case"Comma":{if(ie.shiftKey){E.actions.internal.decrementPlaybackRate();let Je=$().find(ti=>ti.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:Je==null?void 0:Je.displayValue}),bt()}else{if(St||n()!==Os.PlaybackState.PAUSED)break;let Je=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Je,bn.SeekAction.DOUBLE_TAP),bt())}break}case"Period":{if(ie.shiftKey){E.actions.internal.incrementPlaybackRate();let Je=$().find(ti=>ti.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:Je==null?void 0:Je.displayValue}),bt()}else{if(St||n()!==Os.PlaybackState.PAUSED)break;let Je=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Je,bn.SeekAction.DOUBLE_TAP),bt())}break}case"KeyK":case"Space":if(!r().has("PLAY_BUTTON"))if(_()&&w()&&We.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let Je="PLAY";n()===Os.PlaybackState.PAUSED?Je="PAUSE":b()&&(Je="REPLAY"),e.showHotKeyHelpers({type:Je})}bt();break;case"KeyM":{Ds({isAudioDisabled:ye,audioDisabledHintCallback:re,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),bt();break}case"KeyF":e.toggleFullscreen(),bt();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Gt=T())==null?void 0:Gt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),bt();break;case"KeyI":E.actions.internal.togglePictureInPicture(),bt();break;case"Digit1":case"Numpad1":if(ie.shiftKey){let Je=m1(I());N.set(Je),Me.set(Z),ue.set(!0),le.set(!0),bt();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,bn.SeekAction.DOUBLE_TAP),bt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,bn.SeekAction.DOUBLE_TAP),bt();break;case"Slash":{ie.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),bt());break}case"KeyN":ie.shiftKey&&M()&&(E.actions.internal.nextVideoClick(),bt());break;case"KeyP":ie.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),bt());break;case"ShiftLeft":case"ShiftRight":bt();break;case"Tab":case"Escape":case"Enter":break;default:(0,_1.checkNever)(Be);break}return Yt},st=ie=>{let Rt=ie.code;if(ie.ctrlKey||ie.altKey||ie.metaKey)return;let Z=n()===Os.PlaybackState.PLAYING||n()===Os.PlaybackState.PAUSED,fe=e.isAds&&(a()==="paused"||a()==="playing");if(Z||fe)switch(Rt){case"ShiftLeft":case"ShiftRight":tt=0;break}},ut=F("aria_label_video_player"),at=()=>{var ie;return(ie=s(oe))==null?void 0:ie.focus()},Et=ie=>ie.type==="keydown"?Ke(ie,!0):(ie.type==="keyup"&&st(ie),!1);var ft=d$();ft.__keyup=st,ft.__keydown=[l$,Ke],De(ft,"aria-label",ut);var Xt=h(ft);$e(Xt,()=>{var ie;return(ie=e.children)!=null?ie:ne}),g(ft),ot(ft,ie=>D(oe,ie),()=>s(oe)),y(t,ft);var si=H({focus:at,handleExternalKeyboardEvent:Et});return o(),si}ct(["keyup","keydown"]);var u$=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),p$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
145
145
 
146
146
  @keyframes svelte-1dbnjb1-dot_animation {
147
147
  0% {
@@ -154,7 +154,7 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
154
154
  opacity: 0.2;
155
155
  }
156
156
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
157
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ua(t,e){K(t,l$);let i=m(e,"style",3,"");var o=a$();E(()=>at(o,i())),$(t,o)}var d$=xe('<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 bf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=d$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i))),$(t,o)}var pa=require("@vkontakte/videoplayer-shared/es2015"),c$=t=>{t.stopPropagation()},u$=L("<button><!></button>"),p$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
157
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ya(t,e){q(t,p$);let i=m(e,"style",3,"");var o=u$();k(()=>lt(o,i())),y(t,o)}var f$=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 Tf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i))),y(t,o)}var xa=require("@vkontakte/videoplayer-shared/es2015"),m$=t=>{t.stopPropagation()},v$=L("<button><!></button>"),g$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
158
158
 
159
159
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
160
160
 
@@ -162,22 +162,22 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
162
162
  /* mobile */
163
163
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
164
164
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
165
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Dt(t,e){F(e,!0),K(t,p$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),a=m(e,"testId",3,void 0),s=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),y=m(e,"tabIndex",3,0),p=m(e,"click",3,pa.noop),b=m(e,"focus",3,pa.noop),w=m(e,"blur",3,pa.noop),_=v(()=>p()===pa.noop?null:P=>{P.stopPropagation(),p()(P)}),C=v(()=>b()===pa.noop?null:P=>{P.preventDefault(),b()()}),T=v(()=>w()===pa.noop?null:P=>{P.preventDefault(),w()()});var I=u$();I.__pointerdown=[c$],I.__click=function(...P){var k;(k=r(_))==null||k.apply(this,P)};var M=h(I);ge(M,()=>{var P;return(P=e.children)!=null?P:ie}),g(I),_t(I,P=>l(P),()=>l()),E(()=>{var P,k,V,q,Z,H,G;ee(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),at(I,o()||null),I.disabled=(k=n())!=null?k:null,De(I,"aria-hidden",(V=s())!=null?V:null),De(I,"aria-label",(q=d())!=null?q:null),De(I,"aria-keyshortcuts",(Z=u())!=null?Z:null),De(I,"aria-expanded",(H=f())!=null?H:null),De(I,"data-testid",(G=a())!=null?G:null),De(I,"tabindex",y()),De(I,"role",e.role)}),Pt("focus",I,function(...P){var k;(k=r(C))==null||k.apply(this,P)}),Pt("blur",I,function(...P){var k;(k=r(T))==null||k.apply(this,P)}),$(t,I),U()}lt(["pointerdown","click"]);var f$=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),m$=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),v$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function $f(t,e){F(e,!0),K(t,v$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=z("hotkey_map_modal_close_btn_text");var a=m$(),s=h(a),d=h(s);{var l=p=>{var b=f$(),w=h(b),_=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Dt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{bf(M,{})},$$slots:{default:!0}})};R(C,I=>{o()&&I(T)})}g(b),E(()=>ve(_,e.title)),$(p,b)};R(d,p=>{i()&&p(l)})}var u=A(d,2),f=h(u),y=h(f);ge(y,()=>{var p;return(p=e.children)!=null?p:ie}),g(f),g(u),g(s),g(a),$(t,a),U()}var g$=new Set(["BR"]),c1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;g$.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var h$=L('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),_$=L('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),b$=L('<div class="hot-key-map svelte-quklnq"></div>'),$$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Dt(t,e){O(e,!0),q(t,g$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),a=m(e,"testId",3,void 0),r=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),$=m(e,"tabIndex",3,0),p=m(e,"click",3,xa.noop),_=m(e,"focus",3,xa.noop),w=m(e,"blur",3,xa.noop),b=v(()=>p()===xa.noop?null:P=>{P.stopPropagation(),p()(P)}),C=v(()=>_()===xa.noop?null:P=>{P.preventDefault(),_()()}),T=v(()=>w()===xa.noop?null:P=>{P.preventDefault(),w()()});var I=v$();I.__pointerdown=[m$],I.__click=function(...P){var E;(E=s(b))==null||E.apply(this,P)};var M=h(I);$e(M,()=>{var P;return(P=e.children)!=null?P:ne}),g(I),ot(I,P=>l(P),()=>l()),k(()=>{var P,E,R,W,K,U,j;ee(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),lt(I,o()||null),I.disabled=(E=n())!=null?E:null,De(I,"aria-hidden",(R=r())!=null?R:null),De(I,"aria-label",(W=d())!=null?W:null),De(I,"aria-keyshortcuts",(K=u())!=null?K:null),De(I,"aria-expanded",(U=f())!=null?U:null),De(I,"data-testid",(j=a())!=null?j:null),De(I,"tabindex",$()),De(I,"role",e.role)}),Pt("focus",I,function(...P){var E;(E=s(C))==null||E.apply(this,P)}),Pt("blur",I,function(...P){var E;(E=s(T))==null||E.apply(this,P)}),y(t,I),H()}ct(["pointerdown","click"]);var h$=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),_$=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),b$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function If(t,e){O(e,!0),q(t,b$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=_$(),r=h(a),d=h(r);{var l=p=>{var _=h$(),w=h(_),b=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Dt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{Tf(M,{})},$$slots:{default:!0}})};V(C,I=>{o()&&I(T)})}g(_),k(()=>be(b,e.title)),y(p,_)};V(d,p=>{i()&&p(l)})}var u=A(d,2),f=h(u),$=h(f);$e($,()=>{var p;return(p=e.children)!=null?p:ne}),g(f),g(u),g(r),g(a),y(t,a),H()}var $$=new Set(["BR"]),b1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],r=a.tagName;$$.has(r)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var y$=L('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),x$=L('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),w$=L('<div class="hot-key-map svelte-quklnq"></div>'),S$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
166
166
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
167
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function yf(t,e){F(e,!1),K(t,$$);let[i,o]=Oe(),n=()=>S(s,"$data",i),a=Te(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Sr(),$f(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var y=b$();Ci(y,5,()=>n().groups,({title:p,items:b})=>p,(p,b)=>{let w=()=>r(b).title,_=()=>r(b).items;var C=_$(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);Ci(M,5,_,({description:P,value:k})=>k,(P,k)=>{let V=()=>r(k).description,q=()=>r(k).value;var Z=h$(),H=h(Z),G=h(H);Zl(G,()=>c1(V()),!1,!1),g(H);var oe=A(H,2),X=h(oe,!0);g(oe),g(Z),E(()=>ve(X,q())),$(P,Z)}),g(M),g(C),E(()=>ve(I,w())),$(p,C)}),g(y),$(u,y)},$$slots:{default:!0}}),U(),o()}var mm=require("@vkontakte/videoplayer-shared/es2015");var $a=require("@vkontakte/videoplayer-core/es2015");var nV=require("@vkontakte/videoplayer-shared/es2015");var y$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),x$={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 xf(t,e){K(t,x$);var i=y$(),o=h(i);ge(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),$(t,i)}var ml=require("@vkontakte/videoplayer-shared/es2015");var w$=xe('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function wf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=w$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),$(t,o)}var S$=xe('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Sf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),$(t,o)}var C$=xe('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Cf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),$(t,o)}var T$=xe('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function hd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),$(t,o)}var I$=xe('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function _d(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=I$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),$(t,o)}var nu=t=>{switch(t){case ml.VideoQuality.Q_720P:return Cf;case ml.VideoQuality.Q_1080P:return hd;case ml.VideoQuality.Q_1440P:return _d;case ml.VideoQuality.Q_2160P:return wf;case ml.VideoQuality.Q_4320P:return Sf}};var k$=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Tf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=k$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i))),$(t,o)}var E$=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function If(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=E$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),$(t,o)}var P$=L('<div aria-hidden="true"><!> <!></div>'),A$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function bd(t,e){F(e,!0),K(t,A$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>nu(o())),a=v(()=>!!r(n)&&[hd,_d].includes(r(n)));var s=He(),d=fe(s);{var l=f=>{Tf(f,{})},u=f=>{var y=P$();let p;var b=h(y);{var w=T=>{xf(T,{children:(I,M)=>{var P=He(),k=fe(P);Ti(k,()=>r(n),(V,q)=>{q(V,{})}),$(I,P)},$$slots:{default:!0}})};R(b,T=>{r(n)&&T(w)})}var _=A(b,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");If(_,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(y),E(T=>p=ee(y,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(a)})]),$(f,y)};R(d,f=>{i()?f(l):f(u,!1)})}$(t,s),U()}var M$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),L$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function vl(t,e){F(e,!0),K(t,L$);let[i,o]=Oe(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),s=()=>S(b,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Te(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,y=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,b=l.ui.isMobile,w=l.ui.t,_=J(void 0);Ue(()=>{n()&&It(()=>{e.ref$.set(r(_))})});let C=w("aria_label_settings");function T(M){return Tt(this,null,function*(){let P=ws(M);a()?p():y(P,$o)})}let I=v(()=>a()?"opened":"");Dt(t,{get className(){return r(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},get ref(){return r(_)},set ref(M){D(_,me(M))},children:(M,P)=>{var k=M$(),V=h(k);bd(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(k),$(M,k)},$$slots:{default:!0}}),U(),o()}var V$=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function kf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=V$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img"},i))),$(t,o)}var R$=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function $d(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=R$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img"},i))),$(t,o)}function Ef(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Dt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyC},children:(s,d)=>{var l=He(),u=fe(l);{var f=p=>{kf(p,{})},y=p=>{$d(p,{})};R(u,p=>{i()?p(f):p(y,!1)})}$(s,l)},$$slots:{default:!0}}),U()}var B$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),N$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),D$={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 yd(t,e){F(e,!0),K(t,D$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>pn(e.duration)),s=v(()=>pn(e.position));var d=N$();let l;var u=h(d),f=h(u,!0);g(u);var y=A(u,2);{var p=b=>{var w=B$(),_=h(w,!0);g(w),E(()=>ve(_,r(a))),$(b,w)};R(y,b=>{o()&&b(p)})}g(d),_t(d,b=>n(b),()=>n()),E(b=>{l=ee(d,1,"time svelte-sz9er7",null,l,b),ve(f,r(s))},[()=>({mobile:i()})]),$(t,d),U()}var wd=require("@vkontakte/videoplayer-shared/es2015");var O$=xe('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),H$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Ef(t,e){O(e,!1),q(t,S$);let[i,o]=Oe(),n=()=>S(r,"$data",i),a=Ee(),{data:r,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Lr(),If(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var $=w$();wi($,5,()=>n().groups,({title:p,items:_})=>p,(p,_)=>{let w=()=>s(_).title,b=()=>s(_).items;var C=x$(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);wi(M,5,b,({description:P,value:E})=>E,(P,E)=>{let R=()=>s(E).description,W=()=>s(E).value;var K=y$(),U=h(K),j=h(U);rd(j,()=>b1(R()),!1,!1),g(U);var ae=A(U,2),G=h(ae,!0);g(ae),g(K),k(()=>be(G,W())),y(P,K)}),g(M),g(C),k(()=>be(I,w())),y(p,C)}),g($),y(u,$)},$$slots:{default:!0}}),H(),o()}var wm=require("@vkontakte/videoplayer-shared/es2015");var ka=require("@vkontakte/videoplayer-core/es2015");var cV=require("@vkontakte/videoplayer-shared/es2015");var C$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),T$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function kf(t,e){q(t,T$);var i=C$(),o=h(i);$e(o,()=>{var n;return(n=e.children)!=null?n:ne}),g(i),y(t,i)}var _l=require("@vkontakte/videoplayer-shared/es2015");var I$=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 Pf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=I$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var E$=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 Af(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=E$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var k$=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 Mf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=k$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var P$=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 Cd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=P$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),y(t,o)}var A$=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 Td(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=A$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),y(t,o)}var cu=t=>{switch(t){case _l.VideoQuality.Q_720P:return Mf;case _l.VideoQuality.Q_1080P:return Cd;case _l.VideoQuality.Q_1440P:return Td;case _l.VideoQuality.Q_2160P:return Pf;case _l.VideoQuality.Q_4320P:return Af}};var M$=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 Lf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=M$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i))),y(t,o)}var L$=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 Vf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=L$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),y(t,o)}var V$=L('<div aria-hidden="true"><!> <!></div>'),R$={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 Id(t,e){O(e,!0),q(t,R$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>cu(o())),a=v(()=>!!s(n)&&[Cd,Td].includes(s(n)));var r=Fe(),d=_e(r);{var l=f=>{Lf(f,{})},u=f=>{var $=V$();let p;var _=h($);{var w=T=>{kf(T,{children:(I,M)=>{var P=Fe(),E=_e(P);Si(E,()=>s(n),(R,W)=>{W(R,{})}),y(I,P)},$$slots:{default:!0}})};V(_,T=>{s(n)&&T(w)})}var b=A(_,2);let C=v(()=>s(n)?"settings-icon--labeled":"settings-icon");Vf(b,{get"data-testid"(){return s(C)},fill:"var(--btn-color, #fff)"}),g($),k(T=>p=ee($,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:s(a)})]),y(f,$)};V(d,f=>{i()?f(l):f(u,!1)})}y(t,r),H()}var B$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),N$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function bl(t,e){O(e,!0),q(t,N$);let[i,o]=Oe(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),r=()=>S(_,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Ee(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,$=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,b=J(void 0);ze(()=>{n()&&It(()=>{e.ref$.set(s(b))})});let C=w("aria_label_settings");function T(M){return Tt(this,null,function*(){let P=Ns(M);a()?p():$(P,So)})}let I=v(()=>a()?"opened":"");Dt(t,{get className(){return s(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},role:"button",get ref(){return s(b)},set ref(M){D(b,ge(M))},children:(M,P)=>{var E=B$(),R=h(E);Id(R,{get isMobile(){return r()},get currentQuality(){return d()}}),g(E),y(M,E)},$$slots:{default:!0}}),H(),o()}var D$=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function Rf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=D$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img"},i))),y(t,o)}var O$=Ce('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function Ed(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=O$();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img"},i))),y(t,o)}function Bf(t,e){O(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Dt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(a)},get click(){return e.click},get ariaKeyShortCut(){return Jr.KeyC},role:"button",children:(r,d)=>{var l=Fe(),u=_e(l);{var f=p=>{Rf(p,{})},$=p=>{Ed(p,{})};V(u,p=>{i()?p(f):p($,!1)})}y(r,l)},$$slots:{default:!0}}),H()}var H$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),F$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),U$={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 kd(t,e){O(e,!0),q(t,U$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>_n(e.duration)),r=v(()=>_n(e.position));var d=F$();let l;var u=h(d),f=h(u,!0);g(u);var $=A(u,2);{var p=_=>{var w=H$(),b=h(w,!0);g(w),k(()=>be(b,s(a))),y(_,w)};V($,_=>{o()&&_(p)})}g(d),ot(d,_=>n(_),()=>n()),k(_=>{l=ee(d,1,"time svelte-sz9er7",null,l,_),be(f,s(r))},[()=>({mobile:i()})]),y(t,d),H()}var Ad=require("@vkontakte/videoplayer-shared/es2015");var z$=Ce('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),W$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
168
168
  .icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
169
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Ts(t,e){K(t,H$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=O$();E(()=>{var d;De(s,"data-value",r(a)),De(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),$(t,s)}var Mo=require("@vkontakte/videoplayer-shared/es2015");var ru=require("@vkontakte/videoplayer-shared/es2015");var u1=require("@vkontakte/videoplayer-shared/es2015");var F$=L('<div class="overlay"><!></div>');function Pf(t,e){F(e,!0);let[i,o]=Oe(),n=()=>S(s,"$overlayContainer$",i),s=Te().ui.overlayContainer$,d=J(void 0),l=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};Ue(()=>{u(n())}),Gt(()=>(u(n()),()=>l(n())));var f=F$(),y=h(f);ge(y,()=>{var p;return(p=e.children)!=null?p:ie}),g(f),_t(f,p=>D(d,p),()=>r(d)),$(t,f),U(),o()}var U$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),z$=L("<div><!></div> <!>",1),W$={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 fa(t,e){F(e,!0),K(t,W$);let[i,o]=Oe(),n=()=>S(G,"$overlayContainer$",i),a=()=>S(H,"$containerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),y=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),b=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,u1.noop),_=5,C=J(void 0),T=J(void 0),I,M=J(0),P=J(0),k=J(0),V=J(0),q=Yt(),Z=Te(),H=Z.ui.playerSize,G=Z.ui.overlayContainer$;Ue(()=>{It(()=>{w()(l())})});let oe=Z.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n()||!r(T)||!r(C))return;D(P,_);let Se=n().getBoundingClientRect(),Re=r(C).getBoundingClientRect(),ke=Re.width,ze=r(T).clientWidth,ct=a().width,ut=(ke-ze)/2,nt=Re.left+u()-Se.left,At=nt+ut,bt=Re.top+f()-Se.top,Zt=ze/2-_,ei=At<8,Rt=At+ze>ct-8;ei&&(At=8,Zt=nt+Re.width/2-2.5*_),Rt&&(At=ct-8-ze,Zt=Re.left-Se.left+Re.width/2-At-_),D(k,me(At)),D(V,bt),D(M,me(Zt))},ae=()=>{!n()||!r(T)||!r(C)||D(P,-_)},ue=()=>{if(!n()||!r(T)||!r(C))return;D(M,_);let Se=n().getBoundingClientRect(),Re=r(C).getBoundingClientRect(),ke=Re.height,ze=r(T).clientHeight,ct=(ke-ze)/2+ze,ut=Re.left+u()-Se.left-r(T).clientWidth,nt=2,At=ut-_;At<8&&(At=8);let Zt=Re.top+f()-Se.top+ct,ei=nt-ct/2,Rt=nt-_;D(k,me(At)),D(V,Zt),D(P,ei),D(M,Rt)},Pe=()=>{!n()||!r(T)||!r(C)||D(M,-_)},Le=()=>{switch(b()){case"top":X();break;case"bottom":ae();break;case"left":ue();break;default:Pe()}},he=()=>{try{if(!n()||!r(C))return;Le(),l(!0)}catch(Se){oe({message:String(Se)})}},le=()=>{l(!1)},Ae=()=>{r(T)&&(I||(I=window.setTimeout(he,q.controls.hideTimeoutTooltips)),l()&&he())},re=()=>{le(),window.clearTimeout(I),I=void 0},N=(Se,Re,ke)=>{let ze="";switch(b()){case"top":ze=`transform: translate(${Se}px, ${Re}px);`;break;case"bottom":ze=`transform: translate(${Se}px, ${Re}px); top: auto; bottom: 100%;`;break;case"left":ze=`transform: translate(${Se}px, ${Re}px); left: 0; right: auto;`;break;default:ze=`transform: translate(${Se}px, ${Re}px);`}return ze+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,ze+=` opacity: ${ke?1:0}; visibility: ${ke?"visible":"hidden"}`,ze},pe=(Se,Re)=>{let ke="";switch(b()){case"top":ke=`transform: translate(${Se}px, ${Re}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ke=`transform: translate(${Se}px, ${Re}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ke=`transform: translate(${Se}px, ${Re}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ke=`transform: translate(${Se}px, ${Re}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ke},be=v(()=>N(r(k),r(V),l())),We=v(()=>pe(r(M),r(P)));Gt(Le),xn(()=>window.clearTimeout(I));var se=z$(),Q=fe(se);let _e;Q.__mousemove=Ae,Q.__mousedown=re,Q.__mouseup=Ae;var te=h(Q);ge(te,()=>{var Se;return(Se=e.children)!=null?Se:ie}),g(Q),_t(Q,Se=>D(C,Se),()=>r(C));var Fe=A(Q,2);{var Xe=Se=>{Pf(Se,{children:(Re,ke)=>{var ze=U$(),ct=h(ze),ut=h(ct,!0);g(ct);var nt=A(ct,2);g(ze),_t(ze,At=>D(T,At),()=>r(T)),E(()=>{at(ze,r(be)),ve(ut,d()),at(nt,r(We))}),$(Re,ze)},$$slots:{default:!0}})};R(Fe,Se=>{d()&&!s()&&Se(Xe)})}E(Se=>_e=ee(Q,1,"tooltip-wrapper svelte-hxlyne",null,_e,Se),[()=>({"full-width":y()})]),Pt("mouseenter",Q,Ae),Pt("mouseleave",Q,re),$(t,se),U(),o()}lt(["mousemove","mousedown","mouseup"]);var p1=t=>{t.stopPropagation()},q$=L("<div><!></div>"),K$={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 Ao(t,e){F(e,!0),K(t,K$);let[i,o]=Oe(),n=()=>S(u,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Te(),d=ao(),l=s.ui.isMobile,u=d.graphIsOpened$,f=s.ui.t,y=m(e,"className",3,""),p=m(e,"disabled",3,!1),b=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),_=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),P=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),k=m(e,"isAriaHidden",3,!1),V=m(e,"onTooltipVisibilityChange",3,ru.noop),q=m(e,"initialTranslateXPx",3,0),Z=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,ru.noop),G=m(e,"mouseLeave",3,ru.noop),oe=v(()=>p()?n()?f("tooltip_disabled_when_graph_on"):P():T());var X=q$();X.__pointerdown=[p1],X.__click=[p1];var ae=h(X);{var ue=Le=>{fa(Le,{get content(){return r(oe)},get translateX(){return q()},get translateY(){return Z()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return V()},children:(he,le)=>{var Ae=He(),re=fe(Ae);ge(re,()=>{var N;return(N=e.children)!=null?N:ie}),$(he,Ae)},$$slots:{default:!0}})},Pe=Le=>{var he=He(),le=fe(he);ge(le,()=>{var Ae;return(Ae=e.children)!=null?Ae:ie}),$(Le,he)};R(ae,Le=>{b()&&r(oe)&&!a()?Le(ue):Le(Pe,!1)})}g(X),_t(X,Le=>w(Le),()=>w()),E(()=>{var Le;ee(X,1,`btn-container ${(Le=y())!=null?Le:""}`,"svelte-p9r045"),De(X,"aria-hidden",k()||null)}),Pt("mouseenter",X,function(...Le){var he;(he=H())==null||he.apply(this,Le)}),Pt("mouseleave",X,function(...Le){var he;(he=G())==null||he.apply(this,Le)}),Hr(X,"clientWidth",_),$(t,X),U(),o()}lt(["pointerdown","click"]);var Q$=xe('<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 xd(t,e){"use strict";var i=Q$(),o=h(i),n=A(o);g(i),E(()=>{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 G$=L("<div><!></div>"),Y$={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 Af(t,e){F(e,!0),K(t,Y$);let o=Te().ui.t,n=J(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ao(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=G$();let u;var f=h(l);let y=v(()=>!!e.videoEpisode.completed);xd(f,{get completed(){return r(y)}}),g(l),E(p=>{u=ee(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),at(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Hr(l,"clientWidth",p=>D(n,p)),$(s,l)},$$slots:{default:!0}}),U()}var j$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),Z$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),X$={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-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Hs(t,e){q(t,W$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var r=z$();k(()=>{var d;De(r,"data-value",s(a)),De(r,"data-testid",`volume-${(d=s(a))!=null?d:""}-icon`)}),y(t,r)}var Do=require("@vkontakte/videoplayer-shared/es2015");var uu=require("@vkontakte/videoplayer-shared/es2015");var $1=require("@vkontakte/videoplayer-shared/es2015");var q$=L('<div class="overlay"><!></div>');function Nf(t,e){O(e,!0);let[i,o]=Oe(),n=()=>S(r,"$overlayContainer$",i),r=Ee().ui.overlayContainer$,d=J(void 0),l=p=>{!p||!s(d)||!p.contains(s(d))||p.removeChild(s(d))},u=p=>{!p||!s(d)||p.contains(s(d))||p.appendChild(s(d))};ze(()=>{u(n())}),Ht(()=>(u(n()),()=>l(n())));var f=q$(),$=h(f);$e($,()=>{var p;return(p=e.children)!=null?p:ne}),g(f),ot(f,p=>D(d,p),()=>s(d)),y(t,f),H(),o()}var K$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),Q$=L("<div><!></div> <!>",1),G$={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 wa(t,e){O(e,!0),q(t,G$);let[i,o]=Oe(),n=()=>S(j,"$overlayContainer$",i),a=()=>S(U,"$containerSize",i),r=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),$=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),_=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,$1.noop),b=5,C=J(void 0),T=J(void 0),I,M=J(0),P=J(0),E=J(0),R=J(0),W=qt(),K=Ee(),U=K.ui.playerSize,j=K.ui.overlayContainer$;ze(()=>{It(()=>{w()(l())})});let ae=K.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!s(T)||!s(C))return;D(P,b);let Te=n().getBoundingClientRect(),oe=s(C).getBoundingClientRect(),ke=oe.width,Ke=s(T).clientWidth,st=a().width,ut=(ke-Ke)/2,at=oe.left+u()-Te.left,Et=at+ut,ft=oe.top+f()-Te.top,Xt=Ke/2-b,si=Et<8,Wt=Et+Ke>st-8;si&&(Et=8,Xt=at+oe.width/2-2.5*b),Wt&&(Et=st-8-Ke,Xt=oe.left-Te.left+oe.width/2-Et-b),D(E,ge(Et)),D(R,ft),D(M,ge(Xt))},ce=()=>{!n()||!s(T)||!s(C)||D(P,-b)},de=()=>{if(!n()||!s(T)||!s(C))return;D(M,b);let Te=n().getBoundingClientRect(),oe=s(C).getBoundingClientRect(),ke=oe.height,Ke=s(T).clientHeight,st=(ke-Ke)/2+Ke,ut=oe.left+u()-Te.left-s(T).clientWidth,at=2,Et=ut-b;Et<8&&(Et=8);let Xt=oe.top+f()-Te.top+st,si=at-st/2,Wt=at-b;D(E,ge(Et)),D(R,Xt),D(P,si),D(M,Wt)},Le=()=>{!n()||!s(T)||!s(C)||D(M,-b)},Ne=()=>{switch(_()){case"top":G();break;case"bottom":ce();break;case"left":de();break;default:Le()}},he=()=>{try{if(!n()||!s(C))return;Ne(),l(!0)}catch(Te){ae({message:String(Te)})}},ue=()=>{l(!1)},Me=()=>{s(T)&&(I||(I=window.setTimeout(he,W.controls.hideTimeoutTooltips)),l()&&he())},le=()=>{ue(),window.clearTimeout(I),I=void 0},N=(Te,oe,ke)=>{let Ke="";switch(_()){case"top":Ke=`transform: translate(${Te}px, ${oe}px);`;break;case"bottom":Ke=`transform: translate(${Te}px, ${oe}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${Te}px, ${oe}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${Te}px, ${oe}px);`}return Ke+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ke+=` opacity: ${ke?1:0}; visibility: ${ke?"visible":"hidden"}`,Ke},je=(Te,oe)=>{let ke="";switch(_()){case"top":ke=`transform: translate(${Te}px, ${oe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ke=`transform: translate(${Te}px, ${oe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ke=`transform: translate(${Te}px, ${oe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ke=`transform: translate(${Te}px, ${oe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ke},te=v(()=>N(s(E),s(R),l())),qe=v(()=>je(s(M),s(P)));Ht(Ne),kn(()=>window.clearTimeout(I));var re=Q$(),ve=_e(re);let ye;ve.__mousemove=Me,ve.__mousedown=le,ve.__mouseup=Me;var X=h(ve);$e(X,()=>{var Te;return(Te=e.children)!=null?Te:ne}),g(ve),ot(ve,Te=>D(C,Te),()=>s(C));var We=A(ve,2);{var tt=Te=>{Nf(Te,{children:(oe,ke)=>{var Ke=K$(),st=h(Ke),ut=h(st,!0);g(st);var at=A(st,2);g(Ke),ot(Ke,Et=>D(T,Et),()=>s(T)),k(()=>{lt(Ke,s(te)),be(ut,d()),lt(at,s(qe))}),y(oe,Ke)},$$slots:{default:!0}})};V(We,Te=>{d()&&!r()&&Te(tt)})}k(Te=>ye=ee(ve,1,"tooltip-wrapper svelte-hxlyne",null,ye,Te),[()=>({"full-width":$()})]),Pt("mouseenter",ve,Me),Pt("mouseleave",ve,le),y(t,re),H(),o()}ct(["mousemove","mousedown","mouseup"]);var y1=t=>{t.stopPropagation()},Y$=L("<div><!></div>"),j$={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 No(t,e){O(e,!0),q(t,j$);let[i,o]=Oe(),n=()=>S(u,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),r=Ee(),d=mo(),l=r.ui.isMobile,u=d.graphIsOpened$,f=r.ui.t,$=m(e,"className",3,""),p=m(e,"disabled",3,!1),_=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),b=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),P=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,uu.noop),W=m(e,"initialTranslateXPx",3,0),K=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,uu.noop),j=m(e,"mouseLeave",3,uu.noop),ae=v(()=>p()?n()?f("tooltip_disabled_when_graph_on"):P():T());var G=Y$();G.__pointerdown=[y1],G.__click=[y1];var ce=h(G);{var de=Ne=>{wa(Ne,{get content(){return s(ae)},get translateX(){return W()},get translateY(){return K()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return R()},children:(he,ue)=>{var Me=Fe(),le=_e(Me);$e(le,()=>{var N;return(N=e.children)!=null?N:ne}),y(he,Me)},$$slots:{default:!0}})},Le=Ne=>{var he=Fe(),ue=_e(he);$e(ue,()=>{var Me;return(Me=e.children)!=null?Me:ne}),y(Ne,he)};V(ce,Ne=>{_()&&s(ae)&&!a()?Ne(de):Ne(Le,!1)})}g(G),ot(G,Ne=>w(Ne),()=>w()),k(()=>{var Ne;ee(G,1,`btn-container ${(Ne=$())!=null?Ne:""}`,"svelte-p9r045"),De(G,"aria-hidden",E()||null)}),Pt("mouseenter",G,function(...Ne){var he;(he=U())==null||he.apply(this,Ne)}),Pt("mouseleave",G,function(...Ne){var he;(he=j())==null||he.apply(this,Ne)}),Xr(G,"clientWidth",b),y(t,G),H(),o()}ct(["pointerdown","click"]);var Z$=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 Pd(t,e){"use strict";var i=Z$(),o=h(i),n=A(o);g(i),k(()=>{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")}),y(t,i)}var X$=L("<div><!></div>"),J$={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 Df(t,e){O(e,!0),q(t,J$);let o=Ee().ui.t,n=J(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));No(t,{get tooltipContent(){return s(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(r,d)=>{var l=X$();let u;var f=h(l);let $=v(()=>!!e.videoEpisode.completed);Pd(f,{get completed(){return s($)}}),g(l),k(p=>{u=ee(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),lt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Xr(l,"clientWidth",p=>D(n,p)),y(r,l)},$$slots:{default:!0}}),H()}var e2=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),t2=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),i2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
170
170
  .video-episode-loaded.svelte-1u6kv8l,
171
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Mf(t,e){K(t,X$);let i=m(e,"videoEpisodes",19,()=>[]);var o=Z$();Ci(o,21,i,n=>n.from,(n,a)=>{var s=j$();let d;var l=h(s),u=h(l),f=A(u,2);let y;g(l),g(s),E((p,b)=>{d=ee(s,1,"video-episode svelte-1u6kv8l",null,d,p),at(s,`left: ${r(a).from}%; width: ${r(a).width}%`),at(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),y=ee(f,1,"video-episode-filled svelte-1u6kv8l",null,y,b),at(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,s)}),g(o),$(t,o)}function J$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,me(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function e2(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),u=o(t.clientX);n()(l,u,r(a).width),r(s)&&d()(l)}function t2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function i2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var o2=L("<div></div>"),n2=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),r2=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),s2={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 Of(t,e){q(t,i2);let i=m(e,"videoEpisodes",19,()=>[]);var o=t2();wi(o,21,i,n=>n.from,(n,a)=>{var r=e2();let d;var l=h(r),u=h(l),f=A(u,2);let $;g(l),g(r),k((p,_)=>{d=ee(r,1,"video-episode svelte-1u6kv8l",null,d,p),lt(r,`left: ${s(a).from}%; width: ${s(a).width}%`),lt(u,`transform: translateX(${s(a).loadedWidth/s(a).width*100}%)`),$=ee(f,1,"video-episode-filled svelte-1u6kv8l",null,$,_),lt(f,`transform: translateX(${s(a).filledWidth/s(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),y(n,r)}),g(o),y(t,o)}function o2(t,e,i,o,n,a,r){if(t.preventDefault(),e()&&D(i,ge(e().getBoundingClientRect())),o()||s(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);r()(d),e().setPointerCapture(t.pointerId)}function n2(t,e,i,o,n,a,r,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),u=o(t.clientX);n()(l,u,s(a).width),s(r)&&d()(l)}function r2(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function s2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var a2=L("<div></div>"),l2=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),d2=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),c2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
172
172
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
173
173
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
174
174
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
175
175
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
176
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ma(t,e){F(e,!0),K(t,s2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),s=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),y=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),b=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),_=m(e,"onPointerDown",3,Mo.noop),C=m(e,"onHandleMove",3,Mo.noop),T=m(e,"onPointerUp",3,Mo.noop),I=m(e,"onPointerEnter",3,Mo.noop),M=m(e,"onPointerMove",3,Mo.noop),P=m(e,"onPointerLeave",3,Mo.noop),k=m(e,"onMouseEnter",3,Mo.noop),V=m(e,"onMouseLeave",3,Mo.noop),q=m(e,"onWheelUp",3,Mo.noop),Z=m(e,"onWheelDown",3,Mo.noop),H=m(e,"onWheelLeft",3,Mo.noop),G=m(e,"onWheelRight",3,Mo.noop),oe=m(e,"onDisabledClick",3,Mo.noop),X=m(e,"loadedProgress",3,0),ae=m(e,"filledProgress",3,0),ue=m(e,"handleProgress",3,0),Pe=m(e,"ariaLabel",3,""),Le=m(e,"ariaValueMin",3,void 0),he=m(e,"ariaValueMax",3,void 0),le=m(e,"ariaValueNow",3,void 0),Ae=m(e,"ariaValueText",3,""),re=Yt(),N=J(void 0),pe=J(!1),be=v(()=>{var ne;return(ne=he())!=null?ne:0}),We=v(()=>{var ne;return(0,Mo.isNonNullable)(f())&&((ne=f()[f().length-1])==null?void 0:ne.time)<r(be)}),se=v(()=>(0,Mo.isNonNullable)(f())&&f().length&&r(We)&&r(be)?ke(X()*100,ae()*100):[]);function Q(ne){if(ne.preventDefault(),i()&&D(N,me(i().getBoundingClientRect())),b())return;let Ne=Se(ne.clientX,ne.clientY),Ge=Re(ne.clientX);I()(Ne,Ge,r(N).width)}function _e(ne){ne.preventDefault(),!b()&&P()()}function te(){k()()}function Fe(){V()()}function Xe(ne){b()||y()&&(ne.preventDefault(),ne.deltaY<0?q()():ne.deltaY>0?Z()():ne.deltaX>0?G()():H()())}function Se(ne,Ne){return s()?Math.max(0,Math.min(1,(r(N).height-(Ne-r(N).top))/r(N).height)):Math.min(Math.max(ne-r(N).x,0),r(N).width)/r(N).width}function Re(ne){return Math.min(Math.max(ne-r(N).x,0),r(N).width)}function ke(ne,Ne){let Ge=re.features.episodesClustering&&!p()?re.episodeMinWidthPc:0,Ze=[],Ve=f()[0].time/r(be)*100,ot=0,et=0;for(let vt=1;vt<f().length;vt++)ot=f()[vt].time/r(be)*100,ot-Ve>Ge&&(Ze.push({from:Ve,width:Math.max(0,ot-Ve),loadedWidth:Math.max(0,Math.min(ot,ne)-Ve),filledWidth:Math.max(0,Math.min(ot,Ne)-Ve),interactive:f()[vt-1].interactive,completed:f()[vt-1].completed}),Ve=f()[vt].time/r(be)*100,et++);let yt={from:Ve,width:Math.max(0,100-Ve),loadedWidth:Math.max(0,Math.min(ne,100)-Ve),filledWidth:Math.max(0,Math.min(Ne,100)-Ve),interactive:f()[et].interactive,completed:f()[et].completed};100-Ve<Ge?(et-=1,Ze[et].width+=100-Ve,Ze[et].loadedWidth+=Math.max(0,Math.min(ne,100)-Ve),Ze[et].filledWidth+=Math.max(0,Math.min(Ne,100)-Ve)):Ze[et]=yt;let ft=f()[0].time;if(ft!==0){let vt=ft/r(be)*100;Ze.unshift({from:0,width:vt,loadedWidth:Math.min(vt,ne),filledWidth:Math.min(vt,Ne)})}return Ze}var ze=r2(),ct=fe(ze);{var ut=ne=>{var Ne=o2();let Ge;Ci(Ne,21,()=>r(se),Ze=>Ze.from,(Ze,Ve)=>{var ot=He(),et=fe(ot);{var yt=ft=>{Af(ft,{get videoEpisode(){return r(Ve)},get disabled(){return b()}})};R(et,ft=>{r(Ve).interactive&&ft(yt)})}$(Ze,ot)}),g(Ne),E(Ze=>Ge=ee(Ne,1,"interactive-icons svelte-1tpemng",null,Ge,Ze),[()=>({mobile:l(),hidden:l()&&!r(pe)})]),$(ne,Ne)};R(ct,ne=>{p()&&ne(ut)})}var nt=A(ct,2);let At;nt.__pointerdown=[J$,i,N,b,pe,Se,_],nt.__pointermove=[e2,b,Se,Re,M,N,pe,C],nt.__pointerup=[t2,b,pe,Se,T],nt.__click=[i2,b,oe,Se];var bt=h(nt);{var Zt=ne=>{Mf(ne,{get videoEpisodes(){return r(se)},get disabled(){return b()},get isMobile(){return l()}})},ei=ne=>{var Ne=n2(),Ge=h(Ne),Ze=A(Ge,2);let Ve;g(Ne),E(ot=>{at(Ge,`transform: translateX(${X()*100}%);`),Ve=ee(Ze,1,"filled svelte-1tpemng",null,Ve,ot),at(Ze,`transform: translateX(${ae()*100}%);`)},[()=>({"active-live":d()})]),$(ne,Ne)};R(bt,ne=>{r(se).length?ne(Zt):ne(ei,!1)})}var Rt=A(bt,2);let Ot;var O=h(Rt);let $e;g(Rt),g(nt),_t(nt,ne=>i(ne),()=>i()),E((ne,Ne,Ge)=>{var Ze,Ve;At=ee(nt,1,`slider ${(Ze=o())!=null?Ze:""}`,"svelte-1tpemng",At,ne),De(nt,"aria-label",Pe()),De(nt,"aria-valuemin",Le()),De(nt,"aria-valuemax",he()),De(nt,"aria-valuenow",le()),De(nt,"aria-valuetext",Ae()),De(nt,"data-testid",(Ve=n())!=null?Ve:null),Ot=ee(Rt,1,"handleWrap svelte-1tpemng",null,Ot,Ne),at(Rt,`transform: translateX(${ue()*100}%);`),$e=ee(O,1,"handle svelte-1tpemng",null,$e,Ge)},[()=>({disabled:b(),"slider-dragging":r(pe),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Pt("pointerenter",nt,Q),Pt("pointerleave",nt,_e),Pt("mouseenter",nt,te),Pt("mouseleave",nt,Fe),Pt("wheel",nt,Xe),$(t,ze),U()}lt(["pointerdown","pointermove","pointerup","click"]);var Gi=(t,e)=>ea[t]>=ea[e],f1=(t,e)=>ea[t]<ea[e],Is=(t,e)=>ea[t]<=ea[e],m1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var a2=L("<div><!></div>"),l2=L("<div><!> <!></div>"),d2={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 Lf(t,e){var Se,Re;F(e,!0),K(t,d2);let[i,o]=Oe(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(y,"$muted$",i),s=()=>S(f,"$volume$",i),d=()=>S(_,"$currentGridType$",i),l=Te(),u=Yt(),f=l.state.volume$,y=l.state.muted$,{setVolume:p,startVolumeChanging:b,stopVolumeChanging:w}=l.actions.internal,_=l.ui.currentGridType$,C=(Se=l.callbacks)==null?void 0:Se.onAudioDoesNotExistHint,T=(Re=l.callbacks)==null?void 0:Re.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,k=J(!1),V,q=v(()=>e.isAds||n()),Z=v(()=>!r(q)||a()||s()===0),H=v(()=>Is(d(),"s")),G=v(()=>r(H)?"":r(Z)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume_on"):P("tooltip_volume_muted")),oe=P("aria_label_volume"),X=v(()=>r(Z)?0:s()),ae=!1,ue=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Pe(ke){b(),p(ke)}function Le(){iu(l,s(),u.controls.volumeStepWheel)}function he(){ou(l,s(),u.controls.volumeStepWheel)}function le(ke){p(ke)}function Ae(ke){p(ke),w()}function re(){ae=!0}function N(){ae=!1,We()}function pe(){clearTimeout(V),D(k,!0)}function be(){We()}function We(){V=window.setTimeout(()=>{ae||D(k,!1)},u.controls.volumeBarTimeout)}function se(ke){ke.preventDefault(),ke.deltaY<0?Le():ke.deltaY>0&&he()}var Q=l2();let _e;var te=h(Q);fa(te,{get content(){return r(G)},translateY:-18,children:(ke,ze)=>{let ct=v(()=>r(H)?"btn-volume-vertical":"btn-volume-horizontal");Dt(ke,{className:"btn-full-opacity",get disabled(){return r(ue)},get testId(){return r(ct)},ariaLabel:oe,get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyM},role:"switch",children:(ut,nt)=>{Ts(ut,{get volume(){return s()},get muted(){return r(Z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Fe=A(te,2);{var Xe=ke=>{var ze=a2();let ct;var ut=h(ze);let nt=v(()=>r(H)?"volumeBar-slider-vertical":""),At=v(()=>r(H)&&!r(k)),bt=v(()=>r(H)?re:wd.noop),Zt=v(()=>r(H)?N:wd.noop),ei=v(()=>Math.round(r(X)*100)),Rt=v(()=>`${Math.round(r(X)*100)}%`),Ot=v(()=>r(H)?"volume-slider-vertical":"volume-slider");ma(ut,{get className(){return r(nt)},get isHidden(){return r(At)},get isVertical(){return r(H)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:he,onPointerDown:Pe,onHandleMove:le,onPointerUp:Ae,get onPointerEnter(){return r(bt)},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(ei)},get ariaValueText(){return r(Rt)},get filledProgress(){return r(X)},get handleProgress(){return r(X)},get testId(){return r(Ot)}}),g(ze),E(O=>ct=ee(ze,1,"volumeBar svelte-1auih1j",null,ct,O),[()=>({"volumeBar-vertical":r(H)})]),$(ke,ze)};R(Fe,ke=>{r(q)&&ke(Xe)})}g(Q),E(ke=>_e=ee(Q,1,"volumeBar-container svelte-1auih1j",null,_e,ke),[()=>({vertical:r(H)})]),Pt("mouseenter",Q,function(...ke){var ze;(ze=r(H)?pe:wd.noop)==null||ze.apply(this,ke)}),Pt("mouseleave",Q,function(...ke){var ze;(ze=r(H)?be:wd.noop)==null||ze.apply(this,ke)}),Pt("wheel",Q,se),$(t,Q),U(),o()}var v1=require("@vkontakte/videoplayer-shared/es2015");var c2=xe('<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 Vf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=c2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img"},i))),$(t,o)}var u2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Rf(t,e){K(t,u2);let i=m(e,"isFullscreen",8,!1),o=yr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Vf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Sd(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,v1.noop),n=Te(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Dt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=ws(u);a.set(f),o()()},get ariaKeyShortCut(){return Fr.KeyF},children:(u,f)=>{Rf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var p2=xe('<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 Bf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=p2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i))),$(t,o)}var f2=xe('<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 Nf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=f2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(4),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),$(t,o)}var m2={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 Sa(t,e){O(e,!0),q(t,c2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),r=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),$=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),_=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),b=m(e,"onPointerDown",3,Do.noop),C=m(e,"onHandleMove",3,Do.noop),T=m(e,"onPointerUp",3,Do.noop),I=m(e,"onPointerEnter",3,Do.noop),M=m(e,"onPointerMove",3,Do.noop),P=m(e,"onPointerLeave",3,Do.noop),E=m(e,"onMouseEnter",3,Do.noop),R=m(e,"onMouseLeave",3,Do.noop),W=m(e,"onWheelUp",3,Do.noop),K=m(e,"onWheelDown",3,Do.noop),U=m(e,"onWheelLeft",3,Do.noop),j=m(e,"onWheelRight",3,Do.noop),ae=m(e,"onDisabledClick",3,Do.noop),G=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),de=m(e,"handleProgress",3,0),Le=m(e,"ariaLabel",3,""),Ne=m(e,"ariaValueMin",3,void 0),he=m(e,"ariaValueMax",3,void 0),ue=m(e,"ariaValueNow",3,void 0),Me=m(e,"ariaValueText",3,""),le=qt(),N=J(void 0),je=J(!1),te=v(()=>{var Z;return(Z=he())!=null?Z:0}),qe=v(()=>{var Z;return(0,Do.isNonNullable)(f())&&((Z=f()[f().length-1])==null?void 0:Z.time)<s(te)}),re=v(()=>(0,Do.isNonNullable)(f())&&f().length&&s(qe)&&s(te)?ke(G()*100,ce()*100):[]);function ve(Z){if(Z.preventDefault(),i()&&D(N,ge(i().getBoundingClientRect())),_())return;let fe=Te(Z.clientX,Z.clientY),Ae=oe(Z.clientX);I()(fe,Ae,s(N).width)}function ye(Z){Z.preventDefault(),!_()&&P()()}function X(){E()()}function We(){R()()}function tt(Z){_()||$()&&(Z.preventDefault(),Z.deltaY<0?W()():Z.deltaY>0?K()():Z.deltaX>0?j()():U()())}function Te(Z,fe){return r()?Math.max(0,Math.min(1,(s(N).height-(fe-s(N).top))/s(N).height)):Math.min(Math.max(Z-s(N).x,0),s(N).width)/s(N).width}function oe(Z){return Math.min(Math.max(Z-s(N).x,0),s(N).width)}function ke(Z,fe){let Ae=le.features.episodesClustering&&!p()?le.episodeMinWidthPc:0,Be=[],me=f()[0].time/s(te)*100,Qe=0,nt=0;for(let ht=1;ht<f().length;ht++)Qe=f()[ht].time/s(te)*100,Qe-me>Ae&&(Be.push({from:me,width:Math.max(0,Qe-me),loadedWidth:Math.max(0,Math.min(Qe,Z)-me),filledWidth:Math.max(0,Math.min(Qe,fe)-me),interactive:f()[ht-1].interactive,completed:f()[ht-1].completed}),me=f()[ht].time/s(te)*100,nt++);let et={from:me,width:Math.max(0,100-me),loadedWidth:Math.max(0,Math.min(Z,100)-me),filledWidth:Math.max(0,Math.min(fe,100)-me),interactive:f()[nt].interactive,completed:f()[nt].completed};100-me<Ae?(nt-=1,Be[nt].width+=100-me,Be[nt].loadedWidth+=Math.max(0,Math.min(Z,100)-me),Be[nt].filledWidth+=Math.max(0,Math.min(fe,100)-me)):Be[nt]=et;let St=f()[0].time;if(St!==0){let ht=St/s(te)*100;Be.unshift({from:0,width:ht,loadedWidth:Math.min(ht,Z),filledWidth:Math.min(ht,fe)})}return Be}var Ke=d2(),st=_e(Ke);{var ut=Z=>{var fe=a2();let Ae;wi(fe,21,()=>s(re),Be=>Be.from,(Be,me)=>{var Qe=Fe(),nt=_e(Qe);{var et=St=>{Df(St,{get videoEpisode(){return s(me)},get disabled(){return _()}})};V(nt,St=>{s(me).interactive&&St(et)})}y(Be,Qe)}),g(fe),k(Be=>Ae=ee(fe,1,"interactive-icons svelte-1tpemng",null,Ae,Be),[()=>({mobile:l(),hidden:l()&&!s(je)})]),y(Z,fe)};V(st,Z=>{p()&&Z(ut)})}var at=A(st,2);let Et;at.__pointerdown=[o2,i,N,_,je,Te,b],at.__pointermove=[n2,_,Te,oe,M,N,je,C],at.__pointerup=[r2,_,je,Te,T],at.__click=[s2,_,ae,Te];var ft=h(at);{var Xt=Z=>{Of(Z,{get videoEpisodes(){return s(re)},get disabled(){return _()},get isMobile(){return l()}})},si=Z=>{var fe=l2(),Ae=h(fe),Be=A(Ae,2);let me;g(fe),k(Qe=>{lt(Ae,`transform: translateX(${G()*100}%);`),me=ee(Be,1,"filled svelte-1tpemng",null,me,Qe),lt(Be,`transform: translateX(${ce()*100}%);`)},[()=>({"active-live":d()})]),y(Z,fe)};V(ft,Z=>{s(re).length?Z(Xt):Z(si,!1)})}var Wt=A(ft,2);let Mt;var ie=h(Wt);let Rt;g(Wt),g(at),ot(at,Z=>i(Z),()=>i()),k((Z,fe,Ae)=>{var Be,me;Et=ee(at,1,`slider ${(Be=o())!=null?Be:""}`,"svelte-1tpemng",Et,Z),De(at,"aria-label",Le()),De(at,"aria-valuemin",Ne()),De(at,"aria-valuemax",he()),De(at,"aria-valuenow",ue()),De(at,"aria-valuetext",Me()),De(at,"data-testid",(me=n())!=null?me:null),Mt=ee(Wt,1,"handleWrap svelte-1tpemng",null,Mt,fe),lt(Wt,`transform: translateX(${de()*100}%);`),Rt=ee(ie,1,"handle svelte-1tpemng",null,Rt,Ae)},[()=>({disabled:_(),"slider-dragging":s(je),hidden:a(),"slider-vertical":r(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Pt("pointerenter",at,ve),Pt("pointerleave",at,ye),Pt("mouseenter",at,X),Pt("mouseleave",at,We),Pt("wheel",at,tt),y(t,Ke),H()}ct(["pointerdown","pointermove","pointerup","click"]);var ji=(t,e)=>ca[t]>=ca[e],x1=(t,e)=>ca[t]<ca[e],Fs=(t,e)=>ca[t]<=ca[e],w1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var u2=L("<div><!></div>"),p2=L("<div><!> <!></div>"),f2={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 Hf(t,e){var Te,oe;O(e,!0),q(t,f2);let[i,o]=Oe(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S($,"$muted$",i),r=()=>S(f,"$volume$",i),d=()=>S(b,"$currentGridType$",i),l=Ee(),u=qt(),f=l.state.volume$,$=l.state.muted$,{setVolume:p,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,b=l.ui.currentGridType$,C=(Te=l.callbacks)==null?void 0:Te.onAudioDoesNotExistHint,T=(oe=l.callbacks)==null?void 0:oe.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,E=J(!1),R,W=v(()=>e.isAds||n()),K=v(()=>!s(W)||a()||r()===0),U=v(()=>Fs(d(),"s")),j=v(()=>s(U)?"":s(K)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),ae=v(()=>s(K)?P("tooltip_volume"):P("tooltip_volume_muted")),G=v(()=>s(K)?0:r()),ce=!1,de=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Le(ke){_(),p(ke)}function Ne(){lu(l,r(),u.controls.volumeStepWheel)}function he(){du(l,r(),u.controls.volumeStepWheel)}function ue(ke){p(ke)}function Me(ke){p(ke),w()}function le(){ce=!0}function N(){ce=!1,qe()}function je(){clearTimeout(R),D(E,!0)}function te(){qe()}function qe(){R=window.setTimeout(()=>{ce||D(E,!1)},u.controls.volumeBarTimeout)}function re(ke){ke.preventDefault(),ke.deltaY<0?Ne():ke.deltaY>0&&he()}var ve=p2();let ye;var X=h(ve);wa(X,{get content(){return s(j)},translateY:-18,children:(ke,Ke)=>{let st=v(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Dt(ke,{className:"btn-full-opacity",get disabled(){return s(de)},get testId(){return s(st)},get ariaLabel(){return s(ae)},get click(){return e.click},get ariaKeyShortCut(){return Jr.KeyM},role:"button",children:(ut,at)=>{Hs(ut,{get volume(){return r()},get muted(){return s(K)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var We=A(X,2);{var tt=ke=>{var Ke=u2();let st;var ut=h(Ke);let at=v(()=>s(U)?"volumeBar-slider-vertical":""),Et=v(()=>s(U)&&!s(E)),ft=v(()=>s(U)?le:Ad.noop),Xt=v(()=>s(U)?N:Ad.noop),si=v(()=>Math.round(s(G)*100)),Wt=v(()=>`${Math.round(s(G)*100)}%`),Mt=v(()=>s(U)?"volume-slider-vertical":"volume-slider");Sa(ut,{get className(){return s(at)},get isHidden(){return s(Et)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Ne,onWheelDown:he,onPointerDown:Le,onHandleMove:ue,onPointerUp:Me,get onPointerEnter(){return s(ft)},get onPointerLeave(){return s(Xt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(si)},get ariaValueText(){return s(Wt)},get filledProgress(){return s(G)},get handleProgress(){return s(G)},get testId(){return s(Mt)}}),g(Ke),k(ie=>st=ee(Ke,1,"volumeBar svelte-1auih1j",null,st,ie),[()=>({"volumeBar-vertical":s(U)})]),y(ke,Ke)};V(We,ke=>{s(W)&&ke(tt)})}g(ve),k(ke=>ye=ee(ve,1,"volumeBar-container svelte-1auih1j",null,ye,ke),[()=>({vertical:s(U)})]),Pt("mouseenter",ve,function(...ke){var Ke;(Ke=s(U)?je:Ad.noop)==null||Ke.apply(this,ke)}),Pt("mouseleave",ve,function(...ke){var Ke;(Ke=s(U)?te:Ad.noop)==null||Ke.apply(this,ke)}),Pt("wheel",ve,re),y(t,ve),H(),o()}var S1=require("@vkontakte/videoplayer-shared/es2015");var m2=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 Ff(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=m2();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img"},i))),y(t,o)}var v2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Uf(t,e){q(t,v2);let i=m(e,"isFullscreen",8,!1),o=Pr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ff(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function Md(t,e){O(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,S1.noop),n=Ee(),a=n.ui.isFullscreenOpenedByKeyboard,r=n.ui.t,d=v(()=>i()?r("tooltip_fullscreen_on"):r("tooltip_fullscreen_off"));Dt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:u=>{let f=Ns(u);a.set(f),o()()},get ariaKeyShortCut(){return Jr.KeyF},role:"button",children:(u,f)=>{Uf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var g2=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 zf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=g2();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i))),y(t,o)}var h2=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 Wf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=h2();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(4),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}var _2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
178
178
  svg[data-testid="vk-video-logo-icon--short"] ._en,
179
179
  svg[data-testid="vk-video-logo-icon"] ._en,
180
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Df(t,e){K(t,m2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);Nf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Cd(t,e){F(e,!0);let[i,o]=Oe(),n=()=>S(b,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),s=()=>S(_,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Yt(),y=Te(),p=y.ui.currentGridType$,b=y.ui.isMobile,w=y.ui.t,_=y.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=v(()=>(n()||Is(a(),"l"))&&r(T)),M=()=>{var V,q;e.click(),(V=y.callbacks)!=null&&V.onLogoClicked?(q=y.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},P=v(()=>!l()),k=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return r(P)},click:M,get testId(){return r(k)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,q)=>{var Z=He(),H=fe(Z);{var G=X=>{Df(X,{get short(){return r(I)},get isCyrillic(){return s()}})},oe=X=>{Bf(X,{})};R(H,X=>{r(T)?X(G):X(oe,!1)})}$(V,Z)},$$slots:{default:!0}}),U(),o()}var g1=require("@vkontakte/videoplayer-core/es2015");var Of=require("@vkontakte/videoplayer-core/es2015"),g2=xe('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),h2=xe('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),_2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
180
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function qf(t,e){q(t,_2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,r=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${s(r)+1} 24`);Wf(t,{get width(){return s(r)},height:"24",get viewBox(){return s(l)},get"data-testid"(){return s(d)}})}function Ld(t,e){O(e,!0);let[i,o]=Oe(),n=()=>S(_,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),r=()=>S(b,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=qt(),$=Ee(),p=$.ui.currentGridType$,_=$.ui.isMobile,w=$.ui.t,b=$.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=v(()=>(n()||Fs(a(),"l"))&&s(T)),M=()=>{var R,W;e.click(),(R=$.callbacks)!=null&&R.onLogoClicked?(W=$.callbacks)==null||W.onLogoClicked():u()&&window.open(u(),"_blank")},P=v(()=>!l()),E=v(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return s(P)},click:M,get testId(){return s(E)},get ariaLabel(){return s(C)},get ref(){return d()},set ref(R){d(R)},children:(R,W)=>{var K=Fe(),U=_e(K);{var j=G=>{qf(G,{get short(){return s(I)},get isCyrillic(){return r()}})},ae=G=>{zf(G,{})};V(U,G=>{s(T)?G(j):G(ae,!1)})}y(R,K)},$$slots:{default:!0}}),H(),o()}var C1=require("@vkontakte/videoplayer-core/es2015");var Kf=require("@vkontakte/videoplayer-core/es2015"),$2=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>'),y2=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>'),x2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
181
181
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
182
182
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
183
183
  animation-name: svelte-8z1bf5-wave3;}
@@ -225,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
225
225
  100% {
226
226
  opacity: 1;
227
227
  }
228
- }`};function Hf(t,e){F(e,!0),K(t,_2);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===Of.ChromecastState.CONNECTED),n=v(()=>e.iconState===Of.ChromecastState.CONNECTING);var a=He(),s=fe(a);{var d=u=>{var f=g2(),y=h(f),p=h(y),b=h(p);ye(),g(p);var w=A(p);ye(),g(y);var _=A(y),C=h(_),T=h(C);g(C),ye(),g(_),g(f),E(()=>{De(b,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},l=u=>{var f=h2();let y;var p=h(f),b=A(h(p),5);let w;g(p),g(f),E((_,C)=>{y=ee(f,0,"svelte-8z1bf5",null,y,_),w=ee(b,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};R(s,u=>{i()?u(d):u(l,!1)})}$(t,a),U()}var h1=require("@vkontakte/videoplayer-shared/es2015");function Td(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,h1.noop),s=Te().ui.t,d=v(()=>e.state===g1.ChromecastState.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Dt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,u)=>{Hf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var b2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),$2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function Ff(t,e){K(t,$2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),a=m(e,"translateYPx",3,0),s=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),l=J(void 0),u=J(void 0);function f(C){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),I=T/2;return C<I?I+s():C>e.containerWidth-I?e.containerWidth-I-d():C}let y=v(()=>f(n()));var p=b2(),b=h(p);let w;var _=h(b);ge(_,()=>{var C;return(C=e.children)!=null?C:ie}),g(b),_t(b,C=>D(u,C),()=>r(u)),g(p),_t(p,C=>D(l,C),()=>r(l)),E(C=>{at(p,`transform: translate(${r(y)}px, ${a()}px);`),w=ee(b,1,"tooltip svelte-5ygsa2",null,w,C),at(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var su=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var _1=t=>!!(Math.round(Math.abs(t)/90)%2),b1=t=>Math.abs(t)/90%4===1;var y2=L('<div class="preview svelte-1wqg760"></div>'),x2=L('<div class="time svelte-1wqg760"> </div>'),w2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),S2={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 Uf(t,e){F(e,!0),K(t,S2);let[i,o]=Oe(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(_,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),y=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),b=Te(),w=b.ui.rotateAlpha,_=b.ui.playerSize,C=J(0),T=J(0),I=J(""),M=J(0),P=J(0),k=J(0),V=J(0),q=v(()=>su(f(),y(),u())),Z=v(()=>_1(n())),H=v(()=>b1(n())),G=v(ae),oe=v(()=>(r(H)?1:-1)*(r(C)/2-r(T)/2)),X=v(()=>r(oe)*-1);Ue(()=>{(Q=>(D(C,me(Q.width)),D(T,me(Q.height))))(Pe())}),Ue(()=>{(Q=>(D(I,me(Q.imgSrc)),D(M,me(Q.imgWidth)),D(P,me(Q.imgHeight)),D(k,me(Q.imgOffsetX)),D(V,me(Q.imgOffsetY))))(Le(f()))});function ae(){var Fe;let Q=l()?s.MOBILE:s.DESKTOP,{isVertical:_e}=ue(),te=30;return(Fe=r(q))!=null&&Fe.text&&(te+=16),(_e||r(Z))&&(te+=18,te+=50),Math.min(Math.max(a().height-te,0),Q)}function ue(){let Q=e.previewThumbsData.frameWidth,_e=e.previewThumbsData.frameHeight,te=_e>Q;return{width:Q,height:_e,isHorizontal:!te,isVertical:te}}function Pe(){let{height:Q,isHorizontal:_e,isVertical:te,width:Fe}=ue();return _e&&(Q=Q/Fe*r(G),Fe=r(G)),te&&(Fe=Fe/Q*r(G),Q=r(G)),{width:Fe,height:Q}}function Le(Q){let _e;e.previewThumbsData.isUV?_e=Math.floor(y()*Q/e.previewThumbsData.frequency):_e=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Q)));let te=Math.floor(_e/e.previewThumbsData.countPerImage),Fe=Math.floor(_e%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=_e%e.previewThumbsData.countPerRow,Se=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&te===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Se=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Se++);let Re=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&te===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Re=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ke=r(C)*Re,ze=r(T)*Se,ct=-Xe*r(C),ut=-Fe*r(T);return{imgSrc:e.previewThumbsData.links[te],imgWidth:ke,imgHeight:ze,imgOffsetX:ct,imgOffsetY:ut}}var he=w2();let le;var Ae=h(he);{var re=Q=>{var _e=y2();E(()=>at(_e,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(I)}); background-size: ${r(M)}px ${r(P)}px; background-position: ${r(k)}px ${r(V)}px;
229
- transform: rotate(${n()}deg) ${r(Z)?`translate(${r(oe)}px, ${r(X)}px)`:""};
230
- `)),$(Q,_e)};R(Ae,Q=>{r(I)&&Q(re)})}var N=A(Ae,2),pe=h(N);{var be=Q=>{var _e=He(),te=fe(_e);{var Fe=Se=>{var Re=Or();E(ke=>ve(Re,ke),[()=>z("tooltip_episode_unfinished")]),$(Se,Re)},Xe=Se=>{var Re=Or();E(()=>ve(Re,r(q).text||"")),$(Se,Re)};R(te,Se=>{p()&&r(q).completed===!1?Se(Fe):Se(Xe,!1)})}$(Q,_e)};R(pe,Q=>{r(q)&&Q(be)})}g(N);var We=A(N,2);{var se=Q=>{var _e=x2(),te=h(_e,!0);g(_e),E(()=>ve(te,d())),$(Q,_e)};R(We,Q=>{p()||Q(se)})}g(he),E(Q=>{le=ee(he,1,"timeline-preview svelte-1wqg760",null,le,Q),at(he,`width: ${r(Z)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),$(t,he),U(),o()}var C2=L('<span class="time svelte-1jr6obn"> </span>'),T2=L("<!> <!>",1),I2={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 zf(t,e){var Ze,Ve,ot,et,yt;F(e,!0),K(t,I2);let[i,o]=Oe(),n=()=>S(oe,"$interactiveEpisodes$",i),a=()=>S(k,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(ue,"$isInteractiveExpectation$",i),l=()=>S(ae,"$isInteractiveTime$",i),u=()=>S(V,"$isLive$",i),f=()=>S(Z,"$isMobile",i),y=()=>S(q,"$isActiveLive$",i),p=()=>S(M,"$bufferedProgress$",i),b=()=>S(he,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),_=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Te(),I=Yt(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,k=T.state.duration$,V=T.state.isLive$,q=T.state.isActiveLive$,Z=T.ui.isMobile,H=I.features.episodes&&_()?T.actions.internal.getVideoEpisodes():void 0,G=T.actions.internal.getPreviewThumbsData(),oe=T.state.interactiveEpisodes$,X=T.state.isInteractive,ae=T.state.isInteractiveTime$,ue=T.state.isInteractiveExpectation$,Pe=T.actions.internal.correctSeekTimeToInteractive,Le=(Ze=T.callbacks)==null?void 0:Ze.onDisabledTimelineClick,he=T.ui.controls.disabledControls$,le=(ot=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:ot.onTimelineMouseEnter,Ae=(yt=(et=T.callbacks)==null?void 0:et.uiInfo)==null?void 0:yt.onTimelineMouseLeave,re=T.ui.t,N=I.features.interactiveResponsiveUi,pe=v(()=>X?n():H),be=v(()=>pn(a())),We=v(()=>pn(s())),se=v(()=>s()/a()),Q=v(()=>d()||l()),_e=J(!1),te=J(""),Fe=J(0),Xe=J(0),Se=J(0),Re=v(()=>({containerWidth:r(Xe),translateXPx:r(Fe),translateYPx:X&&G?-36:-16,active:r(_e)&&w()&&!r(Q)&&!N,pointer:!I.features.timelinePreview||!G||u()})),ke=re("aria_timeline"),ze=v(()=>re("aria_timeline_value",{position:r(We),duration:r(be)}));function ct(ft){return!Pe||!X?ft:Pe(ft*a())/a()}function ut(ft){T.actions.internal.startScrubbing(ct(ft))}function nt(ft){l()||T.actions.internal.progressScrubbing(ct(ft))}function At(ft){T.actions.internal.completeScrubbing(ct(ft)),D(_e,!1)}function bt(ft,vt,Ht){Rt(ft,vt,Ht),D(_e,!0)}function Zt(ft,vt,Ht){Rt(ft,vt,Ht),D(_e,!0)}function ei(){D(_e,!1)}function Rt(ft,vt,Ht){D(Se,me(ct(ft))),D(Fe,me(vt)),Ht&&D(Xe,me(Ht)),D(te,me(Ot(ft)))}function Ot(ft){let vt=pn((u()?1-ft:ft)*a());return u()?`-${vt}`:vt}var O=T2(),$e=fe(O);Ff($e,ns(()=>r(Re),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ft,vt)=>{var Ht=He(),Ye=fe(Ht);{var li=it=>{Uf(it,{get time(){return r(te)},get isMobile(){return f()},get videoEpisodes(){return r(pe)},previewThumbsData:G,get progress(){return r(Se)},get duration(){return a()},isInteractive:X})},Si=it=>{var Jt=C2(),Li=h(Jt,!0);g(Jt),E(()=>ve(Li,r(te))),$(it,Jt)};R(Ye,it=>{I.features.timelinePreview&&G&&!u()?it(li):it(Si,!1)})}$(ft,Ht)},$$slots:{default:!0}}));var ne=A($e,2);let Ne=v(()=>Math.round(r(se)*100)),Ge=v(()=>b().has("TIMELINE"));ma(ne,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return f()},ariaLabel:ke,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Ne)},get ariaValueText(){return r(ze)},get loadedProgress(){return p()},get filledProgress(){return r(se)},get handleProgress(){return r(se)},get videoEpisodes(){return r(pe)},onPointerDown:ut,onHandleMove:nt,onPointerMove:Zt,onPointerUp:At,onPointerEnter:bt,onPointerLeave:ei,onMouseEnter:le,onMouseLeave:Ae,onDisabledClick:Le,isInteractive:X,get disabled(){return r(Ge)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(ft){C(ft)}}),$(t,O),U(),o()}var k2={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 Id(t,e){F(e,!0),K(t,k2);let[i,o]=Oe(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=Te(),l=d.ui.isMobile,u=d.ui.t,f=v(()=>pn(s())),y=v(()=>pn(a())),p=v(()=>a()/s()),b=v(()=>u("aria_timeline_value",{position:r(y),duration:r(f)})),w=v(()=>Math.round(r(p)*100));ma(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(b)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var E2=L("<div><!></div>"),P2=L("<div></div>"),A2={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 va(t,e){F(e,!0),K(t,A2);let[i,o]=Oe(),n=()=>S(b,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(_,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),p=Te(),b=p.state.isLive$,w=p.ads.duration,_=p.ads.position,C=p.ui.isMobile,T=v(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=He(),M=fe(I);{var P=V=>{var q=E2();let Z;var H=h(q);{var G=X=>{Id(X,{get position(){return s()},get duration(){return d()}})},oe=X=>{zf(X,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(ae){y(ae)}})};R(H,X=>{l()?X(G):X(oe,!1)})}g(q),E(X=>Z=ee(q,1,"timeline svelte-41cp6d",null,Z,X),[()=>({withoutPadding:!f(),mobile:a()})]),$(V,q)},k=V=>{var q=P2();let Z;E(H=>Z=ee(q,1,"timeline-stub svelte-41cp6d",null,Z,H),[()=>({mobile:a()})]),$(V,q)};R(M,V=>{r(T)?V(P):V(k,!1)})}$(t,I),U(),o()}var $1=require("@vkontakte/videoplayer-shared/es2015");var M2=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Wf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=M2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(3),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i))),$(t,o)}var L2=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function qf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=L2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i))),$(t,o)}var V2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),R2=L('<span class="text svelte-1yhs2ga"> </span>'),B2=L('<span class="text count svelte-1yhs2ga"> </span>'),N2=L("<!> <!>",1),D2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function kd(t,e){var ue,Pe,Le;F(e,!0),K(t,D2);let[i,o]=Oe(),n=()=>S(w,"$currentGridType$",i),a=()=>S(_,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),y=Te(),p=(Pe=(ue=y.callbacks)==null?void 0:ue.onEpisodeChanged)!=null?Pe:$1.noop,b=!!((Le=y.callbacks)!=null&&Le.onEpisodeClicked),w=y.ui.currentGridType$,_=y.ui.episodes.openedByKeyboard$,C=y.ui.episodes.panelOpened$,T=y.ui.isMobile,I=y.ui.t,M=J(void 0),P=he=>{var Ae,re,N;if(!!((Ae=y.callbacks)!=null&&Ae.onEpisodeClicked)){let pe=ws(he);_.set(pe),C.set(!0),(N=(re=y.callbacks)==null?void 0:re.onEpisodeClicked)==null||N.call(re,pe)}},k=J(null),V=v(()=>l()/u());Ue(()=>{var le;let he=su(r(V),u(),f());he?((le=r(k))==null?void 0:le.time)!==he.time&&(p(he),D(k,me(he))):D(k,null)});let q=v(()=>{var he;return((he=r(k))==null?void 0:he.text)||""}),Z=v(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&f1(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${I("tooltip_episodes")}: ${r(q)}`),G=(he,le,Ae)=>Tt(this,null,function*(){yield $o(),(he==null?void 0:he.getAttribute("aria-expanded"))==="false"&&le&&!Ae&&It(()=>{_.set(!1),he.focus()})});Ue(()=>{G(r(M),a(),s())});var oe=He(),X=fe(oe);{var ae=he=>{let le=v(()=>d()?"px-0":"");Dt(he,{get className(){var Ae;return`w-max btn-full-opacity btn-jc-l ${(Ae=r(le))!=null?Ae:""}`},testId:"btn-episodes",click:P,disabled:!b,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(M)},set ref(Ae){D(M,me(Ae))},children:(Ae,re)=>{var N=He(),pe=fe(N);{var be=se=>{var Q=V2(),_e=fe(Q),te=h(_e,!0);g(_e);var Fe=A(_e,2),Xe=h(Fe);qf(Xe,{}),g(Fe),E(()=>ve(te,r(q))),$(se,Q)},We=se=>{var Q=N2(),_e=fe(Q);Wf(_e,{});var te=A(_e,2);{var Fe=Se=>{var Re=R2(),ke=h(Re,!0);g(Re),E(()=>ve(ke,r(q))),$(Se,Re)},Xe=(Se,Re)=>{{var ke=ze=>{var ct=B2(),ut=h(ct,!0);g(ct),E(()=>ve(ut,f().length)),$(ze,ct)};R(Se,ze=>{r(Z)==="COUNT"&&ze(ke)},Re)}};R(te,Se=>{r(Z)==="FULL"?Se(Fe):Se(Xe,!1)})}$(se,Q)};R(pe,se=>{d()?se(be):se(We,!1)})}$(Ae,N)},$$slots:{default:!0}})};R(X,he=>{r(k)&&he(ae)})}$(t,oe),U(),o()}var M1=require("@vkontakte/videoplayer-shared/es2015");var vi=require("@vkontakte/videoplayer-core/es2015"),St=require("@vkontakte/videoplayer-shared/es2015"),Wr=require("@vkontakte/videoplayer-statistics/es2015");var Qe=require("@vkontakte/videoplayer-shared/es2015"),Yi=require("@vkontakte/videoplayer-shared/es2015");var y1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var O2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",au=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=>(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Qe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Qe.now)()]}),o())};(0,Yi.addScript)(O2,e,this.loadTimeout).then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Qe.now)()]}),window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,Qe.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Qe.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Qe.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Qe.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Qe.now)()]}),!d&&(window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Qe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Qe.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),we(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Qe.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Qe.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Qe.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Qe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:u={},duration:f,previewParam:y}=e,p,b=this.playerState&&we(this.playerState.vsid);b&&(this.isVsidOriginal?p=b:p=parseInt(b,36));let{isEmbed:w,immediateOrigin:_}=(0,Qe.detectEmbed)(),C=(M=w?_:window.location.href)!=null?M:window.location.href,T=W(Ut(W(Ut(W({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:y}),p?{request_id:p}:{}),{duration:f}),this.usePuid?{puid10:y1(i,o),puid11:n?0:1}:{});y||delete T.preview;let I={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Qe.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Qe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=we(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Qe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,f,y,p;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Qe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(y=this.adman)==null||y.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,Yi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var x1=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 Kf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let u=new lu,{startTime:f,endTime:y}=u.parse(l);s.startTime=f,s.endTime=y}else if(l.trim()!==""){let u=new Qf,{texts:f}=u.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},lu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},Qf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let u=["<",">"].reduce((f,y)=>{let p=s.indexOf(y,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new lu;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},w1=Kf;var cu=require("@vkontakte/videoplayer-shared/es2015"),ga,Ii,Gf=0,Yf=!1,S1="",C1=(t,e=0,i=0)=>t<e&&t<i,du=(t,e=0,i=0)=>t>=e&&t<=i,H2=(t,e=0,i=0)=>t>e&&t>i,T1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>du(t,u,f));let a=t>=Gf,s=t<Gf;if(Gf=t,s&&(Yf=!1),(0,cu.isNonNullable)(ga)&&du(t,ga.startTime,ga.endTime)&&S1===e.value)return ga;if(!(0,cu.isNonNullable)(Ii)&&(n!=null&&n.length)&&!Yf){Ii=n.find(({startTime:u,endTime:f})=>du(t,u,f)||a&&C1(t,u,f)),ga=void 0,!(0,cu.isNonNullable)(Ii)&&n[n.length-1].endTime<t&&(Yf=!0);return}else{if(du(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))return ga=Ii,Ii=void 0,S1=e.value,ga;(a&&H2(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime)||s&&C1(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))&&(Ii=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"},F2={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"},pu=t=>{var e,i;return(i=(e=uu[t])!=null?e:uu[F2[t]])!=null?i:void 0};var I1=require("@vkontakte/videoplayer-shared/es2015"),bN=require("@vkontakte/videoplayer-statistics/es2015"),fu=class{constructor(e,i=new I1.Subscription){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Ed=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Ed||{});var zr=t=>t!=null?t:0,ss=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(zr(i==null?void 0:i.top)-zr(o==null?void 0:o.top)),left:Math.round(zr(i==null?void 0:i.left)-zr(o==null?void 0:o.left)),bottom:Math.round(zr(i==null?void 0:i.bottom)-zr(o==null?void 0:o.top)),right:Math.round(zr(i==null?void 0:i.right)-zr(o==null?void 0:o.left))}},gl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:zr(e==null?void 0:e.width),height:zr(e==null?void 0:e.height)}};var mu="off";var k1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:y,uiConfig:p,coreConfig:b,player:w,disabledControls:_,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:Z,additionalContextMenuItems:H,playPrevVideo:G,playNextVideo:oe,looped:X=!1,statistics:ae,saveRate:ue,internalsExposure:Pe,playerView:Le})=>{var hv,_v,bv;let he=Ut(W({},b),{configName:[...(hv=b.configName)!=null?hv:[],"ui"],isAudioDisabled:s,live:Ut(W({},(_v=b.live)!=null?_v:{}),{isLiveCatchUpMode:!!n})}),le=p,Ae=St.TracerFactory.createRootTracer(le.features.tracer),re=Ae.createComponentTracer("Store"),N=w||new vi.Player(he,Ae);Pe==null||Pe.expose({corePlayer:N});let pe=new St.Logger,be=new au(pe,{loadTimeout:le.ads.loadTimeout,initTimeout:le.ads.initTimeout,runtimeTimeout:le.ads.runtimeTimeout,useAdmanFromNPM:le.ads.useAdmanFromNPM,volumeMultiplier:le.ads.volumeMultiplier,isVsidOriginal:le.ads.isVsidOriginal,usePuid:le.ads.usePuid}),We=na.getInstance(),se=u==null?void 0:u.pictureInPictureApi,Q=u==null?void 0:u.annotationsApi,_e=u==null?void 0:u.slotsApi,te=pe.createComponentLog("Store"),Fe,Xe,Se={},Re=new Hc,ke=ae?oi(ae.oneStat.vsid$):ar(void 0),ze=de($s()),ct=de(!1),ut=(bv=se==null?void 0:se.info.isActive$)!=null?bv:new St.ValueSubject(!1),nt=de(0),At=de([]),bt=(0,St.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>At.update(x=>[...x,c])),Zt=ar(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ei=c=>Tt(void 0,null,function*(){var ce;let x=Object.values(St.InterfaceLanguage).includes(c);if(le.downloadVKLanguages&&(x&&le.updateBuiltinLanguages||!Jp(c))){let Ke;try{Ke=yield(0,St.loadVKLangPack)(c,uh,ph)}catch(Et){(ce=ae==null?void 0:ae.oneStat)==null||ce.logError({errorType:"VKLangPack",fatal:!1}),We==null||We.report(Et,{errorType:"VKLangPack",fatal:!1})}Ke&&(Xp({language:c,pack:Ke,fallback:le.defaultLanguage}),Rt.set(c))}Jp(c)&&Rt.set(c)}),Rt=de(t),Ot=de(e);ei(t);let O=(c,x)=>{let B=we(Rt);return ef(B,c,x,le.defaultLanguage)},$e=de("thumb"),ne=(()=>{let c=yi([Zt,$e],([x,B])=>x?"crashed":B);return Ut(W({},c),{is:x=>we(c)===x})})(),Ne=(()=>{let c=de(new Set(_));return Ut(W({},c),{add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let ce=[...B];return new Set(Array.isArray(x)?ce.filter(Ke=>!x.includes(Ke)):ce.filter(Ke=>Ke!==x))})},includes:x=>{let B=we(c);return Array.isArray(x)?x.every(ce=>B.has(ce)):B.has(x)}})})();re.log("create store"),te({message:"create store"});let Ge=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),vt=new MutationObserver(B=>{let{removedNodes:ce}=B[0];ce.length&&x.append(N.experimental.element$.getValue())}),vt.observe(x,{childList:!0})},Ze=c=>{te({message:`init video, config: ${JSON.stringify(c)}`}),C?Ge(c):(St.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,St.now)()]}),N.initVideo(c)),re.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Fe=c},Ve=new St.Subject,ot=c=>Ve.next(c),et=new St.Subject,yt=new St.Subject,ft=new St.Subject,vt=null,Ht={actionRewind$:et,actionSeek$:yt,inPiP$:ut,inFullscreen$:new St.Observable(c=>ze.subscribe(x=>c.next(x))),actionSetSubtitle$:ft,nextMovie$:Ve};if(ae){let{oneStat:c,statSubscription:x}=ae;C||x.add(c.attachTo(N)),x.add(c.attachToUi(Ht)),x.add(c.attachToAds(be.events)),c.authorize(a).catch(B=>{te({message:`onestat auth error ${String(B)}`})})}if(We){let c=new St.Subscription,x=(B,ce)=>c.add(B.subscribe(ce));if(x(N.events.managedError$,B=>{We.logIError(B)}),x(N.events.fatalError$,B=>{We.logIError(B,!0)}),ae){let{oneStat:B}=ae;x(B.experimental.error$,ce=>{We.logIError(ce)})}We.sentrySubscription.add(c)}let Ye=()=>{vi.clientChecker.device.isIOS&&Xe&&Gh(Xe).catch(c=>{te({message:`exitIosSafariFullscreen failed: ${c}`})})},li=new St.Subscription().add(N.experimental.element$.subscribe(c=>{c&&(Xe=c,c.classList.add("player-media"),sa(se)&&(se.updateVideoElement(),se.registryEventHandlers()),C&&c.setAttribute("pip","false"),Le==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Ye(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(N.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(N.events.started$.subscribe(()=>Tt(void 0,null,function*(){var x,B;sa(se)&&(yield se==null?void 0:se.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=Se.onStarted)==null||B.call(Se,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var B;(B=l==null?void 0:l.onSeek)==null||B.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var B;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((B=l==null?void 0:l.onTimeupdate)==null||B.call(l,x,c),be.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Lt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Lt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Ne.add(od),Ne.add("PLAY_BUTTON")):Ne.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(be.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(be.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(be.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(be.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(be.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(be.events.started$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:B.call(x,c)})).add(be.events.timeRemained$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:B.call(x,c)})).add(be.events.ended$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:B.call(x,c)})).add(be.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(be.events.clicked$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:B.call(x,c)})).add(be.events.closed$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:B.call(x,c)})).add(be.events.error$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:B.call(x,c)})).add(be.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(be.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),Si=new St.Subscription,it=()=>{var Et,Wt,jt;let{debugLog:c}=le,x,B="#9df7b7",ce="#efd169";if(c&&c!==!0){let{colors:qt}=c;x=c.tag,B=(Et=qt==null?void 0:qt[0])!=null?Et:B,ce=(jt=(Wt=qt==null?void 0:qt[1])!=null?Wt:qt==null?void 0:qt[0])!=null?jt:ce}let Ke=x?`: ${x}`:"";Si.add(N.events.log$.subscribe(qt=>{console.debug(`%c sdk${Ke} `,`background:${B};`,`sdk component: ${qt.component}`,qt.message)})).add(pe.log$.subscribe(qt=>{console.debug(`%c ui${Ke} `,`background:${ce};`,`ui component: ${qt.component}.`,qt.message)}))},Jt=()=>{Si.unsubscribe()},Li=(c,x)=>{re.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Zi=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Bt=(c,x,B)=>{re.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},xt=()=>{N.holdCamera()},Ft=()=>{N.releaseCamera()},co=ar(N.info.position$.getValue(),c=>{let x,B,ce=()=>{let Ke=N.info.playbackState$.getValue(),Et=N.info.isLive$.getValue(),Wt=N.info.duration$.getValue(),jt=N.info.position$.getValue();if(Ke&&[vi.PlaybackState.PLAYING,vi.PlaybackState.PAUSED].includes(Ke)){let qt=Et?jt-Wt:N.getExactTime();qt!==B&&c(qt),B=qt}x=requestAnimationFrame(ce)};return ce(),()=>cancelAnimationFrame(x)}),mn=oi(N.info.playbackState$),Sn=oi(N.info.currentBuffer$),wo=oi(N.info.isEnded$),Y=oi(N.info.isLive$),ti=le.features.playbackRate?oi(N.info.canChangePlaybackSpeed$):ar(!1),xi=oi(N.info.liveBufferTime$),Vi=oi(N.info.volume$),ci=oi(N.info.muted$),gt=Fc(N.info.predefinedQualityLimitType$.pipe((0,St.map)(c=>c===vi.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.TRAFFIC_SAVING),hi=Fc(N.info.predefinedQualityLimitType$.pipe((0,St.map)(c=>c===vi.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.HIGH_QUALITY),tt=oi(N.info.autoQualityLimitingAvailable$),Nt=oi(N.info.availableQualities$),uo=oi(N.info.availableQualitiesFps$),ni=oi(N.info.chromecastState$),dr=oi(N.info.chromecastDeviceName$),po=oi(N.info.currentFormat$),Lo=oi(N.info.throughputEstimation$),ui=oi(N.info.videoBitrate$),kt=oi(N.info.intrinsicVideoSize$),Ri=oi(N.info.duration$),Vo=oi(N.info.isAudioAvailable$),gi=null,Wo=N.info.isBuffering$,Hi=ar(Wo.getValue(),c=>{let x=Wo.subscribe(B=>{B&&gi===null?gi=window.setTimeout(()=>{c(Wo.getValue()),gi=null},le.loaderDelay):c(B)});return()=>{x.unsubscribe(),gi&&clearTimeout(gi)}}),So=()=>{gi&&clearTimeout(gi),gi=null},Co=yi([Ri,Y],([c,x])=>x?-c:c),Wn=yi([mn],([c])=>c===vi.PlaybackState.PLAYING),Fi=oi(N.info.atLiveEdge$),Cn=oi(N.info.atLiveDurationEdge$),To=oi(N.info.position$),Ro=yi([To,Ri],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Tn=yi([ni],([c])=>c===vi.ChromecastState.CONNECTED),Er=oi(N.info.availableVideoStreams$),cr=le.features.audioLanguages?oi(N.info.availableAudioStreams$):ar([]),qn=oi(N.info.currentVideoStream$),In=oi(N.info.currentAudioStream$),kn=c=>{c.language&&Zp(c.language),N.setVideoStream(c)},Kn=c=>{c.language&&Zp(c.language),N.setAudioStream(c)},fo=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ce=>"isDefault"in ce&&ce.isDefault)),x)return x;let B=Bh();return B&&(x=c.find(({language:ce})=>B===ce)),x!=null||(x=c.at(0)),x},rt=!1;li.add(N.info.availableAudioStreams$.subscribe(c=>{if(!rt&&c.length){let x=fo(c);x&&(N.setAudioStream(x),rt=!0)}}));let En=!1;li.add(N.info.availableVideoStreams$.subscribe(c=>{if(!En&&c.length){let x=fo(c);x&&(N.setVideoStream(x),En=!0)}}));let qo=de(void 0),Pn=oi(N.info.isAutoQualityEnabled$,c=>c&&qo.set(void 0)),An=oi(N.info.currentQuality$,()=>qo.set(void 0)),Bo=yi([qo,An],([c,x])=>c!=null?c:x),ur=yi(po,c=>c!==vi.VideoFormat.MPEG),Ko=yi([Nt,uo,Pn,Bo,ur],([c,x,B,ce,Ke])=>{let Et=[];Ke&&Et.push({value:"auto",displayValue:O("auto_quality_option"),selected:B});let Wt=c.filter(jt=>!(0,St.isInvariantQuality)(jt));for(let jt of Wt){let qt=x[jt];Et.push({value:jt,displayValue:`${jt}${qt?x1(qt):""}`,selected:B?!1:jt===ce})}return Et}),Mn=oi(N.info.currentPlaybackRate$),Qo=yi([Mn,Fi,Cn],([c,x,B])=>{let ce=B||C?1:le.controls.playbackRateMin,Ke=x?1:le.controls.playbackRateMax,Et=le.controls.playbackRateStep,Wt=[];for(let jt=ce;jt<=Ke;jt+=Et)Wt.push({value:jt,displayValue:jt===1?O("playback_rate_1"):O("playback_rate",{multiplier:jt.toString(10)}),selected:c===jt});return Wt}),mo={displayValue:O("subtitles_off"),value:mu},Ui=de(W({},mo)),Ln=le.features.subtitles?oi(N.info.availableTextTracks$):ar([]),No=Ih(),Go=yi([Ln,Ui],([c,x],B)=>{var Et;let ce=[],Ke=c.find(({id:Wt})=>Wt===x.value);if(Ke!=null&&Ke.url){let[,Wt]=(Et=No.find(Ke.url))!=null?Et:[];if(Wt){B(Wt);return}Re.download(Ke.url).then(jt=>{if(!jt||Re.isDestroyed())return;let qt=new w1,us=Ke.language;if(us){let $0=!!Ke.isAuto,y0=qt.parse(jt,us);ce.push({lang:us,subtitles:y0,isAuto:$0,id:Ke.id})}No.add(Ke.url,ce),we(Ui).value===x.value&&B(ce)}).catch(jt=>{var qt;(qt=ae==null?void 0:ae.oneStat)==null||qt.logError({errorType:"Subtitles download",fatal:!1}),We==null||We.report(jt,{errorType:"Subtitles download",fatal:!1})})}B(ce)}),Do=yi([Mn,Wn,Ui],([c,x,B],ce)=>{let Wt;if(N.info.isLive$.getValue()&&x&&B.value!==mo.value){let qt=()=>{let us=1e3/(3*c);Wt=setTimeout(qt,us),ce(Date.now())};return qt(),()=>clearTimeout(Wt)}}),Vn=yi([Ln,Ui],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:ce,isAuto:Ke,id:Et}of c){let Wt=ce&&pu(ce);ce&&Wt&&B.push({displayValue:Ke?O("subtitles_auto",{language:Wt}):Wt,value:Et,selected:(x==null?void 0:x.value)===Et,isAuto:Ke})}return B.length?(B.unshift(Ut(W({},mo),{selected:(x==null?void 0:x.value)===mo.value})),B):[]}),zi={available:[],prev:[]},Wi=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:Xe==null?void 0:Xe.currentTime)!=null?B:0},pr=yi([co,Ui,Go,Do],([c,x,B,ce])=>{var Et;let Ke=N.info.isLive$.getValue();if(Ke&&zi.prev!==B){let Wt=B.find(({id:qt})=>qt===x.value),jt=zi.prev.find(({id:qt})=>qt===x.value);if(Wt){let qt=Ut(W({},Wt),{subtitles:[...(Et=jt==null?void 0:jt.subtitles)!=null?Et:[],...Wt.subtitles]});zi.available=[qt],zi.prev=B}}if(x&&x.value!==mo.value){let Wt=Ke?Wi():c,jt=Ke?zi.available:B;return T1(Wt,x,jt,Ke)}}),Oo=yi([pr],([c])=>c!=null&&c.texts?c.texts:[]);li.add(Ui.subscribe(c=>{var x,B;if(c.value===mo.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ce=Object.entries(uu).find(([Ke,Et])=>Et===c.displayValue);(B=l==null?void 0:l.onSubtitleOn)==null||B.call(l,ce?ce[0]:"")}}));let Qn=de(!0),Rn=yi([Sn,Co,To,xi],([c,x,B,ce])=>{var jt;let Ke=(jt=c==null?void 0:c.end)!=null?jt:0;if(!ce)return Ke/x;let Wt=-B+ce-x;return(Ke-Wt)/x}),Gn=oi(N.info.availableSources$),fr=yi([Gn],([c])=>Object.keys((c==null?void 0:c[vi.VideoFormat.MPEG])||{}).length>0),vn=()=>{var B,ce,Ke;let c=Object.keys(((ce=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:ce[vi.VideoFormat.MPEG])||{}),x=(0,St.getHighestQuality)(c)||St.VideoQuality.Q_144P;return(Ke=Fe.sources[vi.VideoFormat.MPEG])==null?void 0:Ke[x]},mr=()=>{var x;let c=vn();if(c)re.log("download video",{url:c}),Sh(c,((x=Fe==null?void 0:Fe.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";re.log("download video",{message:B}),te({message:B})}},vr=()=>{te({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?jn(ii()):Zn(!c)},Yn=()=>{var c;if(Lt.ui.settingsMenu.visible$.set(!1),!we(Lt.ui.settingsSubMenu.visible$)){let x=we(Lt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ce=gl(x),Ke={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ce,position:Ke,name:"settings"})}}re.log("close settings menu")},Pr=(c,x=()=>Promise.resolve())=>Tt(void 0,null,function*(){var Ke;Lt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Lt.ui.settingsMenu.visible$.set(!0),yield x();let B=we(Lt.ui.settingsMenu.ref$),ce=Rs();if((Ke=l==null?void 0:l.uiInfo)!=null&&Ke.onSettingsMenu&&B&&ce){let Wt=gl(B),jt=ss(B,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:jt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})}),Ar=(c,x=!1)=>{var Et;Lt.ui.settingsSubMenu.visible$.set(!1);let B=we(Lt.ui.settingsMenu.ref$),ce=Rs(),Ke=we(Lt.ui.settingsMenu.visible$);if((Et=l==null?void 0:l.uiInfo)!=null&&Et.onSettingsMenu&&B&&ce)if(Ke&&!x){let jt=gl(B),qt=ss(B,ce);l.uiInfo.onSettingsMenu({visible:!0,size:jt,position:qt,name:"settings"})}else{let jt=gl(c),qt={top:0,left:0,bottom:0,right:0},us=we(Lt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:jt,position:qt,name:us})}re.log("close settings sub menu")},Bn=(c,x)=>{var ce;Lt.ui.settingsSubMenu.visible$.set(!0),Lt.ui.settingsSubMenu.ref$.set(x),Lt.ui.settingsSubMenu.name$.set(c);let B=Rs();if((ce=l==null?void 0:l.uiInfo)!=null&&ce.onSettingsMenu&&x&&B){let Et=gl(x),Wt=ss(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Et,position:Wt})}re.log("open settings sub menu",{name:c})},ii=()=>{var x;let c=Math.max(le.volumeMinRestore,(x=Uc())!=null?x:0);return c===0?le.volumeDefault:c},jn=c=>{let x=c===0?ii():c,B=N.info.muted$.getValue();te({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ce=!s||ne.is("ads");B&&c>0&&ce&&(B=!1,Yp(!1)),N.setVolume(c,B),be.setVolume(c),Wp(x)},Zn=c=>{let x=N.info.volume$.getValue();if(te({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,ne.is("ads")),be.setVolume(c?0:x),Yp(c),!c&&x===0){let B=ii();N.setVolume(B),Wp(B),be.setVolume(B)}},st=de(!1),wt=c=>{var x,B;re.log("set looped",{isLooped:c}),st.set(c),N.setLooped(c),(B=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||B.call(x,c)};wt(X);let ki=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Io=(c,x=!1)=>{var B;te({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),Lt.ui.autoplayNextEnabled$.set(c),Oh(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},vo=c=>{te({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),Lt.ui.timerNextVideoRunning$.set(c)},ko=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ce=l==null?void 0:l.onPrevVideoClick)==null?void 0:ce.call(l)}catch(Ke){te({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&pt("prev")||G()},Eo=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ce=l==null?void 0:l.onNextVideoClick)==null?void 0:ce.call(l)}catch(Ke){te({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&pt("next")||oe()},pt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:B,playbackStatusShow:ce}}=le;return B&&ce&&!x?(Lt.ui.aboutToGoNextVideo.set(c),Lt.ui.userActionsDisabled.set(!0),!0):!1},Xt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},si=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},wi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},qi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Ho=()=>{N.prepare()},Bi=()=>{(0,St.assertNonNullable)(Lt);let c=we(Lt.ui.controls.disabledControls$),x=we(Lt.playerPhase),B={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(te({message:"toggle play"}),x==="ads"){B.action="play",re.log("toggle adman play",B),be.togglePlay();return}let ce=()=>{var Et;te({message:"toggle play, call player.play"}),B.action="play",N.play(),(Et=l==null?void 0:l.onPlay)==null||Et.call(l)},Ke=()=>{var Et;te({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(Et=l==null?void 0:l.onPause)==null||Et.call(l)};if(N.info.isEnded$.getValue()){if(te({message:"toggle play, video ended, seek to 0"}),et.next(),yt.next(Wr.SeekAction.REWIND),C){M==null||M();return}N.seekTime(0),ce()}else N.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING?ce():Ke();re.log("toggle play",B)},Yo=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{te({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(le.features.qualityDetailsSubMenuEnabled?(zc({type:"exact_quality",quality:c,videoId:i},B),sd(),N.setPredefinedQualityLimits(vi.PredefinedQualityLimits.UNKNOWN)):qp(i,c),qo.set(c),N.setQuality(c)):le.features.qualityDetailsSubMenuEnabled?x==="default"&&(Mr("auto_quality",B),we(gt)&&pi(!1),we(hi)&&jo(!1)):sd()},pi=(c,x="as-default")=>{te({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?vi.PredefinedQualityLimits.TRAFFIC_SAVING:vi.PredefinedQualityLimits.UNKNOWN;le.features.qualityDetailsSubMenuEnabled?(Zo(B,x),rd(!1)):(N.setPredefinedQualityLimits(B),rd(c))},jo=(c,x="as-default")=>{te({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),Zo(c?vi.PredefinedQualityLimits.HIGH_QUALITY:vi.PredefinedQualityLimits.UNKNOWN,x)},Zo=(c,x)=>{c!==vi.PredefinedQualityLimits.UNKNOWN&&(we(tt)&&!we(Pn)&&Yo("auto",{appliesTo:x,changeReason:"limit-changed"}),Mr(c,x)),N.setPredefinedQualityLimits(c)},Mr=(c,x)=>{zc({type:c,videoId:i},x),x==="as-default"&&zc({type:c,videoId:i},"to-video")},Xn=c=>{re.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),le.features.saveRate&&ue&&!N.info.isLive$.getValue()&&Nh(c)},Lr=()=>{let c=we(Qo),x=c.findIndex(({selected:ce})=>ce);if(x===c.length-1)return;let B=c[x+1];Xn(B.value)},gn=()=>{let c=we(Qo),x=c.findIndex(({selected:ce})=>ce);if(x===0)return;let B=c[x-1];Xn(B.value)},Jn=(c=Ut(W({},mo),{selected:!1}))=>{re.log("set subtitles",W({},c)),c&&c.value!==mo.value&&ft.next(c.isAuto?c.value+"_auto":c.value),Ui.set(c)},er=()=>{re.log("toggle subtitles");let c=we(Vn),x=we(Ui),B=we(Rt);if((x==null?void 0:x.value)===mo.value){let ce=c.filter(Ke=>Ke.value!==mo.value).find(Ke=>Ke.value===B)||c[1];Jn(ce)}else Jn()},qr=de(!0),tr=c=>{qr.set(c)},Xo=(c,x,B=!0)=>{var ce;if(te({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:x,forcePrecise:B}),yt.next(x),N.info.isLive$.getValue()){let Ke=N.info.duration$.getValue(),Et=Math.min(0,Ke+c);N.seekTime(Et,B)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(te({message:"seek after ended, call callbacks.onPlay"}),(ce=l==null?void 0:l.onPlay)==null||ce.call(l)),N.seekTime(gv(c),B)}},gr=c=>{te({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),Xo(c,Wr.SeekAction.EPISODE,!0)},Jo=(c,x)=>{te({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:x});let B=we(Co)*c;Xo(B,x,!1)},hr=c=>{te({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),yt.next(Wr.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Kr=c=>{var ce,Ke;let x=(ce=c.max)!=null?ce:"none",B=(Ke=c.min)!=null?Ke:"none";te({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),re.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},Vr=c=>{te({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),Xo(c,Wr.SeekAction.EPISODE,!0)},Rr=c=>{te({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Je=de(void 0),zt=de(!1),Ni=c=>{te({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),zt.set(!0),en(c)},en=c=>{Je.set(c)},Fo,Nn,hn=()=>{Je.set(void 0),zt.set(!1)},Ce=()=>{clearTimeout(Nn),clearTimeout(Fo),Fo=window.setTimeout(()=>{hn()},500),Xe==null||Xe.removeEventListener("seeked",Ce)},mt=c=>{te({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),Jo(c,Wr.SeekAction.SLIDER),we(Lt.ui.isMobile)&&we(Lt.state.currentFormat$)===vi.VideoFormat.HLS?(Xe==null||Xe.addEventListener("seeked",Ce),Nn=window.setTimeout(()=>{Ce()},300)):hn()},Qt=yi([co,Co,Je],([c,x,B],ce)=>{ce((0,St.isNonNullable)(B)?B*x:c)}),di=de(!1),eo=()=>{di.set(!0)},Be=()=>{di.set(!1)},ht=de({width:0,height:0}),ai=yi([ht],([{width:c}],x)=>{let B=m1(c);x(B)}),to=de(!1),go=q.filter(c=>Ch(c)),Qr=yi([ai,to],([c,x])=>x?go.filter(B=>!B.hideOnMobile):go.filter(B=>{var ce;return!((ce=B.hideOnDesktopGridTypes)!=null&&ce.includes(c))})),Di=de(q.filter(c=>Th(c))),ir=yi([Di,ai],([c,x])=>c.filter(B=>{var ce;return!((ce=B.hideOnDesktopGridTypes)!=null&&ce.includes(x))})),Ms=yi([ir,Qr],([c,x])=>[...le.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...le.features.additionalButtons?x.map((B,ce)=>{var Ke;return{id:ce,weight:ce,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(Ke=B.ariaLabel)!=null?Ke:B.tooltip,tooltipText:B.tooltip}}):[]]),or=de(Z),Ea=yi([or],([c])=>le.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Ut(W({},x),{onClick:x.onChangeEnabled}):x):[]),kl=(c,x)=>{let B=we(Di).map(ce=>ce.id!==c?ce:W(W({},ce),x));Di.set(B)},Pa=c=>{let x=we(Di);if(x.some(B=>B.id===c.id)){te({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Di.set(x)},Aa=c=>{let x=we(Di);if(!x.some(B=>B.id===c)){te({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Di.set(x)},Ma=c=>{yt.next(Wr.SeekAction.LIVE),te({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),N.setLiveLowLatency(c)},El=(c,x)=>{let B=we(or).map(ce=>ce.id!==c?ce:W(W({},ce),x));or.set(B)},Ls=c=>{let x=we(or);if(x.some(B=>B.id===c.id)){te({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),or.set(x)},La=c=>{let x=we(or);if(!x.some(B=>B.id===c)){te({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),or.set(x)},dt=de(H),Ct=yi([dt],([c])=>le.features.additionalContextMenuItems?c:[]),Xi=(c,x)=>{let B=we(dt).map(ce=>ce.id!==c?ce:W(W({},ce),x));dt.set(B)},tn=c=>{let x=we(dt);if(x.some(B=>B.id===c.id)){te({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),dt.set(x)},Ji=c=>{let x=we(dt);if(!x.some(B=>B.id===c)){te({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),dt.set(x)},mi=yi([to,Zt],([c,x],B)=>{B(c&&x)}),Ei=()=>{yt.next(Wr.SeekAction.LIVE),te({message:"switch to active live"}),re.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING&&Lt.actions.internal.togglePlay()},Vs=()=>{re.log("skip adman"),be.skip()},Va=(c=!0)=>{(0,St.assertNonNullable)(Lt),te({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),$e.set("video"),c&&N.play(),s&&Zn(!0)},Hu=()=>{(0,St.assertNonNullable)(Lt),te({message:"switch from video to ads"}),re.log("switch from video to ads"),Lt.actions.internal.pause(),Ye(),$e.set("ads")},nc=c=>{(0,St.assertNonNullable)(Lt);let x=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:x}),$e.set(x)},Fu=c=>{(0,St.assertNonNullable)(Lt);let x=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:x}),$e.set(x)},rc=c=>{(0,St.assertNonNullable)(Lt);let x=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:x}),$e.set(x)},Uu=()=>((0,St.assertNonNullable)(Lt),re.log("get debug text data"),xh(N,Fe,Lt,Ae.getTraceId())),sc=()=>((0,St.assertNonNullable)(Lt),JSON.stringify(Ae.getFinishedSpans())),zu=()=>((0,St.assertNonNullable)(Lt),wh(N,Fe,Lt)),Rs=()=>Xe,ac=()=>{te({message:"toggle chromecast"}),re.log("toggle chromecast"),N.toggleChromecast()},Pl=c=>{var B;if((0,St.assertNonNullable)(Lt),N.info.isEnded$.getValue())return;let x=!c;if(we(Lt.playerPhase)==="ads"){te({message:`pause ads, internalCall: ${x}`}),re.log("pause ads",{internalCall:x}),be.pause();return}te({message:`pause video, internalCall: ${x}`}),re.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},lc=c=>{var B;(0,St.assertNonNullable)(Lt);let x=!c;if(we(Lt.playerPhase)==="ads"){te({message:`play ads, internalCall: ${x}`}),re.log("play ads",{internalCall:x}),be.play();return}te({message:`play video, internalCall: ${x}`}),re.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},dc=c=>{(0,St.assertNonNullable)(Lt);let x=!c;if(we(Lt.playerPhase)==="ads"){te({message:"player cannot be stopped during ads via external method"});return}te({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},cc=(c,x)=>{(0,St.assertNonNullable)(Lt),te({message:`first start, show ads: ${c}, internalCall: ${!x}`}),re.log("first start",{showAds:c,external:x}),c?$e.set("ads"):($e.set("video"),x?N.play():Lt.actions.internal.togglePlay())},Ra=()=>(te({message:"getting time codes"}),f),uc=()=>{let c=Ra();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},Wu=c=>{let x=c;x||(x=uc());let B=N.info.position$.getValue();re.log("seek to next episode",W({currentTime:B},x)),x&&(te({message:"seek to next episode"}),Xo(x.time,Wr.SeekAction.EPISODE,!0))},pc=()=>{let c=Ra();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(Ke=>Ke.time>x),ce=B===-1?c.length-2:B-2;if(!(ce<0))return c[ce]},qe=c=>{let x=c;x||(x=pc());let B=N.info.position$.getValue();re.log("seek to prev episode",W({currentTime:B},x)),x&&(te({message:"seek to prev episode"}),Xo(x.time,Wr.SeekAction.EPISODE,!0))},fi=()=>(te({message:"getting preview thumbs data"}),re.log("get preview thumbs data",W({},y)),y),on=()=>Tt(void 0,null,function*(){let c=se==null?void 0:se.isActive(),x="none";se!=null&&se.isActive()?(x="remove",yield se==null?void 0:se.remove()):(x="request",yield se==null?void 0:se.request()),re.log("toggle picture in picture",{isActive:c,action:x})}),Bs=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),nt.update(x=>x+c)},ho=de([]);T==null||T.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[ce,Ke],subjects:Et}=c[B];B===0&&ce!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ce/1e3,text:"",interactive:!0,completed:le.features.interactiveTimeOpenUri?!Et.length||Et.every(Wt=>Wt.isRemoved):!Et.length}),Ke!==1/0&&x.push({time:Ke/1e3,text:"",interactive:!1,completed:!0})}ho.set(x)});let h0=de(!1);I==null||I.subscribe(c=>{c&&we(zt)&&hn()});let gv=c=>{if(!C)return c;let x=we(ho),B=we(Co),Ke=we(To)/B,Et=x.find(Wt=>Wt.interactive&&!Wt.completed&&Wt.time>Ke);return typeof(Et==null?void 0:Et.time)=="number"?Math.min(c,Et.time-.05):c},_0=()=>{Lt.ui.episodes.panelOpened$.set(!1)},b0=()=>{re.log("destroy store"),clearTimeout(Nn),clearTimeout(Fo),li.unsubscribe(),Si.unsubscribe(),N.destroy(),be.destroy(),ae==null||ae.destroy(),We==null||We.destroy(),bt.unsubscribe(),vt==null||vt.disconnect(),vt=null,Re.destroy()},Lt={interfaceLanguage$:Rt,isCyrillicRelatedInterface$:Ot,initVideo:Ze,videoId:i,isClip:o,playerPhase:ne,vsid:ke,state:{positionExact$:co,positionWithScrubbing$:Qt,duration$:Co,playbackState$:mn,isPlaying$:Wn,isLoaderVisible:Hi,bufferedProgress$:Rn,isLive$:Y,canChangePlaybackSpeed$:ti,isActiveLive$:Fi,isOldestAvailableLive$:Cn,isRewindableLive$:Ro,isEnded$:wo,muted$:ci,volume$:Vi,trafficSavingEnabled$:gt,highQualityEnabled$:hi,autoQualityLimitingAvailable$:tt,availableVideoStreams$:Er,availableAudioStreams$:cr,videoStream$:qn,audioStream$:In,currentQuality$:Bo,isAutoQualityEnabled$:Pn,availableQualities$:Ko,currentPlaybackRate$:Mn,availablePlaybackRates$:Qo,currentSubtitle$:Ui,availableTextTracks$:Ln,availableSubtitlesList$:Vn,currentSubtitleCaptions$:Oo,isAutoSubtitleCaptionVisible$:Qn,chromecastState$:ni,chromecastDeviceName$:dr,chromecastConnected$:Tn,currentFormat$:po,throughputEstimation$:Lo,videoBitrate$:ui,videoSize$:kt,errorLog$:At,crashed$:Zt,isAudioAvailable$:Vo,isAudioDisabled:!!s,canDownload:le.features.download&&!!d,availableSources$:Gn,hasMpegSources$:fr,isInteractive:C,showInteractiveGraph:le.features.interactiveGraph,showSeekToInteractive:le.features.seekToInteractive,showPlayPrevChapter:le.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:le.features.interactiveTimeIndicator&&!!we(ho).length,interactiveEpisodes$:ho,isInteractiveTime$:I?oi(I):de(!1),isInteractiveExpectation$:h0,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,looped$:st,loadedMetadata$:de(!1),isAutoQualityAvailable$:ur},ui:{t:O,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:q.length?q.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:Ne},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ze,isFullscreenOpenedByKeyboard:ct,rotateAlpha:nt,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:ht,isMobile:to,mobileNotReportControlHidden$:mi,mobileUnmuteButtonExpanded:de(!1),mobileUnmuteButtonVisible:de(!1),icon3DVideoVisible:de(!1),scrubbingInProgress:zt,volumeChangingInProgress:di,is3DVideo:de(!1),currentGridType$:ai,additionalButtonsDeprecated$:Qr,additionalDesktopControlPanelRightButtons$:Ms,additionalSettingsMenuItems$:Ea,additionalContextMenuItems$:Ct,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)},aboutToGoNextVideo:de(void 0),userActionsDisabled:de(!1),hiddenControls:{volume:de(!1)},isControlsAvailable:de(!0)},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:se,annotationsApi:Q,slotsApi:_e},actions:{internal:{preload:Ho,firstStart:c=>cc(c,!1),play:()=>lc(!1),pause:()=>Pl(!1),togglePlay:Bi,toggleMuted:vr,openSettingsMenu:Pr,closeSettingsMenu:Yn,openSettingsSubMenu:Bn,closeSettingsSubMenu:Ar,setVolume:jn,startVolumeChanging:eo,stopVolumeChanging:Be,setVideoStream:kn,setAudioStream:Kn,setQuality:Yo,setTrafficSavingEnabled:pi,setHighQualityEnabled:jo,setPlaybackRate:Xn,incrementPlaybackRate:Lr,decrementPlaybackRate:gn,setSubtitle:Jn,toggleSubtitle:er,togglePictureInPicture:on,startScrubbing:Ni,progressScrubbing:en,completeScrubbing:mt,toggleChromecast:ac,switchToActiveLive:Ei,switchFromAdsToVideo:Va,switchFromVideoToAds:Hu,skipAd:Vs,setLiveWaitingStart:nc,setLiveWaitingRecover:Fu,setLiveWaitingRecord:rc,getDebugTextData:Uu,getTraceTextData:sc,getDebugPanelData:zu,getVideoElement:Rs,seekTime:(c,x,B)=>Xo(c,x,B),clearDelayedBufferingCheckTimeout:So,seekEpisodeStartTime:gr,seekToPercent:Jo,getNextEpisode:uc,seekToNextEpisode:Wu,getPrevEpisode:pc,seekToPrevEpisode:qe,startLogging:it,stopLogging:Jt,startCameraManualRotation:Li,stopCameraManualRotation:Zi,moveCameraFocusPX:Bt,holdCamera:xt,releaseCamera:Ft,getVideoEpisodes:Ra,getPreviewThumbsData:fi,downloadVideo:mr,addLanguage:Xp,setLanguage:ei,nextMovie:ot,videoRotate:Bs,correctSeekTimeToInteractive:gv,replayInteractive:M,setLooped:wt,reportProblem:ki,setAutoplayNextEnabled:Io,setTimerNextVideoRunning:vo,prevVideoClick:ko,nextVideoClick:Eo,nextVideoAnnouncementShow:Xt,nextVideoAnnouncementClick:si,nextVideoAnnouncementAuto:wi,nextVideoAnnouncementCancel:qi},external:{firstStart:c=>cc(c,!0),play:()=>lc(!0),pause:()=>Pl(!0),stop:()=>dc(!0),seekTime:c=>hr(c),seekEpisodeStartTime:c=>Vr(c),setPlaybackRate:c=>Rr(c),setAutoQualityLimits:c=>Kr(c),setMuted:Zn,toggleSubtitle:er,setVolume:jn,returnFocusToEpisodes:_0,updateAdditionalSettingsItem:El,addAdditionalSettingsItem:Ls,removeAdditionalSettingsItem:La,updateAdditionalContextItem:Xi,addAdditionalContextItem:tn,removeAdditionalContextItem:Ji,updateAdditionalButton:kl,addAdditionalButton:Pa,removeAdditionalButton:Aa,setLiveLowLatency:Ma,hideControls:()=>tr(!1),showControls:()=>tr(!0)}},callbacks:l,setUiCallbacks:c=>{Se=W({},c)},getAdmanWrapper:()=>be,getLogger:()=>pe,getPlayer:()=>N,destroy:b0};return Lt};function ha(t,e,i,o){var y;let n=["interactiveTimeIndicator"],a=(y=e[i])==null?void 0:y.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:u,right:f}=ss(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var hl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ha(t,i,n,o))};var vu=(t,e,i)=>Tt(void 0,null,function*(){yield $o(),e&&i&&(i.focus(),t.set(!1))});var U2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function jf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=U2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i))),$(t,o)}function Zf(t,e){F(e,!0);let[i,o]=Oe(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=Te(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,y=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,b=J(void 0);Ue(()=>{r(b)&&It(()=>{p.set(r(b))})});let w=I=>{let M=ws(I),P=n1(r(b));y.set(P),u.set(M),l.set(!n())},_=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Dt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:_,blur:C,get ariaExpanded(){return n()},get ref(){return r(b)},set ref(I){D(b,me(I))},children:(I,M)=>{jf(I,{})},$$slots:{default:!0}}),U(),o()}var z2=t=>{t.stopPropagation()},W2=L("<div><!> <div></div> <div></div></div>"),q2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
228
+ }`};function Qf(t,e){O(e,!0),q(t,x2);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===Kf.ChromecastState.CONNECTED),n=v(()=>e.iconState===Kf.ChromecastState.CONNECTING);var a=Fe(),r=_e(a);{var d=u=>{var f=$2(),$=h(f),p=h($),_=h(p);Se(),g(p);var w=A(p);Se(),g($);var b=A($),C=h(b),T=h(C);g(C),Se(),g(b),g(f),k(()=>{De(_,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),De(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),y(u,f)},l=u=>{var f=y2();let $;var p=h(f),_=A(h(p),5);let w;g(p),g(f),k((b,C)=>{$=ee(f,0,"svelte-8z1bf5",null,$,b),w=ee(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),y(u,f)};V(r,u=>{i()?u(d):u(l,!1)})}y(t,a),H()}var T1=require("@vkontakte/videoplayer-shared/es2015");function Vd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,T1.noop),r=Ee().ui.t,d=v(()=>e.state===C1.ChromecastState.CONNECTED?r("tooltip_chromecast_on"):r("tooltip_chromecast_off"));Dt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,u)=>{Qf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var w2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),S2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function Gf(t,e){q(t,S2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),a=m(e,"translateYPx",3,0),r=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),l=J(void 0),u=J(void 0);function f(C){if(!s(u))return 0;let{width:T}=s(u).getBoundingClientRect(),I=T/2;return C<I?I+r():C>e.containerWidth-I?e.containerWidth-I-d():C}let $=v(()=>f(n()));var p=w2(),_=h(p);let w;var b=h(_);$e(b,()=>{var C;return(C=e.children)!=null?C:ne}),g(_),ot(_,C=>D(u,C),()=>s(u)),g(p),ot(p,C=>D(l,C),()=>s(l)),k(C=>{lt(p,`transform: translate(${s($)}px, ${a()}px);`),w=ee(_,1,"tooltip svelte-5ygsa2",null,w,C),lt(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),y(t,p)}var pu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var I1=t=>!!(Math.round(Math.abs(t)/90)%2),E1=t=>Math.abs(t)/90%4===1;var C2=L('<div class="preview svelte-1wqg760"></div>'),T2=L('<div class="time svelte-1wqg760"> </div>'),I2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),E2={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 Yf(t,e){O(e,!0),q(t,E2);let[i,o]=Oe(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),r={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),$=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),_=Ee(),w=_.ui.rotateAlpha,b=_.ui.playerSize,C=J(0),T=J(0),I=J(""),M=J(0),P=J(0),E=J(0),R=J(0),W=v(()=>pu(f(),$(),u())),K=v(()=>I1(n())),U=v(()=>E1(n())),j=v(ce),ae=v(()=>(s(U)?1:-1)*(s(C)/2-s(T)/2)),G=v(()=>s(ae)*-1);ze(()=>{(ve=>(D(C,ge(ve.width)),D(T,ge(ve.height))))(Le())}),ze(()=>{(ve=>(D(I,ge(ve.imgSrc)),D(M,ge(ve.imgWidth)),D(P,ge(ve.imgHeight)),D(E,ge(ve.imgOffsetX)),D(R,ge(ve.imgOffsetY))))(Ne(f()))});function ce(){var We;let ve=l()?r.MOBILE:r.DESKTOP,{isVertical:ye}=de(),X=30;return(We=s(W))!=null&&We.text&&(X+=16),(ye||s(K))&&(X+=18,X+=50),Math.min(Math.max(a().height-X,0),ve)}function de(){let ve=e.previewThumbsData.frameWidth,ye=e.previewThumbsData.frameHeight,X=ye>ve;return{width:ve,height:ye,isHorizontal:!X,isVertical:X}}function Le(){let{height:ve,isHorizontal:ye,isVertical:X,width:We}=de();return ye&&(ve=ve/We*s(j),We=s(j)),X&&(We=We/ve*s(j),ve=s(j)),{width:We,height:ve}}function Ne(ve){let ye;e.previewThumbsData.isUV?ye=Math.floor($()*ve/e.previewThumbsData.frequency):ye=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ve)));let X=Math.floor(ye/e.previewThumbsData.countPerImage),We=Math.floor(ye%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),tt=ye%e.previewThumbsData.countPerRow,Te=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&X===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Te=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Te++);let oe=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&X===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(oe=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ke=s(C)*oe,Ke=s(T)*Te,st=-tt*s(C),ut=-We*s(T);return{imgSrc:e.previewThumbsData.links[X],imgWidth:ke,imgHeight:Ke,imgOffsetX:st,imgOffsetY:ut}}var he=I2();let ue;var Me=h(he);{var le=ve=>{var ye=C2();k(()=>lt(ye,`width: ${s(C)}px; height: ${s(T)}px; background-image: url(${s(I)}); background-size: ${s(M)}px ${s(P)}px; background-position: ${s(E)}px ${s(R)}px;
229
+ transform: rotate(${n()}deg) ${s(K)?`translate(${s(ae)}px, ${s(G)}px)`:""};
230
+ `)),y(ve,ye)};V(Me,ve=>{s(I)&&ve(le)})}var N=A(Me,2),je=h(N);{var te=ve=>{var ye=Fe(),X=_e(ye);{var We=Te=>{var oe=Zr();k(ke=>be(oe,ke),[()=>F("tooltip_episode_unfinished")]),y(Te,oe)},tt=Te=>{var oe=Zr();k(()=>be(oe,s(W).text||"")),y(Te,oe)};V(X,Te=>{p()&&s(W).completed===!1?Te(We):Te(tt,!1)})}y(ve,ye)};V(je,ve=>{s(W)&&ve(te)})}g(N);var qe=A(N,2);{var re=ve=>{var ye=T2(),X=h(ye,!0);g(ye),k(()=>be(X,d())),y(ve,ye)};V(qe,ve=>{p()||ve(re)})}g(he),k(ve=>{ue=ee(he,1,"timeline-preview svelte-1wqg760",null,ue,ve),lt(he,`width: ${s(K)?s(T):s(C)}px;`)},[()=>({mobile:l()})]),y(t,he),H(),o()}var k2=L('<span class="time svelte-1jr6obn"> </span>'),P2=L("<!> <!>",1),A2={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 jf(t,e){var Ae,Be,me,Qe,nt;O(e,!0),q(t,A2);let[i,o]=Oe(),n=()=>S(ae,"$interactiveEpisodes$",i),a=()=>S(E,"$duration$",i),r=()=>S(P,"$position$",i),d=()=>S(de,"$isInteractiveExpectation$",i),l=()=>S(ce,"$isInteractiveTime$",i),u=()=>S(R,"$isLive$",i),f=()=>S(K,"$isMobile",i),$=()=>S(W,"$isActiveLive$",i),p=()=>S(M,"$bufferedProgress$",i),_=()=>S(he,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),b=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ee(),I=qt(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,R=T.state.isLive$,W=T.state.isActiveLive$,K=T.ui.isMobile,U=I.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,j=T.actions.internal.getPreviewThumbsData(),ae=T.state.interactiveEpisodes$,G=T.state.isInteractive,ce=T.state.isInteractiveTime$,de=T.state.isInteractiveExpectation$,Le=T.actions.internal.correctSeekTimeToInteractive,Ne=(Ae=T.callbacks)==null?void 0:Ae.onDisabledTimelineClick,he=T.ui.controls.disabledControls$,ue=(me=(Be=T.callbacks)==null?void 0:Be.uiInfo)==null?void 0:me.onTimelineMouseEnter,Me=(nt=(Qe=T.callbacks)==null?void 0:Qe.uiInfo)==null?void 0:nt.onTimelineMouseLeave,le=T.ui.t,N=I.features.interactiveResponsiveUi,je=v(()=>G?n():U),te=v(()=>_n(a())),qe=v(()=>_n(r())),re=v(()=>r()/a()),ve=v(()=>d()||l()),ye=J(!1),X=J(""),We=J(0),tt=J(0),Te=J(0),oe=v(()=>({containerWidth:s(tt),translateXPx:s(We),translateYPx:G&&j?-36:-16,active:s(ye)&&w()&&!s(ve)&&!N,pointer:!I.features.timelinePreview||!j||u()})),ke=le("aria_timeline"),Ke=v(()=>le("aria_timeline_value",{position:s(qe),duration:s(te)}));function st(et){return!Le||!G?et:Le(et*a())/a()}function ut(et){T.actions.internal.startScrubbing(st(et))}function at(et){l()||T.actions.internal.progressScrubbing(st(et))}function Et(et){T.actions.internal.completeScrubbing(st(et)),D(ye,!1)}function ft(et,St,ht){Wt(et,St,ht),D(ye,!0)}function Xt(et,St,ht){Wt(et,St,ht),D(ye,!0)}function si(){D(ye,!1)}function Wt(et,St,ht){D(Te,ge(st(et))),D(We,ge(St)),ht&&D(tt,ge(ht)),D(X,ge(Mt(et)))}function Mt(et){let St=_n((u()?1-et:et)*a());return u()?`-${St}`:St}var ie=P2(),Rt=_e(ie);Gf(Rt,gs(()=>s(oe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(et,St)=>{var ht=Fe(),Yt=_e(ht);{var bt=Gt=>{Yf(Gt,{get time(){return s(X)},get isMobile(){return f()},get videoEpisodes(){return s(je)},previewThumbsData:j,get progress(){return s(Te)},get duration(){return a()},isInteractive:G})},Ti=Gt=>{var Je=k2(),ti=h(Je,!0);g(Je),k(()=>be(ti,s(X))),y(Gt,Je)};V(Yt,Gt=>{I.features.timelinePreview&&j&&!u()?Gt(bt):Gt(Ti,!1)})}y(et,ht)},$$slots:{default:!0}}));var Z=A(Rt,2);let fe=v(()=>_().has("TIMELINE"));Sa(Z,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return f()},ariaLabel:ke,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r()},get ariaValueText(){return s(Ke)},get loadedProgress(){return p()},get filledProgress(){return s(re)},get handleProgress(){return s(re)},get videoEpisodes(){return s(je)},onPointerDown:ut,onHandleMove:at,onPointerMove:Xt,onPointerUp:Et,onPointerEnter:ft,onPointerLeave:si,onMouseEnter:ue,onMouseLeave:Me,onDisabledClick:Ne,isInteractive:G,get disabled(){return s(fe)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(et){C(et)}}),y(t,ie),H(),o()}var M2={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Rd(t,e){O(e,!0),q(t,M2);let[i,o]=Oe(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),r=m(e,"duration",3,0),d=Ee(),l=d.ui.isMobile,u=d.ui.t,f=v(()=>_n(r())),$=v(()=>_n(a())),p=v(()=>a()/r()),_=v(()=>u("aria_timeline_value",{position:s($),duration:s(f)})),w=v(()=>Math.round(s(p)*100));Sa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return s(w)},get ariaValueText(){return s(_)},get filledProgress(){return s(p)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var L2=L("<div><!></div>"),V2=L("<div></div>"),R2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Ca(t,e){O(e,!0),q(t,R2);let[i,o]=Oe(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),r=()=>S(b,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),$=m(e,"ref",15,void 0),p=Ee(),_=p.state.isLive$,w=p.ads.duration,b=p.ads.position,C=p.ui.isMobile,T=v(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Fe(),M=_e(I);{var P=R=>{var W=L2();let K;var U=h(W);{var j=G=>{Rd(G,{get position(){return r()},get duration(){return d()}})},ae=G=>{jf(G,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(ce){$(ce)}})};V(U,G=>{l()?G(j):G(ae,!1)})}g(W),k(G=>K=ee(W,1,"timeline svelte-41cp6d",null,K,G),[()=>({withoutPadding:!f(),mobile:a()})]),y(R,W)},E=R=>{var W=V2();let K;k(U=>K=ee(W,1,"timeline-stub svelte-41cp6d",null,K,U),[()=>({mobile:a()})]),y(R,W)};V(M,R=>{s(T)?R(P):R(E,!1)})}y(t,I),H(),o()}var k1=require("@vkontakte/videoplayer-shared/es2015");var B2=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 Zf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=B2();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(3),g(o),k(()=>n=Pe(o,n,z({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))),y(t,o)}var N2=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 Xf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=N2();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i))),y(t,o)}var D2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),O2=L('<span class="text svelte-1yhs2ga"> </span>'),H2=L('<span class="text count svelte-1yhs2ga"> </span>'),F2=L("<!> <!>",1),U2={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 Bd(t,e){var de,Le,Ne;O(e,!0),q(t,U2);let[i,o]=Oe(),n=()=>S(w,"$currentGridType$",i),a=()=>S(b,"$openedByKeyboard$",i),r=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),$=Ee(),p=(Le=(de=$.callbacks)==null?void 0:de.onEpisodeChanged)!=null?Le:k1.noop,_=!!((Ne=$.callbacks)!=null&&Ne.onEpisodeClicked),w=$.ui.currentGridType$,b=$.ui.episodes.openedByKeyboard$,C=$.ui.episodes.panelOpened$,T=$.ui.isMobile,I=$.ui.t,M=J(void 0),P=he=>{var Me,le,N;if(!!((Me=$.callbacks)!=null&&Me.onEpisodeClicked)){let je=Ns(he);b.set(je),C.set(!0),(N=(le=$.callbacks)==null?void 0:le.onEpisodeClicked)==null||N.call(le,je)}},E=J(null),R=v(()=>l()/u());ze(()=>{var ue;let he=pu(s(R),u(),f());he?((ue=s(E))==null?void 0:ue.time)!==he.time&&(p(he),D(E,ge(he))):D(E,null)});let W=v(()=>{var he;return((he=s(E))==null?void 0:he.text)||""}),K=v(()=>ji(n(),"xl")?"FULL":ji(n(),"m")&&x1(n(),"xl")?"COUNT":"SHORT"),U=v(()=>`${I("tooltip_episodes")}: ${s(W)}`),j=(he,ue,Me)=>Tt(this,null,function*(){yield So(),(he==null?void 0:he.getAttribute("aria-expanded"))==="false"&&ue&&!Me&&It(()=>{b.set(!1),he.focus()})});ze(()=>{j(s(M),a(),r())});var ae=Fe(),G=_e(ae);{var ce=he=>{let ue=v(()=>d()?"px-0":"");Dt(he,{get className(){var Me;return`w-max btn-full-opacity btn-jc-l ${(Me=s(ue))!=null?Me:""}`},testId:"btn-episodes",click:P,disabled:!_,get ariaExpanded(){return r()},get ariaLabel(){return s(U)},get ref(){return s(M)},set ref(Me){D(M,ge(Me))},children:(Me,le)=>{var N=Fe(),je=_e(N);{var te=re=>{var ve=D2(),ye=_e(ve),X=h(ye,!0);g(ye);var We=A(ye,2),tt=h(We);Xf(tt,{}),g(We),k(()=>be(X,s(W))),y(re,ve)},qe=re=>{var ve=F2(),ye=_e(ve);Zf(ye,{});var X=A(ye,2);{var We=Te=>{var oe=O2(),ke=h(oe,!0);g(oe),k(()=>be(ke,s(W))),y(Te,oe)},tt=(Te,oe)=>{{var ke=Ke=>{var st=H2(),ut=h(st,!0);g(st),k(()=>be(ut,f().length)),y(Ke,st)};V(Te,Ke=>{s(K)==="COUNT"&&Ke(ke)},oe)}};V(X,Te=>{s(K)==="FULL"?Te(We):Te(tt,!1)})}y(re,ve)};V(je,re=>{d()?re(te):re(qe,!1)})}y(Me,N)},$$slots:{default:!0}})};V(G,he=>{s(E)&&he(ce)})}y(t,ae),H(),o()}var fm=require("@vkontakte/videoplayer-shared/es2015");var ui=require("@vkontakte/videoplayer-core/es2015"),pt=require("@vkontakte/videoplayer-shared/es2015"),is=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),Zi=require("@vkontakte/videoplayer-shared/es2015");var P1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var z2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",fu=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=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,Zi.addScript)(z2,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(r=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(r)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},r=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),r()},this.loadTimeout);e.addEventListener("abort",r),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),r()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},r).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",r)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),we(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:r,adsVideoElement:d,slotId:l,params:u={},duration:f,previewParam:$}=e,p,_=this.playerState&&we(this.playerState.vsid);_&&(this.isVsidOriginal?p=_:p=parseInt(_,36));let{isEmbed:w,immediateOrigin:b}=(0,Ye.detectEmbed)(),C=(M=w?b:window.location.href)!=null?M:window.location.href,T=Ot(z(Ot(z({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:$}),p?{request_id:p}:{}),{duration:f,puid10:P1(i,o),puid11:n?0:1});$||delete T.preview;let I={slot:l,wrapper:r,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let r="Switch to video: Adman state was not updated correctly";this.log({message:r}),this.events.error$.next(r)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=we(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,r,d,l,u,f,$,p;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(r=this.adman)==null||r.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),($=this.adman)==null||$.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,Zi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var A1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Jf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let r={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!r.startTime&&!r.endTime){let u=new mu,{startTime:f,endTime:$}=u.parse(l);r.startTime=f,r.endTime=$}else if(l.trim()!==""){let u=new em,{texts:f}=u.parse(l);r.texts=[...r.texts,...f]}(r.startTime||r.endTime)&&r.texts.length>0&&o.push(r)}return o}},mu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,r=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+r+d+l}},em=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let d=0,l=[];for(;d<r.length;){let u=["<",">"].reduce((f,$)=>{let p=r.indexOf($,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(r.substring(d));break}l.push(r.substring(d,u)),d=u+1}return l}}),a=new mu;for(let r of n)a.isTime(r)?i.texts.push({type:"timestamp",value:a.parseTime(r)}):i.texts.push({type:"text",value:r});return i}},M1=Jf;var gu=require("@vkontakte/videoplayer-shared/es2015"),Ta,Ci,tm=0,im=!1,L1="",V1=(t,e=0,i=0)=>t<e&&t<i,vu=(t,e=0,i=0)=>t>=e&&t<=i,W2=(t,e=0,i=0)=>t>e&&t>i,R1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>vu(t,u,f));let a=t>=tm,r=t<tm;if(tm=t,r&&(im=!1),(0,gu.isNonNullable)(Ta)&&vu(t,Ta.startTime,Ta.endTime)&&L1===e.value)return Ta;if(!(0,gu.isNonNullable)(Ci)&&(n!=null&&n.length)&&!im){Ci=n.find(({startTime:u,endTime:f})=>vu(t,u,f)||a&&V1(t,u,f)),Ta=void 0,!(0,gu.isNonNullable)(Ci)&&n[n.length-1].endTime<t&&(im=!0);return}else{if(vu(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))return Ta=Ci,Ci=void 0,L1=e.value,Ta;(a&&W2(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime)||r&&V1(t,Ci==null?void 0:Ci.startTime,Ci==null?void 0:Ci.endTime))&&(Ci=void 0)}};var hu={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"},q2={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"},_u=t=>{var e,i;return(i=(e=hu[t])!=null?e:hu[q2[t]])!=null?i:void 0};var B1=require("@vkontakte/videoplayer-shared/es2015"),CN=require("@vkontakte/videoplayer-statistics/es2015"),bu=class{constructor(e,i,o=new B1.Subscription){this.oneStat=e;this.thinOneStat=i;this.statSubscription=o}destroy(){var e,i;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),this.statSubscription.unsubscribe()}};var Nd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Nd||{});var ts=t=>t!=null?t:0,_s=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(ts(i==null?void 0:i.top)-ts(o==null?void 0:o.top)),left:Math.round(ts(i==null?void 0:i.left)-ts(o==null?void 0:o.left)),bottom:Math.round(ts(i==null?void 0:i.bottom)-ts(o==null?void 0:o.top)),right:Math.round(ts(i==null?void 0:i.right)-ts(o==null?void 0:o.left))}},$l=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ts(e==null?void 0:e.width),height:ts(e==null?void 0:e.height)}};var $u="off";var N1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:r,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:$,uiConfig:p,coreConfig:_,player:w,disabledControls:b,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,additionalButtons:W,additionalSettingsMenuItems:K,additionalContextMenuItems:U,playPrevVideo:j,playNextVideo:ae,looped:G=!1,statistics:ce,saveRate:de,internalsExposure:Le,playerView:Ne})=>{var Tv,Iv,Ev;let he=Ot(z({},_),{configName:[...(Tv=_.configName)!=null?Tv:[],"ui"],isAudioDisabled:r,live:Ot(z({},(Iv=_.live)!=null?Iv:{}),{isLiveCatchUpMode:!!n})}),ue=p,Me=pt.TracerFactory.createRootTracer(ue.features.tracer),le=Me.createComponentTracer("Store"),N=w||new ui.Player(he,Me);Le==null||Le.expose({corePlayer:N});let je=new pt.Logger,te=new fu(je,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout,useAdmanFromNPM:ue.ads.useAdmanFromNPM,volumeMultiplier:ue.ads.volumeMultiplier,isVsidOriginal:ue.ads.isVsidOriginal}),qe=ma.getInstance(),re=u==null?void 0:u.pictureInPictureApi,ve=u==null?void 0:u.annotationsApi,ye=u==null?void 0:u.slotsApi,X=je.createComponentLog("Store"),We,tt,Te={},oe=new Kc,ke=new pt.Subscription,Ke=ce&&ce.oneStat?ei(ce.oneStat.vsid$):gr(void 0),st=se(Vs()),ut=se(!1),at=(Ev=re==null?void 0:re.info.isActive$)!=null?Ev:new pt.ValueSubject(!1),Et=se(0),ft=se([]),Xt=(0,pt.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>ft.update(x=>[...x,c])),si=gr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Wt=c=>Tt(void 0,null,function*(){var pe;let x=Object.values(pt.InterfaceLanguage).includes(c);if(ue.downloadVKLanguages&&(x&&ue.updateBuiltinLanguages||!af(c))){let He;try{He=yield(0,pt.loadVKLangPack)(c,$h,yh)}catch(vt){(pe=ce==null?void 0:ce.oneStat)==null||pe.logError({errorType:"VKLangPack",fatal:!1}),qe==null||qe.report(vt,{errorType:"VKLangPack",fatal:!1})}He&&(sf({language:c,pack:He,fallback:ue.defaultLanguage}),Mt.set(c))}af(c)&&Mt.set(c)}),Mt=se(t),ie=se(e);Wt(t);let Rt=(c,x)=>{let B=we(Mt);return lf(B,c,x,ue.defaultLanguage)},Z=se("thumb"),fe=(()=>{let c=_i([si,Z],([x,B])=>x?"crashed":B);return Ot(z({},c),{is:x=>we(c)===x})})(),Ae=(()=>{let c=se(new Set(b));return Ot(z({},c),{add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let pe=[...B];return new Set(Array.isArray(x)?pe.filter(He=>!x.includes(He)):pe.filter(He=>He!==x))})},includes:x=>{let B=we(c);return Array.isArray(x)?x.every(pe=>B.has(pe)):B.has(x)}})})();le.log("create store"),X({message:"create store"});let Be=c=>{let x=c.container,B=()=>{Yt=new MutationObserver(He=>{let{removedNodes:vt}=He[0];vt.length&&x.append(N.experimental.element$.getValue())}),Yt.observe(x,{childList:!0})},pe=N.experimental.element$.getValue();if(pe)x.append(pe),B();else{let He=N.experimental.element$.pipe((0,pt.filter)(vt=>!!vt),(0,pt.once)()).subscribe(vt=>{x.append(vt),B()});ke.add(He)}},me=c=>{X({message:`init video, config: ${JSON.stringify(c)}`}),C?Be(c):(pt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,pt.now)()]}),N.initVideo(c)),le.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),We=c},Qe=new pt.Subject,nt=c=>Qe.next(c),et=new pt.Subject,St=new pt.Subject,ht=new pt.Subject,Yt=null,bt={actionRewind$:et,actionSeek$:St,inPiP$:at,inFullscreen$:new pt.Observable(c=>st.subscribe(x=>c.next(x))),actionSetSubtitle$:ht,nextMovie$:Qe},Ti={actionSeek$:St,playerSize$:new pt.Observable(c=>Kt.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,statSubscription:B}=ce;c&&(C||B.add(c.attachTo(N)),B.add(c.attachToUi(bt)),B.add(c.attachToAds(te.events)),c.authorize(a).catch(pe=>{X({message:`onestat auth error ${String(pe)}`})})),x&&(B.add(x.attachTo(N)),B.add(x.attachToUi(Ti)),x.authorize(a))}if(qe){let c=new pt.Subscription,x=(B,pe)=>c.add(B.subscribe(pe));if(x(N.events.managedError$,B=>{qe.logIError(B)}),x(N.events.fatalError$,B=>{qe.logIError(B,!0)}),ce){let{oneStat:B}=ce;B&&x(B.experimental.error$,pe=>{qe.logIError(pe)})}qe.sentrySubscription.add(c)}let Gt=()=>{ui.clientChecker.device.isIOS&&tt&&o1(tt).catch(c=>{X({message:`exitIosSafariFullscreen failed: ${c}`})})};ke.add(N.experimental.element$.subscribe(c=>{c&&(tt=c,c.classList.add("player-media"),ga(re)&&(re.updateVideoElement(),re.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ne==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Gt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(N.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(N.events.started$.subscribe(()=>Tt(void 0,null,function*(){var x,B;ga(re)&&(yield re==null?void 0:re.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=Te.onStarted)==null||B.call(Te,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var B;(B=l==null?void 0:l.onSeek)==null||B.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var B;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((B=l==null?void 0:l.onTimeupdate)==null||B.call(l,x,c),te.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Lt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Lt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Ae.add(ud),Ae.add("PLAY_BUTTON")):Ae.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(te.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(te.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(te.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(te.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(te.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(te.events.started$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:B.call(x,c)})).add(te.events.timeRemained$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:B.call(x,c)})).add(te.events.ended$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:B.call(x,c)})).add(te.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(te.events.clicked$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:B.call(x,c)})).add(te.events.closed$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:B.call(x,c)})).add(te.events.error$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:B.call(x,c)})).add(te.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(te.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let Je=new pt.Subscription,ti=()=>{var vt,Ft,Qt;let{debugLog:c}=ue,x,B="#9df7b7",pe="#efd169";if(c&&c!==!0){let{colors:Ut}=c;x=c.tag,B=(vt=Ut==null?void 0:Ut[0])!=null?vt:B,pe=(Qt=(Ft=Ut==null?void 0:Ut[1])!=null?Ft:Ut==null?void 0:Ut[0])!=null?Qt:pe}let He=x?`: ${x}`:"";Je.add(N.events.log$.subscribe(Ut=>{console.debug(`%c sdk${He} `,`background:${B};`,`sdk component: ${Ut.component}`,Ut.message)})).add(je.log$.subscribe(Ut=>{console.debug(`%c ui${He} `,`background:${pe};`,`ui component: ${Ut.component}.`,Ut.message)}))},Ji=()=>{Je.unsubscribe()},Ui=(c,x)=>{le.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},go=(c=!1)=>{le.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},eo=(c,x,B)=>{le.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},rt=()=>{N.holdCamera()},xt=()=>{N.releaseCamera()},pi=gr(N.info.position$.getValue(),c=>{let x,B,pe=()=>{let He=N.info.playbackState$.getValue(),vt=N.info.isLive$.getValue(),Ft=N.info.duration$.getValue(),Qt=N.info.position$.getValue();if(He&&[ui.PlaybackState.PLAYING,ui.PlaybackState.PAUSED].includes(He)){let Ut=vt?Qt-Ft:N.getExactTime();Ut!==B&&c(Ut),B=Ut}x=requestAnimationFrame(pe)};return pe(),()=>cancelAnimationFrame(x)}),Ii=ei(N.info.playbackState$),Io=ei(N.info.currentBuffer$),Y=ei(N.info.isEnded$),jt=ei(N.info.isLive$),mi=ue.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):gr(!1),Ri=ei(N.info.liveBufferTime$),di=ei(N.info.volume$),fi=ei(N.info.muted$),mt=Qc(N.info.predefinedQualityLimitType$.pipe((0,pt.map)(c=>c===ui.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.TRAFFIC_SAVING),it=Qc(N.info.predefinedQualityLimitType$.pipe((0,pt.map)(c=>c===ui.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ui.PredefinedQualityLimits.HIGH_QUALITY),Bt=ei(N.info.autoQualityLimitingAvailable$),ho=ei(N.info.availableQualities$),ii=ei(N.info.availableQualitiesFps$),er=ei(N.info.chromecastState$),Bi=ei(N.info.chromecastDeviceName$),Oo=ei(N.info.currentFormat$),xi=ei(N.info.throughputEstimation$),_t=ei(N.info.videoBitrate$),Ni=ei(N.info.intrinsicVideoSize$),Ho=ei(N.info.duration$),An=ei(N.info.isAudioAvailable$),ci=null,Ei=N.info.isBuffering$,Fo=gr(Ei.getValue(),c=>{let x=Ei.subscribe(B=>{B&&ci===null?ci=window.setTimeout(()=>{c(Ei.getValue()),ci=null},ue.loaderDelay):c(B)});return()=>{x.unsubscribe(),ci&&clearTimeout(ci)}}),Mn=()=>{ci&&clearTimeout(ci),ci=null},Uo=_i([Ho,jt],([c,x])=>x?-c:c),Eo=_i([Ii],([c])=>c===ui.PlaybackState.PLAYING),$n=ei(N.info.atLiveEdge$),en=ei(N.info.atLiveDurationEdge$),_o=ei(N.info.position$),ko=_i([_o,Ho],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Or=_i([er],([c])=>c===ui.ChromecastState.CONNECTED),_r=ei(N.info.availableVideoStreams$),tr=ue.features.audioLanguages?ei(N.info.availableAudioStreams$):gr([]),ir=ei(N.info.currentVideoStream$),or=ei(N.info.currentAudioStream$),Ln=c=>{c.language&&rf(c.language),N.setVideoStream(c)},os=c=>{c.language&&rf(c.language),N.setAudioStream(c)},Vn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(pe=>"isDefault"in pe&&pe.isDefault)),x)return x;let B=qh();return B&&(x=c.find(({language:pe})=>B===pe)),x!=null||(x=c.at(0)),x},Di=!1;ke.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Di&&c.length){let x=Vn(c);x&&(N.setAudioStream(x),Di=!0)}}));let Rn=!1;ke.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Rn&&c.length){let x=Vn(c);x&&(N.setVideoStream(x),Rn=!0)}}));let tn=se(void 0),on=ei(N.info.isAutoQualityEnabled$,c=>c&&tn.set(void 0)),Bn=ei(N.info.currentQuality$,()=>tn.set(void 0)),Nn=_i([tn,Bn],([c,x])=>c!=null?c:x),zo=_i(Oo,c=>c!==ui.VideoFormat.MPEG),Hr=_i([ho,ii,on,Nn,zo],([c,x,B,pe,He])=>{let vt=[];He&&vt.push({value:"auto",displayValue:Rt("auto_quality_option"),selected:B});let Ft=c.filter(Qt=>!(0,pt.isInvariantQuality)(Qt));for(let Qt of Ft){let Ut=x[Qt];vt.push({value:Qt,displayValue:`${Qt}${Ut?A1(Ut):""}`,selected:B?!1:Qt===pe})}return vt}),Dn=ei(N.info.currentPlaybackRate$),nr=_i([Dn,$n,en],([c,x,B])=>{let pe=B||C?1:ue.controls.playbackRateMin,He=x?1:ue.controls.playbackRateMax,vt=ue.controls.playbackRateStep,Ft=[];for(let Qt=pe;Qt<=He;Qt+=vt)Ft.push({value:Qt,displayValue:Qt===1?Rt("playback_rate_1"):Rt("playback_rate",{multiplier:Qt.toString(10)}),selected:c===Qt});return Ft}),zi={displayValue:Rt("subtitles_off"),value:$u},Po=se(z({},zi)),dt=ue.features.subtitles?ei(N.info.availableTextTracks$):gr([]),Jt=Bh(),br=_i([dt,Po],([c,x],B)=>{var vt;let pe=[],He=c.find(({id:Ft})=>Ft===x.value);if(He!=null&&He.url){let[,Ft]=(vt=Jt.find(He.url))!=null?vt:[];if(Ft){B(Ft);return}oe.download(He.url).then(Qt=>{if(!Qt||oe.isDestroyed())return;let Ut=new M1,Cs=He.language;if(Cs){let w0=!!He.isAuto,S0=Ut.parse(Qt,Cs);pe.push({lang:Cs,subtitles:S0,isAuto:w0,id:He.id})}Jt.add(He.url,pe),we(Po).value===x.value&&B(pe)}).catch(Qt=>{var Ut;(Ut=ce==null?void 0:ce.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),qe==null||qe.report(Qt,{errorType:"Subtitles download",fatal:!1})})}B(pe)}),On=_i([Dn,Eo,Po],([c,x,B],pe)=>{let Ft;if(N.info.isLive$.getValue()&&x&&B.value!==zi.value){let Ut=()=>{let Cs=1e3/(3*c);Ft=setTimeout(Ut,Cs),pe(Date.now())};return Ut(),()=>clearTimeout(Ft)}}),yn=_i([dt,Po],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:pe,isAuto:He,id:vt}of c){let Ft=pe&&_u(pe);pe&&Ft&&B.push({displayValue:He?Rt("subtitles_auto",{language:Ft}):Ft,value:vt,selected:(x==null?void 0:x.value)===vt,isAuto:He})}return B.length?(B.unshift(Ot(z({},zi),{selected:(x==null?void 0:x.value)===zi.value})),B):[]}),Oi={available:[],prev:[]},Hn=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:tt==null?void 0:tt.currentTime)!=null?B:0},Ao=_i([pi,Po,br,On],([c,x,B,pe])=>{var vt;let He=N.info.isLive$.getValue();if(He&&Oi.prev!==B){let Ft=B.find(({id:Ut})=>Ut===x.value),Qt=Oi.prev.find(({id:Ut})=>Ut===x.value);if(Ft){let Ut=Ot(z({},Ft),{subtitles:[...(vt=Qt==null?void 0:Qt.subtitles)!=null?vt:[],...Ft.subtitles]});Oi.available=[Ut],Oi.prev=B}}if(x&&x.value!==zi.value){let Ft=He?Hn():c,Qt=He?Oi.available:B;return R1(Ft,x,Qt,He)}}),Fn=_i([Ao],([c])=>c!=null&&c.texts?c.texts:[]);ke.add(Po.subscribe(c=>{var x,B;if(c.value===zi.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let pe=Object.entries(hu).find(([He,vt])=>vt===c.displayValue);(B=l==null?void 0:l.onSubtitleOn)==null||B.call(l,pe?pe[0]:"")}}));let Mo=se(!0),Un=_i([Io,Uo,_o,Ri],([c,x,B,pe])=>{var Qt;let He=(Qt=c==null?void 0:c.end)!=null?Qt:0;if(!pe)return He/x;let Ft=-B+pe-x;return(He-Ft)/x}),zn=ei(N.info.availableSources$),rr=_i([zn],([c])=>Object.keys((c==null?void 0:c[ui.VideoFormat.MPEG])||{}).length>0),$r=()=>{var B,pe,He;let c=Object.keys(((pe=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:pe[ui.VideoFormat.MPEG])||{}),x=(0,pt.getHighestQuality)(c)||pt.VideoQuality.Q_144P;return(He=We.sources[ui.VideoFormat.MPEG])==null?void 0:He[x]},sr=()=>{var x;let c=$r();if(c)le.log("download video",{url:c}),Lh(c,((x=We==null?void 0:We.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";le.log("download video",{message:B}),X({message:B})}},Wo=()=>{X({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?bo(Zt()):Lo(!c)},Fr=()=>{var c;if(Lt.ui.settingsMenu.visible$.set(!1),!we(Lt.ui.settingsSubMenu.visible$)){let x=we(Lt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let pe=$l(x),He={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:pe,position:He,name:"settings"})}}le.log("close settings menu")},ar=(c,x=()=>Promise.resolve())=>Tt(void 0,null,function*(){var He;Lt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Lt.ui.settingsMenu.visible$.set(!0),yield x();let B=we(Lt.ui.settingsMenu.ref$),pe=Oa();if((He=l==null?void 0:l.uiInfo)!=null&&He.onSettingsMenu&&B&&pe){let Ft=$l(B),Qt=_s(B,pe);l.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Qt,name:"settings"})}le.log("open settings menu",{wasOpenedByKeyboard:c})}),yr=(c,x=!1)=>{var vt;Lt.ui.settingsSubMenu.visible$.set(!1);let B=we(Lt.ui.settingsMenu.ref$),pe=Oa(),He=we(Lt.ui.settingsMenu.visible$);if((vt=l==null?void 0:l.uiInfo)!=null&&vt.onSettingsMenu&&B&&pe)if(He&&!x){let Qt=$l(B),Ut=_s(B,pe);l.uiInfo.onSettingsMenu({visible:!0,size:Qt,position:Ut,name:"settings"})}else{let Qt=$l(c),Ut={top:0,left:0,bottom:0,right:0},Cs=we(Lt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Qt,position:Ut,name:Cs})}le.log("close settings sub menu")},nn=(c,x)=>{var pe;Lt.ui.settingsSubMenu.visible$.set(!0),Lt.ui.settingsSubMenu.ref$.set(x),Lt.ui.settingsSubMenu.name$.set(c);let B=Oa();if((pe=l==null?void 0:l.uiInfo)!=null&&pe.onSettingsMenu&&x&&B){let vt=$l(x),Ft=_s(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:vt,position:Ft})}le.log("open settings sub menu",{name:c})},Zt=()=>{var x;let c=Math.max(ue.volumeMinRestore,(x=Gc())!=null?x:0);return c===0?ue.volumeDefault:c},bo=c=>{let x=c===0?Zt():c,B=N.info.muted$.getValue();X({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let pe=!r||fe.is("ads");B&&c>0&&pe&&(B=!1,of(!1)),N.setVolume(c,B),te.setVolume(c),Zp(x)},Lo=c=>{let x=N.info.volume$.getValue();if(X({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,fe.is("ads")),te.setVolume(c?0:x),of(c),!c&&x===0){let B=Zt();N.setVolume(B),Zp(B),te.setVolume(B)}},lr=se(!1),xr=c=>{var x,B;le.log("set looped",{isLooped:c}),lr.set(c),N.setLooped(c),(B=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||B.call(x,c)};xr(G);let ki=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ns=(c,x=!1)=>{var B;X({message:`set autoplayNextEnabled, value: ${c}`}),le.log("set autoplay next enabled",{autoplayNextEnabled:c}),Lt.ui.autoplayNextEnabled$.set(c),Gh(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},Ur=c=>{X({message:`set timerNextVideoRunning, value: ${c}`}),le.log("set timer next video running",{timerNextVideoRunning:c}),Lt.ui.timerNextVideoRunning$.set(c)},wr=(c=!0)=>{var pe;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(pe=l==null?void 0:l.onPrevVideoClick)==null?void 0:pe.call(l)}catch(He){X({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ai("prev")||j()},$t=(c=!0)=>{var pe;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(pe=l==null?void 0:l.onNextVideoClick)==null?void 0:pe.call(l)}catch(He){X({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ai("next")||ae()},ai=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:B,playbackStatusShow:pe}}=ue;return B&&pe&&!x?(Lt.ui.aboutToGoNextVideo.set(c),Lt.ui.userActionsDisabled.set(!0),!0):!1},qo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Ko=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Wi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Wn=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},rn=()=>{N.prepare()},dr=()=>{(0,pt.assertNonNullable)(Lt);let c=we(Lt.ui.controls.disabledControls$),x=we(Lt.playerPhase),B={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(X({message:"toggle play"}),x==="ads"){B.action="play",le.log("toggle adman play",B),te.togglePlay();return}let pe=()=>{var vt;X({message:"toggle play, call player.play"}),B.action="play",N.play(),(vt=l==null?void 0:l.onPlay)==null||vt.call(l)},He=()=>{var vt;X({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(vt=l==null?void 0:l.onPause)==null||vt.call(l)};if(N.info.isEnded$.getValue()){if(X({message:"toggle play, video ended, seek to 0"}),et.next(),St.next(is.SeekAction.REWIND),C){M==null||M();return}N.seekTime(0),pe()}else N.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING?pe():He();le.log("toggle play",B)},qi=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{X({message:`set quality, quality: ${c}`}),le.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ue.features.qualityDetailsSubMenuEnabled?(Yc({type:"exact_quality",quality:c,videoId:i},B),md(),N.setPredefinedQualityLimits(ui.PredefinedQualityLimits.UNKNOWN)):Xp(i,c),tn.set(c),N.setQuality(c)):ue.features.qualityDetailsSubMenuEnabled?x==="default"&&(bi("auto_quality",B),we(mt)&&sn(!1),we(it)&&Ze(!1)):md()},sn=(c,x="as-default")=>{X({message:`set trafficSavingEnabled, value: ${c}`}),le.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?ui.PredefinedQualityLimits.TRAFFIC_SAVING:ui.PredefinedQualityLimits.UNKNOWN;ue.features.qualityDetailsSubMenuEnabled?(Nt(B,x),fd(!1)):(N.setPredefinedQualityLimits(B),fd(c))},Ze=(c,x="as-default")=>{X({message:`set highQualityEnabled, value: ${c}`}),le.log("set high quality enabled",{highQualityEnabled:c}),Nt(c?ui.PredefinedQualityLimits.HIGH_QUALITY:ui.PredefinedQualityLimits.UNKNOWN,x)},Nt=(c,x)=>{c!==ui.PredefinedQualityLimits.UNKNOWN&&(we(Bt)&&!we(on)&&qi("auto",{appliesTo:x,changeReason:"limit-changed"}),bi(c,x)),N.setPredefinedQualityLimits(c)},bi=(c,x)=>{Yc({type:c,videoId:i},x),x==="as-default"&&Yc({type:c,videoId:i},"to-video")},$o=c=>{le.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ue.features.saveRate&&de&&!N.info.isLive$.getValue()&&Kh(c)},oo=()=>{let c=we(nr),x=c.findIndex(({selected:pe})=>pe);if(x===c.length-1)return;let B=c[x+1];$o(B.value)},Qo=()=>{let c=we(nr),x=c.findIndex(({selected:pe})=>pe);if(x===0)return;let B=c[x-1];$o(B.value)},to=(c=Ot(z({},zi),{selected:!1}))=>{le.log("set subtitles",z({},c)),c&&c.value!==zi.value&&ht.next(c.isAuto?c.value+"_auto":c.value),Po.set(c)},Go=()=>{le.log("toggle subtitles");let c=we(yn),x=we(Po),B=we(Mt);if((x==null?void 0:x.value)===zi.value){let pe=c.filter(He=>He.value!==zi.value).find(He=>He.value===B)||c[1];to(pe)}else to()},Vo=se(!0),Ki=c=>{Vo.set(c)},$i=(c,x,B=!0)=>{var pe;if(X({message:`seek to time, time: ${c}`}),le.log("seek to time",{time:c,action:x,forcePrecise:B}),St.next(x),N.info.isLive$.getValue()){let He=N.info.duration$.getValue(),vt=Math.min(0,He+c);N.seekTime(vt,B)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(X({message:"seek after ended, call callbacks.onPlay"}),(pe=l==null?void 0:l.onPlay)==null||pe.call(l)),N.seekTime(Ss(c),B)}},Yo=c=>{X({message:`seek to episode start time: ${c}`}),le.log("seek to episode start time",{time:c}),$i(c,is.SeekAction.EPISODE,!0)},an=(c,x)=>{X({message:`seek to percent, percent: ${c}`}),le.log("seek to percent",{percent:c,action:x});let B=we(Uo)*c;$i(B,x,!1)},Qi=c=>{X({message:`seek external, time: ${c}`}),le.log("seek external",{time:c}),St.next(is.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Sr=c=>{var pe,He;let x=(pe=c.max)!=null?pe:"none",B=(He=c.min)!=null?He:"none";X({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),le.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},zr=c=>{X({message:`seek external to episode start time: ${c}`}),le.log("seek external to episode start time",{time:c}),$i(c,is.SeekAction.EPISODE,!0)},Wr=c=>{X({message:`set playback rate to: ${c}`}),le.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},xn=se(void 0),qn=se(!1),qr=c=>{X({message:`start scrubbing, progress: ${c}`}),le.log("start scrubbing",{progress:c}),qn.set(!0),no(c)},no=c=>{xn.set(c)},jo,Kn,cr=()=>{xn.set(void 0),qn.set(!1)},ur=()=>{clearTimeout(Kn),clearTimeout(jo),jo=window.setTimeout(()=>{cr()},500),tt==null||tt.removeEventListener("seeked",ur)},Kr=c=>{X({message:`complete scrubbing, progress: ${c}`}),le.log("complete scrubbing",{progress:c}),an(c,is.SeekAction.SLIDER),we(Lt.ui.isMobile)&&we(Lt.state.currentFormat$)===ui.VideoFormat.HLS?(tt==null||tt.addEventListener("seeked",ur),Kn=window.setTimeout(()=>{ur()},300)):cr()},rs=_i([pi,Uo,xn],([c,x,B],pe)=>{pe((0,pt.isNonNullable)(B)?B*x:c)}),Ie=se(!1),xe=()=>{Ie.set(!0)},Ct=()=>{Ie.set(!1)},Kt=se({width:0,height:0}),Pi=_i([Kt],([{width:c}],x)=>{let B=w1(c);x(B)}),yi=se(!1),Ue=W.filter(c=>Vh(c)),kt=_i([Pi,yi],([c,x])=>x?Ue.filter(B=>!B.hideOnMobile):Ue.filter(B=>{var pe;return!((pe=B.hideOnDesktopGridTypes)!=null&&pe.includes(c))})),oi=se(W.filter(c=>Rh(c))),ln=_i([oi,Pi],([c,x])=>c.filter(B=>{var pe;return!((pe=B.hideOnDesktopGridTypes)!=null&&pe.includes(x))})),wn=_i([ln,kt],([c,x])=>[...ue.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?x.map((B,pe)=>{var He;return{id:pe,weight:pe,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(He=B.ariaLabel)!=null?He:B.tooltip,tooltipText:B.tooltip}}):[]]),ro=se(K),Qr=_i([ro],([c])=>ue.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Ot(z({},x),{onClick:x.onChangeEnabled}):x):[]),Cr=(c,x)=>{let B=we(oi).map(pe=>pe.id!==c?pe:z(z({},pe),x));oi.set(B)},io=c=>{let x=we(oi);if(x.some(B=>B.id===c.id)){X({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),oi.set(x)},Ai=c=>{let x=we(oi);if(!x.some(B=>B.id===c)){X({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),oi.set(x)},Sn=c=>{St.next(is.SeekAction.LIVE),X({message:"live switch to low latency "+c}),le.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Qn=(c,x)=>{let B=we(ro).map(pe=>pe.id!==c?pe:z(z({},pe),x));ro.set(B)},Tr=c=>{let x=we(ro);if(x.some(B=>B.id===c.id)){X({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ro.set(x)},yo=c=>{let x=we(ro);if(!x.some(B=>B.id===c)){X({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),ro.set(x)},pr=se(U),Ks=_i([pr],([c])=>ue.features.additionalContextMenuItems?c:[]),wt=(c,x)=>{let B=we(pr).map(pe=>pe.id!==c?pe:z(z({},pe),x));pr.set(B)},yt=c=>{let x=we(pr);if(x.some(B=>B.id===c.id)){X({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),pr.set(x)},so=c=>{let x=we(pr);if(!x.some(B=>B.id===c)){X({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),pr.set(x)},Zo=_i([yi,si],([c,x],B)=>{B(c&&x)}),ao=()=>{St.next(is.SeekAction.LIVE),X({message:"switch to active live"}),le.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ui.PlaybackState.PLAYING&&Lt.actions.internal.togglePlay()},li=()=>{le.log("skip adman"),te.skip()},Hi=(c=!0)=>{(0,pt.assertNonNullable)(Lt),X({message:`switch from ads to video, callPlay: ${c}`}),le.log("switch from ads to video",{callPlay:c}),Z.set("video"),c&&N.play(),r&&Lo(!0)},ws=()=>{(0,pt.assertNonNullable)(Lt),X({message:"switch from video to ads"}),le.log("switch from video to ads"),Lt.actions.internal.pause(),Gt(),Z.set("ads")},Ll=c=>{(0,pt.assertNonNullable)(Lt);let x=c?"LiveWaitingStart":"thumb";le.log("set live waiting start",{state:c,playerPhase:x}),Z.set(x)},fc=c=>{(0,pt.assertNonNullable)(Lt);let x=c?"LiveWaitingRecover":"thumb";le.log("set live waiting recover",{state:c,playerPhase:x}),Z.set(x)},Ku=c=>{(0,pt.assertNonNullable)(Lt);let x=c?"LiveWaitingRecord":"thumb";le.log("set live waiting record",{state:c,playerPhase:x}),Z.set(x)},mc=()=>((0,pt.assertNonNullable)(Lt),le.log("get debug text data"),Ah(N,We,Lt,Me.getTraceId())),Qu=()=>((0,pt.assertNonNullable)(Lt),JSON.stringify(Me.getFinishedSpans())),vc=()=>((0,pt.assertNonNullable)(Lt),Mh(N,We,Lt)),Oa=()=>tt,gc=()=>{X({message:"toggle chromecast"}),le.log("toggle chromecast"),N.toggleChromecast()},hc=c=>{var B;if((0,pt.assertNonNullable)(Lt),N.info.isEnded$.getValue())return;let x=!c;if(we(Lt.playerPhase)==="ads"){X({message:`pause ads, internalCall: ${x}`}),le.log("pause ads",{internalCall:x}),te.pause();return}X({message:`pause video, internalCall: ${x}`}),le.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},Vl=c=>{var B;(0,pt.assertNonNullable)(Lt);let x=!c;if(we(Lt.playerPhase)==="ads"){X({message:`play ads, internalCall: ${x}`}),le.log("play ads",{internalCall:x}),te.play();return}X({message:`play video, internalCall: ${x}`}),le.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},_c=c=>{(0,pt.assertNonNullable)(Lt);let x=!c;if(we(Lt.playerPhase)==="ads"){X({message:"player cannot be stopped during ads via external method"});return}X({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},Rl=(c,x)=>{(0,pt.assertNonNullable)(Lt),X({message:`first start, show ads: ${c}, internalCall: ${!x}`}),le.log("first start",{showAds:c,external:x}),c?Z.set("ads"):(Z.set("video"),x?N.play():Lt.actions.internal.togglePlay())},Bl=()=>(X({message:"getting time codes"}),f),Nl=()=>{let c=Bl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},Gu=c=>{let x=c;x||(x=Nl());let B=N.info.position$.getValue();le.log("seek to next episode",z({currentTime:B},x)),x&&(X({message:"seek to next episode"}),$i(x.time,is.SeekAction.EPISODE,!0))},Dl=()=>{let c=Bl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(He=>He.time>x),pe=B===-1?c.length-2:B-2;if(!(pe<0))return c[pe]},Yu=c=>{let x=c;x||(x=Dl());let B=N.info.position$.getValue();le.log("seek to prev episode",z({currentTime:B},x)),x&&(X({message:"seek to prev episode"}),$i(x.time,is.SeekAction.EPISODE,!0))},ju=()=>(X({message:"getting preview thumbs data"}),le.log("get preview thumbs data",z({},$)),$),Zu=()=>Tt(void 0,null,function*(){let c=re==null?void 0:re.isActive(),x="none";re!=null&&re.isActive()?(x="remove",yield re==null?void 0:re.remove()):(x="request",yield re==null?void 0:re.request()),le.log("toggle picture in picture",{isActive:c,action:x})}),Ge=(c=-90)=>{le.log("rotate video",{alphaDiff:c}),Et.update(x=>x+c)},ni=se([]);T==null||T.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[pe,He],subjects:vt}=c[B];B===0&&pe!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:pe/1e3,text:"",interactive:!0,completed:ue.features.interactiveTimeOpenUri?!vt.length||vt.every(Ft=>Ft.isRemoved):!vt.length}),He!==1/0&&x.push({time:He/1e3,text:"",interactive:!1,completed:!0})}ni.set(x)});let Ro=se(!1);I==null||I.subscribe(c=>{c&&we(qn)&&cr()});let Ss=c=>{if(!C)return c;let x=we(ni),B=we(Uo),He=we(_o)/B,vt=x.find(Ft=>Ft.interactive&&!Ft.completed&&Ft.time>He);return typeof(vt==null?void 0:vt.time)=="number"?Math.min(c,vt.time-.05):c},dn=()=>{Lt.ui.episodes.panelOpened$.set(!1)},x0=()=>{le.log("destroy store"),clearTimeout(Kn),clearTimeout(jo),ke.unsubscribe(),Je.unsubscribe(),N.destroy(),te.destroy(),ce==null||ce.destroy(),qe==null||qe.destroy(),Xt.unsubscribe(),Yt==null||Yt.disconnect(),Yt=null,oe.destroy()},Lt={interfaceLanguage$:Mt,isCyrillicRelatedInterface$:ie,initVideo:me,videoId:i,isClip:o,playerPhase:fe,vsid:Ke,state:{positionExact$:pi,positionWithScrubbing$:rs,duration$:Uo,playbackState$:Ii,isPlaying$:Eo,isLoaderVisible:Fo,bufferedProgress$:Un,isLive$:jt,canChangePlaybackSpeed$:mi,isActiveLive$:$n,isOldestAvailableLive$:en,isRewindableLive$:ko,isEnded$:Y,muted$:fi,volume$:di,trafficSavingEnabled$:mt,highQualityEnabled$:it,autoQualityLimitingAvailable$:Bt,availableVideoStreams$:_r,availableAudioStreams$:tr,videoStream$:ir,audioStream$:or,currentQuality$:Nn,isAutoQualityEnabled$:on,availableQualities$:Hr,currentPlaybackRate$:Dn,availablePlaybackRates$:nr,currentSubtitle$:Po,availableTextTracks$:dt,availableSubtitlesList$:yn,currentSubtitleCaptions$:Fn,isAutoSubtitleCaptionVisible$:Mo,chromecastState$:er,chromecastDeviceName$:Bi,chromecastConnected$:Or,currentFormat$:Oo,throughputEstimation$:xi,videoBitrate$:_t,videoSize$:Ni,errorLog$:ft,crashed$:si,isAudioAvailable$:An,isAudioDisabled:!!r,canDownload:ue.features.download&&!!d,availableSources$:zn,hasMpegSources$:rr,isInteractive:C,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!we(ni).length,interactiveEpisodes$:ni,isInteractiveTime$:I?ei(I):se(!1),isInteractiveExpectation$:Ro,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:lr,loadedMetadata$:se(!1),isAutoQualityAvailable$:zo},ui:{t:Rt,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:W.length?W.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:Ae},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:st,isFullscreenOpenedByKeyboard:ut,rotateAlpha:Et,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:Kt,isMobile:yi,mobileNotReportControlHidden$:Zo,mobileUnmuteButtonExpanded:se(!1),mobileUnmuteButtonVisible:se(!1),icon3DVideoVisible:se(!1),scrubbingInProgress:qn,volumeChangingInProgress:Ie,is3DVideo:se(!1),currentGridType$:Pi,additionalButtonsDeprecated$:kt,additionalDesktopControlPanelRightButtons$:wn,additionalSettingsMenuItems$:Qr,additionalContextMenuItems$:Ks,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:Vo,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:re,annotationsApi:ve,slotsApi:ye},actions:{internal:{preload:rn,firstStart:c=>Rl(c,!1),play:()=>Vl(!1),pause:()=>hc(!1),togglePlay:dr,toggleMuted:Wo,openSettingsMenu:ar,closeSettingsMenu:Fr,openSettingsSubMenu:nn,closeSettingsSubMenu:yr,setVolume:bo,startVolumeChanging:xe,stopVolumeChanging:Ct,setVideoStream:Ln,setAudioStream:os,setQuality:qi,setTrafficSavingEnabled:sn,setHighQualityEnabled:Ze,setPlaybackRate:$o,incrementPlaybackRate:oo,decrementPlaybackRate:Qo,setSubtitle:to,toggleSubtitle:Go,togglePictureInPicture:Zu,startScrubbing:qr,progressScrubbing:no,completeScrubbing:Kr,toggleChromecast:gc,switchToActiveLive:ao,switchFromAdsToVideo:Hi,switchFromVideoToAds:ws,skipAd:li,setLiveWaitingStart:Ll,setLiveWaitingRecover:fc,setLiveWaitingRecord:Ku,getDebugTextData:mc,getTraceTextData:Qu,getDebugPanelData:vc,getVideoElement:Oa,seekTime:(c,x,B)=>$i(c,x,B),clearDelayedBufferingCheckTimeout:Mn,seekEpisodeStartTime:Yo,seekToPercent:an,getNextEpisode:Nl,seekToNextEpisode:Gu,getPrevEpisode:Dl,seekToPrevEpisode:Yu,startLogging:ti,stopLogging:Ji,startCameraManualRotation:Ui,stopCameraManualRotation:go,moveCameraFocusPX:eo,holdCamera:rt,releaseCamera:xt,getVideoEpisodes:Bl,getPreviewThumbsData:ju,downloadVideo:sr,addLanguage:sf,setLanguage:Wt,nextMovie:nt,videoRotate:Ge,correctSeekTimeToInteractive:Ss,replayInteractive:M,setLooped:xr,reportProblem:ki,setAutoplayNextEnabled:ns,setTimerNextVideoRunning:Ur,prevVideoClick:wr,nextVideoClick:$t,nextVideoAnnouncementShow:qo,nextVideoAnnouncementClick:Ko,nextVideoAnnouncementAuto:Wi,nextVideoAnnouncementCancel:Wn},external:{firstStart:c=>Rl(c,!0),play:()=>Vl(!0),pause:()=>hc(!0),stop:()=>_c(!0),seekTime:c=>Qi(c),seekEpisodeStartTime:c=>zr(c),setPlaybackRate:c=>Wr(c),setAutoQualityLimits:c=>Sr(c),setMuted:Lo,toggleSubtitle:Go,setVolume:bo,returnFocusToEpisodes:dn,updateAdditionalSettingsItem:Qn,addAdditionalSettingsItem:Tr,removeAdditionalSettingsItem:yo,updateAdditionalContextItem:wt,addAdditionalContextItem:yt,removeAdditionalContextItem:so,updateAdditionalButton:Cr,addAdditionalButton:io,removeAdditionalButton:Ai,setLiveLowLatency:Sn,hideControls:()=>Ki(!1),showControls:()=>Ki(!0)}},callbacks:l,setUiCallbacks:c=>{Te=z({},c)},getAdmanWrapper:()=>te,getLogger:()=>je,getPlayer:()=>N,destroy:x0};return Lt};function Br(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),a=o&&!!n&&!!(n.right-n.left),{top:r,left:d,bottom:l,right:u}=_s(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?r:0,bottom:a?l:0,isDisplayed:a}}var K2=["disabledControls$","additionalButtons"],Q2=["interactiveTimeIndicator"],yl=(t,e,i,o)=>{if(t){for(let[n,a]of Object.entries(e))if(!K2.includes(n)){let r=o||Q2.includes(n);a.set(Br(t,i,n,r))}}};var yu=(t,e,i)=>Tt(void 0,null,function*(){yield So(),e&&i&&(i.focus(),t.set(!1))});var G2=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 om(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=G2();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i))),y(t,o)}function nm(t,e){O(e,!0);let[i,o]=Oe(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),r=m(e,"ariaLabel",3,""),d=Ee(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,$=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,_=J(void 0);ze(()=>{s(_)&&It(()=>{p.set(s(_))})});let w=I=>{let M=Ns(I),P=f1(s(_));$.set(P),u.set(M),l.set(!n())},b=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Dt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return r()},click:w,focus:b,blur:C,get ariaExpanded(){return n()},role:"button",get ref(){return s(_)},set ref(I){D(_,ge(I))},children:(I,M)=>{om(I,{})},$$slots:{default:!0}}),H(),o()}var Y2=t=>{t.stopPropagation()},j2=L("<div><!> <div></div> <div></div></div>"),Z2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
231
231
 
232
232
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
233
233
  }
@@ -252,16 +252,17 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
252
252
  opacity: 0;
253
253
  }
254
254
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
255
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Ad(t,e){var Q;F(e,!0),K(t,q2);let[i,o]=Oe(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(_,"$interactiveControlsOpacity$",i),u=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),y=m(e,"ref",15,void 0),p=J(void 0),b=Te(),w=ao(),{interactiveControlsOpacity$:_}=w,C=b.ui.isMobile,T=b.ui.isFullscreen,I=b.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=b.ui.controlsVisible,k=(Q=b.callbacks)==null?void 0:Q.onInteractiveTimeIndicatorClick,V=b.ui.currentGridType$,q=v(()=>!n()&&a()),Z=v(()=>Is(s(),"s")),H=v(()=>!d()||!!l()||r(q)),G=J(!1);Ue(()=>{D(G,me(r(H)))});let oe=()=>{D(G,!0)},X=()=>{var _e;ae(),(_e=r(p))==null||_e.addEventListener("animationiteration",oe,{once:!0})},ae=()=>{var _e;D(G,!1),(_e=r(p))==null||_e.removeEventListener("animationiteration",oe)},ue=_e=>{M.set(_e)},Pe=v(()=>u()&&!r(H));Ue(()=>{u()?X():ae()});let Le=()=>{r(H)||(M.set(!0),k==null||k())};xn(()=>{M.clearTimeout(),ae()});let he=()=>{M.set(!1)},le=z("tooltip_interactive_interaction_time_indicator");var Ae=W2();let re;Ae.__mousemove=[z2],Ae.__click=Le;var N=h(Ae);Ao(N,{tooltipContent:le,get tooltipActive(){return r(Pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ue,get ref(){return y()},set ref(_e){y(_e)},children:(_e,te)=>{xd(_e,{completed:!0})},$$slots:{default:!0}});var pe=A(N,2);let be;_t(pe,_e=>y(_e),()=>y());var We=A(pe,2);let se;_t(We,_e=>D(p,_e),()=>r(p)),g(Ae),E((_e,te,Fe)=>{re=ee(Ae,1,"interactive-episode-icon-animated svelte-od3veb",null,re,_e),be=ee(pe,1,"ref-block svelte-od3veb",null,be,te),se=ee(We,1,"pulse svelte-od3veb",null,se,Fe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(Z)}),()=>({hidden:r(H)}),()=>({paused:r(G)})]),Pt("mouseleave",Ae,he),$(t,Ae),U(),o()}lt(["mousemove","click"]);function gu(t,e){F(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);Ao(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=He();let u=v(()=>e.buttonComponent);var f=fe(l);Ti(f,()=>r(u),(y,p)=>{p(y,ns(()=>{var b;return(b=e.buttonComponentProps)!=null?b:{}}))}),$(s,l)},$$slots:{default:!0}}),U()}var as={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Q2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Xf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),$(t,o)}function ks(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Xf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var G2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Y2=L("<!> <!>",1),j2={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 _a(t,e){F(e,!0),K(t,j2);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=Te().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Dt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(f){i(f)},children:(f,y)=>{var p=Y2(),b=fe(p);{var w=T=>{var I=G2();$(T,I)};R(b,T=>{o()&&T(w)})}var _=A(b,2);let C=v(()=>e.type==="prev");ks(_,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(f,p)},$$slots:{default:!0}}),U()}var Z2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Md(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i))),$(t,o)}var E1=require("@vkontakte/videoplayer-shared/es2015");var X2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),J2=L("<!> <div><!></div>",1),ey={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 _l(t,e){F(e,!0),K(t,ey);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),s=m(e,"click",3,E1.noop),d=z("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Dt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var y=J2(),p=fe(y);{var b=T=>{var I=X2();$(T,I)};R(p,T=>{o()&&T(b)})}var w=A(p,2);let _;var C=h(w);Md(C,{}),g(w),E(T=>_=ee(w,1,"svelte-1ot3duq",null,_,T),[()=>({mobile:o()})]),$(u,y)},$$slots:{default:!0}}),U()}var ty=xe('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Ir(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=ty(),d=h(s);g(s),E(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),$(t,s)}var iy=xe('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function ls(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=iy(),d=h(s);g(s),E(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),$(t,s)}var P1=require("@vkontakte/videoplayer-shared/es2015");var oy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ny=L("<!> <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 bl(t,e){F(e,!0),K(t,ry);let[i,o]=Oe(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=ao(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),y=m(e,"click",3,P1.noop),b=Te().ui.t,{toggle:w}=a,_=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),I=v(()=>r(T)?b("tooltip_pause"):b("tooltip_play")),M=v(()=>r(T)?ls:Ir),P=v(()=>`${d()?"btn-m--play":""} ${f()}`),k=v(()=>r(C)?r(_):y());Dt(t,{get className(){return r(P)},testId:"btn-play",get click(){return r(k)},get disabled(){return u()},get ariaLabel(){return r(I)},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,q)=>{var Z=ny();let H=v(()=>r(M));var G=fe(Z);{var oe=Pe=>{var Le=oy();$(Pe,Le)};R(G,Pe=>{d()&&Pe(oe)})}var X=A(G,2);let ae;var ue=h(X);Ti(ue,()=>r(H),(Pe,Le)=>{Le(Pe,{})}),g(X),E(Pe=>ae=ee(X,1,"svelte-1ot3duq",null,ae,Pe),[()=>({mobile:d()})]),$(V,Z)},$$slots:{default:!0}}),U(),o()}var sy=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Jf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=sy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i))),$(t,o)}function Ld(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=z("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Dt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Jf(d,{})},$$slots:{default:!0}}),U()}var ay=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),ly={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 Vd(t,e){F(e,!0),K(t,ly);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Dt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,y)=>{var p=ay(),b=h(p);let w;var _=h(b);{var C=I=>{Ir(I,{width:"14",height:"14",fill:"#000"})},T=I=>{ls(I,{width:"14",height:"14",fill:"#000"})};R(_,I=>{n()?I(C):I(T,!1)})}g(b),g(p),E(I=>w=ee(b,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),$(f,p)},$$slots:{default:!0}}),U(),o()}var dy=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function em(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=dy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i))),$(t,o)}function Rd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=z("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Dt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{em(d,{})},$$slots:{default:!0}}),U()}var cy=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function tm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=cy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),$(t,o)}var uy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function im(t,e){K(t,uy);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");tm(t,{get"data-testid"(){return r(o)}})}function Bd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Te().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Dt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,y)=>{let p=v(()=>!!a());im(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),U()}var om=require("@vkontakte/videoplayer-core/es2015");function Nd(t,e){F(e,!0);let[i,o]=Oe(),n=()=>S(u,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Te(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,y=l.actions.internal.togglePlay,p=v(()=>()=>{if(!s()){f();return}n()===om.PlaybackState.PAUSED&&y()}),b=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),_=v(()=>s()&&n()===om.PlaybackState.PLAYING);Dt(t,{get className(){return r(b)},get testId(){return r(w)},get disabled(){return r(_)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,T)=>{cd(C,{get isActive(){return s()}})},$$slots:{default:!0}}),U(),o()}var nm=require("@vkontakte/videoplayer-shared/es2015");var py=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),fy=L('<img class="icon" aria-hidden="true">');function ba(t,e){"use strict";let i=J(!1),o=()=>{D(i,!0)};var n=He(),a=fe(n);{var s=l=>{var u=py();$(l,u)},d=l=>{var u=fy();E(()=>De(u,"src",e.icon)),Pt("error",u,o),Gs(u),$(l,u)};R(a,l=>{r(i)?l(s):l(d,!1)})}$(t,n)}function rm(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,nm.noop),n=m(e,"ref",15),a=v(()=>o()===nm.noop),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Ao(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,u)=>{let f=v(()=>{var y;return(y=e.testId)!=null?y:e.id});Dt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(y,p)=>{ba(y,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var A1=t=>!!t.buttonComponent;var ds={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var gy=L('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),hy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function sm(t,e){var Ls,La;F(e,!0),K(t,hy);let[i,o]=Oe(),n=()=>S(Y,"$disabledControls$",i),a=()=>S(Nt,"$adPlaybackState",i),s=()=>S(vt,"$playbackState$",i),d=()=>S(wo,"$currentSubtitle$",i),l=()=>S(li,"$isEnded$",i),u=()=>S(dr,"$currentGridType$",i),f=()=>S(Si,"$isLive$",i),y=()=>S(mn,"$chromecastState$",i),p=()=>S(Li,"$isPictureInPictureActive",i),b=()=>S(Zi,"$pictureInPictureType$",i),w=()=>S(Sn,"$availableSubtitlesList$",i),_=()=>S(Vi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(xi,"$showContextMenuBtn$",i),T=()=>S(ni,"$playerSize",i),I=()=>S(Jt,"$isRewindableLive$",i),M=()=>S(it,"$isActiveLive$",i),P=()=>S(To,"$graphIsOpened$",i),k=()=>S(ti,"$contextMenuVisible$",i),V=()=>S(uo,"$isFullscreen",i),q=()=>S(Lo,"$autoplayNextEnabled",i),Z=()=>S(r(jn),"$prevButton",i),H=()=>S(r(Zn),"$replayButton",i),G=()=>S(r(st),"$playButton",i),oe=()=>S(r(wt),"$nextButton",i),X=()=>S(r(ki),"$playPrevChapterButton",i),ae=()=>S(r(Io),"$seekToInteractiveButton",i),ue=()=>S(r(vo),"$interactiveGraphButton",i),Pe=()=>S(r(ko),"$liveButton",i),Le=()=>S(r(Eo),"$time",i),he=()=>S(r(pt),"$episodes",i),le=()=>S(r(Xt),"$vkLogo",i),Ae=()=>S(r(si),"$volume",i),re=()=>S(r(wi),"$subtitles",i),N=()=>S(r(qi),"$settings",i),pe=()=>S(r(Ho),"$context",i),be=()=>S(r(Bi),"$fullscreen",i),We=()=>S(r(Yo),"$chromecast",i),se=()=>S(po,"$additionalDesktopControlPanelRightButtons$",i),Q=()=>S(Wo,"$isInteractiveTime$",i),_e=()=>S(Bt,"$settingsMenuVisible",i),te=()=>S(Lr,"$settingButtonRef$",i),Fe=()=>S(ci,"$startedByKeyboard$",i),Xe=()=>S(Ht,"$isAudioAvailable$",i),Se=()=>S(Ot,"$fakeIsPlaying$",i),Re=()=>S(Cn,"$seekToInteractiveDisabledTooltip$",i),ke=()=>S(tt,"$adPosition",i),ze=()=>S(ft,"$position$",i),ct=()=>S(hi,"$adDuration",i),ut=()=>S(yt,"$duration$",i),nt=m(e,"playerControlsWrapperRef",15,void 0),At=m(e,"playerControlsRef",15,void 0),bt=m(e,"isAds",3,!1),Zt=m(e,"logoTargetUrl",3,""),ei=m(e,"isOneVideoPlaylist",3,!1),Rt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ot}=ao(),O=Te(),$e=ao(),ne=Yt(),Ne=O.actions.internal.toggleMuted,Ge=O.actions.internal.togglePlay,Ze=O.actions.internal.pause,Ve=O.actions.internal.toggleSubtitle,ot=(Ls=O.callbacks)==null?void 0:Ls.onAudioDoesNotExistHint,et=(La=O.callbacks)==null?void 0:La.onAudioDisabledHint,yt=O.state.duration$,ft=O.state.positionWithScrubbing$,vt=O.state.playbackState$,Ht=O.state.isAudioAvailable$,Ye=O.state.isAudioDisabled,li=O.state.isEnded$,Si=O.state.isLive$,it=O.state.isActiveLive$,Jt=O.state.isRewindableLive$,{isActive$:Li,type$:Zi}=$e.pictureInPicture$,Bt=O.ui.settingsMenu.visible$,xt=O.ui.settingsMenu.openedByBtnKeyboard$,Ft=O.ui.controls,co=O.actions.internal.getVideoEpisodes(),mn=O.state.chromecastState$,Sn=O.state.availableSubtitlesList$,wo=O.state.currentSubtitle$,Y=Ft.disabledControls$,ti=O.ui.contextMenu.visible$,xi=O.ui.contextMenu.showContextMenuBtn$,Vi=O.ui.contextMenu.openedByBtnKeyboard$,ci=O.ui.startedByKeyboard$,gt=O.ui.t,hi=O.ads.duration,tt=O.ads.position,Nt=O.ads.playbackState,uo=O.ui.isFullscreen,ni=O.ui.playerSize,dr=O.ui.currentGridType$,po=O.ui.additionalDesktopControlPanelRightButtons$,Lo=O.ui.autoplayNextEnabled$,ui=O.actions.internal.getVideoElement,kt=O.actions.internal.replayInteractive,Ri=O.actions.internal.prevVideoClick,Vo=O.actions.internal.nextVideoClick,gi=O.state.isInteractive,Wo=O.state.isInteractiveTime$,Hi=O.state.showInteractiveGraph,So=O.state.showSeekToInteractive,Co=O.state.showPlayPrevChapter,Wn=O.state.showInteractiveTimeIndicator,Fi=O.state.playPrevChapterDisabledTooltip,Cn=$e.seekToInteractiveDisabledTooltip$,To=$e.graphIsOpened$,Ro=ne.features.interactiveResponsiveUi,Tn=v(()=>n().has("EPISODE_BUTTON")),Er=v(()=>n().has("GRAPH_BUTTON")),cr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),qn=v(()=>n().has("PLAY_BUTTON")),In=v(()=>n().has("REPLAY_BUTTON")),kn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Kn=()=>O.actions.internal.toggleChromecast(),fo=v(()=>bt()?a()==="playing":s()===$a.PlaybackState.PLAYING),rt=v(()=>d().value!=="off"),En=v(()=>l()&&!bt()||gi),qo=v(()=>Ro?r(En)&&Gi(u(),"m"):r(En)),Pn=v(()=>!l()||gi||bt()),An=v(()=>Gi(u(),"m")),Bo=v(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!bt()&&e.nextButtonActive),ur=v(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!bt()&&e.prevButtonActive),Ko=v(()=>!bt()&&!!f()),Mn=v(()=>y()!==$a.ChromecastState.NOT_AVAILABLE&&!(p()&&b()===1)&&Gi(u(),"m")&&!gi),Qo=v(()=>e.showAutoplayNext&&!ei()&&Gi(u(),"s")),mo=v(()=>w().length>0&&Gi(u(),"m")),Ui=v(()=>_()||C()),Ln=v(()=>Gi(u(),"s")&&!bt()),No=v(()=>!e.logoHidden&&!bt()),Go=v(()=>ne.features.fullscreen&&(e.logoHidden||Gi(u(),Ro?"xs":"s"))&&!(p()&&b()===1)&&(gi?Rt():!0)),Do=v(()=>(!f()||bt())&&!(ne.features.interactiveHideTime&&gi)),Vn=v(()=>T().width>100),zi=v(()=>Hi&&Gi(u(),"m")),Wi=v(()=>Ro?So&&Gi(u(),"s"):So),pr=v(()=>Ro?Co&&Gi(u(),"s"):Co),Oo=v(()=>!bt()&&!f()&&!!(co!=null&&co.length)&&r(An)&&!r(Tn)),Qn=v(()=>!I()||!!M()),Rn=v(()=>P()?gt("tooltip_interactive_graph_on"):gt("tooltip_interactive_graph_off")),Gn=v(()=>k()?gt("tooltip_context_menu_close"):gt("tooltip_context_menu_open")),fr=(dt,Ct)=>dt?Ct&&Ct===$a.PlaybackState.PAUSED?gt("tooltip_play"):"":gt("tooltip_live"),vn=v(()=>fr(r(Qn),s())),mr=v(()=>ne.logoType==="vk_video"?gt("tooltip_vk_video_logo"):gt("tooltip_vk_logo")),vr=v(()=>r(rt)?gt("tooltip_subtitles_on"):gt("tooltip_subtitles_off")),Yn=v(()=>V()?gt("tooltip_fullscreen_on"):gt("tooltip_fullscreen_off")),Pr=v(()=>y()===$a.ChromecastState.CONNECTED?gt("tooltip_chromecast_on"):gt("tooltip_chromecast_off")),Ar=v(()=>q()?gt("tooltip_autoplay_on"):gt("tooltip_autoplay_off")),Bn=J(0),ii=me({}),jn=v(()=>Ft.prevButton),Zn=v(()=>Ft.replayButton),st=v(()=>Ft.playButton),wt=v(()=>Ft.nextButton),ki=v(()=>Ft.playPrevChapterButton),Io=v(()=>Ft.seekToInteractiveButton),vo=v(()=>Ft.interactiveGraphButton),ko=v(()=>Ft.liveButton),Eo=v(()=>Ft.time),pt=v(()=>Ft.episodes),Xt=v(()=>Ft.vkLogo),si=v(()=>Ft.volume),wi=v(()=>Ft.subtitles),qi=v(()=>Ft.settings),Ho=v(()=>Ft.context),Bi=v(()=>Ft.fullscreen),Yo=v(()=>Ft.chromecast),pi=v(()=>({prevButton:Z()?Z().right-Z().left:0,replayButton:H()?H().right-H().left:0,playButton:G()?G().right-G().left:0,nextButton:oe()?oe().right-oe().left:0,playPrevChapterButton:X()?X().right-X().left:0,seekToInteractiveButton:ae()?ae().right-ae().left:0,interactiveGraphButton:ue()?ue().right-ue().left:0,liveButton:Pe()?Pe().right-Pe().left:0,time:Le()?Le().right-Le().left:0,episodes:he()?he().right-he().left:0,vkLogo:le()?le().right-le().left:0,volume:Ae()?Ae().right-Ae().left:0,subtitles:re()?re().right-re().left:0,settings:N()?N().right-N().left:0,context:pe()?pe().right-pe().left:0,fullscreen:be()?be().right-be().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:se().length?se().reduce(dt=>[...dt,40],[]):[]})),jo=J(0);Ue(()=>{(!r(jo)||r(jo)<r(pi).time)&&It(()=>D(jo,me(r(pi).time)))});let Zo=J(!1);Ue(()=>{let dt=0;r(Oo)&&(Gi(u(),"xl")?dt=r(pi).time:dt=60);let Ct=r(pi).prevButton+r(pi).playButton+r(pi).nextButton+r(pi).seekToInteractiveButton+r(pi).interactiveGraphButton+r(pi).liveButton+r(jo)+dt;D(Zo,me(r(Do)&&r(Bn)>=Ct))});let Mr=v(()=>r(Zo)&&Gi(u(),"m")),Xn=(0,M1.debounceFn)(hl,260);Ue(()=>{T(),Q(),Xn(ui(),Ft,ii,e.showControls)});let Lr=de();Ue(()=>{_e(),te()&&It(()=>dl(te(),_e(),xt))});let gn;Ue(()=>{Fe(),It(()=>vu(ci,Fe(),gn))});function Jn(){Ss({isAudioDisabled:Ye,isAudioAvailable:Xe(),isAds:bt(),audioIsNotExistHintCallback:ot,audioDisabledHintCallback:et})&&Ne()}let er=gi?kt:Ge,qr=v(()=>Se()!==null),tr=v(()=>r(qr)?Se():r(fo)),Xo=v(()=>r(tr)?gt("tooltip_pause"):gt("tooltip_play")),gr=gt("tooltip_episodes"),Jo=v(()=>{var dt,Ct,Xi,tn;return r(ur)?{id:"prevButton",type:"desktop-control-panel-left",weight:as.prevButton,buttonComponent:_a,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ri.bind(null,!0)},tooltipEnabled:!((Ct=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&Ct.onPrevButtonMouseEnter)&&!((tn=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)!=null&&tn.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,mi,Ei;(Ei=(mi=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:mi.onPrevButtonMouseEnter)==null||Ei.call(mi,ha(ui(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,mi,Ei;(Ei=(mi=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:mi.onPrevButtonMouseLeave)==null||Ei.call(mi,ha(ui(),ii,"prevButton",e.showControls))},tooltipText:gt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),hr=v(()=>r(qo)?{id:"replayButton",type:"desktop-control-panel-left",weight:as.replayButton,buttonComponent:_l,buttonComponentProps:{disabled:r(In),click:er},tooltipText:gt("tooltip_restart"),disabled:r(In)}:void 0),Kr=v(()=>r(Pn)?{id:"playButton",type:"desktop-control-panel-left",weight:as.playButton,buttonComponent:bl,buttonComponentProps:{disabled:r(qn),isPlaying:r(fo),click:Ge},tooltipText:r(Xo),disabled:r(qn)}:void 0),Vr=v(()=>{var dt,Ct,Xi,tn;return r(Bo)?{id:"nextButton",type:"desktop-control-panel-left",weight:as.nextButton,buttonComponent:_a,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Vo.bind(null,!0)},tooltipEnabled:!((Ct=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&Ct.onNextButtonMouseEnter)&&!((tn=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)!=null&&tn.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,mi,Ei;(Ei=(mi=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:mi.onNextButtonMouseEnter)==null||Ei.call(mi,ha(ui(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,mi,Ei;(Ei=(mi=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:mi.onNextButtonMouseLeave)==null||Ei.call(mi,ha(ui(),ii,"nextButton",e.showControls))},tooltipText:gt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Rr=v(()=>gi&&r(pr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:as.playPrevChapterButton,buttonComponent:Ld,buttonComponentProps:{disabled:r(kn),click:e.playPrevChapter},tooltipText:gt("tooltip_interactive_go_back"),disabledTooltipContent:gt(Fi),disabled:r(kn)}:void 0),Je=v(()=>gi&&r(Wi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:as.seekToInteractiveButton,buttonComponent:Rd,buttonComponentProps:{disabled:r(cr),click:e.seekToInteractive},tooltipText:gt("tooltip_interactive_seek"),disabled:r(cr),disabledTooltipContent:gt(Re())}:void 0),zt=v(()=>gi&&r(zi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:as.interactiveGraphButton,buttonComponent:Bd,buttonComponentProps:{disabled:r(Er),click:To.toggle,graphIsOpened:P()},tooltipText:r(Rn)}:void 0),Ni=v(()=>r(Ko)?{id:"liveButton",type:"desktop-control-panel-left",weight:as.liveButton,buttonComponent:Nd,buttonComponentProps:{isLiveActive:r(Qn),ariaLabel:r(vn)},tooltipText:r(vn),disabled:r(Qn)&&s()===$a.PlaybackState.PLAYING}:void 0),en=v(()=>[r(Jo),r(hr),r(Kr),r(Vr),r(Rr),r(Je),r(zt),r(Ni)].filter(dt=>!!dt).sort(la)),Fo=v(()=>r(No)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ds.vkLogo,buttonComponent:Cd,buttonComponentProps:{targetUrl:Zt(),logoClickable:e.logoClickable,click:Ze},tooltipText:r(mr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Nn=v(()=>r(Qo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ds.autoplayNext,buttonComponent:Vd,tooltipText:r(Ar)}:void 0),hn=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ds.volume,buttonComponent:Lf,buttonComponentProps:{click:Jn,isAds:bt()}})),Ce=v(()=>r(mo)?{id:"subtitles",type:"desktop-control-panel-right",weight:ds.subtitles,buttonComponent:Ef,buttonComponentProps:{isSubtitlesEnabled:r(rt),click:Ve},tooltipText:r(vr)}:void 0),mt=v(()=>r(Ln)?{id:"settings",type:"desktop-control-panel-right",weight:ds.settings,buttonComponent:vl,buttonComponentProps:{ref$:Lr},tooltipText:_e()?void 0:gt("tooltip_settings_off")}:void 0),Qt=v(()=>ne.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ds.context,buttonComponent:Zf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:gt("aria_label_context_menu")},className:r(Ui)?"":"out-of-view",tooltipText:r(Gn)}:void 0),di=v(()=>r(Go)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ds.fullscreen,buttonComponent:Sd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Yn)}:void 0),eo=v(()=>r(Mn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ds.chromecast,buttonComponent:Td,buttonComponentProps:{state:y(),click:Kn},tooltipText:r(Pr)}:void 0),Be=v(()=>[r(Fo),r(Nn),r(hn),r(Ce),r(mt),r(Qt),r(di),r(eo),...se()].filter(dt=>!!dt).sort(la));var ht=gy(),ai=fe(ht);let to;var go=h(ai);let Qr=v(()=>!r(Vn));va(go,{get isHidden(){return r(Qr)},get isAds(){return bt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return ii.timeline},set ref(dt){ii.timeline=dt}});var Di=A(go,2),ir=h(Di),Ms=h(ir);Ci(Ms,17,()=>r(en),dt=>dt.id,(dt,Ct)=>{gu(dt,{get buttonComponent(){return r(Ct).buttonComponent},get buttonComponentProps(){return r(Ct).buttonComponentProps},get tooltipText(){return r(Ct).tooltipText},get disabledTooltipContent(){return r(Ct).disabledTooltipContent},get disabled(){return r(Ct).disabled},get className(){return r(Ct).className},get tooltipEnabled(){return r(Ct).tooltipEnabled},get mouseEnter(){return r(Ct).mouseEnter},get mouseLeave(){return r(Ct).mouseLeave},get ref(){return ii[r(Ct).id]},set ref(Xi){ii[r(Ct).id]=Xi}})});var or=A(Ms,2);{var Ea=dt=>{let Ct=v(()=>bt()?ke():ze()),Xi=v(()=>bt()?ct():ut());yd(dt,{isMobile:!1,get showDuration(){return r(Mr)},get position(){return r(Ct)},get duration(){return r(Xi)},get ref(){return ii.time},set ref(tn){ii.time=tn}})};R(or,dt=>{r(Do)&&dt(Ea)})}var kl=A(or,2);let Pa=v(()=>!r(Oo));Ao(kl,{className:"w-max",get disabled(){return r(Pa)},tooltipContent:gr,get ref(){return ii.episodes},set ref(dt){ii.episodes=dt},children:(dt,Ct)=>{var Xi=He(),tn=fe(Xi);{var Ji=mi=>{kd(mi,{get position(){return ze()},get duration(){return ut()},timeCodes:co})};R(tn,mi=>{r(Oo)&&mi(Ji)})}$(dt,Xi)},$$slots:{default:!0}}),g(ir);var Aa=A(ir,2);Ci(Aa,21,()=>r(Be),dt=>dt.id,(dt,Ct)=>{var Xi=He(),tn=fe(Xi);{var Ji=Ei=>{gu(Ei,{get buttonComponent(){return r(Ct).buttonComponent},get buttonComponentProps(){return r(Ct).buttonComponentProps},get tooltipText(){return r(Ct).tooltipText},get disabledTooltipContent(){return r(Ct).disabledTooltipContent},get disabled(){return r(Ct).disabled},get className(){return r(Ct).className},get ref(){return ii[r(Ct).id]},set ref(Vs){ii[r(Ct).id]=Vs}})},mi=Ei=>{let Vs=v(()=>!!r(Ct).disabled);rm(Ei,{get id(){return r(Ct).id},get testId(){return r(Ct).testId},get icon(){return r(Ct).icon},get ariaLabel(){return r(Ct).ariaLabel},get tooltipText(){return r(Ct).tooltipText},get disabledTooltipContent(){return r(Ct).disabledTooltipContent},get disabled(){return r(Vs)},get onClick(){return r(Ct).onClick},get ref(){return ii[r(Ct).id]},set ref(Va){ii[r(Ct).id]=Va}})};R(tn,Ei=>{A1(r(Ct))?Ei(Ji):Ei(mi,!1)})}$(dt,Xi)}),g(Aa),g(Di),_t(Di,dt=>At(dt),()=>At()),g(ai),_t(ai,dt=>nt(dt),()=>nt());var Ma=A(ai,2);{var El=dt=>{Ad(dt,{get ref(){return ii.interactiveTimeIndicator},set ref(Ct){ii.interactiveTimeIndicator=Ct}})};R(Ma,dt=>{Wn&&dt(El)})}E(dt=>to=ee(ai,1,"wrapper-bottom svelte-f6e8ix",null,to,dt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Hr(ir,"clientWidth",dt=>D(Bn,dt)),$(t,ht),U(),o()}var $l=require("@vkontakte/videoplayer-core/es2015");var am=require("@vkontakte/videoplayer-shared/es2015");var _y=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),by=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),$y={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){K(t,$y);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,am.noop),n=v(()=>o()===am.noop),a=v(()=>r(n)||i()),s=J(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Dt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(u,f)=>{var y=He(),p=fe(y);{var b=_=>{var C=_y();$(_,C)},w=_=>{var C=by();E(()=>De(C,"src",e.iconUrl)),Pt("error",C,d),Gs(C),$(_,C)};R(p,_=>{r(s)?_(b):_(w,!1)})}$(u,y)},$$slots:{default:!0}})}var yy=xe('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function dm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=yy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),$(t,o)}var L1=require("@vkontakte/videoplayer-shared/es2015");var xy=L('<span class="text svelte-6gmlbk"> </span>'),wy=L('<div aria-hidden="true"><!> <!></div>'),Sy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function hu(t,e){F(e,!0),K(t,Sy);let i=m(e,"expanded",3,!1),o=m(e,"click",3,L1.noop),n=m(e,"ref",15,void 0),s=Te().ui.t,d=s("aria_label_volume"),l=v(()=>i()?Ts:dm),u=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");Dt(t,{get testId(){return r(u)},get click(){return o()},ariaLabel:d,role:"switch",get ref(){return n()},set ref(f){n(f)},children:(f,y)=>{var p=wy();let b=v(()=>r(l)),w;var _=h(p);Ti(_,()=>r(b),(I,M)=>{M(I,{})});var C=A(_,2);{var T=I=>{var M=xy(),P=h(M,!0);g(M),E(k=>ve(P,k),[()=>s("mobile_unmute")]),$(I,M)};R(C,I=>{i()&&I(T)})}g(p),E(I=>w=ee(p,1,"container svelte-6gmlbk",null,w,I),[()=>({expanded:i()})]),$(f,p)},$$slots:{default:!0}}),U()}var Cy=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function cm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(3),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),$(t,o)}var Ty={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function um(t,e){K(t,Ty);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");cm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var V1=require("@vkontakte/videoplayer-shared/es2015");function pm(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,V1.noop),a=z("menu_pip");Dt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{um(s,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var R1=require("@vkontakte/videoplayer-shared/es2015");var Iy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},ky=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Ey=L("<div><!></div>"),Py=L("<div><!></div>"),Ay=L("<div><!></div>"),My=L("<!> <!> <!>",1),Ly=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Vy=L("<div><!></div>"),Ry=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),By=L("<!> <!> <div><!></div>",1),Ny=L('<div aria-hidden="true">\xB7</div> <!>',1),Dy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Oy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
257
- .wrapper-middle-left-second.svelte-1afsgkw,
258
- .wrapper-middle-right.svelte-1afsgkw {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
255
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Od(t,e){var ve;O(e,!0),q(t,Z2);let[i,o]=Oe(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),r=()=>S(R,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(b,"$interactiveControlsOpacity$",i),u=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),$=m(e,"ref",15,void 0),p=J(void 0),_=Ee(),w=mo(),{interactiveControlsOpacity$:b}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,I=_.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=_.ui.controlsVisible,E=(ve=_.callbacks)==null?void 0:ve.onInteractiveTimeIndicatorClick,R=_.ui.currentGridType$,W=v(()=>!n()&&a()),K=v(()=>Fs(r(),"s")),U=v(()=>!d()||!!l()||s(W)),j=J(!1);ze(()=>{D(j,ge(s(U)))});let ae=()=>{D(j,!0)},G=()=>{var ye;ce(),(ye=s(p))==null||ye.addEventListener("animationiteration",ae,{once:!0})},ce=()=>{var ye;D(j,!1),(ye=s(p))==null||ye.removeEventListener("animationiteration",ae)},de=ye=>{M.set(ye)},Le=v(()=>u()&&!s(U));ze(()=>{u()?G():ce()});let Ne=()=>{s(U)||(M.set(!0),E==null||E())};kn(()=>{M.clearTimeout(),ce()});let he=()=>{M.set(!1)},ue=F("tooltip_interactive_interaction_time_indicator");var Me=j2();let le;Me.__mousemove=[Y2],Me.__click=Ne;var N=h(Me);No(N,{tooltipContent:ue,get tooltipActive(){return s(Le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return $()},set ref(ye){$(ye)},children:(ye,X)=>{Pd(ye,{completed:!0})},$$slots:{default:!0}});var je=A(N,2);let te;ot(je,ye=>$(ye),()=>$());var qe=A(je,2);let re;ot(qe,ye=>D(p,ye),()=>s(p)),g(Me),k((ye,X,We)=>{le=ee(Me,1,"interactive-episode-icon-animated svelte-od3veb",null,le,ye),te=ee(je,1,"ref-block svelte-od3veb",null,te,X),re=ee(qe,1,"pulse svelte-od3veb",null,re,We)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(K)}),()=>({hidden:s(U)}),()=>({paused:s(j)})]),Pt("mouseleave",Me,he),y(t,Me),H(),o()}ct(["mousemove","click"]);function xu(t,e){O(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);No(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(r){a(r)},children:(r,d)=>{var l=Fe();let u=v(()=>e.buttonComponent);var f=_e(l);Si(f,()=>s(u),($,p)=>{p($,gs(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),y(r,l)},$$slots:{default:!0}}),H()}var bs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var J2=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 rm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=J2();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}function Us(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),r=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");rm(t,{get style(){return s(r)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var ey=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),ty=L("<!> <!>",1),iy={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 Ia(t,e){O(e,!0),q(t,iy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=Ee().ui.t,d=v(()=>e.type==="prev"?r("tooltip_previous"):r("tooltip_next")),l=v(()=>e.type==="prev"?r("hotkey_map_item_prev_video_value"):r("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Dt(t,{get className(){return s(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(l)},get ref(){return i()},set ref(f){i(f)},children:(f,$)=>{var p=ty(),_=_e(p);{var w=T=>{var I=ey();y(T,I)};V(_,T=>{o()&&T(w)})}var b=A(_,2);let C=v(()=>e.type==="prev");Us(b,{get isMobile(){return o()},get isPrev(){return s(C)}}),y(f,p)},$$slots:{default:!0}}),H()}var oy=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 Hd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i))),y(t,o)}var D1=require("@vkontakte/videoplayer-shared/es2015");var ny=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ry=L("<!> <div><!></div>",1),sy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function xl(t,e){O(e,!0),q(t,sy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),r=m(e,"click",3,D1.noop),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Dt(t,{get className(){return s(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return r()},get ariaKeyShortCut(){return Jr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var $=ry(),p=_e($);{var _=T=>{var I=ny();y(T,I)};V(p,T=>{o()&&T(_)})}var w=A(p,2);let b;var C=h(w);Hd(C,{}),g(w),k(T=>b=ee(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),y(u,$)},$$slots:{default:!0}}),H()}var ay=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 Nr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var r=ay(),d=h(r);g(r),k(()=>{De(r,"width",i()),De(r,"height",o()),De(r,"viewBox",n()),De(d,"fill",a())}),y(t,r)}var ly=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 $s(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var r=ly(),d=h(r);g(r),k(()=>{De(r,"width",i()),De(r,"height",o()),De(r,"viewBox",n()),De(d,"fill",a())}),y(t,r)}var O1=require("@vkontakte/videoplayer-shared/es2015");var dy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),cy=L("<!> <div><!></div>",1),uy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function wl(t,e){O(e,!0),q(t,uy);let[i,o]=Oe(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=mo(),r=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),$=m(e,"click",3,O1.noop),_=Ee().ui.t,{toggle:w}=a,b=v(()=>w),C=v(()=>n()!==null),T=v(()=>s(C)?n():l()),I=v(()=>s(T)?_("tooltip_pause"):_("tooltip_play")),M=v(()=>s(T)?$s:Nr),P=v(()=>`${d()?"btn-m--play":""} ${f()}`),E=v(()=>s(C)?s(b):$());Dt(t,{get className(){return s(P)},testId:"btn-play",get click(){return s(E)},get disabled(){return u()},get ariaLabel(){return s(I)},get ariaKeyShortCut(){return Jr.KeyK},get ref(){return r()},set ref(R){r(R)},children:(R,W)=>{var K=cy();let U=v(()=>s(M));var j=_e(K);{var ae=Le=>{var Ne=dy();y(Le,Ne)};V(j,Le=>{d()&&Le(ae)})}var G=A(j,2);let ce;var de=h(G);Si(de,()=>s(U),(Le,Ne)=>{Ne(Le,{})}),g(G),k(Le=>ce=ee(G,1,"svelte-1ot3duq",null,ce,Le),[()=>({mobile:d()})]),y(R,K)},$$slots:{default:!0}}),H(),o()}var py=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 sm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i))),y(t,o)}function Fd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),r=v(()=>o()?"hidden":"");Dt(t,{get className(){return s(r)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{sm(d,{})},$$slots:{default:!0}}),H()}var fy=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),my={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 Ud(t,e){O(e,!0),q(t,my);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),r=Ee(),d=r.ui.autoplayNextEnabled$,l=r.actions.internal.setAutoplayNextEnabled;Dt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,$)=>{var p=fy(),_=h(p);let w;var b=h(_);{var C=I=>{Nr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{$s(I,{width:"14",height:"14",fill:"#000"})};V(b,I=>{n()?I(C):I(T,!1)})}g(_),g(p),k(I=>w=ee(_,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),y(f,p)},$$slots:{default:!0}}),H(),o()}var vy=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 am(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({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))),y(t,o)}function zd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),r=v(()=>o()?"hidden":"");Dt(t,{get className(){return s(r)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{am(d,{})},$$slots:{default:!0}}),H()}var gy=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 lm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}var hy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function dm(t,e){q(t,hy);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");lm(t,{get"data-testid"(){return s(o)}})}function Wd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Dt(t,{get className(){return s(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,$)=>{let p=v(()=>!!a());dm(f,{get isOpened(){return s(p)}})},$$slots:{default:!0}}),H()}var cm=require("@vkontakte/videoplayer-core/es2015");function qd(t,e){O(e,!0);let[i,o]=Oe(),n=()=>S(u,"$playbackState$",i),a=m(e,"isMobile",3,!1),r=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Ee(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,$=l.actions.internal.togglePlay,p=v(()=>()=>{if(!r()){f();return}n()===cm.PlaybackState.PAUSED&&$()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>r()?"btn-live":"btn-live-offset"),b=v(()=>r()&&n()===cm.PlaybackState.PLAYING);Dt(t,{get className(){return s(_)},get testId(){return s(w)},get disabled(){return s(b)},get ariaLabel(){return d()},get click(){return s(p)},children:(C,T)=>{_d(C,{get isActive(){return r()}})},$$slots:{default:!0}}),H(),o()}var um=require("@vkontakte/videoplayer-shared/es2015");var _y=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),by=L('<img class="icon" aria-hidden="true">');function Ea(t,e){"use strict";let i=J(!1),o=()=>{D(i,!0)};var n=Fe(),a=_e(n);{var r=l=>{var u=_y();y(l,u)},d=l=>{var u=by();k(()=>De(u,"src",e.icon)),Pt("error",u,o),na(u),y(l,u)};V(a,l=>{s(i)?l(r):l(d,!1)})}y(t,n)}function pm(t,e){O(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,um.noop),n=m(e,"ref",15),a=v(()=>o()===um.noop),r=v(()=>s(a)||i()),d=v(()=>s(a)?"btn-full-opacity":"");No(t,{get disabled(){return s(r)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,u)=>{let f=v(()=>{var $;return($=e.testId)!=null?$:e.id});Dt(l,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return s(f)},children:($,p)=>{Ea($,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var H1=t=>!!t.buttonComponent;var ys={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var wu=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))a.set(Br(t,i,n,o))};var xy=L('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),wy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function mm(t,e){var pr,Ks;O(e,!0),q(t,wy);let[i,o]=Oe(),n=()=>S(Y,"$disabledControls$",i),a=()=>S(ho,"$adPlaybackState",i),r=()=>S(ht,"$playbackState$",i),d=()=>S(Io,"$currentSubtitle$",i),l=()=>S(Ti,"$isEnded$",i),u=()=>S(Bi,"$currentGridType$",i),f=()=>S(Gt,"$isLive$",i),$=()=>S(pi,"$chromecastState$",i),p=()=>S(Ji,"$isPictureInPictureActive",i),_=()=>S(Ui,"$pictureInPictureType$",i),w=()=>S(Ii,"$availableSubtitlesList$",i),b=()=>S(Ri,"$contextMenuOpenedByKeyboard$",i),C=()=>S(mi,"$showContextMenuBtn$",i),T=()=>S(er,"$playerSize",i),I=()=>S(ti,"$isRewindableLive$",i),M=()=>S(Je,"$isActiveLive$",i),P=()=>S(_o,"$graphIsOpened$",i),E=()=>S(jt,"$contextMenuVisible$",i),R=()=>S(ii,"$isFullscreen",i),W=()=>S(xi,"$autoplayNextEnabled",i),K=()=>S(s(Lo),"$prevButton",i),U=()=>S(s(lr),"$replayButton",i),j=()=>S(s(xr),"$playButton",i),ae=()=>S(s(ki),"$nextButton",i),G=()=>S(s(ns),"$playPrevChapterButton",i),ce=()=>S(s(Ur),"$seekToInteractiveButton",i),de=()=>S(s(wr),"$interactiveGraphButton",i),Le=()=>S(s($t),"$liveButton",i),Ne=()=>S(s(ai),"$time",i),he=()=>S(s(qo),"$episodes",i),ue=()=>S(s(Ko),"$vkLogo",i),Me=()=>S(s(Wi),"$volume",i),le=()=>S(s(Wn),"$subtitles",i),N=()=>S(s(rn),"$settings",i),je=()=>S(s(dr),"$context",i),te=()=>S(s(qi),"$fullscreen",i),qe=()=>S(s(sn),"$chromecast",i),re=()=>S(Oo,"$additionalDesktopControlPanelRightButtons$",i),ve=()=>S(Ei,"$isInteractiveTime$",i),ye=()=>S(go,"$settingsMenuVisible",i),X=()=>S(to,"$settingButtonRef$",i),We=()=>S(di,"$startedByKeyboard$",i),tt=()=>S(Yt,"$isAudioAvailable$",i),Te=()=>S(Mt,"$fakeIsPlaying$",i),oe=()=>S(en,"$seekToInteractiveDisabledTooltip$",i),ke=()=>S(Bt,"$adPosition",i),Ke=()=>S(St,"$position$",i),st=()=>S(it,"$adDuration",i),ut=()=>S(et,"$duration$",i),at=m(e,"playerControlsWrapperRef",15,void 0),Et=m(e,"playerControlsRef",15,void 0),ft=m(e,"isAds",3,!1),Xt=m(e,"logoTargetUrl",3,""),si=m(e,"isOneVideoPlaylist",3,!1),Wt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Mt}=mo(),ie=Ee(),Rt=mo(),Z=qt(),fe=ie.actions.internal.toggleMuted,Ae=ie.actions.internal.togglePlay,Be=ie.actions.internal.pause,me=ie.actions.internal.toggleSubtitle,Qe=(pr=ie.callbacks)==null?void 0:pr.onAudioDoesNotExistHint,nt=(Ks=ie.callbacks)==null?void 0:Ks.onAudioDisabledHint,et=ie.state.duration$,St=ie.state.positionWithScrubbing$,ht=ie.state.playbackState$,Yt=ie.state.isAudioAvailable$,bt=ie.state.isAudioDisabled,Ti=ie.state.isEnded$,Gt=ie.state.isLive$,Je=ie.state.isActiveLive$,ti=ie.state.isRewindableLive$,{isActive$:Ji,type$:Ui}=Rt.pictureInPicture$,go=ie.ui.settingsMenu.visible$,eo=ie.ui.settingsMenu.openedByBtnKeyboard$,rt=ie.ui.controls,xt=ie.actions.internal.getVideoEpisodes(),pi=ie.state.chromecastState$,Ii=ie.state.availableSubtitlesList$,Io=ie.state.currentSubtitle$,Y=rt.disabledControls$,jt=ie.ui.contextMenu.visible$,mi=ie.ui.contextMenu.showContextMenuBtn$,Ri=ie.ui.contextMenu.openedByBtnKeyboard$,di=ie.ui.startedByKeyboard$,fi=ie.ui.controlBlocks,mt=ie.ui.t,it=ie.ads.duration,Bt=ie.ads.position,ho=ie.ads.playbackState,ii=ie.ui.isFullscreen,er=ie.ui.playerSize,Bi=ie.ui.currentGridType$,Oo=ie.ui.additionalDesktopControlPanelRightButtons$,xi=ie.ui.autoplayNextEnabled$,_t=ie.actions.internal.getVideoElement,Ni=ie.actions.internal.replayInteractive,Ho=ie.actions.internal.prevVideoClick,An=ie.actions.internal.nextVideoClick,ci=ie.state.isInteractive,Ei=ie.state.isInteractiveTime$,Fo=ie.state.showInteractiveGraph,Mn=ie.state.showSeekToInteractive,Uo=ie.state.showPlayPrevChapter,Eo=ie.state.showInteractiveTimeIndicator,$n=ie.state.playPrevChapterDisabledTooltip,en=Rt.seekToInteractiveDisabledTooltip$,_o=Rt.graphIsOpened$,ko=Z.features.interactiveResponsiveUi,Or=v(()=>n().has("EPISODE_BUTTON")),_r=v(()=>n().has("GRAPH_BUTTON")),tr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),ir=v(()=>n().has("PLAY_BUTTON")),or=v(()=>n().has("REPLAY_BUTTON")),Ln=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),os=()=>ie.actions.internal.toggleChromecast(),Vn=v(()=>ft()?a()==="playing":r()===ka.PlaybackState.PLAYING),Di=v(()=>d().value!=="off"),Rn=v(()=>l()&&!ft()||ci),tn=v(()=>ko?s(Rn)&&ji(u(),"m"):s(Rn)),on=v(()=>!l()||ci||ft()),Bn=v(()=>ji(u(),"m")),Nn=v(()=>e.showNextPrevButtons&&ji(u(),"m")&&!ft()&&e.nextButtonActive),zo=v(()=>e.showNextPrevButtons&&ji(u(),"m")&&!ft()&&e.prevButtonActive),Hr=v(()=>!ft()&&!!f()),Dn=v(()=>$()!==ka.ChromecastState.NOT_AVAILABLE&&!(p()&&_()===1)&&ji(u(),"m")&&!ci),nr=v(()=>e.showAutoplayNext&&!si()&&ji(u(),"s")),zi=v(()=>w().length>0&&ji(u(),"m")),Po=v(()=>b()||C()),dt=v(()=>ji(u(),"s")&&!ft()),Jt=v(()=>!e.logoHidden&&!ft()),br=v(()=>Z.features.fullscreen&&(e.logoHidden||ji(u(),ko?"xs":"s"))&&!(p()&&_()===1)&&(ci?Wt():!0)),On=v(()=>(!f()||ft())&&!(Z.features.interactiveHideTime&&ci)),yn=v(()=>T().width>100),Oi=v(()=>Fo&&ji(u(),"m")),Hn=v(()=>ko?Mn&&ji(u(),"s"):Mn),Ao=v(()=>ko?Uo&&ji(u(),"s"):Uo),Fn=v(()=>!ft()&&!f()&&!!(xt!=null&&xt.length)&&s(Bn)&&!s(Or)),Mo=v(()=>!I()||!!M()),Un=v(()=>P()?mt("tooltip_interactive_graph_on"):mt("tooltip_interactive_graph_off")),zn=v(()=>E()?mt("tooltip_context_menu_close"):mt("tooltip_context_menu_open")),rr=(wt,yt)=>wt?yt&&yt===ka.PlaybackState.PAUSED?mt("tooltip_play"):"":mt("tooltip_live"),$r=v(()=>rr(s(Mo),r())),sr=v(()=>Z.logoType==="vk_video"?mt("tooltip_vk_video_logo"):mt("tooltip_vk_logo")),Wo=v(()=>s(Di)?mt("tooltip_subtitles_on"):mt("tooltip_subtitles_off")),Fr=v(()=>R()?mt("tooltip_fullscreen_on"):mt("tooltip_fullscreen_off")),ar=v(()=>$()===ka.ChromecastState.CONNECTED?mt("tooltip_chromecast_on"):mt("tooltip_chromecast_off")),yr=v(()=>W()?mt("tooltip_autoplay_on"):mt("tooltip_autoplay_off")),nn=J(0),Zt=ge({}),bo=ge({}),Lo=v(()=>rt.prevButton),lr=v(()=>rt.replayButton),xr=v(()=>rt.playButton),ki=v(()=>rt.nextButton),ns=v(()=>rt.playPrevChapterButton),Ur=v(()=>rt.seekToInteractiveButton),wr=v(()=>rt.interactiveGraphButton),$t=v(()=>rt.liveButton),ai=v(()=>rt.time),qo=v(()=>rt.episodes),Ko=v(()=>rt.vkLogo),Wi=v(()=>rt.volume),Wn=v(()=>rt.subtitles),rn=v(()=>rt.settings),dr=v(()=>rt.context),qi=v(()=>rt.fullscreen),sn=v(()=>rt.chromecast),Ze=v(()=>({prevButton:K()?K().right-K().left:0,replayButton:U()?U().right-U().left:0,playButton:j()?j().right-j().left:0,nextButton:ae()?ae().right-ae().left:0,playPrevChapterButton:G()?G().right-G().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:Le()?Le().right-Le().left:0,time:Ne()?Ne().right-Ne().left:0,episodes:he()?he().right-he().left:0,vkLogo:ue()?ue().right-ue().left:0,volume:Me()?Me().right-Me().left:0,subtitles:le()?le().right-le().left:0,settings:N()?N().right-N().left:0,context:je()?je().right-je().left:0,fullscreen:te()?te().right-te().left:0,chromecast:qe()?qe().right-qe().left:0,additionalButtons:re().length?re().reduce(wt=>[...wt,40],[]):[]})),Nt=J(0);ze(()=>{(!s(Nt)||s(Nt)<s(Ze).time)&&It(()=>D(Nt,ge(s(Ze).time)))});let bi=J(!1);ze(()=>{let wt=0;s(Fn)&&(ji(u(),"xl")?wt=s(Ze).time:wt=60);let yt=s(Ze).prevButton+s(Ze).playButton+s(Ze).nextButton+s(Ze).seekToInteractiveButton+s(Ze).interactiveGraphButton+s(Ze).liveButton+s(Nt)+wt;D(bi,ge(s(On)&&s(nn)>=yt))});let $o=v(()=>s(bi)&&ji(u(),"m")),oo=(0,fm.debounceFn)(yl,260),Qo=(0,fm.debounceFn)(wu,260);ze(()=>{T(),ve(),oo(_t(),rt,Zt,e.showControls),Qo(_t(),fi,bo,e.showControls)}),ze(()=>{bo.bottom=at()});let to=se();ze(()=>{ye(),X()&&It(()=>fl(X(),ye(),eo))});let Go;ze(()=>{We(),It(()=>yu(di,We(),Go))});function Vo(){Ds({isAudioDisabled:bt,isAudioAvailable:tt(),isAds:ft(),audioIsNotExistHintCallback:Qe,audioDisabledHintCallback:nt})&&fe()}let Ki=ci?Ni:Ae,$i=v(()=>Te()!==null),Yo=v(()=>s($i)?Te():s(Vn)),an=v(()=>s(Yo)?mt("tooltip_pause"):mt("tooltip_play")),Qi=mt("tooltip_episodes"),Sr=v(()=>{var wt,yt,so,Zo;return s(zo)?{id:"prevButton",type:"desktop-control-panel-left",weight:bs.prevButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ho.bind(null,!0)},tooltipEnabled:!((yt=(wt=ie.callbacks)==null?void 0:wt.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((Zo=(so=ie.callbacks)==null?void 0:so.uiInfo)!=null&&Zo.onPrevButtonMouseLeave),mouseEnter:()=>{var ao,li,Hi;(Hi=(li=(ao=ie.callbacks)==null?void 0:ao.uiInfo)==null?void 0:li.onPrevButtonMouseEnter)==null||Hi.call(li,Br(_t(),Zt,"prevButton",e.showControls))},mouseLeave:()=>{var ao,li,Hi;(Hi=(li=(ao=ie.callbacks)==null?void 0:ao.uiInfo)==null?void 0:li.onPrevButtonMouseLeave)==null||Hi.call(li,Br(_t(),Zt,"prevButton",e.showControls))},tooltipText:mt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),zr=v(()=>s(tn)?{id:"replayButton",type:"desktop-control-panel-left",weight:bs.replayButton,buttonComponent:xl,buttonComponentProps:{disabled:s(or),click:Ki},tooltipText:mt("tooltip_restart"),disabled:s(or)}:void 0),Wr=v(()=>s(on)?{id:"playButton",type:"desktop-control-panel-left",weight:bs.playButton,buttonComponent:wl,buttonComponentProps:{disabled:s(ir),isPlaying:s(Vn),click:Ae},tooltipText:s(an),disabled:s(ir)}:void 0),xn=v(()=>{var wt,yt,so,Zo;return s(Nn)?{id:"nextButton",type:"desktop-control-panel-left",weight:bs.nextButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:An.bind(null,!0)},tooltipEnabled:!((yt=(wt=ie.callbacks)==null?void 0:wt.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((Zo=(so=ie.callbacks)==null?void 0:so.uiInfo)!=null&&Zo.onNextButtonMouseLeave),mouseEnter:()=>{var ao,li,Hi;(Hi=(li=(ao=ie.callbacks)==null?void 0:ao.uiInfo)==null?void 0:li.onNextButtonMouseEnter)==null||Hi.call(li,Br(_t(),Zt,"nextButton",e.showControls))},mouseLeave:()=>{var ao,li,Hi;(Hi=(li=(ao=ie.callbacks)==null?void 0:ao.uiInfo)==null?void 0:li.onNextButtonMouseLeave)==null||Hi.call(li,Br(_t(),Zt,"nextButton",e.showControls))},tooltipText:mt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),qn=v(()=>ci&&s(Ao)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:bs.playPrevChapterButton,buttonComponent:Fd,buttonComponentProps:{disabled:s(Ln),click:e.playPrevChapter},tooltipText:mt("tooltip_interactive_go_back"),disabledTooltipContent:mt($n),disabled:s(Ln)}:void 0),qr=v(()=>ci&&s(Hn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:bs.seekToInteractiveButton,buttonComponent:zd,buttonComponentProps:{disabled:s(tr),click:e.seekToInteractive},tooltipText:mt("tooltip_interactive_seek"),disabled:s(tr),disabledTooltipContent:mt(oe())}:void 0),no=v(()=>ci&&s(Oi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:bs.interactiveGraphButton,buttonComponent:Wd,buttonComponentProps:{disabled:s(_r),click:_o.toggle,graphIsOpened:P()},tooltipText:s(Un)}:void 0),jo=v(()=>s(Hr)?{id:"liveButton",type:"desktop-control-panel-left",weight:bs.liveButton,buttonComponent:qd,buttonComponentProps:{isLiveActive:s(Mo),ariaLabel:s($r)},tooltipText:s($r),disabled:s(Mo)&&r()===ka.PlaybackState.PLAYING}:void 0),Kn=v(()=>[s(Sr),s(zr),s(Wr),s(xn),s(qn),s(qr),s(no),s(jo)].filter(wt=>!!wt).sort(_a)),cr=v(()=>s(Jt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ys.vkLogo,buttonComponent:Ld,buttonComponentProps:{targetUrl:Xt(),logoClickable:e.logoClickable,click:Be},tooltipText:s(sr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ur=v(()=>s(nr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ys.autoplayNext,buttonComponent:Ud,tooltipText:s(yr)}:void 0),Kr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ys.volume,buttonComponent:Hf,buttonComponentProps:{click:Vo,isAds:ft()}})),rs=v(()=>s(zi)?{id:"subtitles",type:"desktop-control-panel-right",weight:ys.subtitles,buttonComponent:Bf,buttonComponentProps:{isSubtitlesEnabled:s(Di),click:me},tooltipText:s(Wo)}:void 0),Ie=v(()=>s(dt)?{id:"settings",type:"desktop-control-panel-right",weight:ys.settings,buttonComponent:bl,buttonComponentProps:{ref$:to},tooltipText:ye()?void 0:mt("tooltip_settings_off")}:void 0),xe=v(()=>Z.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ys.context,buttonComponent:nm,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:mt("aria_label_context_menu")},className:s(Po)?"":"out-of-view",tooltipText:s(zn)}:void 0),Ct=v(()=>s(br)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ys.fullscreen,buttonComponent:Md,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:s(Fr)}:void 0),Kt=v(()=>s(Dn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ys.chromecast,buttonComponent:Vd,buttonComponentProps:{state:$(),click:os},tooltipText:s(ar)}:void 0),Pi=v(()=>[s(cr),s(ur),s(Kr),s(rs),s(Ie),s(xe),s(Ct),s(Kt),...re()].filter(wt=>!!wt).sort(_a));var yi=xy(),Ue=_e(yi);let kt;var oi=h(Ue);let ln=v(()=>!s(yn));Ca(oi,{get isHidden(){return s(ln)},get isAds(){return ft()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Zt.timeline},set ref(wt){Zt.timeline=wt}});var wn=A(oi,2),ro=h(wn),Qr=h(ro);wi(Qr,17,()=>s(Kn),wt=>wt.id,(wt,yt)=>{xu(wt,{get buttonComponent(){return s(yt).buttonComponent},get buttonComponentProps(){return s(yt).buttonComponentProps},get tooltipText(){return s(yt).tooltipText},get disabledTooltipContent(){return s(yt).disabledTooltipContent},get disabled(){return s(yt).disabled},get className(){return s(yt).className},get tooltipEnabled(){return s(yt).tooltipEnabled},get mouseEnter(){return s(yt).mouseEnter},get mouseLeave(){return s(yt).mouseLeave},get ref(){return Zt[s(yt).id]},set ref(so){Zt[s(yt).id]=so}})});var Cr=A(Qr,2);{var io=wt=>{let yt=v(()=>ft()?ke():Ke()),so=v(()=>ft()?st():ut());kd(wt,{isMobile:!1,get showDuration(){return s($o)},get position(){return s(yt)},get duration(){return s(so)},get ref(){return Zt.time},set ref(Zo){Zt.time=Zo}})};V(Cr,wt=>{s(On)&&wt(io)})}var Ai=A(Cr,2);let Sn=v(()=>!s(Fn));No(Ai,{className:"w-max",get disabled(){return s(Sn)},tooltipContent:Qi,get ref(){return Zt.episodes},set ref(wt){Zt.episodes=wt},children:(wt,yt)=>{var so=Fe(),Zo=_e(so);{var ao=li=>{Bd(li,{get position(){return Ke()},get duration(){return ut()},timeCodes:xt})};V(Zo,li=>{s(Fn)&&li(ao)})}y(wt,so)},$$slots:{default:!0}}),g(ro);var Qn=A(ro,2);wi(Qn,21,()=>s(Pi),wt=>wt.id,(wt,yt)=>{var so=Fe(),Zo=_e(so);{var ao=Hi=>{xu(Hi,{get buttonComponent(){return s(yt).buttonComponent},get buttonComponentProps(){return s(yt).buttonComponentProps},get tooltipText(){return s(yt).tooltipText},get disabledTooltipContent(){return s(yt).disabledTooltipContent},get disabled(){return s(yt).disabled},get className(){return s(yt).className},get ref(){return Zt[s(yt).id]},set ref(ws){Zt[s(yt).id]=ws}})},li=Hi=>{let ws=v(()=>!!s(yt).disabled);pm(Hi,{get id(){return s(yt).id},get testId(){return s(yt).testId},get icon(){return s(yt).icon},get ariaLabel(){return s(yt).ariaLabel},get tooltipText(){return s(yt).tooltipText},get disabledTooltipContent(){return s(yt).disabledTooltipContent},get disabled(){return s(ws)},get onClick(){return s(yt).onClick},get ref(){return Zt[s(yt).id]},set ref(Ll){Zt[s(yt).id]=Ll}})};V(Zo,Hi=>{H1(s(yt))?Hi(ao):Hi(li,!1)})}y(wt,so)}),g(Qn),g(wn),ot(wn,wt=>Et(wt),()=>Et()),g(Ue),ot(Ue,wt=>at(wt),()=>at());var Tr=A(Ue,2);{var yo=wt=>{Od(wt,{get ref(){return Zt.interactiveTimeIndicator},set ref(yt){Zt.interactiveTimeIndicator=yt}})};V(Tr,wt=>{Eo&&wt(yo)})}k(wt=>kt=ee(Ue,1,"wrapper-bottom svelte-f6e8ix",null,kt,wt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Xr(ro,"clientWidth",wt=>D(nn,wt)),y(t,yi),H(),o()}var Sl=require("@vkontakte/videoplayer-core/es2015");var vm=require("@vkontakte/videoplayer-shared/es2015");var Sy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Cy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),Ty={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 gm(t,e){q(t,Ty);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,vm.noop),n=v(()=>o()===vm.noop),a=v(()=>s(n)||i()),r=J(!1),d=()=>{D(r,!0)},l=v(()=>s(n)?"btn-full-opacity":"");Dt(t,{get className(){return s(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(a)},get testId(){return e.testId},children:(u,f)=>{var $=Fe(),p=_e($);{var _=b=>{var C=Sy();y(b,C)},w=b=>{var C=Cy();k(()=>De(C,"src",e.iconUrl)),Pt("error",C,d),na(C),y(b,C)};V(p,b=>{s(r)?b(_):b(w,!1)})}y(u,$)},$$slots:{default:!0}})}var Iy=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 hm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),y(t,o)}var F1=require("@vkontakte/videoplayer-shared/es2015");var Ey=L('<span class="text svelte-6gmlbk"> </span>'),ky=L('<div aria-hidden="true"><!> <!></div>'),Py={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Su(t,e){O(e,!0),q(t,Py);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,F1.noop),a=m(e,"ref",15,void 0),d=Ee().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=v(()=>o()?Hs:hm),f=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Dt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(l)},role:"button",get ref(){return a()},set ref($){a($)},children:($,p)=>{var _=ky();let w=v(()=>s(u)),b;var C=h(_);Si(C,()=>s(w),(M,P)=>{P(M,{})});var T=A(C,2);{var I=M=>{var P=Ey(),E=h(P,!0);g(P),k(R=>be(E,R),[()=>d("mobile_unmute")]),y(M,P)};V(T,M=>{o()&&M(I)})}g(_),k(M=>b=ee(_,1,"container svelte-6gmlbk",null,b,M),[()=>({expanded:o()})]),y($,_)},$$slots:{default:!0}}),H()}var Ay=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 _m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(3),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),y(t,o)}var My={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function bm(t,e){q(t,My);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");_m(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}var U1=require("@vkontakte/videoplayer-shared/es2015");function $m(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,U1.noop),a=F("menu_pip");Dt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(r){i(r)},children:(r,d)=>{bm(r,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var ym=require("@vkontakte/videoplayer-shared/es2015");var Ly=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},Vy=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},Ry=L("<div><!></div>"),By=L("<div><!></div>"),Ny=L("<div><!></div>"),Dy=L("<!> <!> <!>",1),Oy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Hy=L("<div><!></div>"),Fy=L('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),Uy=L("<!> <!> <div><!></div>",1),zy=L('<div aria-hidden="true">\xB7</div> <!>',1),Wy=L('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),qy={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
257
+ .wrapper-middle-left-second.svelte-9xcbwc,
258
+ .wrapper-middle-right.svelte-9xcbwc {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
259
259
 
260
- @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-1afsgkw {top:16px;}.wrapper-top-left.fullscreen.svelte-1afsgkw {top:16px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;bottom:30px;width:calc(100% - 8px);}
260
+
261
+ @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-9xcbwc {top:16px;}.wrapper-top-left.fullscreen.svelte-9xcbwc {top:16px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;bottom:30px;width:calc(100% - 8px);}
261
262
  }
262
263
 
263
- @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
264
- }`};function fm(t,e){var jn,Zn;F(e,!0),K(t,Oy);let[i,o]=Oe(),n=()=>S(hi,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(it,"$disabledControls$",i),s=()=>S(bt,"$playbackState$",i),d=()=>S(xt,"$adPlaybackState",i),l=()=>S(Rt,"$isEnded$",i),u=()=>S(co,"$playerSize",i),f=()=>S(ne,"$scrubbingInProgress",i),y=()=>S(li,"$chromecastState$",i),p=()=>S(Ge,"$isPictureInPictureActive",i),b=()=>S(Ze,"$pictureInPictureType$",i),w=()=>S(Ne,"$mobileNotReportControlHidden$",i),_=()=>S(ut,"$playerPhase",i),C=()=>S(Li,"$currentGridType$",i),T=()=>S(Ot,"$isLive$",i),I=()=>S(et,"$settingsMenuVisible",i),M=()=>S($e,"$isRewindableLive$",i),P=()=>S(O,"$isActiveLive$",i),k=()=>S(ti,"$isInteractiveTime$",i),V=()=>S(Zt,"$isAudioAvailable$",i),q=()=>S(Ko,"$settingButtonRef$",i),Z=()=>S(Jt,"$startedByKeyboard$",i),H=()=>S(Ft,"$isFullscreen",i),G=()=>S(ot,"$mobileUnmuteButtonVisible",i),oe=()=>S(vt,"$volumeHidden",i),X=()=>S(Ve,"$mobileUnmuteButtonExpanded",i),ae=()=>S(mn,"$additionalButtons$",i),ue=()=>S(Si,"$crashed$",i),Pe=()=>S(tt,"$graphIsOpened$",i),Le=()=>S(Bt,"$adPosition",i),he=()=>S(Zi,"$adDuration",i),le=()=>S(At,"$position$",i),Ae=()=>S(nt,"$duration$",i),re=m(e,"playerControlsWrapperRef",15,void 0),N=m(e,"playerControlsRef",15,void 0),pe=m(e,"isAds",3,!1),be=m(e,"logoTargetUrl",3,""),We=m(e,"isOneVideoPlaylist",3,!1),se=m(e,"customFullscreenSupported",3,!0),Q=Te(),_e=ao(),te=Yt(),Fe=Q.actions.internal.toggleMuted,Xe=Q.actions.internal.togglePlay,Se=Q.actions.internal.pause,Re=Q.actions.internal.prevVideoClick,ke=Q.actions.internal.nextVideoClick,ze=(jn=Q.callbacks)==null?void 0:jn.onAudioDoesNotExistHint,ct=(Zn=Q.callbacks)==null?void 0:Zn.onAudioDisabledHint,ut=Q.playerPhase,nt=Q.state.duration$,At=Q.state.positionWithScrubbing$,bt=Q.state.playbackState$,Zt=Q.state.isAudioAvailable$,ei=Q.state.isAudioDisabled,Rt=Q.state.isEnded$,Ot=Q.state.isLive$,O=Q.state.isActiveLive$,$e=Q.state.isRewindableLive$,ne=Q.ui.scrubbingInProgress,Ne=Q.ui.mobileNotReportControlHidden$,{isActive$:Ge,type$:Ze}=_e.pictureInPicture$,Ve=Q.ui.mobileUnmuteButtonExpanded,ot=Q.ui.mobileUnmuteButtonVisible,et=Q.ui.settingsMenu.visible$,yt=Q.ui.settingsMenu.openedByBtnKeyboard$,ft=Q.ui.controls,{volume:vt}=Q.ui.hiddenControls,Ht=Q.actions.internal.getVideoEpisodes(),Ye=Q.webApi.pictureInPictureApi,li=Q.state.chromecastState$,Si=Q.state.crashed$,it=ft.disabledControls$,Jt=Q.ui.startedByKeyboard$,Li=Q.ui.currentGridType$,Zi=Q.ads.duration,Bt=Q.ads.position,xt=Q.ads.playbackState,Ft=Q.ui.isFullscreen,co=Q.ui.playerSize,mn=Q.ui.additionalButtonsDeprecated$,Sn=Q.actions.internal.getVideoElement,wo=Q.actions.internal.replayInteractive,Y=Q.state.isInteractive,ti=Q.state.isInteractiveTime$,xi=Q.state.showInteractiveGraph,Vi=Q.state.showSeekToInteractive,ci=Q.state.showPlayPrevChapter,gt=Q.state.showInteractiveTimeIndicator,hi=_e.seekToInteractiveDisabledTooltip$,tt=_e.graphIsOpened$,Nt=v(()=>z(Q.state.playPrevChapterDisabledTooltip)),uo=v(()=>z(n())),ni=v(()=>a().has("EPISODE_BUTTON")),dr=v(()=>a().has("GRAPH_BUTTON")),po=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Lo=v(()=>a().has("PLAY_BUTTON")),ui=v(()=>a().has("REPLAY_BUTTON")),kt=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Ri=v(()=>s()===$l.PlaybackState.PLAYING),Vo=v(()=>d()==="paused"),gi=v(()=>l()&&!pe()&&!Y),Wo=v(()=>!l()||pe()),Hi=v(()=>e.showNextPrevButtons&&!pe()&&e.prevButtonActive),So=v(()=>e.showNextPrevButtons&&!pe()&&e.nextButtonActive),Co=v(()=>u().width>300),Wn=v(()=>u().width>400),Fi=v(f),Cn=v(()=>y()!==$l.ChromecastState.NOT_AVAILABLE&&!(p()&&b()===1)&&!w()&&!Y),To=v(()=>_()==="LiveWaitingStart"),Ro=v(()=>!!Ye&&y()!==$l.ChromecastState.CONNECTED&&!w()&&(b()===1&&r(To)||!r(To))&&!r(Fi)&&!Y),Tn=v(()=>!r(Fi)&&Gi(C(),"s")),Er=v(()=>!e.logoHidden&&u().width>350),cr=v(()=>te.features.fullscreen&&!(p()&&b()===1)&&(Y?se():!0)&&!r(Fi)),qn=v(()=>(!T()||pe())&&u().width>260&&!r(Fi)&&!(te.features.interactiveHideTime&&Y)),In=v(()=>I()||e.showControls),kn=v(()=>!pe()&&!T()&&!!(Ht!=null&&Ht.length)&&r(Co)&&!r(ni)&&!r(Fi)),Kn=v(()=>!M()||!!P()),fo=v(()=>xi&&Gi(C(),"m")),rt=me({}),En=(0,R1.debounceFn)(hl,260);Ue(()=>{u(),k(),En(Sn(),ft,rt,e.showControls)});let qo=()=>Q.actions.internal.toggleChromecast();function Pn(){return Tt(this,null,function*(){Ye!=null&&Ye.isActive()?yield Ye==null?void 0:Ye.remove():yield Ye==null?void 0:Ye.request()})}function An(){(!ei&&V()||pe())&&ot.set(!1),Ss({isAudioDisabled:ei,audioDisabledHintCallback:ct,isAudioAvailable:V(),audioIsNotExistHintCallback:ze,isAds:pe()})&&Fe()}let Bo=J(""),ur=(st,wt)=>{if(!st){D(Bo,me(z("tooltip_live")));return}wt&&wt===$l.PlaybackState.PAUSED&&D(Bo,me(z("tooltip_play")))};Ue(()=>{ur(r(Kn),s())});let Ko=de();Ue(()=>{q()&&dl(q(),I(),yt)}),Ue(()=>{vu(Jt,Z(),rt.playButton)});var Mn=Dy(),Qo=fe(Mn);{var mo=st=>{var wt=Ly(),ki=fe(wt);let Io;var vo=A(ki,2);let ko;var Eo=h(vo);{var pt=Je=>{let zt=v(()=>V()&&!ei&&X());hu(Je,{get expanded(){return r(zt)},click:An,get ref(){return rt.volume},set ref(Ni){rt.volume=Ni}})};R(Eo,Je=>{(!V()||G())&&!oe()&&Je(pt)})}g(vo);var Xt=A(vo,2);let si;var wi=h(Xt);Ci(wi,1,ae,({iconUrl:Je,ariaLabel:zt,testId:Ni,onClick:en,tooltip:Fo})=>Je,(Je,zt)=>{let Ni=()=>r(zt).iconUrl,en=()=>r(zt).ariaLabel,Fo=()=>r(zt).testId,Nn=()=>r(zt).onClick,hn=()=>r(zt).tooltip,Ce=v(()=>{var mt;return(mt=en())!=null?mt:hn()});lm(Je,{get iconUrl(){return Ni()},get ariaLabel(){return r(Ce)},get testId(){return Fo()},get onClick(){return Nn()}})});var qi=A(wi,2);{var Ho=Je=>{Vd(Je,{get ref(){return rt.autoplayNextToggle},set ref(zt){rt.autoplayNextToggle=zt}})};R(qi,Je=>{e.showAutoplayNext&&!We()&&Je(Ho)})}var Bi=A(qi,2);{var Yo=Je=>{Td(Je,{isMobile:!0,click:qo,get state(){return y()},get ref(){return rt.chromecast},set ref(zt){rt.chromecast=zt}})};R(Bi,Je=>{r(Cn)&&Je(Yo)})}var pi=A(Bi,2);{var jo=Je=>{pm(Je,{click:Pn,get isPictureInPictureActive(){return p()},get ref(){return rt.pip},set ref(zt){rt.pip=zt}})};R(pi,Je=>{r(Ro)&&Je(jo)})}var Zo=A(pi,2);{var Mr=Je=>{vl(Je,{ref$:Ko})};R(Zo,Je=>{ue()&&Je(Mr)})}var Xn=A(Zo,2);{var Lr=Je=>{Cd(Je,{click:Se,get targetUrl(){return be()},get logoClickable(){return e.logoClickable},get ref(){return rt.vkLogo},set ref(zt){rt.vkLogo=zt}})};R(Xn,Je=>{r(Er)&&Je(Lr)})}g(Xt);var gn=A(Xt,2);let Jn;var er=h(gn);{var qr=Je=>{let zt=v(()=>Re.bind(null,!0));_a(Je,{get click(){return r(zt)},type:"prev",isMobile:!0,get ref(){return rt.prevButton},set ref(Ni){rt.prevButton=Ni}})};R(er,Je=>{r(Hi)&&Je(qr)})}var tr=A(er,2);{var Xo=Je=>{bl(Je,{get disabled(){return r(Lo)},click:Xe,isMobile:!0,get isPlaying(){return r(Ri)},get ref(){return rt.playButton},set ref(zt){rt.playButton=zt}})};R(tr,Je=>{r(Wo)&&Je(Xo)})}var gr=A(tr,2);{var Jo=Je=>{_l(Je,{get disabled(){return r(ui)},click:Xe,isMobile:!0,get ref(){return rt.replayButton},set ref(zt){rt.replayButton=zt}})};R(gr,Je=>{r(gi)&&Je(Jo)})}var hr=A(gr,2);{var Kr=Je=>{let zt=v(()=>ke.bind(null,!0));_a(Je,{get click(){return r(zt)},type:"next",isMobile:!0,get ref(){return rt.nextButton},set ref(Ni){rt.nextButton=Ni}})};R(hr,Je=>{r(So)&&Je(Kr)})}g(gn);var Vr=A(gn,2);{var Rr=Je=>{var zt=My(),Ni=fe(zt);{var en=mt=>{var Qt=Ey();let di;Qt.__click=[Iy,kt,e,Nt];var eo=h(Qt);let Be=v(()=>!e.showControls);Ld(eo,{get hidden(){return r(Be)},get disabled(){return r(kt)},get click(){return e.playPrevChapter},get ref(){return rt.playPrevChapterButton},set ref(ht){rt.playPrevChapterButton=ht}}),g(Qt),E(ht=>di=ee(Qt,1,"wrapper-middle-left svelte-1afsgkw",null,di,ht),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(mt,Qt)};R(Ni,mt=>{ci&&mt(en)})}var Fo=A(Ni,2);{var Nn=mt=>{var Qt=Py();let di;var eo=h(Qt);let Be=v(()=>!e.showControls&&!Pe());Bd(eo,{get hidden(){return r(Be)},get disabled(){return r(dr)},get click(){return tt.toggle},get graphIsOpened(){return Pe()},get ref(){return rt.interactiveGraphButton},set ref(ht){rt.interactiveGraphButton=ht}}),g(Qt),E(ht=>di=ee(Qt,1,Xl(ci?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",di,ht),[()=>({fullscreen:H(),hidden:!e.showControls&&!Pe()})]),$(mt,Qt)};R(Fo,mt=>{r(fo)&&mt(Nn)})}var hn=A(Fo,2);{var Ce=mt=>{var Qt=Ay();let di;Qt.__click=[ky,po,e,uo];var eo=h(Qt);let Be=v(()=>!e.showControls);Rd(eo,{get hidden(){return r(Be)},get disabled(){return r(po)},get click(){return e.seekToInteractive},get ref(){return rt.seekToInteractiveButton},set ref(ht){rt.seekToInteractiveButton=ht}}),g(Qt),E(ht=>di=ee(Qt,1,"wrapper-middle-right svelte-1afsgkw",null,di,ht),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(mt,Qt)};R(hn,mt=>{Vi&&mt(Ce)})}$(Je,zt)};R(Vr,Je=>{Y&&!f()&&Je(Rr)})}E((Je,zt,Ni,en)=>{Io=ee(ki,1,"overlay-mobile svelte-1afsgkw",null,Io,Je),ko=ee(vo,1,"wrapper-top-left svelte-1afsgkw",null,ko,zt),si=ee(Xt,1,"wrapper-top-right svelte-1afsgkw",null,si,Ni),Jn=ee(gn,1,"wrapper-middle svelte-1afsgkw",null,Jn,en)},[()=>({hidden:!r(In)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!w(),fullscreen:H()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(st,wt)};R(Qo,st=>{pe()||st(mo)})}var Ui=A(Qo,2);{var Ln=st=>{var wt=By(),ki=fe(wt);{var Io=si=>{var wi=Vy();let qi;var Ho=h(wi);hu(Ho,{expanded:!1,click:An,get ref(){return rt.volume},set ref(Bi){rt.volume=Bi}}),g(wi),E(Bi=>qi=ee(wi,1,"wrapper-top-right svelte-1afsgkw",null,qi,Bi),[()=>({fullscreen:H()})]),$(si,wi)};R(ki,si=>{G()&&si(Io)})}var vo=A(ki,2);{var ko=si=>{var wi=Ry(),qi=h(wi);let Ho=v(()=>!r(Vo));bl(qi,{get disabled(){return r(Lo)},click:Xe,isMobile:!0,get isPlaying(){return r(Ho)},get ref(){return rt.playButton},set ref(Bi){rt.playButton=Bi}}),g(wi),$(si,wi)};R(vo,si=>{r(Vo)&&si(ko)})}var Eo=A(vo,2);let pt;var Xt=h(Eo);Id(Xt,{get position(){return Le()},get duration(){return he()}}),g(Eo),E(si=>pt=ee(Eo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,pt,si),[()=>({fullscreen:H()})]),$(st,wt)};R(Ui,st=>{pe()&&d()!=="inactive"&&st(Ln)})}var No=A(Ui,2);let Go;var Do=h(No);let Vn;var zi=h(Do);ee(zi,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Wi=h(zi);{var pr=st=>{Ao(st,{get disabled(){return r(ui)},get ref(){return rt.replayButton},set ref(wt){rt.replayButton=wt},children:(wt,ki)=>{_l(wt,{get disabled(){return r(ui)},click:wo})},$$slots:{default:!0}})};R(Wi,st=>{Y&&st(pr)})}var Oo=A(Wi,2);{var Qn=st=>{Ao(st,{get ref(){return rt.liveButton},set ref(wt){rt.liveButton=wt},children:(wt,ki)=>{Nd(wt,{get isLiveActive(){return r(Kn)},isMobile:!0,get ariaLabel(){return r(Bo)}})},$$slots:{default:!0}})};R(Oo,st=>{!pe()&&T()&&st(Qn)})}var Rn=A(Oo,2);{var Gn=st=>{let wt=v(()=>pe()?Le():le()),ki=v(()=>pe()?he():Ae());yd(st,{get showDuration(){return r(Wn)},get position(){return r(wt)},get duration(){return r(ki)},isMobile:!0,get ref(){return rt.time},set ref(Io){rt.time=Io}})};R(Rn,st=>{r(qn)&&st(Gn)})}var fr=A(Rn,2);let vn=v(()=>!r(kn));Ao(fr,{className:"w-max",get disabled(){return r(vn)},get ref(){return rt.episodes},set ref(st){rt.episodes=st},children:(st,wt)=>{var ki=He(),Io=fe(ki);{var vo=ko=>{var Eo=Ny(),pt=A(fe(Eo),2);kd(pt,{get position(){return le()},get duration(){return Ae()},timeCodes:Ht}),$(ko,Eo)};R(Io,ko=>{r(kn)&&ko(vo)})}$(st,ki)},$$slots:{default:!0}});var mr=A(fr,2);{var vr=st=>{Ao(st,{get ref(){return rt.settings},set ref(wt){rt.settings=wt},children:(wt,ki)=>{vl(wt,{ref$:Ko})},$$slots:{default:!0}})};R(mr,st=>{r(Tn)&&st(vr)})}var Yn=A(mr,2);{var Pr=st=>{Ao(st,{get ref(){return rt.fullscreen},set ref(wt){rt.fullscreen=wt},children:(wt,ki)=>{Sd(wt,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(Yn,st=>{r(cr)&&st(Pr)})}g(zi),_t(zi,st=>N(st),()=>N());var Ar=A(zi,2);va(Ar,{get isAds(){return pe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return rt.timeline},set ref(st){rt.timeline=st}}),g(Do),g(No),_t(No,st=>re(st),()=>re());var Bn=A(No,2);{var ii=st=>{Ad(st,{get ref(){return rt.interactiveTimeIndicator},set ref(wt){rt.interactiveTimeIndicator=wt}})};R(Bn,st=>{gt&&st(ii)})}E((st,wt)=>{Go=ee(No,1,"wrapper-bottom svelte-1afsgkw",null,Go,st),Vn=ee(Do,1,"controls-wrapper svelte-1afsgkw",null,Vn,wt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),$(t,Mn),U(),o()}lt(["click"]);function Od(t,e){F(e,!0);let[i,o]=Oe(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),s=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),y=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),b=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,mm.noop),_=m(e,"onDisabledSeekToInteractiveClick",3,mm.noop),T=Te().ui.isMobile,I=J(!1);Gt(()=>{let V=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(V)});var M=He(),P=fe(M);{var k=V=>{var q=He(),Z=fe(q);{var H=oe=>{fm(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return y()},get customFullscreenSupported(){return p()},get endScreenShown(){return b()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return _()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(X){s(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},G=oe=>{sm(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return y()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(X){s(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})};R(Z,oe=>{n()?oe(H):oe(G,!1)})}$(V,q)};R(P,V=>{r(I)&&V(k)})}$(t,M),U(),o()}var Hy=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function vm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i))),$(t,o)}function gm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);vm(t,{get style(){return r(o)}})}var Fy=xe('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i))),$(t,o)}var Uy=xe('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function _m(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i))),$(t,o)}function _u(t,e){let i=m(e,"isOff",3,!1);var o=He(),n=fe(o);{var a=d=>{_m(d,{})},s=d=>{hm(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var zy=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function bm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=zy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i))),$(t,o)}function $m(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);bm(t,{get style(){return r(o)}})}var Wy=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function ym(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i))),$(t,o)}function xm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);ym(t,{get style(){return r(o)}})}var qy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ky=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Qy=L("<div><!></div>"),Gy={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
264
+ @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
265
+ }`};function xm(t,e){var qi,sn;O(e,!0),q(t,qy);let[i,o]=Oe(),n=()=>S(An,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(jt,"$disabledControls$",i),r=()=>S(Rt,"$playbackState$",i),d=()=>S(mt,"$adPlaybackState",i),l=()=>S(Ae,"$isEnded$",i),u=()=>S(Bt,"$playerSize",i),f=()=>S(et,"$scrubbingInProgress",i),$=()=>S(Io,"$chromecastState$",i),p=()=>S(ht,"$isPictureInPictureActive",i),_=()=>S(Yt,"$pictureInPictureType$",i),w=()=>S(St,"$mobileNotReportControlHidden$",i),b=()=>S(xt,"$chromecastHidden",i),C=()=>S(Wt,"$playerPhase",i),T=()=>S(eo,"$pipHidden",i),I=()=>S(Ri,"$currentGridType$",i),M=()=>S(Ui,"$vkLogoHidden",i),P=()=>S(Be,"$isLive$",i),E=()=>S(Gt,"$settingsMenuVisible",i),R=()=>S(nt,"$isRewindableLive$",i),W=()=>S(Qe,"$isActiveLive$",i),K=()=>S(Oo,"$isInteractiveTime$",i),U=()=>S(Z,"$isAudioAvailable$",i),j=()=>S(Mo,"$settingButtonRef$",i),ae=()=>S(mi,"$startedByKeyboard$",i),G=()=>S(it,"$isFullscreen",i),ce=()=>S(Ti,"$mobileUnmuteButtonVisible",i),de=()=>S(Ji,"$volumeHidden",i),Le=()=>S(me,"$muted$",i),Ne=()=>S(bt,"$mobileUnmuteButtonExpanded",i),he=()=>S(ho,"$additionalButtons$",i),ue=()=>S(go,"$autoplayNextToggleHidden",i),Me=()=>S(Y,"$crashed$",i),le=()=>S(rt,"$settingsHidden",i),N=()=>S(ci,"$graphIsOpened$",i),je=()=>S(fi,"$adPosition",i),te=()=>S(di,"$adDuration",i),qe=()=>S(ie,"$position$",i),re=()=>S(Mt,"$duration$",i),ve=m(e,"playerControlsWrapperRef",15,void 0),ye=m(e,"playerControlsRef",15,void 0),X=m(e,"isAds",3,!1),We=m(e,"logoTargetUrl",3,""),tt=m(e,"isOneVideoPlaylist",3,!1),Te=m(e,"customFullscreenSupported",3,!0),oe=Ee(),ke=mo(),Ke=qt(),st=oe.actions.internal.toggleMuted,ut=oe.actions.internal.togglePlay,at=oe.actions.internal.pause,Et=oe.actions.internal.prevVideoClick,ft=oe.actions.internal.nextVideoClick,Xt=(qi=oe.callbacks)==null?void 0:qi.onAudioDoesNotExistHint,si=(sn=oe.callbacks)==null?void 0:sn.onAudioDisabledHint,Wt=oe.playerPhase,Mt=oe.state.duration$,ie=oe.state.positionWithScrubbing$,Rt=oe.state.playbackState$,Z=oe.state.isAudioAvailable$,fe=oe.state.isAudioDisabled,Ae=oe.state.isEnded$,Be=oe.state.isLive$,me=oe.state.muted$,Qe=oe.state.isActiveLive$,nt=oe.state.isRewindableLive$,et=oe.ui.scrubbingInProgress,St=oe.ui.mobileNotReportControlHidden$,{isActive$:ht,type$:Yt}=ke.pictureInPicture$,bt=oe.ui.mobileUnmuteButtonExpanded,Ti=oe.ui.mobileUnmuteButtonVisible,Gt=oe.ui.settingsMenu.visible$,Je=oe.ui.settingsMenu.openedByBtnKeyboard$,ti=oe.ui.controls,{volume:Ji,vkLogo:Ui,autoplayNextToggle:go,pip:eo,settings:rt,chromecast:xt}=oe.ui.hiddenControls,pi=oe.actions.internal.getVideoEpisodes(),Ii=oe.webApi.pictureInPictureApi,Io=oe.state.chromecastState$,Y=oe.state.crashed$,jt=ti.disabledControls$,mi=oe.ui.startedByKeyboard$,Ri=oe.ui.currentGridType$,di=oe.ads.duration,fi=oe.ads.position,mt=oe.ads.playbackState,it=oe.ui.isFullscreen,Bt=oe.ui.playerSize,ho=oe.ui.additionalButtonsDeprecated$,ii=oe.actions.internal.getVideoElement,er=oe.actions.internal.replayInteractive,Bi=oe.state.isInteractive,Oo=oe.state.isInteractiveTime$,xi=oe.state.showInteractiveGraph,_t=oe.state.showSeekToInteractive,Ni=oe.state.showPlayPrevChapter,Ho=oe.state.showInteractiveTimeIndicator,An=ke.seekToInteractiveDisabledTooltip$,ci=ke.graphIsOpened$,Ei=oe.ui.controlBlocks,Fo=v(()=>F(oe.state.playPrevChapterDisabledTooltip)),Mn=v(()=>F(n())),Uo=v(()=>a().has("EPISODE_BUTTON")),Eo=v(()=>a().has("GRAPH_BUTTON")),$n=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),en=v(()=>a().has("PLAY_BUTTON")),_o=v(()=>a().has("REPLAY_BUTTON")),ko=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Or=v(()=>r()===Sl.PlaybackState.PLAYING),_r=v(()=>d()==="paused"),tr=v(()=>l()&&!X()&&!Bi),ir=v(()=>!l()||X()),or=v(()=>e.showNextPrevButtons&&!X()&&e.prevButtonActive),Ln=v(()=>e.showNextPrevButtons&&!X()&&e.nextButtonActive),os=v(()=>u().width>300),Vn=v(()=>u().width>400),Di=v(f),Rn=v(()=>$()!==Sl.ChromecastState.NOT_AVAILABLE&&!(p()&&_()===1)&&!w()&&!Bi&&!b()),tn=v(()=>C()==="LiveWaitingStart"),on=v(()=>!!Ii&&$()!==Sl.ChromecastState.CONNECTED&&!w()&&(_()===1&&s(tn)||!s(tn))&&!s(Di)&&!Bi&&!T()),Bn=v(()=>!s(Di)&&ji(I(),"s")),Nn=v(()=>!e.logoHidden&&u().width>350&&!M()),zo=v(()=>Ke.features.fullscreen&&!(p()&&_()===1)&&(Bi?Te():!0)&&!s(Di)),Hr=v(()=>(!P()||X())&&u().width>260&&!s(Di)&&!(Ke.features.interactiveHideTime&&Bi)),Dn=v(()=>E()||e.showControls),nr=v(()=>!X()&&!P()&&!!(pi!=null&&pi.length)&&s(os)&&!s(Uo)&&!s(Di)),zi=v(()=>!R()||!!W()),Po=v(()=>xi&&ji(I(),"m")),dt=ge({}),Jt=ge({}),br=(0,ym.debounceFn)(yl,260),On=(0,ym.debounceFn)(wu,260);ze(()=>{u(),K(),br(ii(),ti,dt,e.showControls),On(ii(),Ei,Jt,e.showControls)});let yn=()=>oe.actions.internal.toggleChromecast();function Oi(){return Tt(this,null,function*(){Ii!=null&&Ii.isActive()?yield Ii==null?void 0:Ii.remove():yield Ii==null?void 0:Ii.request()})}function Hn(){(!fe&&U()||X())&&Ti.set(!1),Ds({isAudioDisabled:fe,audioDisabledHintCallback:si,isAudioAvailable:U(),audioIsNotExistHintCallback:Xt,isAds:X()})&&st()}let Ao=J(""),Fn=(Ze,Nt)=>{if(!Ze){D(Ao,ge(F("tooltip_live")));return}Nt&&Nt===Sl.PlaybackState.PAUSED&&D(Ao,ge(F("tooltip_play")))};ze(()=>{Fn(s(zi),r())});let Mo=se();ze(()=>{j()&&fl(j(),E(),Je)}),ze(()=>{yu(mi,ae(),dt.playButton)});var Un=Wy(),zn=_e(Un);{var rr=Ze=>{var Nt=Oy(),bi=_e(Nt);let $o;var oo=A(bi,2);let Qo;var to=h(oo);{var Go=Ue=>{let kt=v(()=>U()&&!fe&&Ne());Su(Ue,{get muted(){return Le()},get expanded(){return s(kt)},click:Hn,get ref(){return dt.volume},set ref(oi){dt.volume=oi}})};V(to,Ue=>{(!U()||ce())&&!de()&&Ue(Go)})}g(oo),ot(oo,Ue=>Jt.topLeft=Ue,()=>Jt==null?void 0:Jt.topLeft);var Vo=A(oo,2);let Ki;var $i=h(Vo);wi($i,1,he,({iconUrl:Ue,ariaLabel:kt,testId:oi,onClick:ln,tooltip:wn})=>Ue,(Ue,kt)=>{let oi=()=>s(kt).iconUrl,ln=()=>s(kt).ariaLabel,wn=()=>s(kt).testId,ro=()=>s(kt).onClick,Qr=()=>s(kt).tooltip,Cr=v(()=>{var io;return(io=ln())!=null?io:Qr()});gm(Ue,{get iconUrl(){return oi()},get ariaLabel(){return s(Cr)},get testId(){return wn()},get onClick(){return ro()}})});var Yo=A($i,2);{var an=Ue=>{Ud(Ue,{get ref(){return dt.autoplayNextToggle},set ref(kt){dt.autoplayNextToggle=kt}})};V(Yo,Ue=>{e.showAutoplayNext&&!tt()&&!ue()&&Ue(an)})}var Qi=A(Yo,2);{var Sr=Ue=>{Vd(Ue,{isMobile:!0,click:yn,get state(){return $()},get ref(){return dt.chromecast},set ref(kt){dt.chromecast=kt}})};V(Qi,Ue=>{s(Rn)&&Ue(Sr)})}var zr=A(Qi,2);{var Wr=Ue=>{$m(Ue,{click:Oi,get isPictureInPictureActive(){return p()},get ref(){return dt.pip},set ref(kt){dt.pip=kt}})};V(zr,Ue=>{s(on)&&Ue(Wr)})}var xn=A(zr,2);{var qn=Ue=>{bl(Ue,{ref$:Mo})};V(xn,Ue=>{Me()&&!le()&&Ue(qn)})}var qr=A(xn,2);{var no=Ue=>{Ld(Ue,{click:at,get targetUrl(){return We()},get logoClickable(){return e.logoClickable},get ref(){return dt.vkLogo},set ref(kt){dt.vkLogo=kt}})};V(qr,Ue=>{s(Nn)&&Ue(no)})}g(Vo),ot(Vo,Ue=>Jt.topRight=Ue,()=>Jt==null?void 0:Jt.topRight);var jo=A(Vo,2);let Kn;var cr=h(jo);{var ur=Ue=>{let kt=v(()=>Et.bind(null,!0));Ia(Ue,{get click(){return s(kt)},type:"prev",isMobile:!0,get ref(){return dt.prevButton},set ref(oi){dt.prevButton=oi}})};V(cr,Ue=>{s(or)&&Ue(ur)})}var Kr=A(cr,2);{var rs=Ue=>{wl(Ue,{get disabled(){return s(en)},click:ut,isMobile:!0,get isPlaying(){return s(Or)},get ref(){return dt.playButton},set ref(kt){dt.playButton=kt}})};V(Kr,Ue=>{s(ir)&&Ue(rs)})}var Ie=A(Kr,2);{var xe=Ue=>{xl(Ue,{get disabled(){return s(_o)},click:ut,isMobile:!0,get ref(){return dt.replayButton},set ref(kt){dt.replayButton=kt}})};V(Ie,Ue=>{s(tr)&&Ue(xe)})}var Ct=A(Ie,2);{var Kt=Ue=>{let kt=v(()=>ft.bind(null,!0));Ia(Ue,{get click(){return s(kt)},type:"next",isMobile:!0,get ref(){return dt.nextButton},set ref(oi){dt.nextButton=oi}})};V(Ct,Ue=>{s(Ln)&&Ue(Kt)})}g(jo),ot(jo,Ue=>Jt.middle=Ue,()=>Jt==null?void 0:Jt.middle);var Pi=A(jo,2);{var yi=Ue=>{var kt=Dy(),oi=_e(kt);{var ln=io=>{var Ai=Ry();let Sn;Ai.__click=[Ly,ko,e,Fo];var Qn=h(Ai);let Tr=v(()=>!e.showControls);Fd(Qn,{get hidden(){return s(Tr)},get disabled(){return s(ko)},get click(){return e.playPrevChapter},get ref(){return dt.playPrevChapterButton},set ref(yo){dt.playPrevChapterButton=yo}}),g(Ai),k(yo=>Sn=ee(Ai,1,"wrapper-middle-left svelte-9xcbwc",null,Sn,yo),[()=>({fullscreen:G(),hidden:!e.showControls})]),y(io,Ai)};V(oi,io=>{Ni&&io(ln)})}var wn=A(oi,2);{var ro=io=>{var Ai=By();let Sn;var Qn=h(Ai);let Tr=v(()=>!e.showControls&&!N());Wd(Qn,{get hidden(){return s(Tr)},get disabled(){return s(Eo)},get click(){return ci.toggle},get graphIsOpened(){return N()},get ref(){return dt.interactiveGraphButton},set ref(yo){dt.interactiveGraphButton=yo}}),g(Ai),k(yo=>Sn=ee(Ai,1,sd(Ni?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",Sn,yo),[()=>({fullscreen:G(),hidden:!e.showControls&&!N()})]),y(io,Ai)};V(wn,io=>{s(Po)&&io(ro)})}var Qr=A(wn,2);{var Cr=io=>{var Ai=Ny();let Sn;Ai.__click=[Vy,$n,e,Mn];var Qn=h(Ai);let Tr=v(()=>!e.showControls);zd(Qn,{get hidden(){return s(Tr)},get disabled(){return s($n)},get click(){return e.seekToInteractive},get ref(){return dt.seekToInteractiveButton},set ref(yo){dt.seekToInteractiveButton=yo}}),g(Ai),k(yo=>Sn=ee(Ai,1,"wrapper-middle-right svelte-9xcbwc",null,Sn,yo),[()=>({fullscreen:G(),hidden:!e.showControls})]),y(io,Ai)};V(Qr,io=>{_t&&io(Cr)})}y(Ue,kt)};V(Pi,Ue=>{Bi&&!f()&&Ue(yi)})}k((Ue,kt,oi,ln)=>{$o=ee(bi,1,"overlay-mobile svelte-9xcbwc",null,$o,Ue),Qo=ee(oo,1,"wrapper-top-left svelte-9xcbwc",null,Qo,kt),Ki=ee(Vo,1,"wrapper-top-right svelte-9xcbwc",null,Ki,oi),Kn=ee(jo,1,"wrapper-middle svelte-9xcbwc",null,Kn,ln)},[()=>({hidden:!s(Dn)}),()=>({hidden:!e.showControls,fullscreen:G()}),()=>({hidden:!e.showControls&&!w(),fullscreen:G()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),y(Ze,Nt)};V(zn,Ze=>{X()||Ze(rr)})}var $r=A(zn,2);{var sr=Ze=>{var Nt=Uy(),bi=_e(Nt);{var $o=Ki=>{var $i=Hy();let Yo;var an=h($i);Su(an,{get muted(){return Le()},expanded:!1,click:Hn,get ref(){return dt.volume},set ref(Qi){dt.volume=Qi}}),g($i),k(Qi=>Yo=ee($i,1,"wrapper-top-right svelte-9xcbwc",null,Yo,Qi),[()=>({fullscreen:G()})]),y(Ki,$i)};V(bi,Ki=>{ce()&&Ki($o)})}var oo=A(bi,2);{var Qo=Ki=>{var $i=Fy(),Yo=h($i);let an=v(()=>!s(_r));wl(Yo,{get disabled(){return s(en)},click:ut,isMobile:!0,get isPlaying(){return s(an)},get ref(){return dt.playButton},set ref(Qi){dt.playButton=Qi}}),g($i),y(Ki,$i)};V(oo,Ki=>{s(_r)&&Ki(Qo)})}var to=A(oo,2);let Go;var Vo=h(to);Rd(Vo,{get position(){return je()},get duration(){return te()}}),g(to),k(Ki=>Go=ee(to,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Go,Ki),[()=>({fullscreen:G()})]),y(Ze,Nt)};V($r,Ze=>{X()&&d()!=="inactive"&&Ze(sr)})}var Wo=A($r,2);let Fr;var ar=h(Wo);let yr;var nn=h(ar);ee(nn,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Zt=h(nn),bo=h(Zt);{var Lo=Ze=>{No(Ze,{get disabled(){return s(_o)},get ref(){return dt.replayButton},set ref(Nt){dt.replayButton=Nt},children:(Nt,bi)=>{xl(Nt,{get disabled(){return s(_o)},click:er})},$$slots:{default:!0}})};V(bo,Ze=>{Bi&&Ze(Lo)})}var lr=A(bo,2);{var xr=Ze=>{No(Ze,{get ref(){return dt.liveButton},set ref(Nt){dt.liveButton=Nt},children:(Nt,bi)=>{qd(Nt,{get isLiveActive(){return s(zi)},isMobile:!0,get ariaLabel(){return s(Ao)}})},$$slots:{default:!0}})};V(lr,Ze=>{!X()&&P()&&Ze(xr)})}var ki=A(lr,2);{var ns=Ze=>{let Nt=v(()=>X()?je():qe()),bi=v(()=>X()?te():re());kd(Ze,{get showDuration(){return s(Vn)},get position(){return s(Nt)},get duration(){return s(bi)},isMobile:!0,get ref(){return dt.time},set ref($o){dt.time=$o}})};V(ki,Ze=>{s(Hr)&&Ze(ns)})}var Ur=A(ki,2);let wr=v(()=>!s(nr));No(Ur,{className:"w-max",get disabled(){return s(wr)},get ref(){return dt.episodes},set ref(Ze){dt.episodes=Ze},children:(Ze,Nt)=>{var bi=Fe(),$o=_e(bi);{var oo=Qo=>{var to=zy(),Go=A(_e(to),2);Bd(Go,{get position(){return qe()},get duration(){return re()},timeCodes:pi}),y(Qo,to)};V($o,Qo=>{s(nr)&&Qo(oo)})}y(Ze,bi)},$$slots:{default:!0}}),g(Zt),ot(Zt,Ze=>Jt.bottomRight=Ze,()=>Jt==null?void 0:Jt.bottomRight);var $t=A(Zt,2),ai=h($t);{var qo=Ze=>{No(Ze,{get ref(){return dt.settings},set ref(Nt){dt.settings=Nt},children:(Nt,bi)=>{bl(Nt,{ref$:Mo})},$$slots:{default:!0}})};V(ai,Ze=>{s(Bn)&&Ze(qo)})}var Ko=A(ai,2);{var Wi=Ze=>{No(Ze,{get ref(){return dt.fullscreen},set ref(Nt){dt.fullscreen=Nt},children:(Nt,bi)=>{Md(Nt,{get click(){return e.toggleFullscreen},get isFullscreen(){return G()}})},$$slots:{default:!0}})};V(Ko,Ze=>{s(zo)&&Ze(Wi)})}g($t),ot($t,Ze=>Jt.bottomRight=Ze,()=>Jt==null?void 0:Jt.bottomRight),g(nn),ot(nn,Ze=>ye(Ze),()=>ye());var Wn=A(nn,2);Ca(Wn,{get isAds(){return X()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return R()},get ref(){return dt.timeline},set ref(Ze){dt.timeline=Ze}}),g(ar),g(Wo),ot(Wo,Ze=>ve(Ze),()=>ve());var rn=A(Wo,2);{var dr=Ze=>{Od(Ze,{get ref(){return dt.interactiveTimeIndicator},set ref(Nt){dt.interactiveTimeIndicator=Nt}})};V(rn,Ze=>{Ho&&Ze(dr)})}k((Ze,Nt)=>{Fr=ee(Wo,1,"wrapper-bottom svelte-9xcbwc",null,Fr,Ze),yr=ee(ar,1,"controls-wrapper svelte-9xcbwc",null,yr,Nt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:G()})]),y(t,Un),H(),o()}ct(["click"]);function Kd(t,e){O(e,!0);let[i,o]=Oe(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),r=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),$=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),_=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,wm.noop),b=m(e,"onDisabledSeekToInteractiveClick",3,wm.noop),T=Ee().ui.isMobile,I=J(!1);Ht(()=>{let R=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(R)});var M=Fe(),P=_e(M);{var E=R=>{var W=Fe(),K=_e(W);{var U=ae=>{xm(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return $()},get customFullscreenSupported(){return p()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return b()},get playerControlsWrapperRef(){return r()},set playerControlsWrapperRef(G){r(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})},j=ae=>{mm(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return $()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r()},set playerControlsWrapperRef(G){r(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})};V(K,ae=>{n()?ae(U):ae(j,!1)})}y(R,W)};V(P,R=>{s(I)&&R(E)})}y(t,M),H(),o()}var Ky=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 Sm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i))),y(t,o)}function Cm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Sm(t,{get style(){return s(o)}})}var Qy=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 Tm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i))),y(t,o)}var Gy=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 Im(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i))),y(t,o)}function Cu(t,e){let i=m(e,"isOff",3,!1);var o=Fe(),n=_e(o);{var a=d=>{Im(d,{})},r=d=>{Tm(d,{})};V(n,d=>{i()?d(a):d(r,!1)})}y(t,o)}var Yy=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 Em(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i))),y(t,o)}function km(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Em(t,{get style(){return s(o)}})}var jy=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 Pm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=jy();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i))),y(t,o)}function Am(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Pm(t,{get style(){return s(o)}})}var Zy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Xy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Jy=L("<div><!></div>"),e4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
265
266
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
266
267
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
267
268
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -276,23 +277,23 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
276
277
  @keyframes svelte-1ad3n06-fadeOut {
277
278
  0% {opacity:1;}
278
279
  100% {opacity:0;}
279
- }`};function wm(t,e){F(e,!0),K(t,Gy);let[i,o]=Oe(),n=()=>S(e.data,"$data",i),s=Te().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=v(()=>{var C;return(C=n())==null?void 0:C.type}),y=v(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=Qy();let b;var w=h(p);{var _=C=>{var T=Ky(),I=fe(T),M=h(I);{var P=se=>{let Q=v(()=>r(f)==="FORWARD_SEEK");gm(se,{get reversed(){return r(Q)}})};R(M,se=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&se(P)})}var k=A(M,2);{var V=se=>{ls(se,{})};R(k,se=>{r(f)==="PAUSE"&&se(V)})}var q=A(k,2);{var Z=se=>{Ir(se,{})};R(q,se=>{r(f)==="PLAY"&&se(Z)})}var H=A(q,2);{var G=se=>{Md(se,{})};R(H,se=>{r(f)==="REPLAY"&&se(G)})}var oe=A(H,2);{var X=se=>{_u(se,{isOff:!0})};R(oe,se=>{r(f)==="SUBTITLES_OFF"&&se(X)})}var ae=A(oe,2);{var ue=se=>{_u(se,{})};R(ae,se=>{r(f)==="SUBTITLES_ON"&&se(ue)})}var Pe=A(ae,2);{var Le=se=>{let Q=v(()=>r(f)==="RATE_UP");$m(se,{get reversed(){return r(Q)}})};R(Pe,se=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&se(Le)})}var he=A(Pe,2);{var le=se=>{let Q=v(()=>r(f)==="EPISODE_NEXT");xm(se,{get reversed(){return r(Q)}})};R(he,se=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&se(le)})}var Ae=A(he,2);{var re=se=>{Ts(se,{volume:0})};R(Ae,se=>{r(f)==="MUTE"&&se(re)})}var N=A(Ae,2);{var pe=se=>{Ts(se,{volume:1})};R(N,se=>{r(f)==="VOLUME"&&se(pe)})}g(I);var be=A(I,2);{var We=se=>{var Q=qy(),_e=h(Q,!0);g(Q),E(()=>ve(_e,r(y))),$(se,Q)};R(be,se=>{r(y)&&se(We)})}$(C,T)};R(w,C=>{!r(d)&&r(f)&&C(_)})}g(p),E(C=>b=ee(p,1,"hot-key-helpers-container svelte-1ad3n06",null,b,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(u)})]),$(t,p),U(),o()}var Yy=xe('<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 Sm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),$(t,o)}var jy=xe('<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 Cm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=jy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),$(t,o)}function Es(t,e){F(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let y="";return r(a)&&(y+="transform: rotate(180deg);"),o()&&(y+="color: var(--btn-color, #fff);"),y.length?y:void 0})());var d=He(),l=fe(d);{var u=y=>{let p=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Sm(y,{get style(){return r(s)},get"data-testid"(){return r(p)}})},f=y=>{let p=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Cm(y,{get style(){return r(s)},get"data-testid"(){return r(p)}})};R(l,y=>{r(n)?y(u):y(f,!1)})}$(t,d),U()}var Zy=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},Xy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Jy=L('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),e4={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 Hd(t,e){F(e,!0),K(t,e4);let i=m(e,"isShifted",3,!1),o=Te(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=z("aria_label_spherical_control");var y=Jy();let p;y.__keydown=[Zy,n,a,s,l,d],y.__keyup=[Xy,n,u],De(y,"aria-label",f);var b=h(y),w=h(b),_=h(w);_.__mousedown=a,_.__mouseup=u;var C=h(_);Es(C,{direction:"up",useBtnColor:!0}),g(_);var T=A(_,2);T.__mousedown=d,T.__mouseup=u;var I=h(T);Es(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=u;var k=h(P);Es(k,{direction:"up",useBtnColor:!0}),g(P);var V=A(P,2);V.__mousedown=s,V.__mouseup=u;var q=h(V);Es(q,{direction:"up",useBtnColor:!0}),g(V),g(M),g(b),g(y),E(Z=>p=ee(y,1,"immersive-controls svelte-1yzc86r",null,p,Z),[()=>({"m-shifted":i()})]),Pt("mouseleave",_,u),Pt("mouseleave",T,u),Pt("mouseleave",P,u),Pt("mouseleave",V,u),$(t,y),U()}lt(["keydown","keyup","mousedown","mouseup"]);var cs=require("@vkontakte/videoplayer-shared/es2015");var B1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var bu=class{constructor(){this.flickeringTimeout=B1(1e3);this.subscriptions=new cs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new cs.ValueSubject([]);this.captionsPrepared$=new cs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,cs.filter)(()=>this.isEnabled()),(0,cs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:a,value:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var t4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),i4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),o4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),n4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),r4=L("<div><!></div>"),s4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
280
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ya(t,e){F(e,!0),K(t,s4);let[i,o]=Oe(),n=()=>S(y,"$currentSubtitle$",i),a=()=>S(b,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),u=Te(),f=Yt(),y=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,b=u.state.isLive$,w=u.ui.isFullscreen,_=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!s()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),M=J(null);Ue(()=>{var G,oe,X;(G=r(M))==null||G.setIsAuto(r(_)),(oe=r(M))==null||oe.setIsLive(r(C)),(X=r(M))==null||X.setCaptions(e.captions)});let P=J(me([[]]));Gt(()=>{D(M,me(new bu().subscribe()));let G=r(M).captionsPrepared$.subscribe(oe=>{D(P,me(oe))});return()=>{var oe;(oe=r(M))==null||oe.destroy(),G.unsubscribe()}}),Gt(()=>{if(r(_)){let G=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(G)}}else p.set(!1)});let k=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=r4();let q;var Z=h(V);{var H=G=>{var oe=n4();let X;var ae=h(oe),ue=h(ae);{var Pe=he=>{var le=t4(),Ae=h(le),re=h(Ae,!0);g(Ae),g(le),E(N=>{var pe;at(Ae,`font-size: ${(pe=r(I))!=null?pe:""}px`),ve(re,N)},[()=>z("subtitles_auto_caption")]),$(he,le)},Le=(he,le)=>{{var Ae=N=>{var pe=He(),be=fe(pe);Ci(be,17,()=>r(P),jl,(We,se)=>{var Q=i4(),_e=h(Q);Ci(_e,21,()=>r(se),({value:te,timeAppeared:Fe})=>Fe,(te,Fe)=>{let Xe=()=>r(Fe).value,Se=()=>r(Fe).timeAppeared;var Re=He(),ke=fe(Re);{var ze=ct=>{var ut=Or();E(()=>ve(ut,Xe())),$(ct,ut)};R(ke,ct=>{(!Se()||Se()<=e.position)&&ct(ze)})}$(te,Re)}),g(_e),g(Q),E(()=>{var te;return at(_e,`font-size: ${(te=r(I))!=null?te:""}px`)}),$(We,Q)}),$(N,pe)},re=N=>{var pe=He(),be=fe(pe);Ci(be,17,()=>e.captions,({value:We})=>We,(We,se)=>{let Q=()=>r(se).value;var _e=o4(),te=h(_e),Fe=h(te,!0);g(te),g(_e),E(()=>{var Xe;at(te,`font-size: ${(Xe=r(I))!=null?Xe:""}px`),ve(Fe,Q())}),$(We,_e)}),$(N,pe)};R(he,N=>{var pe;r(_)&&((pe=r(P))!=null&&pe.length)?N(Ae):N(re,!1)},le)}};R(ue,he=>{r(_)&&d()?he(Pe):he(Le,!1)})}g(ae),g(oe),E(he=>{var le;X=ee(oe,1,"subtitles-caption svelte-c2x749",null,X,he),at(oe,`--subtitles-caption-margin: ${(le=r(k))!=null?le:""}%`)},[()=>({mobile:l()})]),$(G,oe)};R(Z,G=>{var oe;(e.captions.length||(oe=r(P))!=null&&oe.length)&&G(H)})}g(V),E(G=>q=ee(V,1,"subtitles-container svelte-c2x749",null,q,G),[()=>({shifted:e.shifted,auto:r(_)&&!r(C)&&!d()})]),$(t,V),U(),o()}var a4=L('<div class="text svelte-raurnb"> </div>'),l4=L('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),d4={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 Fd(t,e){F(e,!0),K(t,d4);let i=Yt();var o=l4();let n;var a=A(h(o),2);{var s=d=>{var l=a4(),u=h(l);g(l),E(()=>{var f;return ve(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),E(d=>{n=ee(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),U()}var c4=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function Tm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=c4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i))),$(t,o)}var u4=L('<div class="container svelte-13zpvm8"><!></div>'),p4={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 Ud(t){K(t,p4);var e=u4(),i=h(e);Tm(i,{}),g(e),$(t,e)}var f4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),m4=L("<div><!></div>"),v4={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,
280
+ }`};function Mm(t,e){O(e,!0),q(t,e4);let[i,o]=Oe(),n=()=>S(e.data,"$data",i),r=Ee().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=v(()=>{var C;return(C=n())==null?void 0:C.type}),$=v(()=>{var C,T;return(C=n())!=null&&C.t?r(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=Jy();let _;var w=h(p);{var b=C=>{var T=Xy(),I=_e(T),M=h(I);{var P=re=>{let ve=v(()=>s(f)==="FORWARD_SEEK");Cm(re,{get reversed(){return s(ve)}})};V(M,re=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&re(P)})}var E=A(M,2);{var R=re=>{$s(re,{})};V(E,re=>{s(f)==="PAUSE"&&re(R)})}var W=A(E,2);{var K=re=>{Nr(re,{})};V(W,re=>{s(f)==="PLAY"&&re(K)})}var U=A(W,2);{var j=re=>{Hd(re,{})};V(U,re=>{s(f)==="REPLAY"&&re(j)})}var ae=A(U,2);{var G=re=>{Cu(re,{isOff:!0})};V(ae,re=>{s(f)==="SUBTITLES_OFF"&&re(G)})}var ce=A(ae,2);{var de=re=>{Cu(re,{})};V(ce,re=>{s(f)==="SUBTITLES_ON"&&re(de)})}var Le=A(ce,2);{var Ne=re=>{let ve=v(()=>s(f)==="RATE_UP");km(re,{get reversed(){return s(ve)}})};V(Le,re=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&re(Ne)})}var he=A(Le,2);{var ue=re=>{let ve=v(()=>s(f)==="EPISODE_NEXT");Am(re,{get reversed(){return s(ve)}})};V(he,re=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&re(ue)})}var Me=A(he,2);{var le=re=>{Hs(re,{volume:0})};V(Me,re=>{s(f)==="MUTE"&&re(le)})}var N=A(Me,2);{var je=re=>{Hs(re,{volume:1})};V(N,re=>{s(f)==="VOLUME"&&re(je)})}g(I);var te=A(I,2);{var qe=re=>{var ve=Zy(),ye=h(ve,!0);g(ve),k(()=>be(ye,s($))),y(re,ve)};V(te,re=>{s($)&&re(qe)})}y(C,T)};V(w,C=>{!s(d)&&s(f)&&C(b)})}g(p),k(C=>_=ee(p,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(l),"hot-key-helpers-container--right":s(u)})]),y(t,p),H(),o()}var t4=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 Lm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=t4();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),y(t,o)}var i4=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 Vm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=i4();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),y(t,o)}function zs(t,e){O(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),r=v(()=>(()=>{let $="";return s(a)&&($+="transform: rotate(180deg);"),o()&&($+="color: var(--btn-color, #fff);"),$.length?$:void 0})());var d=Fe(),l=_e(d);{var u=$=>{let p=v(()=>s(a)?"chevron-icon--down":"chevron-icon--up");Lm($,{get style(){return s(r)},get"data-testid"(){return s(p)}})},f=$=>{let p=v(()=>s(a)?"chevron-icon--right":"chevron-icon--left");Vm($,{get style(){return s(r)},get"data-testid"(){return s(p)}})};V(l,$=>{s(n)?$(u):$(f,!1)})}y(t,d),H()}var o4=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},n4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},r4=L('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),s4={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 Qd(t,e){O(e,!0),q(t,s4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},r=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var $=r4();let p;$.__keydown=[o4,n,a,r,l,d],$.__keyup=[n4,n,u],De($,"aria-label",f);var _=h($),w=h(_),b=h(w);b.__mousedown=a,b.__mouseup=u;var C=h(b);zs(C,{direction:"up",useBtnColor:!0}),g(b);var T=A(b,2);T.__mousedown=d,T.__mouseup=u;var I=h(T);zs(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=u;var E=h(P);zs(E,{direction:"up",useBtnColor:!0}),g(P);var R=A(P,2);R.__mousedown=r,R.__mouseup=u;var W=h(R);zs(W,{direction:"up",useBtnColor:!0}),g(R),g(M),g(_),g($),k(K=>p=ee($,1,"immersive-controls svelte-1yzc86r",null,p,K),[()=>({"m-shifted":i()})]),Pt("mouseleave",b,u),Pt("mouseleave",T,u),Pt("mouseleave",P,u),Pt("mouseleave",R,u),y(t,$),H()}ct(["keydown","keyup","mousedown","mouseup"]);var xs=require("@vkontakte/videoplayer-shared/es2015");var z1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Tu=class{constructor(){this.flickeringTimeout=z1(1e3);this.subscriptions=new xs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new xs.ValueSubject([]);this.captionsPrepared$=new xs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,xs.filter)(()=>this.isEnabled()),(0,xs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:a,value:r},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(r),value:""}):n.length===0?n.push({value:String(r)}):n[n.length-1].value=String(r)),n),[])),this.captionsPrepared$.next(i)}};var a4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),l4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),d4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),c4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),u4=L("<div><!></div>"),p4={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;
281
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Aa(t,e){O(e,!0),q(t,p4);let[i,o]=Oe(),n=()=>S($,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),r=()=>S(w,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),u=Ee(),f=qt(),$=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,_=u.state.isLive$,w=u.ui.isFullscreen,b=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!r()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),M=J(null);ze(()=>{var j,ae,G;(j=s(M))==null||j.setIsAuto(s(b)),(ae=s(M))==null||ae.setIsLive(s(C)),(G=s(M))==null||G.setCaptions(e.captions)});let P=J(ge([[]]));Ht(()=>{D(M,ge(new Tu().subscribe()));let j=s(M).captionsPrepared$.subscribe(ae=>{D(P,ge(ae))});return()=>{var ae;(ae=s(M))==null||ae.destroy(),j.unsubscribe()}}),Ht(()=>{if(s(b)){let j=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(j)}}else p.set(!1)});let E=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=u4();let W;var K=h(R);{var U=j=>{var ae=c4();let G;var ce=h(ae),de=h(ce);{var Le=he=>{var ue=a4(),Me=h(ue),le=h(Me,!0);g(Me),g(ue),k(N=>{var je;lt(Me,`font-size: ${(je=s(I))!=null?je:""}px`),be(le,N)},[()=>F("subtitles_auto_caption")]),y(he,ue)},Ne=(he,ue)=>{{var Me=N=>{var je=Fe(),te=_e(je);wi(te,17,()=>s(P),nd,(qe,re)=>{var ve=l4(),ye=h(ve);wi(ye,21,()=>s(re),({value:X,timeAppeared:We})=>We,(X,We)=>{let tt=()=>s(We).value,Te=()=>s(We).timeAppeared;var oe=Fe(),ke=_e(oe);{var Ke=st=>{var ut=Zr();k(()=>be(ut,tt())),y(st,ut)};V(ke,st=>{(!Te()||Te()<=e.position)&&st(Ke)})}y(X,oe)}),g(ye),g(ve),k(()=>{var X;return lt(ye,`font-size: ${(X=s(I))!=null?X:""}px`)}),y(qe,ve)}),y(N,je)},le=N=>{var je=Fe(),te=_e(je);wi(te,17,()=>e.captions,({value:qe})=>qe,(qe,re)=>{let ve=()=>s(re).value;var ye=d4(),X=h(ye),We=h(X,!0);g(X),g(ye),k(()=>{var tt;lt(X,`font-size: ${(tt=s(I))!=null?tt:""}px`),be(We,ve())}),y(qe,ye)}),y(N,je)};V(he,N=>{var je;s(b)&&((je=s(P))!=null&&je.length)?N(Me):N(le,!1)},ue)}};V(de,he=>{s(b)&&d()?he(Le):he(Ne,!1)})}g(ce),g(ae),k(he=>{var ue;G=ee(ae,1,"subtitles-caption svelte-c2x749",null,G,he),lt(ae,`--subtitles-caption-margin: ${(ue=s(E))!=null?ue:""}%`)},[()=>({mobile:l()})]),y(j,ae)};V(K,j=>{var ae;(e.captions.length||(ae=s(P))!=null&&ae.length)&&j(U)})}g(R),k(j=>W=ee(R,1,"subtitles-container svelte-c2x749",null,W,j),[()=>({shifted:e.shifted,auto:s(b)&&!s(C)&&!d()})]),y(t,R),H(),o()}var f4=L('<div class="text svelte-raurnb"> </div>'),m4=L('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),v4={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 Gd(t,e){O(e,!0),q(t,v4);let i=qt();var o=m4();let n;var a=A(h(o),2);{var r=d=>{var l=f4(),u=h(l);g(l),k(()=>{var f;return be(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),y(d,l)};V(a,d=>{e.chromecastDeviceName&&d(r)})}g(o),k(d=>{n=ee(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})]),y(t,o),H()}var g4=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 Rm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=g4();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({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))),y(t,o)}var h4=L('<div class="container svelte-13zpvm8"><!></div>'),_4={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 Yd(t){q(t,_4);var e=h4(),i=h(e);Rm(i,{}),g(e),y(t,e)}var b4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),$4=L("<div><!></div>"),y4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
281
282
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
282
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function xa(t,e){F(e,!0),K(t,v4);let i=m(e,"iconVisible",3,!0),o=Te(),n=Yt(),a=o.ui.startedByKeyboard$,s=z("tooltip_play"),d=b=>{var _;let w=b.code;["Enter","Space"].includes(w)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},l=b=>{var w;b.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=m4();let f;u.__click=l;var y=h(u);{var p=b=>{var w=f4();w.__keydown=d,De(w,"aria-label",s);var _=A(h(w),2);Ir(_,{}),g(w),$(b,w)};R(y,b=>{i()&&b(p)})}return g(u),E(b=>{f=ee(u,1,"container svelte-1ciju45",null,f,b),at(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),U({handlePressKey:d,handleClick:l})}lt(["click","keydown"]);var g4=L('<div data-testid="video_title"> </div>'),h4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
283
+ 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 Ma(t,e){O(e,!0),q(t,y4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=qt(),a=o.ui.startedByKeyboard$,r=F("tooltip_play"),d=_=>{var b;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=$4();let f;u.__click=l;var $=h(u);{var p=_=>{var w=b4();w.__keydown=d,De(w,"aria-label",r);var b=A(h(w),2);Nr(b,{}),g(w),y(_,w)};V($,_=>{i()&&_(p)})}return g(u),k(_=>{f=ee(u,1,"container svelte-1ciju45",null,f,_),lt(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),y(t,u),H({handlePressKey:d,handleClick:l})}ct(["click","keydown"]);var x4=L('<div data-testid="video_title"><span> </span></div>'),w4={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(
283
284
  0deg,
284
285
  rgba(0, 0, 0, 0) 0%,
285
286
  rgba(0, 0, 0, 0.02) 19%,
286
- rgba(0, 0, 0, 0.10) 34%,
287
- rgba(0, 0, 0, 0.40) 60%,
288
- rgba(0, 0, 0, 0.60) 100%
289
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Im(t,e){K(t,h4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1);var n=g4();let a;var s=h(n,!0);g(n),E(d=>{a=ee(n,1,"title svelte-1bcvcf2",null,a,d),ve(s,i())},[()=>({hidden:o()})]),$(t,n)}var _4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),b4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),$4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),y4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),x4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),w4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function km(t,e){F(e,!0),K(t,w4);let i=J(""),o=J(""),n=J(""),a=J(""),s,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,me(d(P))));let k=Math.floor(M/3600);D(o,me(d(k)));let V=Math.floor(M/60)%60;D(n,me(d(V)));let q=M%60;D(a,me(d(q)))},u=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?s=requestAnimationFrame(u):e.onTimerOver()};Gt(()=>{s=requestAnimationFrame(u)}),xn(()=>{cancelAnimationFrame(s)});var f=x4(),y=h(f);{var p=M=>{var P=_4(),k=fe(P),V=h(k),q=h(V,!0);g(V);var Z=A(V,2),H=h(Z,!0);g(Z),g(k);var G=A(k,2),oe=h(G,!0);g(G),E((X,ae)=>{ve(q,r(i)),ve(H,X),ve(oe,ae)},[()=>z("waiting_live_day_value"),()=>z("waiting_live_colon")]),$(M,P)};R(y,M=>{r(i)&&M(p)})}var b=A(y,2);{var w=M=>{var P=b4(),k=fe(P),V=h(k),q=h(V,!0);g(V);var Z=A(V,2),H=h(Z,!0);g(Z),g(k);var G=A(k,2),oe=h(G,!0);g(G),E((X,ae)=>{ve(q,r(o)),ve(H,X),ve(oe,ae)},[()=>z("waiting_live_hour_value"),()=>z("waiting_live_colon")]),$(M,P)};R(b,M=>{r(o)&&M(w)})}var _=A(b,2);{var C=M=>{var P=$4(),k=fe(P),V=h(k),q=h(V,!0);g(V);var Z=A(V,2),H=h(Z,!0);g(Z),g(k);var G=A(k,2),oe=h(G,!0);g(G),E((X,ae)=>{ve(q,r(n)),ve(H,X),ve(oe,ae)},[()=>z("waiting_live_minute_value"),()=>z("waiting_live_colon")]),$(M,P)};R(_,M=>{r(n)&&M(C)})}var T=A(_,2);{var I=M=>{var P=y4(),k=h(P),V=h(k,!0);g(k);var q=A(k,2),Z=h(q,!0);g(q),g(P),E(H=>{ve(V,r(a)),ve(Z,H)},[()=>z("waiting_live_second_value")]),$(M,P)};R(T,M=>{r(a)&&M(I)})}g(f),$(t,f),U()}var S4=xe('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Em(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(4),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img"},i))),$(t,o)}var C4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),T4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),I4=L('<div class="waiting-container svelte-15pewff"><!></div>'),k4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function zd(t,e){F(e,!0),K(t,k4);let i=J(!1);Ue(()=>{D(i,me(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=I4(),n=h(o);{var a=d=>{var l=C4(),u=h(l),f=h(u);Em(f,{}),g(u);var y=A(u,2),p=h(y,!0);g(y),g(l),E(b=>ve(p,b),[()=>z("waiting_live_upcoming_title")]),$(d,l)},s=d=>{var l=T4(),u=h(l),f=h(u,!0);g(u);var y=A(u,2);let p=v(()=>e.startTime||0);km(y,{get startTime(){return r(p)},onTimerOver:()=>D(i,!0)}),g(l),E(b=>ve(f,b),[()=>z("waiting_live_timer_title")]),$(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),E(()=>at(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),$(t,o),U()}var E4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),P4={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 wa(t,e){F(e,!0),K(t,P4);let i=m(e,"thumbUrl",3,""),o={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=E4(),s=h(a),d=h(s);ua(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),u=h(l,!0);g(l),g(s),g(a),E(()=>{at(a,`background-image: url('${i()}')`),ve(u,r(n))}),$(t,a),U()}var A4=xe('<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 Pm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=A4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i))),$(t,o)}var M4=L('<div class="select-icon svelte-124aexk"><!></div>'),L4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Wd(t){K(t,L4);var e=M4(),i=h(e);Pm(i,{}),g(e),$(t,e)}var V4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},R4=(t,e)=>{ul(t,()=>e.item.selectItem(e.item.value))},B4=L("<p> </p>"),N4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),D4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),O4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
287
+ rgba(0, 0, 0, 0.1) 34%,
288
+ rgba(0, 0, 0, 0.4) 60%,
289
+ rgba(0, 0, 0, 0.6) 100%
290
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Bm(t,e){O(e,!0),q(t,w4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),a=J(void 0);Ht(()=>{var $;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var _;p.propertyName==="transform"&&((_=e.onVisibilityChanged)==null||_.call(e,!o()))}return($=s(a))==null||$.addEventListener("transitionend",f),()=>{var p;return(p=s(a))==null?void 0:p.removeEventListener("transitionend",f)}});var r=x4();let d;var l=h(r),u=h(l,!0);g(l),ot(l,f=>n(f),()=>n()),g(r),ot(r,f=>D(a,f),()=>s(a)),k(f=>{d=ee(r,1,"title svelte-14hk510",null,d,f),be(u,i())},[()=>({hidden:o()})]),y(t,r),H()}var S4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),C4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),T4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),I4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),E4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),k4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Nm(t,e){O(e,!0),q(t,k4);let i=J(""),o=J(""),n=J(""),a=J(""),r,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,ge(d(P))));let E=Math.floor(M/3600);D(o,ge(d(E)));let R=Math.floor(M/60)%60;D(n,ge(d(R)));let W=M%60;D(a,ge(d(W)))},u=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?r=requestAnimationFrame(u):e.onTimerOver()};Ht(()=>{r=requestAnimationFrame(u)}),kn(()=>{cancelAnimationFrame(r)});var f=E4(),$=h(f);{var p=M=>{var P=S4(),E=_e(P),R=h(E),W=h(R,!0);g(R);var K=A(R,2),U=h(K,!0);g(K),g(E);var j=A(E,2),ae=h(j,!0);g(j),k((G,ce)=>{be(W,s(i)),be(U,G),be(ae,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),y(M,P)};V($,M=>{s(i)&&M(p)})}var _=A($,2);{var w=M=>{var P=C4(),E=_e(P),R=h(E),W=h(R,!0);g(R);var K=A(R,2),U=h(K,!0);g(K),g(E);var j=A(E,2),ae=h(j,!0);g(j),k((G,ce)=>{be(W,s(o)),be(U,G),be(ae,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),y(M,P)};V(_,M=>{s(o)&&M(w)})}var b=A(_,2);{var C=M=>{var P=T4(),E=_e(P),R=h(E),W=h(R,!0);g(R);var K=A(R,2),U=h(K,!0);g(K),g(E);var j=A(E,2),ae=h(j,!0);g(j),k((G,ce)=>{be(W,s(n)),be(U,G),be(ae,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),y(M,P)};V(b,M=>{s(n)&&M(C)})}var T=A(b,2);{var I=M=>{var P=I4(),E=h(P),R=h(E,!0);g(E);var W=A(E,2),K=h(W,!0);g(W),g(P),k(U=>{be(R,s(a)),be(K,U)},[()=>F("waiting_live_second_value")]),y(M,P)};V(T,M=>{s(a)&&M(I)})}g(f),y(t,f),H()}var P4=Ce('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Dm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=P4();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(4),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img"},i))),y(t,o)}var A4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),M4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),L4=L('<div class="waiting-container svelte-15pewff"><!></div>'),V4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function jd(t,e){O(e,!0),q(t,V4);let i=J(!1);ze(()=>{D(i,ge(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=L4(),n=h(o);{var a=d=>{var l=A4(),u=h(l),f=h(u);Dm(f,{}),g(u);var $=A(u,2),p=h($,!0);g($),g(l),k(_=>be(p,_),[()=>F("waiting_live_upcoming_title")]),y(d,l)},r=d=>{var l=M4(),u=h(l),f=h(u,!0);g(u);var $=A(u,2);let p=v(()=>e.startTime||0);Nm($,{get startTime(){return s(p)},onTimerOver:()=>D(i,!0)}),g(l),k(_=>be(f,_),[()=>F("waiting_live_timer_title")]),y(d,l)};V(n,d=>{s(i)?d(a):d(r,!1)})}g(o),k(()=>lt(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),y(t,o),H()}var R4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),B4={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 La(t,e){O(e,!0),q(t,B4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=R4(),r=h(a),d=h(r);ya(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),u=h(l,!0);g(l),g(r),g(a),k(()=>{lt(a,`background-image: url('${i()}')`),be(u,s(n))}),y(t,a),H()}var N4=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 Om(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=N4();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i))),y(t,o)}var D4=L('<div class="select-icon svelte-124aexk"><!></div>'),O4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Zd(t){q(t,O4);var e=D4(),i=h(e);Om(i,{}),g(e),y(t,e)}var H4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},F4=(t,e)=>{vl(t,()=>e.item.selectItem(e.item.value))},U4=L("<p> </p>"),z4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),W4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),q4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
290
291
 
291
292
  /**
292
293
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
293
294
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
294
295
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
295
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Am(t,e){F(e,!0),K(t,O4);let i=m(e,"isMobile",3,!1);var o=D4();let n;o.__click=[V4,e],o.__keydown=[R4,e];var a=h(o);{var s=w=>{Wd(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=A(a,2);let l;var u=h(d);{var f=w=>{var _=He(),C=fe(_);Ti(C,()=>e.item.valueComponent,(T,I)=>{I(T,ns(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),$(w,_)},y=w=>{var _=B4();let C;var T=h(_,!0);g(_),E(I=>{var M;C=ee(_,1,"label svelte-1t7rx2m",null,C,I),ve(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),$(w,_)};R(u,w=>{e.item.valueComponent?w(f):w(y,!1)})}var p=A(u,2);{var b=w=>{var _=N4(),C=h(_,!0);g(_),E(()=>ve(C,e.item.sublabel)),$(w,_)};R(p,w=>{e.item.sublabel&&w(b)})}g(d),g(o),E((w,_,C)=>{n=ee(o,1,"item",null,n,w),De(o,"data-value",e.item.value),De(o,"aria-label",_),De(o,"data-testid",e.item.dataTestid),l=ee(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,_;return(_=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),U()}lt(["click","keydown"]);var H4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Mm(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>_=>eu(_,r(n)));var s=H4();let d;s.__click=function(..._){var C;(C=r(n))==null||C.apply(this,_)},s.__keydown=function(..._){var C;(C=r(a))==null||C.apply(this,_)};var l=h(s);{var u=_=>{Wd(_,{})};R(l,_=>{e.item.selected&&_(u)})}var f=A(l,2);let y;var p=h(f);{var b=_=>{var C=He();let T=v(()=>e.item.valueComponent);var I=fe(C);Ti(I,()=>r(T),(M,P)=>{P(M,ns(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),$(_,C)},w=_=>{var C=Or();E(()=>ve(C,e.item.label)),$(_,C)};R(p,_=>{e.item.valueComponent?_(b):_(w,!1)})}g(f),g(s),_t(s,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),E((_,C)=>{var T;d=ee(s,1,"item",null,d,_),De(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),De(s,"data-testid",e.item.id),y=ee(f,1,"menu-item-value",null,y,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,s),U()}lt(["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 U4=(t,e)=>{i1(t,e.returnFromSubMenu,e.closeSettingsMenu)},z4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},W4=(t,e)=>{fd(t)&&(lr(t),e.returnFromSubMenu())},q4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),K4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
296
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Hm(t,e){O(e,!0),q(t,q4);let i=m(e,"isMobile",3,!1);var o=W4();let n;o.__click=[H4,e],o.__keydown=[F4,e];var a=h(o);{var r=w=>{Zd(w,{})};V(a,w=>{e.item.selected&&w(r)})}var d=A(a,2);let l;var u=h(d);{var f=w=>{var b=Fe(),C=_e(b);Si(C,()=>e.item.valueComponent,(T,I)=>{I(T,gs(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),y(w,b)},$=w=>{var b=U4();let C;var T=h(b,!0);g(b),k(I=>{var M;C=ee(b,1,"label svelte-1t7rx2m",null,C,I),be(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),y(w,b)};V(u,w=>{e.item.valueComponent?w(f):w($,!1)})}var p=A(u,2);{var _=w=>{var b=z4(),C=h(b,!0);g(b),k(()=>be(C,e.item.sublabel)),y(w,b)};V(p,w=>{e.item.sublabel&&w(_)})}g(d),g(o),k((w,b,C)=>{n=ee(o,1,"item",null,n,w),De(o,"data-value",e.item.value),De(o,"aria-label",b),De(o,"data-testid",e.item.dataTestid),l=ee(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,b;return(b=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),y(t,o),H()}ct(["click","keydown"]);var K4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Fm(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>b=>su(b,s(n)));var r=K4();let d;r.__click=function(...b){var C;(C=s(n))==null||C.apply(this,b)},r.__keydown=function(...b){var C;(C=s(a))==null||C.apply(this,b)};var l=h(r);{var u=b=>{Zd(b,{})};V(l,b=>{e.item.selected&&b(u)})}var f=A(l,2);let $;var p=h(f);{var _=b=>{var C=Fe();let T=v(()=>e.item.valueComponent);var I=_e(C);Si(I,()=>s(T),(M,P)=>{P(M,gs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),y(b,C)},w=b=>{var C=Zr();k(()=>be(C,e.item.label)),y(b,C)};V(p,b=>{e.item.valueComponent?b(_):b(w,!1)})}g(f),g(r),ot(r,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),k((b,C)=>{var T;d=ee(r,1,"item",null,d,b),De(r,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),De(r,"data-testid",e.item.id),$=ee(f,1,"menu-item-value",null,$,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),y(t,r),H()}ct(["click","keydown"]);var Dr={"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 G4=(t,e)=>{u1(t,e.returnFromSubMenu,e.closeSettingsMenu)},Y4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},j4=(t,e)=>{yd(t)&&(hr(t),e.returnFromSubMenu())},Z4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),X4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
296
297
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
297
298
  /**
298
299
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -302,14 +303,14 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
302
303
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
303
304
  1px
304
305
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
305
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Vm(t,e){F(e,!0),K(t,K4);let[i,o]=Oe(),n=()=>S(y,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>z("aria_label_submenu_back")),u=m(e,"listRef",15);Gt(()=>{let X=e.items.findIndex(ae=>ae.selected);u().children[X+1].focus()});let f=Te(),y=f.ui.isFullscreen,p=f.ui.playerSize,b=J(void 0),w=J(0),_=J(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(_)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var I=q4();let M;var P=h(I);let k;P.__keydown=[U4,e];var V=h(P);let q;V.__click=[z4,e],V.__keydown=[W4,e];var Z=h(V);Es(Z,{direction:"left"});var H=A(Z,2),G=h(H,!0);g(H),g(V),_t(V,X=>D(b,X),()=>r(b));var oe=A(V,2);Ci(oe,17,()=>e.items,jl,(X,ae)=>{var ue=He(),Pe=fe(ue);{var Le=le=>{Am(le,{get item(){return r(ae)},get isMobile(){return s()}})},he=(le,Ae)=>{{var re=N=>{Mm(N,{get isMobile(){return s()},get item(){return r(ae)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(le,N=>{r(ae).type==="OPEN_SUB_MENU"&&N(re)},Ae)}};R(Pe,le=>{r(ae).type==="SELECT_VALUE"?le(Le):le(he,!1)})}$(X,ue)}),g(P),_t(P,X=>u(X),()=>u()),g(I),E((X,ae,ue)=>{M=ee(I,1,"sub-menu menu svelte-7dfsuh",null,M,X),De(I,"data-testid",`sub-menu-${e.id}`),at(I,`min-width: ${r(T)}px`),k=ee(P,1,"items svelte-7dfsuh",null,k,ae),at(P,r(C)),q=ee(V,1,"item header back svelte-7dfsuh",null,q,ue),De(V,"aria-label",l()),ve(G,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Hr(V,"clientWidth",X=>D(w,X)),Hr(V,"clientHeight",X=>D(_,X)),$(t,I),U(),o()}lt(["keydown","click"]);var D1=require("@vkontakte/videoplayer-shared/es2015");var Q4=(t,e)=>eu(t,e()),G4=(t,e)=>{t.stopPropagation(),e()()},Y4=L('<div class="value svelte-1ikfjte"> </div>'),j4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Z4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Rm(t,e){F(e,!0),K(t,Z4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,D1.noop),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var s=j4();let d;s.__click=[G4,o],s.__keydown=[Q4,o];var l=h(s),u=h(l);{var f=T=>{ba(T,{get icon(){return e.icon}})},y=T=>{var I=He();let M=v(()=>e.icon);var P=fe(I);Ti(P,()=>r(M),(k,V)=>{V(k,{})}),$(T,I)};R(u,T=>{typeof e.icon=="string"?T(f):T(y,!1)})}g(l);var p=A(l,2),b=h(p,!0);g(p);var w=A(p,2);{var _=T=>{var I=He();let M=v(n);var P=fe(I);Ti(P,()=>r(M),(k,V)=>{V(k,{})}),$(T,I)},C=T=>{var I=Y4(),M=h(I,!0);g(I),E(()=>ve(M,e.value)),$(T,I)};R(w,T=>{n()?T(_):T(C,!1)})}g(s),_t(s,T=>a(T),()=>a()),E(T=>{d=ee(s,1,"item",null,d,T),De(s,"aria-label",e.ariaLabel),De(s,"data-testid",e.id),ve(b,e.label)},[()=>({mobile:i()})]),$(t,s),U()}lt(["click","keydown"]);var Bm=require("@vkontakte/videoplayer-shared/es2015");var X4=(t,e)=>{ul(t,()=>e())},J4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),e3=L('<img class="icon" aria-hidden="true">'),t3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),i3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Nm(t,e){F(e,!0),K(t,i3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Bm.noop),n=m(e,"closeSettings",3,Bm.noop),a=J(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=t3();let u;l.__click=d,l.__keydown=[X4,d];var f=h(l),y=h(f);{var p=C=>{var T=He(),I=fe(T);{var M=k=>{var V=J4();$(k,V)},P=k=>{var V=e3();E(()=>De(V,"src",e.icon)),Pt("error",V,s),Gs(V),$(k,V)};R(I,k=>{r(a)?k(M):k(P,!1)})}$(C,T)},b=C=>{var T=He();let I=v(()=>e.icon);var M=fe(T);Ti(M,()=>r(I),(P,k)=>{k(P,{})}),$(C,T)};R(y,C=>{typeof e.icon=="string"?C(p):C(b,!1)})}g(f);var w=A(f,2),_=h(w,!0);g(w),g(l),E(C=>{var T;u=ee(l,1,"item",null,u,C),De(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(l,"data-testid",e.id),ve(_,e.label)},[()=>({mobile:i()})]),$(t,l),U()}lt(["click","keydown"]);var O1=require("@vkontakte/videoplayer-shared/es2015");var o3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),n3={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 Dm(t,e){K(t,n3);let i=m(e,"enabled",3,!1);var o=o3(),n=h(o);let a;ye(2),g(o),E(s=>a=ee(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),$(t,o)}var r3=(t,e,i)=>{o1(t,e(),o=>i()(o))},s3=(t,e,i)=>{t.stopPropagation(),e()(!i())},a3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),l3=L('<li role="menuitem" tabindex="0"><!></li>');function Om(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,O1.noop),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=l3();let l;d.__click=[s3,o,n],d.__keydown=[r3,n,o];var u=h(d);fa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,y)=>{var p=a3();let b;var w=h(p),_=h(w);{var C=k=>{ba(k,{get icon(){return e.icon}})},T=k=>{var V=He();let q=v(()=>e.icon);var Z=fe(V);Ti(Z,()=>r(q),(H,G)=>{G(H,{})}),$(k,V)};R(_,k=>{typeof e.icon=="string"?k(C):k(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);Dm(P,{get enabled(){return n()}}),g(p),E(k=>{b=ee(p,1,"switch-wrapper",null,b,k),ve(M,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),g(d),E(f=>{var y;l=ee(d,1,"item switch-item",null,l,f),De(d,"aria-label",(y=e.ariaLabel)!=null?y:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),U()}lt(["click","keydown"]);var Kd=require("@vkontakte/videoplayer-shared/es2015");var H1=()=>{let t=J(me([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,me(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,me([]))}}};var d3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),c3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),u3={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 Sa(t,e){F(e,!0),K(t,u3);let i=m(e,"isSubCase",3,!1),o=v(()=>nu(e.quality));var n=c3(),a=h(n);let s;var d=h(a,!0);g(a);var l=A(a,2);{var u=f=>{var y=d3();let p=v(()=>r(o));var b=h(y);Ti(b,()=>r(p),(w,_)=>{_(w,{})}),g(y),$(f,y)};R(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),E(f=>{s=ee(a,1,"svelte-t2qk8t",null,s,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),U()}var W1=require("@vkontakte/videoplayer-shared/es2015");var Hm=require("@vkontakte/videoplayer-core/es2015");var F1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},U1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=F1({quality:t,availableQualities:e});return i?t===Hm.VideoQuality.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:o}):o},z1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Hm.VideoQuality.INVARIANT?i:`${i}${F1({quality:t,availableQualities:e})}`:"...";var p3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),f3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function yl(t,e){F(e,!0),K(t,f3);let[i,o]=Oe(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),s=()=>S(f,"$isMobile$",i),d=Te(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,y=" \xB7 ",p=v(()=>e.prefix+(e.selected&&n()!==W1.VideoQuality.INVARIANT?y:"")),b=v(()=>z1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=p3(),_=h(w);let C=v(()=>e.selected?n():void 0);Sa(_,{get quality(){return r(C)},get label(){return r(b)},get isMobile(){return s()},isSubCase:!0}),g(w),$(t,w),U(),o()}var m3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},v3={br:!0,span:!0},Fm=(t,e={})=>{var d,l,u,f,y,p,b;if(!t)return t;let i=W(W({},v3),e),o=Object.keys(i);if(!o.length)return t;let n=m3(o),a=[],s=0;for(let w of t.matchAll(n)){let _=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+_.length;continue}let I=(y=w.groups)!=null&&y.childrenhtml?Fm(w.groups.childrenhtml,i):"",M=(p=w.groups)!=null&&p.childrenhtml?_.replace(new RegExp((b=w.groups)==null?void 0:b.childrenhtml),()=>I||""):_;a.push(t.slice(s,T),M),s=T+_.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function qd(t,e){F(e,!1);let i=m(e,"message",8),o=Fm(i());Sr();var n=He(),a=fe(n);{var s=d=>{var l=He(),u=fe(l);Zl(u,()=>o,!1,!1),$(d,l)};R(a,d=>{o&&d(s)})}$(t,n),U()}var g3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),h3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Um(t,e){F(e,!1),K(t,h3),Sr();var i=g3(),o=h(i);let n=yr(()=>z("quality_applience",{action:`<span>${z("quality_applience_action")}</span>`}));qd(o,{get message(){return r(n)}}),g(i),$(t,i),U()}var K1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:yl,valueComponentParams:{prefix:z("other_quality"),selected:o},children:"QUALITY"}},zm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:z("auto_quality_limit"),valueComponent:e?yl:void 0,valueComponentParams:{prefix:z("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Q1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Um,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Wm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:z("high_quality"),valueComponent:t?yl:void 0,valueComponentParams:{prefix:z("high_quality"),selected:i},sublabel:z("high_quality_description")}),qm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:z("traffic_saving_quality"),valueComponent:t?yl:void 0,valueComponentParams:{prefix:z("traffic_saving_quality"),selected:i},sublabel:z("traffic_saving_quality_description")});var $u=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),yu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=pu(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return z("audio_stream_display_language_label",{language:n,label:o});{let l=$u(t,d);return z("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=$u(t,d);return z("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=$u(t,d);return z("audio_stream_display_language_index",{language:n,index:l})}}let a=$u(t,e);return z("audio_stream_display_unknown",{index:a})};var _3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:zm,selected:e&&!o&&!n||!1}),a.push({handler:qm,selected:o},{handler:Wm,selected:n}),{title:z("submenu_quality"),id:"QUALITY_DETAILS",items:[Q1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),K1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:z("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Sa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:z("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:zm,selected:((i=Wc())==null?void 0:i.type)==="auto_quality"},{handler:qm,selected:((o=Wc())==null?void 0:o.type)==="traffic_saving"},{handler:Wm,selected:((n=Wc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:z("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:yu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:z("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:z("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===mu?"sub_off":void 0}))})},G1=({subMenuId:t,context:e})=>t?[_3[t](e)]:[];var b3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Km(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=b3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i))),$(t,o)}var $3=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Qm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=$3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img"},i))),$(t,o)}var y3=xe('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Gm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=y3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i))),$(t,o)}var x3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Ym(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=x3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i))),$(t,o)}var w3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function jm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i))),$(t,o)}var S3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function xu(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i))),$(t,o)}var C3=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Zm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i))),$(t,o)}var T3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),I3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Xm(t,e){F(e,!0),K(t,I3);let[i,o]=Oe(),n=()=>S(u,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),s=()=>S(y,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Te(),u=l.state.currentQuality$,f=l.state.availableQualities$,y=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,b=v(()=>U1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=T3(),_=h(w);Sa(_,{get quality(){return n()},get label(){return r(b)},get isMobile(){return d()}}),g(w),$(t,w),U(),o()}var E3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?z("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_quality",{actual:o}),icon:bd,label:z("menu_quality"),value:e,valueComponent:Xm,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:z("aria_label_submenu_traffic_saving"),icon:Km,label:z("menu_traffic_saving"),enabled:t,tooltipText:z("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=yu(t,e);return{id:"AUDIO_LANGUAGES",weight:kr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_audio_languages",{actual:i}),icon:Qm,label:z("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:kr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_rate",{actual:i}),icon:Gm,label:z("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:z("aria_label_menu_subtitle",{actual:t.displayValue}),icon:$d,label:z("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:kr.download,type:"CLICK",onClick:t,label:z("download_video_caption"),ariaLabel:z("aria_label_menu_download"),icon:Ym}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:kr.report,type:"CLICK",onClick:t,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,icon:jm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:kr["copy-data"],type:"CLICK",onClick:t,label:z("menu_copy_debug"),ariaLabel:z("menu_copy_debug"),icon:xu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:kr["save-trace-info"],type:"CLICK",onClick:t,label:z("menu_save_debug"),ariaLabel:z("menu_save_debug"),icon:xu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:kr["debug-info"],type:"CLICK",onClick:t,label:z("aria_label_menu_debug_overlay"),ariaLabel:z("menu_debug_overlay"),icon:Zm,isHiddenFor:["desktop"]})},Y1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>E3[n](e)),...i.map(n=>Ut(W({},n),{isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(la)};var A3=(t,e)=>{Jc(t,e)},M3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),L3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),V3=L("<div><!> <!></div>"),R3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
306
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function zm(t,e){O(e,!0),q(t,X4);let[i,o]=Oe(),n=()=>S($,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),r=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=m(e,"listRef",15);Ht(()=>{let G=e.items.findIndex(ce=>ce.selected);u().children[G+1].focus()});let f=Ee(),$=f.ui.isFullscreen,p=f.ui.playerSize,_=J(void 0),w=J(0),b=J(0),C=v(()=>r()&&n()?`max-height: ${Math.round(a().height*.6)}px`:r()?"":`max-height: ${a().height-32-s(b)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,s(w)));var I=Z4();let M;var P=h(I);let E;P.__keydown=[G4,e];var R=h(P);let W;R.__click=[Y4,e],R.__keydown=[j4,e];var K=h(R);zs(K,{direction:"left"});var U=A(K,2),j=h(U,!0);g(U),g(R),ot(R,G=>D(_,G),()=>s(_));var ae=A(R,2);wi(ae,17,()=>e.items,nd,(G,ce)=>{var de=Fe(),Le=_e(de);{var Ne=ue=>{Hm(ue,{get item(){return s(ce)},get isMobile(){return r()}})},he=(ue,Me)=>{{var le=N=>{Fm(N,{get isMobile(){return r()},get item(){return s(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(ue,N=>{s(ce).type==="OPEN_SUB_MENU"&&N(le)},Me)}};V(Le,ue=>{s(ce).type==="SELECT_VALUE"?ue(Ne):ue(he,!1)})}y(G,de)}),g(P),ot(P,G=>u(G),()=>u()),g(I),k((G,ce,de)=>{M=ee(I,1,"sub-menu menu svelte-7dfsuh",null,M,G),De(I,"data-testid",`sub-menu-${e.id}`),lt(I,`min-width: ${s(T)}px`),E=ee(P,1,"items svelte-7dfsuh",null,E,ce),lt(P,s(C)),W=ee(R,1,"item header back svelte-7dfsuh",null,W,de),De(R,"aria-label",l()),be(j,e.title)},[()=>({desktop:!r(),mobile:r()}),()=>({mobile:r()}),()=>({mobile:r()})]),Xr(R,"clientWidth",G=>D(w,G)),Xr(R,"clientHeight",G=>D(b,G)),y(t,I),H(),o()}ct(["keydown","click"]);var q1=require("@vkontakte/videoplayer-shared/es2015");var J4=(t,e)=>su(t,e()),e3=(t,e)=>{t.stopPropagation(),e()()},t3=L('<div class="value svelte-1ikfjte"> </div>'),i3=L('<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 Wm(t,e){O(e,!0),q(t,o3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,q1.noop),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var r=i3();let d;r.__click=[e3,o],r.__keydown=[J4,o];var l=h(r),u=h(l);{var f=T=>{Ea(T,{get icon(){return e.icon}})},$=T=>{var I=Fe();let M=v(()=>e.icon);var P=_e(I);Si(P,()=>s(M),(E,R)=>{R(E,{})}),y(T,I)};V(u,T=>{typeof e.icon=="string"?T(f):T($,!1)})}g(l);var p=A(l,2),_=h(p,!0);g(p);var w=A(p,2);{var b=T=>{var I=Fe();let M=v(n);var P=_e(I);Si(P,()=>s(M),(E,R)=>{R(E,{})}),y(T,I)},C=T=>{var I=t3(),M=h(I,!0);g(I),k(()=>be(M,e.value)),y(T,I)};V(w,T=>{n()?T(b):T(C,!1)})}g(r),ot(r,T=>a(T),()=>a()),k(T=>{d=ee(r,1,"item",null,d,T),De(r,"aria-label",e.ariaLabel),De(r,"data-testid",e.id),be(_,e.label)},[()=>({mobile:i()})]),y(t,r),H()}ct(["click","keydown"]);var qm=require("@vkontakte/videoplayer-shared/es2015");var n3=(t,e)=>{vl(t,()=>e())},r3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),s3=L('<img class="icon" aria-hidden="true">'),a3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),l3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Km(t,e){O(e,!0),q(t,l3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,qm.noop),n=m(e,"closeSettings",3,qm.noop),a=J(!1),r=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=a3();let u;l.__click=d,l.__keydown=[n3,d];var f=h(l),$=h(f);{var p=C=>{var T=Fe(),I=_e(T);{var M=E=>{var R=r3();y(E,R)},P=E=>{var R=s3();k(()=>De(R,"src",e.icon)),Pt("error",R,r),na(R),y(E,R)};V(I,E=>{s(a)?E(M):E(P,!1)})}y(C,T)},_=C=>{var T=Fe();let I=v(()=>e.icon);var M=_e(T);Si(M,()=>s(I),(P,E)=>{E(P,{})}),y(C,T)};V($,C=>{typeof e.icon=="string"?C(p):C(_,!1)})}g(f);var w=A(f,2),b=h(w,!0);g(w),g(l),k(C=>{var T;u=ee(l,1,"item",null,u,C),De(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(l,"data-testid",e.id),be(b,e.label)},[()=>({mobile:i()})]),y(t,l),H()}ct(["click","keydown"]);var K1=require("@vkontakte/videoplayer-shared/es2015");var d3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),c3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Qm(t,e){q(t,c3);let i=m(e,"enabled",3,!1);var o=d3(),n=h(o);let a;Se(2),g(o),k(r=>a=ee(n,1,"toggle svelte-17wbjko",null,a,r),[()=>({on:i()})]),y(t,o)}var u3=(t,e,i)=>{p1(t,e(),o=>i()(o))},p3=(t,e,i)=>{t.stopPropagation(),e()(!i())},f3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),m3=L('<li role="menuitem" tabindex="0"><!></li>');function Gm(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,K1.noop),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),r=m(e,"maxTooltipWidth",3,void 0);var d=m3();let l;d.__click=[p3,o,n],d.__keydown=[u3,n,o];var u=h(d);wa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return r()},children:(f,$)=>{var p=f3();let _;var w=h(p),b=h(w);{var C=E=>{Ea(E,{get icon(){return e.icon}})},T=E=>{var R=Fe();let W=v(()=>e.icon);var K=_e(R);Si(K,()=>s(W),(U,j)=>{j(U,{})}),y(E,R)};V(b,E=>{typeof e.icon=="string"?E(C):E(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);Qm(P,{get enabled(){return n()}}),g(p),k(E=>{_=ee(p,1,"switch-wrapper",null,_,E),be(M,e.label)},[()=>({mobile:i()})]),y(f,p)},$$slots:{default:!0}}),g(d),k(f=>{var $;l=ee(d,1,"item switch-item",null,l,f),De(d,"aria-label",($=e.ariaLabel)!=null?$:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),y(t,d),H()}ct(["click","keydown"]);var Jd=require("@vkontakte/videoplayer-shared/es2015");var Q1=()=>{let t=J(ge([])),e=v(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{D(t,ge(s(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,ge([]))}}};var v3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),g3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),h3={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 Va(t,e){O(e,!0),q(t,h3);let i=m(e,"isSubCase",3,!1),o=v(()=>cu(e.quality));var n=g3(),a=h(n);let r;var d=h(a,!0);g(a);var l=A(a,2);{var u=f=>{var $=v3();let p=v(()=>s(o));var _=h($);Si(_,()=>s(p),(w,b)=>{b(w,{})}),g($),y(f,$)};V(l,f=>{s(o)&&!e.isMobile&&f(u)})}g(n),k(f=>{r=ee(a,1,"svelte-t2qk8t",null,r,f),be(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),y(t,n),H()}var Z1=require("@vkontakte/videoplayer-shared/es2015");var Ym=require("@vkontakte/videoplayer-core/es2015");var G1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Y1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=G1({quality:t,availableQualities:e});return i?t===Ym.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},j1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Ym.VideoQuality.INVARIANT?i:`${i}${G1({quality:t,availableQualities:e})}`:"...";var _3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),b3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Cl(t,e){O(e,!0),q(t,b3);let[i,o]=Oe(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),r=()=>S(f,"$isMobile$",i),d=Ee(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,$=" \xB7 ",p=v(()=>e.prefix+(e.selected&&n()!==Z1.VideoQuality.INVARIANT?$:"")),_=v(()=>j1({prefix:s(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=_3(),b=h(w);let C=v(()=>e.selected?n():void 0);Va(b,{get quality(){return s(C)},get label(){return s(_)},get isMobile(){return r()},isSubCase:!0}),g(w),y(t,w),H(),o()}var $3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},y3={br:!0,span:!0},jm=(t,e={})=>{var d,l,u,f,$,p,_;if(!t)return t;let i=z(z({},y3),e),o=Object.keys(i);if(!o.length)return t;let n=$3(o),a=[],r=0;for(let w of t.matchAll(n)){let b=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(r,T)),r=T+b.length;continue}let I=($=w.groups)!=null&&$.childrenhtml?jm(w.groups.childrenhtml,i):"",M=(p=w.groups)!=null&&p.childrenhtml?b.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>I||""):b;a.push(t.slice(r,T),M),r=T+b.length}return r===0?t:(a.push(t.slice(r)),a.join(""))};function Xd(t,e){O(e,!1);let i=m(e,"message",8),o=jm(i());Lr();var n=Fe(),a=_e(n);{var r=d=>{var l=Fe(),u=_e(l);rd(u,()=>o,!1,!1),y(d,l)};V(a,d=>{o&&d(r)})}y(t,n),H()}var x3=L('<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 Zm(t,e){O(e,!1),q(t,w3),Lr();var i=x3(),o=h(i);let n=Pr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Xd(o,{get message(){return s(n)}}),g(i),y(t,i),H()}var J1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Cl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Xm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?Cl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),e0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Zm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Jm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?Cl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),ev=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?Cl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Iu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Eu=(t,e)=>{var r;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(r=_u(i))!=null?r:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=Iu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=Iu(t,d);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=Iu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=Iu(t,e);return F("audio_stream_display_unknown",{index:a})};var S3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Xm,selected:e&&!o&&!n||!1}),a.push({handler:ev,selected:o},{handler:Jm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[e0(t),...a.map(({handler:r,selected:d})=>r({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),J1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Va,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Xm,selected:((i=jc())==null?void 0:i.type)==="auto_quality"},{handler:ev,selected:((o=jc())==null?void 0:o.type)==="traffic_saving"},{handler:Jm,selected:((n=jc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:r})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:r},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Eu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===$u?"sub_off":void 0}))})},t0=({subMenuId:t,context:e})=>t?[S3[t](e)]:[];var C3=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 tv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i))),y(t,o)}var T3=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 iv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=T3();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img"},i))),y(t,o)}var I3=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 ov(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=I3();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i))),y(t,o)}var E3=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 nv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=E3();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i))),y(t,o)}var k3=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 rv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=k3();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i))),y(t,o)}var P3=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 ku(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=P3();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i))),y(t,o)}var A3=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 sv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=A3();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i))),y(t,o)}var M3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),L3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function av(t,e){O(e,!0),q(t,L3);let[i,o]=Oe(),n=()=>S(u,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),r=()=>S($,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Ee(),u=l.state.currentQuality$,f=l.state.availableQualities$,$=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,_=v(()=>Y1({quality:n(),availableQualities:a(),isAutoQualityEnabled:r()}));var w=M3(),b=h(w);Va(b,{get quality(){return n()},get label(){return s(_)},get isMobile(){return d()}}),g(w),y(t,w),H(),o()}var R3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:Id,label:F("menu_quality"),value:e,valueComponent:av,weight:Dr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Dr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:tv,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Eu(t,e);return{id:"AUDIO_LANGUAGES",weight:Dr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:iv,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Dr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:ov,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Dr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Ed,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Dr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:nv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Dr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:rv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Dr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:ku,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Dr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:ku,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Dr["debug-info"],type:"CLICK",onClick:t,label:F("aria_label_menu_debug_overlay"),ariaLabel:F("menu_debug_overlay"),icon:sv,isHiddenFor:["desktop"]})},i0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>R3[n](e)),...i.map(n=>Ot(z({},n),{isAdditional:!0}))].filter(n=>{var a,r,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((r=n==null?void 0:n.isHiddenFor)!=null&&r.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(_a)};var N3=(t,e)=>{ru(t,e)},D3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),O3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),H3=L("<div><!> <!></div>"),F3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
306
307
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
307
308
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
308
309
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
309
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Qd(t,e){F(e,!0),K(t,R3);let[i,o]=Oe(),n=()=>S(Fe,"$settingsMenuVisible",i),a=()=>S(Xe,"$settingsMenuOpenedByKeyboard",i),s=()=>S(At,"$debugPanelVisible",i),d=()=>S(Re,"$isMobile",i),l=()=>S(nt,"$playerSize",i),u=()=>S(te,"$hasMpegSources$",i),f=()=>S(ke,"$mobileNotReportControlHidden$",i),y=()=>S(re,"$autoQualityLimitingAvailable$",i),p=()=>S(Q,"$availableSubtitlesList$",i),b=()=>S(ze,"$isLiveWithPlaybackSpeed",i),w=()=>S(he,"$availableAudioStreams$",i),_=()=>S(We,"$availablePlaybackRates$",i),C=()=>S(Le,"$currentAudioStream$",i),T=()=>S(be,"$currentPlaybackRate$",i),I=()=>S(ct,"$trafficSavingEnabled",i),M=()=>S(le,"$currentQuality$",i),P=()=>S(N,"$isAutoQualityEnabled$",i),k=()=>S(se,"$currentSubtitle$",i),V=()=>S(Zt,"$additionalSettingsMenuItems$",i),q=()=>S(pe,"$isAutoQualityAvailable$",i),Z=()=>S(Ae,"$availableQualities$",i),H=()=>S(ut,"$highQualityEnabled",i),G=m(e,"ref",15,void 0),oe=m(e,"playerControlsHeight",3,0),X=me({}),ae=me({}),ue=Te(),Pe=Yt(),Le=ue.state.audioStream$,he=ue.state.availableAudioStreams$,le=ue.state.currentQuality$,Ae=ue.state.availableQualities$,re=ue.state.autoQualityLimitingAvailable$,N=ue.state.isAutoQualityEnabled$,pe=ue.state.isAutoQualityAvailable$,be=ue.state.currentPlaybackRate$,We=ue.state.availablePlaybackRates$,se=ue.state.currentSubtitle$,Q=ue.state.availableSubtitlesList$,_e=ue.state.canDownload,te=ue.state.hasMpegSources$,Fe=ue.ui.settingsMenu.visible$,Xe=ue.ui.settingsMenu.openedByBtnKeyboard$,Se=ue.ui.settingsMenu.ref$,Re=ue.ui.isMobile,ke=ue.ui.mobileNotReportControlHidden$,ze=ue.state.canChangePlaybackSpeed$,ct=ue.state.trafficSavingEnabled$,ut=ue.state.highQualityEnabled$,nt=ue.ui.playerSize,At=ue.ui.debugPanelVisible,bt=ue.state.isInteractiveTime$,Zt=ue.ui.additionalSettingsMenuItems$,ei=ue.ui.t,Rt=ue.actions.internal.downloadVideo,Ot=ue.actions.internal.closeSettingsMenu,O=ue.actions.internal.openSettingsSubMenu,$e=ue.actions.internal.closeSettingsSubMenu,ne=J(!1),Ne=J(void 0),Ge=H1();Ue(()=>{!n()&&Ge.current&&($e(ae[Ge.current]),Ge.popAllSubMenus())}),Ue(()=>{n()||D(Ne,void 0)}),Ue(()=>{!Ge.current&&r(Ne)&&t1(X,r(Ne))}),Ue(()=>{G()&&Se.set(G())});function Ze(tt){return Tt(this,null,function*(){Ge.pushSubMenu(tt),yield $o(),O(tt,ae[tt])})}function Ve(tt){var Nt;tt==null||tt.stopPropagation(),a()||(Nt=e.returnFocus)==null||Nt.call(e),Ot(),D(ne,!1)}function ot(tt,Nt){ue.actions.internal.setQuality(tt,{appliesTo:Nt}),Ve()}function et(tt){ue.actions.internal.setAudioStream(tt),Ve()}function yt(tt,Nt){ue.actions.internal.setTrafficSavingEnabled(tt,Nt),Pe.features.qualityDetailsSubMenuEnabled&&Ve()}function ft(tt,Nt){ue.actions.internal.setHighQualityEnabled(tt,Nt),Ve()}function vt(tt){ue.actions.internal.setPlaybackRate(tt),Ve()}function Ht(tt){ue.actions.internal.setSubtitle(tt),Ve()}function Ye(){Rt()}function li(){(0,Kd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ue.actions.internal.reportProblem(),ue.actions.internal.pause()}function Si(){ll(ue.actions.internal.getDebugTextData())}let it=()=>{let tt=ue.actions.internal.getTraceTextData(),Nt=new Blob([...tt],{type:"application/json"}),uo=window.URL.createObjectURL(Nt);ia(uo,"vk_player_trace_info","json")};function Jt(){At.set(!s())}function Li(){D(ne,!0)}function Zi(){D(ne,!1)}function Bt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-oe()}px; overflow: auto;`}let xt=v(()=>_e&&u()&&!f()),Ft=v(()=>Pe.features.trafficSaving&&!f()&&y()&&!Pe.features.qualityDetailsSubMenuEnabled),co=v(()=>p().length>0&&!f()),mn=v(()=>!!b()&&!f()),Sn=v(()=>Pe.features.audioLanguages&&w().length>=2&&!f()),wo=v(()=>!f());Gt(()=>bt.subscribe(tt=>{tt&&!d()&&!r(ne)&&!a()&&Ve()}));let Y=v(()=>{let tt=[r(wo)&&"QUALITY_SETTINGS",r(Sn)&&"AUDIO_LANGUAGES",r(mn)&&"PLAYBACK_RATE",r(co)&&"SUBTITLES",r(Ft)&&"TRAFFIC_SAVING_SWITCH",r(xt)&&"DOWNLOAD",Pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",Pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Nt=>!!Nt);return Y1({items:tt,context:{qualityDetailsSubMenuEnabled:Pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:_(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:vt,trafficSavingEnabled:I(),toggleTrafficSaving:yt,currentQuality:M()||Kd.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:Ye,onCopyDataClick:Si,onReportProblemClick:li,onSaveTraceDataClick:it,toggleShowDebugInfo:Jt},additionalSettingsMenuItems:V()})}),ti=v(()=>G1({subMenuId:Ge.current,context:{availablePlaybackRates:_(),selectPlaybackRate:vt,trafficSavingEnabled:I(),toggleTrafficSaving:yt,currentQuality:M()||Kd.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:q()||!1,availableQualities:Z(),highQualityEnabled:H(),toggleHighQuality:ft,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Ot,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:et,selectQuality:ot,selectSubtitle:Ht}}));var xi=V3();let Vi;var ci=h(xi);{var gt=tt=>{var Nt=L3();let uo;Nt.__keydown=[A3,Ot];var ni=h(Nt);{var dr=ui=>{var kt=M3();let Ri;var Vo=h(kt),gi=h(Vo,!0);g(Vo);var Wo=A(Vo,2);Wo.__click=Ve,g(kt),E((Hi,So)=>{Ri=ee(kt,1,"item header svelte-17or3al",null,Ri,Hi),ve(gi,So)},[()=>({mobile:d()}),()=>ei("submenu_settings")]),$(ui,kt)};R(ni,ui=>{d()&&ui(dr)})}var po=A(ni,2);let Lo;Ci(po,21,()=>r(Y),ui=>ui.id,(ui,kt)=>{var Ri=He(),Vo=fe(Ri);{var gi=Hi=>{Rm(Hi,{get isMobile(){return d()},get id(){return r(kt).id},get icon(){return r(kt).icon},get label(){return r(kt).label},get ariaLabel(){return r(kt).ariaLabel},get value(){return r(kt).value},get valueComponent(){return r(kt).valueComponent},onClick:()=>{Ze(r(kt).children),D(Ne,me(r(kt).id))},get ref(){return X[r(kt).id]},set ref(So){X[r(kt).id]=So}})},Wo=(Hi,So)=>{{var Co=Fi=>{Nm(Fi,{get isMobile(){return d()},get id(){return r(kt).id},get onClick(){return r(kt).onClick},get icon(){return r(kt).icon},get label(){return r(kt).label},get ariaLabel(){return r(kt).ariaLabel},closeSettings:Ve})},Wn=(Fi,Cn)=>{{var To=Ro=>{Om(Ro,{get isMobile(){return d()},get id(){return r(kt).id},get onClick(){return r(kt).onClick},get icon(){return r(kt).icon},get label(){return r(kt).label},get ariaLabel(){return r(kt).ariaLabel},get enabled(){return r(kt).enabled},get tooltipText(){return r(kt).tooltipText},get maxTooltipWidth(){return r(kt).maxTooltipWidth}})};R(Fi,Ro=>{r(kt).type==="SWITCH"&&Ro(To)},Cn)}};R(Hi,Fi=>{r(kt).type==="CLICK"?Fi(Co):Fi(Wn,!1)},So)}};R(Vo,Hi=>{r(kt).type==="OPEN_SUB_MENU"?Hi(gi):Hi(Wo,!1)})}$(ui,Ri)}),g(po),_t(po,ui=>G(ui),()=>G()),g(Nt),E((ui,kt,Ri)=>{uo=ee(Nt,1,"settings-menu menu svelte-17or3al",null,uo,ui),Lo=ee(po,1,"items",null,Lo,kt),at(po,Ri)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ge.current}),()=>({mobile:d()}),Bt]),Pt("mouseenter",Nt,Li),Pt("mouseleave",Nt,Zi),$(tt,Nt)};R(ci,tt=>{n()&&tt(gt)})}var hi=A(ci,2);Ci(hi,17,()=>r(ti),tt=>tt.id,(tt,Nt)=>{let uo=v(()=>{var ni;return(ni=r(Nt).minWidth)!=null?ni:137});Vm(tt,{get isMobile(){return d()},get playerControlsHeight(){return oe()},get returnFromSubMenu(){return Ge.popSubMenu},get id(){return r(Nt).id},get title(){return r(Nt).title},closeSettingsMenu:Ot,openSubMenuList:Ze,get items(){return r(Nt).items},get minWidth(){return r(uo)},get refMenuItems(){return X},get listRef(){return ae[r(Nt).id]},set listRef(ni){ae[r(Nt).id]=ni}})}),g(xi),E(tt=>Vi=ee(xi,1,"settings-menu-container svelte-17or3al",null,Vi,tt),[()=>({mobile:d(),hidden:!n()})]),$(t,xi),U(),o()}lt(["keydown","click"]);var B3=t=>t;function j1(t,{delay:e=0,duration:i=400,easing:o=B3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var N3=L('<button class="button svelte-1sbbskl"> </button>'),D3={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 Jm(t,e){K(t,D3);var i=N3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),E(()=>ve(o,e.label)),$(t,i)}lt(["click"]);var O3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),H3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
310
+ .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 ec(t,e){O(e,!0),q(t,F3);let[i,o]=Oe(),n=()=>S(We,"$settingsMenuVisible",i),a=()=>S(tt,"$settingsMenuOpenedByKeyboard",i),r=()=>S(Et,"$debugPanelVisible",i),d=()=>S(oe,"$isMobile",i),l=()=>S(at,"$playerSize",i),u=()=>S(X,"$hasMpegSources$",i),f=()=>S(ke,"$mobileNotReportControlHidden$",i),$=()=>S(le,"$autoQualityLimitingAvailable$",i),p=()=>S(ve,"$availableSubtitlesList$",i),_=()=>S(Ke,"$isLiveWithPlaybackSpeed",i),w=()=>S(he,"$availableAudioStreams$",i),b=()=>S(qe,"$availablePlaybackRates$",i),C=()=>S(Ne,"$currentAudioStream$",i),T=()=>S(te,"$currentPlaybackRate$",i),I=()=>S(st,"$trafficSavingEnabled",i),M=()=>S(ue,"$currentQuality$",i),P=()=>S(N,"$isAutoQualityEnabled$",i),E=()=>S(re,"$currentSubtitle$",i),R=()=>S(Xt,"$additionalSettingsMenuItems$",i),W=()=>S(je,"$isAutoQualityAvailable$",i),K=()=>S(Me,"$availableQualities$",i),U=()=>S(ut,"$highQualityEnabled",i),j=m(e,"ref",15,void 0),ae=m(e,"playerControlsHeight",3,0),G=ge({}),ce=ge({}),de=Ee(),Le=qt(),Ne=de.state.audioStream$,he=de.state.availableAudioStreams$,ue=de.state.currentQuality$,Me=de.state.availableQualities$,le=de.state.autoQualityLimitingAvailable$,N=de.state.isAutoQualityEnabled$,je=de.state.isAutoQualityAvailable$,te=de.state.currentPlaybackRate$,qe=de.state.availablePlaybackRates$,re=de.state.currentSubtitle$,ve=de.state.availableSubtitlesList$,ye=de.state.canDownload,X=de.state.hasMpegSources$,We=de.ui.settingsMenu.visible$,tt=de.ui.settingsMenu.openedByBtnKeyboard$,Te=de.ui.settingsMenu.ref$,oe=de.ui.isMobile,ke=de.ui.mobileNotReportControlHidden$,Ke=de.state.canChangePlaybackSpeed$,st=de.state.trafficSavingEnabled$,ut=de.state.highQualityEnabled$,at=de.ui.playerSize,Et=de.ui.debugPanelVisible,ft=de.state.isInteractiveTime$,Xt=de.ui.additionalSettingsMenuItems$,si=de.ui.t,Wt=de.actions.internal.downloadVideo,Mt=de.actions.internal.closeSettingsMenu,ie=de.actions.internal.openSettingsSubMenu,Rt=de.actions.internal.closeSettingsSubMenu,Z=J(!1),fe=J(void 0),Ae=Q1();ze(()=>{!n()&&Ae.current&&(Rt(ce[Ae.current]),Ae.popAllSubMenus())}),ze(()=>{n()||D(fe,void 0)}),ze(()=>{!Ae.current&&s(fe)&&c1(G,s(fe))}),ze(()=>{j()&&Te.set(j())});function Be(it){return Tt(this,null,function*(){Ae.pushSubMenu(it),yield So(),ie(it,ce[it])})}function me(it){var Bt;it==null||it.stopPropagation(),a()||(Bt=e.returnFocus)==null||Bt.call(e),Mt(),D(Z,!1)}function Qe(it,Bt){de.actions.internal.setQuality(it,{appliesTo:Bt}),me()}function nt(it){de.actions.internal.setAudioStream(it),me()}function et(it,Bt){de.actions.internal.setTrafficSavingEnabled(it,Bt),Le.features.qualityDetailsSubMenuEnabled&&me()}function St(it,Bt){de.actions.internal.setHighQualityEnabled(it,Bt),me()}function ht(it){de.actions.internal.setPlaybackRate(it),me()}function Yt(it){de.actions.internal.setSubtitle(it),me()}function bt(){Wt()}function Ti(){(0,Jd.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),de.actions.internal.reportProblem(),de.actions.internal.pause()}function Gt(){pl(de.actions.internal.getDebugTextData())}let Je=()=>{let it=de.actions.internal.getTraceTextData(),Bt=new Blob([...it],{type:"application/json"}),ho=window.URL.createObjectURL(Bt);pa(ho,"vk_player_trace_info","json")};function ti(){Et.set(!r())}function Ji(){D(Z,!0)}function Ui(){D(Z,!1)}function go(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ae()}px; overflow: auto;`}let eo=v(()=>ye&&u()&&!f()),rt=v(()=>Le.features.trafficSaving&&!f()&&$()&&!Le.features.qualityDetailsSubMenuEnabled),xt=v(()=>p().length>0&&!f()),pi=v(()=>!!_()&&!f()),Ii=v(()=>Le.features.audioLanguages&&w().length>=2&&!f()),Io=v(()=>!f());Ht(()=>ft.subscribe(it=>{it&&!d()&&!s(Z)&&!a()&&me()}));let Y=v(()=>{let it=[s(Io)&&"QUALITY_SETTINGS",s(Ii)&&"AUDIO_LANGUAGES",s(pi)&&"PLAYBACK_RATE",s(xt)&&"SUBTITLES",s(rt)&&"TRAFFIC_SAVING_SWITCH",s(eo)&&"DOWNLOAD",Le.showSupport&&"SHOW_SUPPORT","COPY_DATA",Le.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Bt=>!!Bt);return i0({items:it,context:{qualityDetailsSubMenuEnabled:Le.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:ht,trafficSavingEnabled:I(),toggleTrafficSaving:et,currentQuality:M()||Jd.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:bt,onCopyDataClick:Gt,onReportProblemClick:Ti,onSaveTraceDataClick:Je,toggleShowDebugInfo:ti},additionalSettingsMenuItems:R()})}),jt=v(()=>t0({subMenuId:Ae.current,context:{availablePlaybackRates:b(),selectPlaybackRate:ht,trafficSavingEnabled:I(),toggleTrafficSaving:et,currentQuality:M()||Jd.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:W()||!1,availableQualities:K(),highQualityEnabled:U(),toggleHighQuality:St,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Mt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:nt,selectQuality:Qe,selectSubtitle:Yt}}));var mi=H3();let Ri;var di=h(mi);{var fi=it=>{var Bt=O3();let ho;Bt.__keydown=[N3,Mt];var ii=h(Bt);{var er=xi=>{var _t=D3();let Ni;var Ho=h(_t),An=h(Ho,!0);g(Ho);var ci=A(Ho,2);ci.__click=me,g(_t),k((Ei,Fo)=>{Ni=ee(_t,1,"item header svelte-17or3al",null,Ni,Ei),be(An,Fo)},[()=>({mobile:d()}),()=>si("submenu_settings")]),y(xi,_t)};V(ii,xi=>{d()&&xi(er)})}var Bi=A(ii,2);let Oo;wi(Bi,21,()=>s(Y),xi=>xi.id,(xi,_t)=>{var Ni=Fe(),Ho=_e(Ni);{var An=Ei=>{Wm(Ei,{get isMobile(){return d()},get id(){return s(_t).id},get icon(){return s(_t).icon},get label(){return s(_t).label},get ariaLabel(){return s(_t).ariaLabel},get value(){return s(_t).value},get valueComponent(){return s(_t).valueComponent},onClick:()=>{Be(s(_t).children),D(fe,ge(s(_t).id))},get ref(){return G[s(_t).id]},set ref(Fo){G[s(_t).id]=Fo}})},ci=(Ei,Fo)=>{{var Mn=Eo=>{Km(Eo,{get isMobile(){return d()},get id(){return s(_t).id},get onClick(){return s(_t).onClick},get icon(){return s(_t).icon},get label(){return s(_t).label},get ariaLabel(){return s(_t).ariaLabel},closeSettings:me})},Uo=(Eo,$n)=>{{var en=_o=>{Gm(_o,{get isMobile(){return d()},get id(){return s(_t).id},get onClick(){return s(_t).onClick},get icon(){return s(_t).icon},get label(){return s(_t).label},get ariaLabel(){return s(_t).ariaLabel},get enabled(){return s(_t).enabled},get tooltipText(){return s(_t).tooltipText},get maxTooltipWidth(){return s(_t).maxTooltipWidth}})};V(Eo,_o=>{s(_t).type==="SWITCH"&&_o(en)},$n)}};V(Ei,Eo=>{s(_t).type==="CLICK"?Eo(Mn):Eo(Uo,!1)},Fo)}};V(Ho,Ei=>{s(_t).type==="OPEN_SUB_MENU"?Ei(An):Ei(ci,!1)})}y(xi,Ni)}),g(Bi),ot(Bi,xi=>j(xi),()=>j()),g(Bt),k((xi,_t,Ni)=>{ho=ee(Bt,1,"settings-menu menu svelte-17or3al",null,ho,xi),Oo=ee(Bi,1,"items",null,Oo,_t),lt(Bi,Ni)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ae.current}),()=>({mobile:d()}),go]),Pt("mouseenter",Bt,Ji),Pt("mouseleave",Bt,Ui),y(it,Bt)};V(di,it=>{n()&&it(fi)})}var mt=A(di,2);wi(mt,17,()=>s(jt),it=>it.id,(it,Bt)=>{let ho=v(()=>{var ii;return(ii=s(Bt).minWidth)!=null?ii:137});zm(it,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return Ae.popSubMenu},get id(){return s(Bt).id},get title(){return s(Bt).title},closeSettingsMenu:Mt,openSubMenuList:Be,get items(){return s(Bt).items},get minWidth(){return s(ho)},get refMenuItems(){return G},get listRef(){return ce[s(Bt).id]},set listRef(ii){ce[s(Bt).id]=ii}})}),g(mi),k(it=>Ri=ee(mi,1,"settings-menu-container svelte-17or3al",null,Ri,it),[()=>({mobile:d(),hidden:!n()})]),y(t,mi),H(),o()}ct(["keydown","click"]);var U3=t=>t;function o0(t,{delay:e=0,duration:i=400,easing:o=U3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var z3=L('<button class="button svelte-1sbbskl"> </button>'),W3={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 lv(t,e){q(t,W3);var i=z3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>be(o,e.label)),y(t,i)}ct(["click"]);var q3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),K3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
310
311
  /**
311
312
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
312
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Gd(t,e){F(e,!0),K(t,H3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Yt(),{ui:{t:n}}=Te(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=O3(),d=h(s),l=h(d),u=h(l),f=h(u);qd(f,{message:a}),g(u);var y=A(u,2);{var p=w=>{let _=v(()=>n("slow_video_notification_button"));Jm(w,{get label(){return r(_)},get onClick(){return e.onSelectAutoQuality}})};R(y,w=>{o||w(p)})}g(l);var b=A(l,2);ca(b,{get onClick(){return e.onClose}}),g(d),g(s),Rp(3,d,()=>j1,()=>({duration:i})),$(t,s),U()}var Z1=require("@vkontakte/videoplayer-shared/es2015");var Ca="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:a,hideAllControls:s}=i;e.setAttribute("slot",Ca),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),s&&((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"}}runHidingControlsWhenIntersected(n,a){return Tt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var b;let s=this.slots.get(e);if(!s)return;let d=yield this.findSlotElement(s.rootElement,i,e),l=(w,_)=>!(w.right<_.left||w.left>_.right||w.bottom<_.top||w.top>_.bottom),{controls:u,hiddenControls:f}=((b=this.store)==null?void 0:b.ui)||{},y=new MutationObserver(w=>w.forEach(()=>{let _=ss(d,this.shadowRootContainer);o.forEach(C=>{let T=u==null?void 0:u[C],I=T?we(T):null,M=f==null?void 0:f[C];I&&(M==null||M.set(l(I,_)))})}));y.observe(d,{childList:!0,subtree:!0}),s.observer=y;let p=new Z1.Subscription;o.forEach(w=>{u&&p.add(u[w].subscribe(_=>{let C=f==null?void 0:f[w];_&&(C==null||C.set(l(_,ss(d,this.shadowRootContainer))))}))}),s.subs=p})}findSlotElement(e,i,o){return Tt(this,null,function*(){return new Promise(n=>{let a=null,s=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){s.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),n(a)}});s.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=s)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:a,subs:s,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[n,a].forEach(y=>y==null?void 0:y.disconnect()),s==null||s.unsubscribe(),this.slots.delete(e),l&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(y=>{var p,b;(b=(p=this.store)==null?void 0:p.ui.hiddenControls[y])==null||b.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var F3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),U3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
313
+ */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 tc(t,e){O(e,!0),q(t,K3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=qt(),{ui:{t:n}}=Ee(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var r=q3(),d=h(r),l=h(d),u=h(l),f=h(u);Xd(f,{message:a}),g(u);var $=A(u,2);{var p=w=>{let b=v(()=>n("slow_video_notification_button"));lv(w,{get label(){return s(b)},get onClick(){return e.onSelectAutoQuality}})};V($,w=>{o||w(p)})}g(l);var _=A(l,2);$a(_,{get onClick(){return e.onClose}}),g(d),g(r),Up(3,d,()=>o0,()=>({duration:i})),y(t,r),H()}var ic=require("@vkontakte/videoplayer-shared/es2015");var Ra="annotation",Pu=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:a,hideAllControls:r}=i;e.setAttribute("slot",Ra),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),r&&((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"}}runHidingControlsWhenIntersected(n,a){return Tt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let r=this.slots.get(e);if(!r)return;let d=yield this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(_=>_.forEach(()=>{let w=_s(d,this.shadowRootContainer);o.forEach(b=>{let C=l==null?void 0:l[b],T=C?we(C):null,I=u==null?void 0:u[b];T&&(I==null||I.set((0,ic.isIntersecting)(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),r.observer=f;let $=new ic.Subscription;o.forEach(_=>{l&&$.add(l[_].subscribe(w=>{let b=u==null?void 0:u[_];w&&w.isDisplayed?b==null||b.set((0,ic.isIntersecting)(w,_s(d,this.shadowRootContainer))):b==null||b.set(!1)}))}),r.subs=$})}findSlotElement(e,i,o){return Tt(this,null,function*(){return new Promise(n=>{let a=null,r=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){r.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),n(a)}});r.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=r)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:a,subs:r,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[n,a].forEach($=>$==null?void 0:$.disconnect()),r==null||r.unsubscribe(),this.slots.delete(e),l&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach($=>{var p,_;(_=(p=this.store)==null?void 0:p.ui.hiddenControls[$])==null||_.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var Q3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),G3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
313
314
 
314
315
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
315
316
 
@@ -340,8 +341,8 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
340
341
  opacity: 0;
341
342
  scale: 0;
342
343
  }
343
- }`};function ev(t,e){F(e,!0),K(t,U3);let[i,o]=Oe(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Te(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:y}}=Yt(),p=0,b=J(null),w=J(!1);Ue(()=>{D(b,me(n()?Ir:ls))}),Ue(()=>{D(b,me(a()?ks:null))}),Ue(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&r(b)===ks&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D(b,null)},r(b)!==ks?f:y),()=>{p&&(window.clearTimeout(p),p=0)}}),Ue(()=>{n()&&!r(w)&&(D(w,!0),D(b,null))});var _=He(),C=fe(_);{var T=I=>{var M=He(),P=fe(M);js(P,()=>r(b),k=>{var V=F3(),q=h(V),Z=h(q);let H=v(()=>a()==="prev");Ti(Z,()=>r(b),(G,oe)=>{oe(G,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),g(q),g(V),E(()=>at(q,`animation-duration: ${r(b)!==ks?f:y}ms`)),$(k,V)}),$(I,M)};R(C,I=>{r(b)&&u&&I(T)})}$(t,_),U(),o()}var z3=L('<div><div data-testid="video-container"></div></div>'),W3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
344
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ta(t,e){F(e,!0),K(t,W3);let[i,o]=Oe(),n=()=>S(f,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:y},state:{isPlaying$:p}}=Te(),{isSmoothVideoRotate:b}=Yt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var _=z3();let C;_.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},_.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},_.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},_.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},_.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(_);ee(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!b}),_t(T,I=>l(I),()=>l()),g(_),E(I=>{C=ee(_,1,"video-wrapper svelte-1czns9r",null,C,I),at(T,`transform: rotate(${n()}deg) scale(${r(w)})`),De(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),$(t,_),U(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var q3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},K3=L("<div><!></div>"),Q3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),G3=L("<div><!></div>"),Y3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),j3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Z3=L("<!> <!> <!>",1),X3=L('<div class="blocked svelte-jtgjmv"></div>'),J3=L('<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 iv(t,e){F(e,!0),K(t,ex);let[i,o]=Oe(),n=()=>S(Ko,"$notificationsToShow$",i),a=()=>S(Li,"$playerPhase",i),s=()=>S(ti,"$isLoaderVisible",i),d=()=>S(Si,"$adPlaybackState",i),l=()=>S(Nt,"$crashed",i),u=()=>S(Vo,"$isInteractiveTime$",i),f=()=>S(Ft,"$settingsMenuVisible",i),y=()=>S(gi,"$isInteractiveExpectation$",i),p=()=>S(xt,"$controlsVisible",i),b=()=>S(Hi,"$touched",i),w=()=>S(Kn,"$graphIsOpened$",i),_=()=>S(Zi,"$isFullscreen",i),C=()=>S(Er,"$autoplayNextEnabled$",i),T=()=>S(gt,"$postrollPassed",i),I=()=>S(xi,"$isEnded$",i),M=()=>S(Vn,"$cursorInside",i),P=()=>S(qn,"$isControlsAvailable",i),k=()=>S(In,"$fakeIsPlaying$",i),V=()=>S(Ln,"$bottomNoSmooth",i),q=()=>S(Fi,"$interactiveTimeIndicator",i),Z=()=>S(Lo,"$playerSize",i),H=()=>S(ui,"$is3DVideo",i),G=()=>S(wo,"$contextMenuVisible$",i),oe=()=>S(li,"$playbackState$",i),X=()=>S(So,"$hotKeyMapData",i),ae=()=>S(mn,"$scrubbingInProgress",i),ue=()=>S(Sn,"$volumeChangingInProgress",i),Pe=()=>S(Vi,"$chromecastConnected$",i),Le=()=>S(Go,"$controlsTimeoutActive",i),he=()=>S(co,"$settingsMenuOpenedByKeyboard",i),le=()=>S(Xo,"$contextMenuOpenedByKeyboard$",i),Ae=()=>S(gr,"$contextMenuButtonRef$",i),re=()=>S(hr,"$contextMenuOpenedByHotKey$",i),N=()=>S(Kr,"$contextMenuLastActiveElem$",i),pe=()=>S(Bt,"$isFullscreenOpenedByKeyboard",i),be=()=>S(Ye,"$language$",i),We=()=>S(kt,"$icon3DVideoVisible",i),se=()=>S(ci,"$chromecastDeviceName$",i),Q=()=>S(dr,"$currentSubtitle$",i),_e=()=>S(po,"$currentSubtitleCaptions$",i),te=()=>S(it,"$position$",i),Fe=()=>S(Jt,"$duration$",i),Xe=()=>S(hi,"$isLive$",i),Se=()=>S(tt,"$isPlaying$",i),Re=()=>S(To,"$contextMenuPosition$",i),ke=()=>S(Co,"$showHotKeyMap",i),ze=()=>S(Y,"$debugPanelVisible",i),ct=()=>S(cr,"$userActionsDisabled$",i),ut=m(e,"videoContainer",15),nt=m(e,"adsSlotId",3,void 0),At=m(e,"adsParams",3,void 0),bt=m(e,"adsPreviewParam",3,void 0),Zt=m(e,"adsAutoplayParam",3,void 0),ei=m(e,"duration",3,void 0),Rt=m(e,"logoTargetUrl",3,""),Ot=m(e,"showNextPrevButtons",3,!1),O=m(e,"nextButtonActive",3,!1),$e=m(e,"prevButtonActive",3,!1),ne=m(e,"endScreenVideoTitle",3,void 0),Ne=m(e,"endScreenVideoThumb",3,void 0),Ge=m(e,"isOneVideoPlaylist",3,!1),Ze=m(e,"shadowRootContainer",3,void 0),Ve=m(e,"outerContainerRef",3,void 0),ot=m(e,"playerStarted",3,!1),et=m(e,"fullScreenTarget",3,void 0),yt=m(e,"showMiniTimer",3,!1),ft=m(e,"showEndScreen",3,!0),vt=m(e,"keyboardControls",15),Ht=e.store.getLogger().createComponentLog("Root component"),Ye=e.store.interfaceLanguage$,li=e.store.state.playbackState$,Si=e.store.ads.playbackState,it=e.store.state.positionWithScrubbing$,Jt=e.store.state.duration$,Li=e.store.playerPhase,Zi=e.store.ui.isFullscreen,Bt=e.store.ui.isFullscreenOpenedByKeyboard,xt=e.store.ui.controlsVisible,Ft=e.store.ui.settingsMenu.visible$,co=e.store.ui.settingsMenu.openedByBtnKeyboard$,mn=e.store.ui.scrubbingInProgress,Sn=e.store.ui.volumeChangingInProgress,wo=e.store.ui.contextMenu.visible$,Y=e.store.ui.debugPanelVisible,ti=e.store.state.isLoaderVisible,xi=e.store.state.isEnded$,Vi=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,gt=e.store.ads.postrollPassed,hi=e.store.state.isLive$,tt=e.store.state.isPlaying$,Nt=e.store.state.crashed$,uo=e.store.webApi.annotationsApi,ni=e.store.webApi.pictureInPictureApi,dr=e.store.state.currentSubtitle$,po=e.store.state.currentSubtitleCaptions$,Lo=e.store.ui.playerSize,ui=e.store.ui.is3DVideo,kt=e.store.ui.icon3DVideoVisible,Ri=e.store.state.isInteractive,Vo=e.store.state.isInteractiveTime$,gi=e.store.state.isInteractiveExpectation$,Wo=e.store.state.hasInteractiveBranches,Hi=e.store.ui.touched,So=e.store.ui.modals.hotKeyMap.data,Co=e.store.ui.modals.hotKeyMap.show,Wn=e.store.ui.overlayContainer$,Fi=e.store.ui.controls.interactiveTimeIndicator,Cn=e.store.state.showInteractiveTimeIndicator,To=e.store.ui.contextMenu.position$,Ro=e.store.actions.internal.setQuality,Tn=e.store.actions.internal.closeSettingsMenu,Er=e.store.ui.autoplayNextEnabled$,cr=e.store.ui.userActionsDisabled,qn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:In,notifications$:kn,graphIsOpened$:Kn}=ao(),fo=J(void 0),rt=J(void 0),En=J(void 0),qo=J(void 0),Pn,An,Bo;So.set(jh());let{closeNotification:ur,notificationsToShow$:Ko}=kn,Mn=v(()=>!!n().slow_video),Qo=()=>ur("slow_video"),mo=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Ui=J(void 0),Ln=de(!1),No,Go=de(!1),Do=de(),Vn=de(!1),zi=J(!1),Wi=J(!1),pr=J(!1),Oo=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Qn=v(()=>u()&&!f()&&!(r(zi)||r(Wi))&&!(r(pr)&&!y())),Rn=!0,Gn=v(()=>e.uiConfig.features.thumbTimer&&yt()&&a()==="video"&&!p()&&!l()&&!Ri&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),fr=v(()=>a()==="video"&&!w()&&_()),vn=J(!1),mr=v(()=>(ft()||e.showAutoplayNext&&C())&&!!ne()&&!!Ne()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(vn)),vr=v(()=>M()&&!(p()||r(mr))&&!u()&&P()),Yn=J(!1),Pr=v(()=>k()!==null),{toggle:Ar}=In,Bn=!1,ii=null;ni==null||ni.setContext(Ql());let jn=()=>{e.autoplay&&!Ri&&e.uiConfig.controls.showOnStartupAtAutoplay&&wt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:jn});let Zn=()=>{window.clearTimeout(Pn),Go.set(!1)},st=()=>{window.clearTimeout(An),Do.set(null)},wt=Ce=>{Zn(),Go.set(!0),Pn=window.setTimeout(()=>Go.set(!1),Ce);let mt=Ce-100;No=window.setTimeout(()=>{V()&&Ln.set(!1)},mt>0?mt:Ce)},ki=(Ce,mt)=>{st(),Do.set(mt),An=window.setTimeout(()=>Do.set(null),Ce)},Io=ui.subscribe(Ce=>{kt.set(Ce),Ce&&(window.clearTimeout(Bo),Bo=window.setTimeout(()=>kt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),vo=()=>Tt(this,null,function*(){var mt,Qt,di,eo;let Ce=$s();if(Ce){let Be=ld(),ht=pt();Ce=Be===ht||Be===Ze()}if(Ce){wt(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ni==null?void 0:ni.remove()}catch(Be){Ht({message:String(Be)})}}Zi.set(Ce),e.store.getAdmanWrapper().setFullscreen(Ce),_()?(Qt=(mt=e.store.callbacks)==null?void 0:mt.onFullscreenEnter)==null||Qt.call(mt):(eo=(di=e.store.callbacks)==null?void 0:di.onFullscreenExit)==null||eo.call(di)}),ko=Ce=>{let{width:mt,height:Qt}=Ce.target;Lo.set({width:mt,height:Qt})},Eo=()=>{let{width:Ce,height:mt}=r(fo).getBoundingClientRect();Lo.set({width:Ce,height:mt})};Gt(()=>{var mt;return Zc(vo),e.uiConfig.features.annotationsInside&&(uo==null||uo.init(r(fo))),sa(ni)&&(ni==null||ni.assignPlayerContainer(r(fo)),ni==null||ni.registryExternalEventHandlers({resize:ko,leavepictureinpicture:Eo})),e.interactiveContainer&&((mt=ut().parentElement)==null||mt.insertBefore(e.interactiveContainer,ut().nextSibling)),()=>{window.clearTimeout(Pn),window.clearTimeout(No),window.clearTimeout(An),window.clearTimeout(Bo),Io(),ni==null||ni.dispose().catch(Qt=>{Ht({message:String(Qt)})}),Xc(vo)}});let pt=()=>{let Ce=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ve()?r(fo):Ve(),mt=Ce.getRootNode(),Qt=mt instanceof ShadowRoot?mt.host:mt,di=et()instanceof HTMLElement&&et().contains(Qt);return e.uiConfig.allowChangingFullscreenTarget&&et()&&di?et():Ce},Xt=()=>Tt(this,null,function*(){$s()?(yield jc(document),Ht({message:"exit fullscreen"})):(Ht({message:"request fullscreen"}),yield Yc(pt()))}),si=()=>{Tn(),wo.set(!1)},wi=Ce=>{w()||(Ce.preventDefault(),wo.set(!0),To.set({left:Ce.clientX,top:Ce.clientY}))};function qi(){Vn.set(!0),Ri||wt(e.uiConfig.controls.hideTimeoutCursor)}function Ho(){Ri||(Ln.set(!0),wt(e.uiConfig.controls.hideTimeoutCursor))}function Bi(){Vn.set(!1),D(Wi,!1),D(zi,!1),Bn=!1,e.store.actions.internal.releaseCamera(),wt(e.uiConfig.controls.hideTimeout)}function Yo(Ce){return Ce?Ce.offsetTop+Yo(Ce.offsetParent):0}function pi(Ce){return Ce?Ce.offsetLeft+pi(Ce.offsetParent):0}function jo(Ce){if(q()&&Cn){let mt=Ce.currentTarget,Qt=Yo(mt),di=pi(mt),eo=Ce.pageX-di,Be=Ce.pageY-Qt,{left:ht,bottom:ai,right:to}=q(),go=to-ht;return eo>=ht-go&&Be<=ai+go}}function Zo(Ce){if(r(fo)){let mt=Yo(Ce.currentTarget),Qt=Z().height,di=Ce.pageY-mt;if(jo(Ce)){D(Wi,!1);return}di<40?D(Wi,!0):di>Qt-40?D(zi,!0):(D(Wi,!1),f()||D(zi,!1))}}function Mr(Ce){Zo(Ce),r(Qn)||wt(e.uiConfig.controls.hideTimeoutCursor),H()&&Bn&&ii&&e.store.actions.internal.moveCameraFocusPX(ii.clientX-Ce.clientX,ii.clientY-Ce.clientY,Ce.timeStamp-ii.timeStamp),ii=Ce}let Xn=Ce=>{Ce.preventDefault(),Ce.button===0&&(Bn=!0,e.store.actions.internal.holdCamera()),wt(e.uiConfig.controls.hideTimeoutCursor)},Lr=Ce=>{Ce.preventDefault(),Ce.button===0&&(ii=Ce,Bn=!1,e.store.actions.internal.releaseCamera()),wt(e.uiConfig.controls.hideTimeoutCursor)},gn=Ce=>{Ce.preventDefault(),Rn&&(Ht({message:"double click on video"}),Xt(),wt(e.uiConfig.controls.hideTimeoutCursor))},Jn=Ce=>{var mt;if(Ce.preventDefault(),G()||f()){si();return}if(!(I()&&!Wo)){if(r(Pr))return Ar();if((mt=vt())==null||mt.focus(),!ot()){e.firstStart(),wt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==tv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),wt(e.uiConfig.controls.hideTimeoutCursor)}},er=Ce=>{si(),Hi.set(!0),wt(e.uiConfig.controls.hideTimeout),Ce&&ki(e.uiConfig.controls.hideHotKeyHelpers,Ce)},qr=()=>{var Ce,mt;si(),(Ce=e.store.callbacks)!=null&&Ce.onOpenHotKeyMap?(mt=e.store.callbacks)==null||mt.onOpenHotKeyMap(X()):Co.update(Qt=>!Qt)},tr=()=>{Hi.set(!0)},Xo=e.store.ui.contextMenu.openedByBtnKeyboard$,gr=e.store.ui.contextMenu.btnRef$,Jo=J(void 0),hr=e.store.ui.contextMenu.openedByHotKey$,Kr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{Wn.set(r(Ui))}),Ue(()=>{D(pr,me(r(Oo)&&oe()!==tv.PlaybackState.PLAYING)),r(Oo)||It(()=>D(Oo,!0))}),Ue(()=>{xt.set((r(pr)||I()||f()||ae()||ue()||Pe()||Le())&&!r(Qn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Ue(()=>{!ae()&&r(Yn)&&!u()&&wt(e.uiConfig.controls.hideTimeoutCursor),It(()=>D(Yn,me(ae())))}),Ue(()=>{r(qo),f(),he(),It(()=>cl(r(qo),f(),he()))}),Ue(()=>{r(Jo),G(),le(),It(()=>cl(r(Jo),G(),le()))}),Ue(()=>{let Ce=Ae();Ce&&(G(),It(()=>dl(Ce,G(),Xo)))}),Ue(()=>{r(Jo),G(),re(),It(()=>cl(r(Jo),G(),re()))}),Ue(()=>{let Ce=N();Ce&&(G(),It(()=>e1(Ce,G(),hr)))}),Ue(()=>{var Ce;!pe()&&_()&&(It(()=>Bt.set(!1)),(Ce=vt())==null||Ce.focus())}),Ue(()=>{w()&&si()});let Vr=z("video360");var Rr=J3();Pt("blur",qs,si);var Je=fe(Rr);Je.__mousemove=Mr;var zt=h(Je);let Ni=v(()=>a()==="ads"),en=v(()=>r(Pr)?Ar:void 0);_t(_f(zt,{toggleFullscreen:Xt,hideContextMenu:si,showHotKeyHelpers:er,showKeyMap:qr,get isAds(){return r(Ni)},get fakePlayButtonHandler(){return r(en)},get nextButtonActive(){return O()},get prevButtonActive(){return $e()},children:(Ce,mt)=>{var Qt=Z3(),di=fe(Qt);Ta(di,{get hideCursor(){return r(vr)},onClick:Jn,onContextMenu:wi,onMouseDown:Xn,onMouseUp:Lr,onDblClick:gn,get videoContainer(){return ut()},set videoContainer(ht){ut(ht)}});var eo=A(di,2);Zs(eo,()=>"slot",!1,(ht,ai)=>{Ie(ht,null,{name:Ca})});var Be=A(eo,2);js(Be,be,ht=>{var ai=j3(),to=fe(ai);let go=v(()=>a()!=="thumb"||l()||Ri&&e.autoplay);xa(to,{get hidden(){return r(go)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qr=A(to,2);ev(Qr,{});var Di=A(Qr,2);{var ir=qe=>{let fi=v(()=>{var on;return(on=e.live)==null?void 0:on.startTime});zd(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(fi)}})};R(Di,qe=>{a()==="LiveWaitingStart"&&qe(ir)})}var Ms=A(Di,2);{var or=qe=>{wa(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ms,qe=>{a()==="LiveWaitingRecover"&&qe(or)})}var Ea=A(Ms,2);{var kl=qe=>{wa(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ea,qe=>{a()==="LiveWaitingRecord"&&qe(kl)})}var Pa=A(Ea,2);{var Aa=qe=>{var fi=K3();let on;var Bs=h(fi);dd(Bs,{get adsSlotId(){return nt()},get adsParams(){return At()},get adsPreviewParam(){return bt()},get adsAutoplayParam(){return Zt()},get duration(){return ei()}}),g(fi),E(ho=>on=ee(fi,1,"ads-container svelte-jtgjmv",null,on,ho),[()=>({hidden:a()!=="ads"})]),$(qe,fi)};R(Pa,qe=>{e.showAds&&ot()&&qe(Aa)})}var Ma=A(Pa,2);{var El=qe=>{let fi=v(()=>!ft()&&e.showAutoplayNext&&C());vf(qe,{get title(){return ne()},get thumb(){return Ne()},get isHide(){return r(fi)},clickCloseIcon:()=>D(vn,!0)})};R(Ma,qe=>{r(mr)&&ne()&&Ne()&&qe(El)})}var Ls=A(Ma,2);{var La=qe=>{let fi=v(()=>!p());Im(qe,{get title(){return e.title},get isHidden(){return r(fi)}})};R(Ls,qe=>{r(fr)&&qe(La)})}var dt=A(Ls,2);{var Ct=qe=>{let fi=v(()=>a()==="video"&&p());Hd(qe,{get isShifted(){return r(fi)}})};R(dt,qe=>{H()&&qe(Ct)})}var Xi=A(dt,2);{var tn=qe=>{var fi=Q3(),on=h(fi);ad(on,{"aria-label":Vr}),g(fi),$(qe,fi)};R(Xi,qe=>{We()&&qe(tn)})}var Ji=A(Xi,2);{var mi=qe=>{Fd(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return se()}})};R(Ji,qe=>{Pe()&&qe(mi)})}var Ei=A(Ji,2);{var Vs=qe=>{ya(qe,{get shifted(){return p()},get captions(){return _e()},get position(){return te()},get playerSize(){return Z()}})};R(Ei,qe=>{Q().value!=="off"&&qe(Vs)})}var Va=A(Ei,2);{var Hu=qe=>{var fi=G3();fi.__contextmenu=wi,fi.__click=[q3,G,wo,f,Ft,si];var on=h(fi);Ud(on,{}),g(fi),$(qe,fi)};R(Va,qe=>{l()&&qe(Hu)})}var nc=A(Va,2);{var Fu=qe=>{let fi=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),on=v(()=>a()==="ads"),Bs=v(()=>e.canRewindLive&&Fe()!==0);Od(qe,{get bottomHidden(){return r(fi)},get bottomNoSmooth(){return V()},get showControls(){return p()},get isAds(){return r(on)},get canRewindLive(){return r(Bs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Rt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ot()},get nextButtonActive(){return O()},get prevButtonActive(){return $e()},get isOneVideoPlaylist(){return Ge()},customFullscreenSupported:Rn,toggleFullscreen:Xt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(rt)},set playerControlsWrapperRef(ho){D(rt,me(ho))},get playerControlsRef(){return r(En)},set playerControlsRef(ho){D(En,me(ho))}})};R(nc,qe=>{ot()&&qe(Fu)})}var rc=A(nc,2);{var Uu=qe=>{var fi=Y3(),on=h(fi);let Bs=v(()=>{var ho;return(ho=r(En))==null?void 0:ho.clientHeight});Qd(on,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Bs)},returnFocus:()=>{var ho;return(ho=vt())==null?void 0:ho.focus()},get ref(){return r(qo)},set ref(ho){D(qo,me(ho))}}),g(fi),$(qe,fi)};R(rc,qe=>{!Pe()&&a()!=="ads"&&qe(Uu)})}var sc=A(rc,2);let zu=v(()=>!r(Gn));pd(sc,{get isLive(){return Xe()},get isHidden(){return r(zu)},get isPlaying(){return Se()},get position(){return te()},get duration(){return Fe()}});var Rs=A(sc,2);wm(Rs,{data:Do});var ac=A(Rs,2);ff(ac,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=vt())==null?void 0:qe.focus()},get visible(){return G()},get playerContainerRef(){return r(fo)},get controlsContainerRef(){return r(rt)},get position(){return Re()},get menuElementRef(){return r(Jo)},set menuElementRef(qe){D(Jo,me(qe))}});var Pl=A(ac,2);{var lc=qe=>{Gd(qe,{onClose:Qo,onSelectAutoQuality:()=>{Ro("auto"),Qo()}})};R(Pl,qe=>{r(Mn)&&qe(lc)})}var dc=A(Pl,2);{var cc=qe=>{ua(qe,{})};R(dc,qe=>{r(mo)&&qe(cc)})}var Ra=A(dc,2);{var uc=qe=>{yf(qe,{})};R(Ra,qe=>{ke()&&qe(uc)})}var Wu=A(Ra,2);{var pc=qe=>{vd(qe,{})};R(Wu,qe=>{ze()&&qe(pc)})}$(ht,ai)}),$(Ce,Qt)},$$slots:{default:!0}}),Ce=>vt(Ce),()=>vt());var Fo=A(zt,2);_t(Fo,Ce=>D(Ui,Ce),()=>r(Ui)),g(Je),_t(Je,Ce=>D(fo,Ce),()=>r(fo));var Nn=A(Je,2);{var hn=Ce=>{var mt=X3();$(Ce,mt)};R(Nn,Ce=>{ct()&&Ce(hn)})}Pt("mouseenter",Je,qi),Pt("mouseleave",Je,Bi),Pt("click",Je,tr,!0),Pt("focusin",Je,Ho,!0),$(t,Rr),U(),o()}lt(["mousemove","contextmenu","click"]);var Ps=require("@vkontakte/videoplayer-core/es2015"),n0=require("@vkontakte/videoplayer-shared/es2015");var tx=L('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),ix=L("<div><!></div>"),ox={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;
344
+ }`};function dv(t,e){O(e,!0),q(t,G3);let[i,o]=Oe(),n=()=>S(r,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:r},ui:{aboutToGoNextVideo:d},actions:l}=Ee(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:$}}=qt(),p=0,_=J(null),w=J(!1);ze(()=>{D(_,ge(n()?Nr:$s))}),ze(()=>{D(_,ge(a()?Us:null))}),ze(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&s(_)===Us&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D(_,null)},s(_)!==Us?f:$),()=>{p&&(window.clearTimeout(p),p=0)}}),ze(()=>{n()&&!s(w)&&(D(w,!0),D(_,null))});var b=Fe(),C=_e(b);{var T=I=>{var M=Fe(),P=_e(M);sa(P,()=>s(_),E=>{var R=Q3(),W=h(R),K=h(W);let U=v(()=>a()==="prev");Si(K,()=>s(_),(j,ae)=>{ae(j,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(W),g(R),k(()=>lt(W,`animation-duration: ${s(_)!==Us?f:$}ms`)),y(E,R)}),y(I,M)};V(C,I=>{s(_)&&u&&I(T)})}y(t,b),H(),o()}var Y3=L('<div><div data-testid="video-container"></div></div>'),j3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
345
+ .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 Ba(t,e){O(e,!0),q(t,j3);let[i,o]=Oe(),n=()=>S(f,"$rotateAlpha",i),a=()=>S($,"$playerSize",i),r=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:$},state:{isPlaying$:p}}=Ee(),{isSmoothVideoRotate:_}=qt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=Y3();let C;b.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},b.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},b.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},b.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},b.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(b);ee(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),ot(T,I=>l(I),()=>l()),g(b),k(I=>{C=ee(b,1,"video-wrapper svelte-1czns9r",null,C,I),lt(T,`transform: rotate(${n()}deg) scale(${s(w)})`),De(T,"data-is-playing",d())},[()=>({hidden:r()!=="video",nocursor:e.hideCursor})]),y(t,b),H(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var Z3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},X3=L("<div><!></div>"),J3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),ex=L("<div><!></div>"),tx=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),ix=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ox=L("<!> <!> <!>",1),nx=L('<div class="blocked svelte-jtgjmv"></div>'),rx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),sx={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){O(e,!0),q(t,sx);let[i,o]=Oe(),n=()=>S(Dn,"$notificationsToShow$",i),a=()=>S(Ji,"$playerPhase",i),r=()=>S(jt,"$isLoaderVisible",i),d=()=>S(Gt,"$adPlaybackState",i),l=()=>S(Bt,"$crashed",i),u=()=>S(Ho,"$isInteractiveTime$",i),f=()=>S(rt,"$settingsMenuVisible",i),$=()=>S(An,"$isInteractiveExpectation$",i),p=()=>S(eo,"$controlsVisible",i),_=()=>S(Ei,"$touched",i),w=()=>S(Vn,"$graphIsOpened$",i),b=()=>S(Ui,"$isFullscreen",i),C=()=>S(Or,"$autoplayNextEnabled$",i),T=()=>S(fi,"$postrollPassed",i),I=()=>S(mi,"$isEnded$",i),M=()=>S(Oi,"$cursorInside",i),P=()=>S(tr,"$isControlsAvailable",i),E=()=>S(Ln,"$fakeIsPlaying$",i),R=()=>S(Jt,"$bottomNoSmooth",i),W=()=>S(Eo,"$interactiveTimeIndicator",i),K=()=>S(Oo,"$playerSize",i),U=()=>S(xi,"$is3DVideo",i),j=()=>S(Io,"$contextMenuVisible$",i),ae=()=>S(Ti,"$playbackState$",i),G=()=>S(Fo,"$hotKeyMapData",i),ce=()=>S(pi,"$scrubbingInProgress",i),de=()=>S(Ii,"$volumeChangingInProgress",i),Le=()=>S(Ri,"$chromecastConnected$",i),Ne=()=>S(On,"$controlsTimeoutActive",i),he=()=>S(xt,"$settingsMenuOpenedByKeyboard",i),ue=()=>S(Yo,"$contextMenuOpenedByKeyboard$",i),Me=()=>S(an,"$contextMenuButtonRef$",i),le=()=>S(Sr,"$contextMenuOpenedByHotKey$",i),N=()=>S(zr,"$contextMenuLastActiveElem$",i),je=()=>S(go,"$isFullscreenOpenedByKeyboard",i),te=()=>S(bt,"$language$",i),qe=()=>S(_t,"$icon3DVideoVisible",i),re=()=>S(di,"$chromecastDeviceName$",i),ve=()=>S(er,"$currentSubtitle$",i),ye=()=>S(Bi,"$currentSubtitleCaptions$",i),X=()=>S(Je,"$position$",i),We=()=>S(ti,"$duration$",i),tt=()=>S(mt,"$isLive$",i),Te=()=>S(it,"$isPlaying$",i),oe=()=>S(en,"$contextMenuPosition$",i),ke=()=>S(Mn,"$showHotKeyMap",i),Ke=()=>S(Y,"$debugPanelVisible",i),st=()=>S(_r,"$userActionsDisabled$",i),ut=m(e,"videoContainer",15),at=m(e,"adsSlotId",3,void 0),Et=m(e,"adsParams",3,void 0),ft=m(e,"adsPreviewParam",3,void 0),Xt=m(e,"adsAutoplayParam",3,void 0),si=m(e,"duration",3,void 0),Wt=m(e,"logoTargetUrl",3,""),Mt=m(e,"showNextPrevButtons",3,!1),ie=m(e,"nextButtonActive",3,!1),Rt=m(e,"prevButtonActive",3,!1),Z=m(e,"endScreenVideoTitle",3,void 0),fe=m(e,"endScreenVideoThumb",3,void 0),Ae=m(e,"isOneVideoPlaylist",3,!1),Be=m(e,"shadowRootContainer",3,void 0),me=m(e,"outerContainerRef",3,void 0),Qe=m(e,"playerStarted",3,!1),nt=m(e,"fullScreenTarget",3,void 0),et=m(e,"showMiniTimer",3,!1),St=m(e,"showEndScreen",3,!0),ht=m(e,"keyboardControls",15),Yt=e.store.getLogger().createComponentLog("Root component"),bt=e.store.interfaceLanguage$,Ti=e.store.state.playbackState$,Gt=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,ti=e.store.state.duration$,Ji=e.store.playerPhase,Ui=e.store.ui.isFullscreen,go=e.store.ui.isFullscreenOpenedByKeyboard,eo=e.store.ui.controlsVisible,rt=e.store.ui.settingsMenu.visible$,xt=e.store.ui.settingsMenu.openedByBtnKeyboard$,pi=e.store.ui.scrubbingInProgress,Ii=e.store.ui.volumeChangingInProgress,Io=e.store.ui.contextMenu.visible$,Y=e.store.ui.debugPanelVisible,jt=e.store.state.isLoaderVisible,mi=e.store.state.isEnded$,Ri=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,fi=e.store.ads.postrollPassed,mt=e.store.state.isLive$,it=e.store.state.isPlaying$,Bt=e.store.state.crashed$,ho=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,er=e.store.state.currentSubtitle$,Bi=e.store.state.currentSubtitleCaptions$,Oo=e.store.ui.playerSize,xi=e.store.ui.is3DVideo,_t=e.store.ui.icon3DVideoVisible,Ni=e.store.state.isInteractive,Ho=e.store.state.isInteractiveTime$,An=e.store.state.isInteractiveExpectation$,ci=e.store.state.hasInteractiveBranches,Ei=e.store.ui.touched,Fo=e.store.ui.modals.hotKeyMap.data,Mn=e.store.ui.modals.hotKeyMap.show,Uo=e.store.ui.overlayContainer$,Eo=e.store.ui.controls.interactiveTimeIndicator,$n=e.store.state.showInteractiveTimeIndicator,en=e.store.ui.contextMenu.position$,_o=e.store.actions.internal.setQuality,ko=e.store.actions.internal.closeSettingsMenu,Or=e.store.ui.autoplayNextEnabled$,_r=e.store.ui.userActionsDisabled,tr=e.store.ui.isControlsAvailable,ir=e.store.ui.videoTitleInfo,or=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Ln,notifications$:os,graphIsOpened$:Vn}=mo(),Di=J(void 0),Rn=J(void 0),tn=J(void 0),on=J(void 0),Bn,Nn,zo;Fo.set(r1());let{closeNotification:Hr,notificationsToShow$:Dn}=os,nr=v(()=>!!n().slow_video),zi=()=>Hr("slow_video"),Po=v(()=>(a()==="video"&&r()||a()==="ads"&&d()==="inactive")&&!l()),dt=J(void 0),Jt=se(!1),br,On=se(!1),yn=se(),Oi=se(!1),Hn=J(!1),Ao=J(!1),Fn=J(!1),Mo=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Un=v(()=>u()&&!f()&&!(s(Hn)||s(Ao))&&!(s(Fn)&&!$())),zn=!0,rr=v(()=>e.uiConfig.features.thumbTimer&&et()&&a()==="video"&&!p()&&!l()&&!Ni&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),$r=v(()=>a()==="video"&&!w()&&b()),sr=J(!1),Wo=v(()=>(St()||e.showAutoplayNext&&C())&&!!Z()&&!!fe()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!s(sr)),Fr=v(()=>M()&&!(p()||s(Wo))&&!u()&&P()),ar=J(!1),yr=v(()=>E()!==null),{toggle:nn}=Ln,Zt=!1,bo=null;ii==null||ii.setContext(td());let Lo=()=>{e.autoplay&&!Ni&&e.uiConfig.controls.showOnStartupAtAutoplay&&ki(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Lo});let lr=()=>{window.clearTimeout(Bn),On.set(!1)},xr=()=>{window.clearTimeout(Nn),yn.set(null)},ki=Ie=>{lr(),On.set(!0),Bn=window.setTimeout(()=>On.set(!1),Ie);let xe=Ie-100;br=window.setTimeout(()=>{R()&&Jt.set(!1)},xe>0?xe:Ie)},ns=(Ie,xe)=>{xr(),yn.set(xe),Nn=window.setTimeout(()=>yn.set(null),Ie)},Ur=xi.subscribe(Ie=>{_t.set(Ie),Ie&&(window.clearTimeout(zo),zo=window.setTimeout(()=>_t.set(!1),e.uiConfig.controls.hide360IconTimeout))}),wr=()=>Tt(this,null,function*(){var xe,Ct,Kt,Pi;let Ie=Vs();if(Ie){let yi=gd(),Ue=qo();Ie=yi===Ue||yi===Be()}if(Ie){ki(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ii==null?void 0:ii.remove()}catch(yi){Yt({message:String(yi)})}}Ui.set(Ie),e.store.getAdmanWrapper().setFullscreen(Ie),b()?(Ct=(xe=e.store.callbacks)==null?void 0:xe.onFullscreenEnter)==null||Ct.call(xe):(Pi=(Kt=e.store.callbacks)==null?void 0:Kt.onFullscreenExit)==null||Pi.call(Kt)}),$t=Ie=>{let{width:xe,height:Ct}=Ie.target;Oo.set({width:xe,height:Ct})},ai=()=>{let{width:Ie,height:xe}=s(Di).getBoundingClientRect();Oo.set({width:Ie,height:xe})};Ht(()=>{var xe;return ou(wr),e.uiConfig.features.annotationsInside&&(ho==null||ho.init(s(Di))),ga(ii)&&(ii==null||ii.assignPlayerContainer(s(Di)),ii==null||ii.registryExternalEventHandlers({resize:$t,leavepictureinpicture:ai})),e.interactiveContainer&&((xe=ut().parentElement)==null||xe.insertBefore(e.interactiveContainer,ut().nextSibling)),()=>{window.clearTimeout(Bn),window.clearTimeout(br),window.clearTimeout(Nn),window.clearTimeout(zo),Ur(),ii==null||ii.dispose().catch(Ct=>{Yt({message:String(Ct)})}),nu(wr)}});let qo=()=>{let Ie=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!me()?s(Di):me(),xe=Ie.getRootNode(),Ct=xe instanceof ShadowRoot?xe.host:xe,Kt=nt()instanceof HTMLElement&&nt().contains(Ct);return e.uiConfig.allowChangingFullscreenTarget&&nt()&&Kt?nt():Ie},Ko=()=>Tt(this,null,function*(){Vs()?(yield iu(document),Yt({message:"exit fullscreen"})):(Yt({message:"request fullscreen"}),yield tu(qo()))}),Wi=()=>{ko(),Io.set(!1)},Wn=Ie=>{w()||(Ie.preventDefault(),Io.set(!0),en.set({left:Ie.clientX,top:Ie.clientY}))};function rn(){Oi.set(!0),Ni||ki(e.uiConfig.controls.hideTimeoutCursor)}function dr(){Ni||(Jt.set(!0),ki(e.uiConfig.controls.hideTimeoutCursor))}function qi(){Oi.set(!1),D(Ao,!1),D(Hn,!1),Zt=!1,e.store.actions.internal.releaseCamera(),ki(e.uiConfig.controls.hideTimeout)}function sn(Ie){return Ie?Ie.offsetTop+sn(Ie.offsetParent):0}function Ze(Ie){return Ie?Ie.offsetLeft+Ze(Ie.offsetParent):0}function Nt(Ie){if(W()&&$n){let xe=Ie.currentTarget,Ct=sn(xe),Kt=Ze(xe),Pi=Ie.pageX-Kt,yi=Ie.pageY-Ct,{left:Ue,bottom:kt,right:oi}=W(),ln=oi-Ue;return Pi>=Ue-ln&&yi<=kt+ln}}function bi(Ie){if(s(Di)){let xe=sn(Ie.currentTarget),Ct=K().height,Kt=Ie.pageY-xe;if(Nt(Ie)){D(Ao,!1);return}Kt<40?D(Ao,!0):Kt>Ct-40?D(Hn,!0):(D(Ao,!1),f()||D(Hn,!1))}}function $o(Ie){bi(Ie),s(Un)||ki(e.uiConfig.controls.hideTimeoutCursor),U()&&Zt&&bo&&e.store.actions.internal.moveCameraFocusPX(bo.clientX-Ie.clientX,bo.clientY-Ie.clientY,Ie.timeStamp-bo.timeStamp),bo=Ie}let oo=Ie=>{Ie.preventDefault(),Ie.button===0&&(Zt=!0,e.store.actions.internal.holdCamera()),ki(e.uiConfig.controls.hideTimeoutCursor)},Qo=Ie=>{Ie.preventDefault(),Ie.button===0&&(bo=Ie,Zt=!1,e.store.actions.internal.releaseCamera()),ki(e.uiConfig.controls.hideTimeoutCursor)},to=Ie=>{Ie.preventDefault(),zn&&(Yt({message:"double click on video"}),Ko(),ki(e.uiConfig.controls.hideTimeoutCursor))},Go=Ie=>{var xe;if(Ie.preventDefault(),j()||f()){Wi();return}if(!(I()&&!ci)){if(s(yr))return nn();if((xe=ht())==null||xe.focus(),!Qe()){e.firstStart(),ki(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ae()!==cv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),ki(e.uiConfig.controls.hideTimeoutCursor)}},Vo=Ie=>{Wi(),Ei.set(!0),ki(e.uiConfig.controls.hideTimeout),Ie&&ns(e.uiConfig.controls.hideHotKeyHelpers,Ie)},Ki=()=>{var Ie,xe;Wi(),(Ie=e.store.callbacks)!=null&&Ie.onOpenHotKeyMap?(xe=e.store.callbacks)==null||xe.onOpenHotKeyMap(G()):Mn.update(Ct=>!Ct)},$i=()=>{Ei.set(!0)},Yo=e.store.ui.contextMenu.openedByBtnKeyboard$,an=e.store.ui.contextMenu.btnRef$,Qi=J(void 0),Sr=e.store.ui.contextMenu.openedByHotKey$,zr=e.store.ui.contextMenu.lastActiveElem$;ze(()=>{Uo.set(s(dt))}),ze(()=>{D(Fn,ge(s(Mo)&&ae()!==cv.PlaybackState.PLAYING)),s(Mo)||It(()=>D(Mo,!0))}),ze(()=>{eo.set((s(Fn)||I()||f()||ce()||de()||Le()||Ne())&&!s(Un)&&(a()==="video"||a()==="ads")&&!l()&&P())}),ze(()=>{!ce()&&s(ar)&&!u()&&ki(e.uiConfig.controls.hideTimeoutCursor),It(()=>D(ar,ge(ce())))}),ze(()=>{s(on),f(),he(),It(()=>ml(s(on),f(),he()))}),ze(()=>{s(Qi),j(),ue(),It(()=>ml(s(Qi),j(),ue()))}),ze(()=>{let Ie=Me();Ie&&(j(),It(()=>fl(Ie,j(),Yo)))}),ze(()=>{s(Qi),j(),le(),It(()=>ml(s(Qi),j(),le()))}),ze(()=>{let Ie=N();Ie&&(j(),It(()=>d1(Ie,j(),Sr)))}),ze(()=>{var Ie;!je()&&b()&&(It(()=>go.set(!1)),(Ie=ht())==null||Ie.focus())}),ze(()=>{w()&&Wi()});let Wr=F("video360"),xn=J(void 0),qn=Ie=>{ir.set(Br(or(),{title:s(xn)},"title",Ie))};var qr=rx();Pt("blur",ta,Wi);var no=_e(qr);no.__mousemove=$o;var jo=h(no);let Kn=v(()=>a()==="ads"),cr=v(()=>s(yr)?nn:void 0);ot(Cf(jo,{toggleFullscreen:Ko,hideContextMenu:Wi,showHotKeyHelpers:Vo,showKeyMap:Ki,get isAds(){return s(Kn)},get fakePlayButtonHandler(){return s(cr)},get nextButtonActive(){return ie()},get prevButtonActive(){return Rt()},children:(Ie,xe)=>{var Ct=ox(),Kt=_e(Ct);Ba(Kt,{get hideCursor(){return s(Fr)},onClick:Go,onContextMenu:Wn,onMouseDown:oo,onMouseUp:Qo,onDblClick:to,get videoContainer(){return ut()},set videoContainer(Ue){ut(Ue)}});var Pi=A(Kt,2);aa(Pi,()=>"slot",!1,(Ue,kt)=>{Pe(Ue,null,{name:Ra})});var yi=A(Pi,2);sa(yi,te,Ue=>{var kt=ix(),oi=_e(kt);let ln=v(()=>a()!=="thumb"||l()||Ni&&e.autoplay);Ma(oi,{get hidden(){return s(ln)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var wn=A(oi,2);dv(wn,{});var ro=A(wn,2);{var Qr=Ge=>{let ni=v(()=>{var Ro;return(Ro=e.live)==null?void 0:Ro.startTime});jd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(ni)}})};V(ro,Ge=>{a()==="LiveWaitingStart"&&Ge(Qr)})}var Cr=A(ro,2);{var io=Ge=>{La(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Cr,Ge=>{a()==="LiveWaitingRecover"&&Ge(io)})}var Ai=A(Cr,2);{var Sn=Ge=>{La(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ai,Ge=>{a()==="LiveWaitingRecord"&&Ge(Sn)})}var Qn=A(Ai,2);{var Tr=Ge=>{var ni=X3();let Ro;var Ss=h(ni);hd(Ss,{get adsSlotId(){return at()},get adsParams(){return Et()},get adsPreviewParam(){return ft()},get adsAutoplayParam(){return Xt()},get duration(){return si()}}),g(ni),k(dn=>Ro=ee(ni,1,"ads-container svelte-jtgjmv",null,Ro,dn),[()=>({hidden:a()!=="ads"})]),y(Ge,ni)};V(Qn,Ge=>{e.showAds&&Qe()&&Ge(Tr)})}var yo=A(Qn,2);{var pr=Ge=>{let ni=v(()=>!St()&&e.showAutoplayNext&&C());xf(Ge,{get title(){return Z()},get thumb(){return fe()},get isHide(){return s(ni)},clickCloseIcon:()=>D(sr,!0)})};V(yo,Ge=>{s(Wo)&&Z()&&fe()&&Ge(pr)})}var Ks=A(yo,2);{var wt=Ge=>{let ni=v(()=>!p());Bm(Ge,{get title(){return e.title},get isHidden(){return s(ni)},onVisibilityChanged:qn,get ref(){return s(xn)},set ref(Ro){D(xn,ge(Ro))}})};V(Ks,Ge=>{s($r)&&Ge(wt)})}var yt=A(Ks,2);{var so=Ge=>{let ni=v(()=>a()==="video"&&p());Qd(Ge,{get isShifted(){return s(ni)}})};V(yt,Ge=>{U()&&Ge(so)})}var Zo=A(yt,2);{var ao=Ge=>{var ni=J3(),Ro=h(ni);vd(Ro,{"aria-label":Wr}),g(ni),y(Ge,ni)};V(Zo,Ge=>{qe()&&Ge(ao)})}var li=A(Zo,2);{var Hi=Ge=>{Gd(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};V(li,Ge=>{Le()&&Ge(Hi)})}var ws=A(li,2);{var Ll=Ge=>{Aa(Ge,{get shifted(){return p()},get captions(){return ye()},get position(){return X()},get playerSize(){return K()}})};V(ws,Ge=>{ve().value!=="off"&&Ge(Ll)})}var fc=A(ws,2);{var Ku=Ge=>{var ni=ex();ni.__contextmenu=Wn,ni.__click=[Z3,j,Io,f,rt,Wi];var Ro=h(ni);Yd(Ro,{}),g(ni),y(Ge,ni)};V(fc,Ge=>{l()&&Ge(Ku)})}var mc=A(fc,2);{var Qu=Ge=>{let ni=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Ro=v(()=>a()==="ads"),Ss=v(()=>e.canRewindLive&&We()!==0);Kd(Ge,{get bottomHidden(){return s(ni)},get bottomNoSmooth(){return R()},get showControls(){return p()},get isAds(){return s(Ro)},get canRewindLive(){return s(Ss)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Wt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Mt()},get nextButtonActive(){return ie()},get prevButtonActive(){return Rt()},get isOneVideoPlaylist(){return Ae()},customFullscreenSupported:zn,toggleFullscreen:Ko,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(Rn)},set playerControlsWrapperRef(dn){D(Rn,ge(dn))},get playerControlsRef(){return s(tn)},set playerControlsRef(dn){D(tn,ge(dn))}})};V(mc,Ge=>{Qe()&&Ge(Qu)})}var vc=A(mc,2);{var Oa=Ge=>{var ni=tx(),Ro=h(ni);let Ss=v(()=>{var dn;return(dn=s(tn))==null?void 0:dn.clientHeight});ec(Ro,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Ss)},returnFocus:()=>{var dn;return(dn=ht())==null?void 0:dn.focus()},get ref(){return s(on)},set ref(dn){D(on,ge(dn))}}),g(ni),y(Ge,ni)};V(vc,Ge=>{!Le()&&a()!=="ads"&&Ge(Oa)})}var gc=A(vc,2);let hc=v(()=>!s(rr));$d(gc,{get isLive(){return tt()},get isHidden(){return s(hc)},get isPlaying(){return Te()},get position(){return X()},get duration(){return We()}});var Vl=A(gc,2);Mm(Vl,{data:yn});var _c=A(Vl,2);$f(_c,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=ht())==null?void 0:Ge.focus()},get visible(){return j()},get playerContainerRef(){return s(Di)},get controlsContainerRef(){return s(Rn)},get position(){return oe()},get menuElementRef(){return s(Qi)},set menuElementRef(Ge){D(Qi,ge(Ge))}});var Rl=A(_c,2);{var Bl=Ge=>{tc(Ge,{onClose:zi,onSelectAutoQuality:()=>{_o("auto"),zi()}})};V(Rl,Ge=>{s(nr)&&Ge(Bl)})}var Nl=A(Rl,2);{var Gu=Ge=>{ya(Ge,{})};V(Nl,Ge=>{s(Po)&&Ge(Gu)})}var Dl=A(Nl,2);{var Yu=Ge=>{Ef(Ge,{})};V(Dl,Ge=>{ke()&&Ge(Yu)})}var ju=A(Dl,2);{var Zu=Ge=>{wd(Ge,{})};V(ju,Ge=>{Ke()&&Ge(Zu)})}y(Ue,kt)}),y(Ie,Ct)},$$slots:{default:!0}}),Ie=>ht(Ie),()=>ht());var ur=A(jo,2);ot(ur,Ie=>D(dt,Ie),()=>s(dt)),g(no),ot(no,Ie=>D(Di,Ie),()=>s(Di));var Kr=A(no,2);{var rs=Ie=>{var xe=nx();y(Ie,xe)};V(Kr,Ie=>{st()&&Ie(rs)})}Pt("mouseenter",no,rn),Pt("mouseleave",no,qi),Pt("click",no,$i,!0),Pt("focusin",no,dr,!0),y(t,qr),H(),o()}ct(["mousemove","contextmenu","click"]);var Ws=require("@vkontakte/videoplayer-core/es2015"),c0=require("@vkontakte/videoplayer-shared/es2015");var ax=L('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),lx=L("<div><!></div>"),dx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
345
346
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
346
347
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
347
348
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -357,7 +358,7 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
357
358
  100% {
358
359
  opacity: 0;
359
360
  }
360
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Su(t,e){F(e,!0),K(t,ox);let i=m(e,"seekStep",3,0),o=J(!1),n=0,a=0,s=J(me(i())),d=y=>{y.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(y):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};xn(()=>{window.clearTimeout(n)});var l=ix();l.__click=d;var u=h(l);{var f=y=>{var p=tx(),b=fe(p),w=A(b,2),_=h(w),C=h(_),T=A(C,2),I=A(T,2);g(_);var M=A(_,2),P=h(M,!0);g(M),g(w),E(k=>{var V,q,Z,H;ee(b,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),ee(C,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(Z=e.side)!=null?Z:""}`,"svelte-nhq2ld"),ee(I,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ve(P,k)},[()=>z("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),$(y,p)};R(u,y=>{r(o)&&y(f)})}g(l),E(()=>{var y;return ee(l,1,`double-click-area ${(y=e.side)!=null?y:""}`,"svelte-nhq2ld")}),$(t,l),U()}lt(["click"]);var nx=(t,e,i)=>{e(!1),i()},rx=L('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),sx={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 ov(t,e){F(e,!0),K(t,sx);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,b=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},_=()=>{e.clickCloseIcon(),b()};Gt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=He(),T=fe(C);{var I=M=>{var P=rx(),k=A(fe(P),2),V=h(k),q=h(V),Z=h(q,!0);g(q);var H=A(q,2);ca(H,{onClick:_}),g(V);var G=A(V,2);G.__click=[nx,u,y];var oe=h(G),X=h(oe),ae=h(X);let ue;var Pe=A(ae,2);{var Le=re=>{gd(re,{get isRunning(){return a()},onTimerEnded:w})};R(Pe,re=>{n()&&re(Le)})}g(X),g(oe);var he=A(oe,2),le=h(he),Ae=h(le,!0);g(le),g(he),g(G),g(k),E((re,N)=>{ve(Z,re),at(X,`background-image: url('${e.thumb}')`),ue=ee(ae,1,"thumb-overlay svelte-1qdxi6t",null,ue,N),ve(Ae,e.title)},[()=>n()?z("end_screen_next_video"):z("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(M,P)};R(T,M=>{e.isHide||M(I)})}$(t,C),U(),o()}lt(["click"]);var J1=require("@vkontakte/videoplayer-core/es2015");var e0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Gt(()=>{J1.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),xn(()=>{i==null||i(),clearTimeout(o)})};var t0=require("@vkontakte/videoplayer-core/es2015");var Cu=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 i0=require("@vkontakte/videoplayer-core/es2015"),o0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,u=()=>e().querySelector("video"),f=()=>i0.clientChecker.device.isIOS&&we(s)===t0.VideoFormat.DASH_LIVE_CMAF,y=()=>{l==null||l(),l=null},p=b=>{if(y(),!f()||!b)return;let w=u();if(!w)return;let _=new Cu(w),C=we(d),T=we(a),I=we(n);for(let k of C)T.some(q=>q.value===k.id)&&_.attach(k,I.value===k.id);let M=d.subscribe(k=>{for(let V of k)_.updateSrc(V)}),P=()=>{let k=_.getCurrentShowingId();o(we(a).find(V=>V.value===k))};w.textTracks.addEventListener("change",P),l=()=>{M(),_.detachAll(),w.textTracks.removeEventListener("change",P)}};Gt(()=>i.subscribe(p)),xn(y)};var ax=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},lx=L("<!> <!>",1),dx=L("<div><!></div>"),cx=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),ux=L("<div><!></div>"),px=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),fx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),mx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),vx={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 nv(t,e){var ko,Eo;F(e,!0),K(t,vx);let[i,o]=Oe(),n=()=>S(vt,"$playerPhase",i),a=()=>S(xt,"$isLoaderVisible",i),s=()=>S(et,"$adPlaybackState",i),d=()=>S(gt,"$crashed",i),l=()=>S(qo,"$notificationsToShow$",i),u=()=>S(ot,"$playbackState$",i),f=()=>S(Ge,"$graphIsOpened$",i),y=()=>S(Si,"$interactiveHideMobileControls",i),p=()=>S(Ft,"$isEnded$",i),b=()=>S(Vo,"$isInteractiveExpectation$",i),w=()=>S(Ye,"$controlsVisible",i),_=()=>S(Hi,"$touched",i),C=()=>S(Co,"$autoplayNextEnabled$",i),T=()=>S(Sn,"$postrollPassed",i),I=()=>S(Bo,"$bottomNoSmooth",i),M=()=>S(Nt,"$videoSize",i),P=()=>S(po,"$playerSize",i),k=()=>S(Ht,"$isFullscreen",i),V=()=>S(yt,"$position$",i),q=()=>S(ft,"$duration$",i),Z=()=>S(Wn,"$loadedMetadata",i),H=()=>S(it,"$settingsMenuVisible",i),G=()=>S(Li,"$scrubbingInProgress",i),oe=()=>S(Zi,"$volumeChangingInProgress",i),X=()=>S(co,"$chromecastConnected$",i),ae=()=>S(li,"$isControlsAvailable",i),ue=()=>S(Ri,"$isInteractiveTime$",i),Pe=()=>S(Vi,"$isActiveLive",i),Le=()=>S(Jt,"$settingsMenuOpenedByKeyboard",i),he=()=>S(Ve,"$language$",i),le=()=>S(Wo,"$disabledControls$",i),Ae=()=>S(Lo,"$is3DVideo",i),re=()=>S(ui,"$icon3DVideoVisible",i),N=()=>S(mn,"$chromecastDeviceName$",i),pe=()=>S(uo,"$currentSubtitle$",i),be=()=>S(ni,"$currentSubtitleCaptions$",i),We=()=>S(dr,"$realDuration$",i),se=()=>S(ti,"$isLive$",i),Q=()=>S(xi,"$isPlaying$",i),_e=()=>S(Bt,"$debugPanelVisible",i),te=m(e,"videoContainer",15),Fe=m(e,"adsSlotId",3,void 0),Xe=m(e,"adsParams",3,void 0),Se=m(e,"adsPreviewParam",3,void 0),Re=m(e,"adsAutoplayParam",3,void 0),ke=m(e,"duration",3,void 0),ze=m(e,"logoTargetUrl",3,""),ct=m(e,"showNextPrevButtons",3,!1),ut=m(e,"nextButtonActive",3,!1),nt=m(e,"prevButtonActive",3,!1),At=m(e,"endScreenVideoTitle",3,void 0),bt=m(e,"endScreenVideoThumb",3,void 0),Zt=m(e,"isOneVideoPlaylist",3,!1),ei=m(e,"shadowRootContainer",3,void 0),Rt=m(e,"outerContainerRef",3,void 0),Ot=m(e,"showMiniTimer",3,!1),O=m(e,"fullScreenTarget",3,void 0),$e=m(e,"playerStarted",3,!1),ne=m(e,"showEndScreen",3,!0),{notifications$:Ne,graphIsOpened$:Ge}=ao(),Ze=e.store.getLogger().createComponentLog("Root component"),Ve=e.store.interfaceLanguage$,ot=e.store.state.playbackState$,et=e.store.ads.playbackState,yt=e.store.state.positionWithScrubbing$,ft=e.store.state.duration$,vt=e.store.playerPhase,Ht=e.store.ui.isFullscreen,Ye=e.store.ui.controlsVisible,li=e.store.ui.isControlsAvailable,Si=e.store.ui.interactiveHideMobileControls,it=e.store.ui.settingsMenu.visible$,Jt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Li=e.store.ui.scrubbingInProgress,Zi=e.store.ui.volumeChangingInProgress,Bt=e.store.ui.debugPanelVisible,xt=e.store.state.isLoaderVisible,Ft=e.store.state.isEnded$,co=e.store.state.chromecastConnected$,mn=e.store.state.chromecastDeviceName$,Sn=e.store.ads.postrollPassed,wo=e.store.ui.mobileUnmuteButtonExpanded,Y=e.store.ui.mobileUnmuteButtonVisible,ti=e.store.state.isLive$,xi=e.store.state.isPlaying$,Vi=e.store.state.isActiveLive$,ci=e.store.state.isRewindableLive$,gt=e.store.state.crashed$,hi=e.store.webApi.annotationsApi,tt=e.store.webApi.pictureInPictureApi,Nt=e.store.state.videoSize$,uo=e.store.state.currentSubtitle$,ni=e.store.state.currentSubtitleCaptions$,dr=e.store.state.duration$,po=e.store.ui.playerSize,Lo=e.store.ui.is3DVideo,ui=e.store.ui.icon3DVideoVisible,kt=e.store.state.isInteractive,Ri=e.store.state.isInteractiveTime$,Vo=e.store.state.isInteractiveExpectation$,gi=e.store.state.hasInteractiveBranches,Wo=e.store.ui.controls.disabledControls$,Hi=e.store.ui.touched,So=e.store.ui.overlayContainer$,Co=e.store.ui.autoplayNextEnabled$,Wn=e.store.state.loadedMetadata$,Fi=e.store.actions.internal.closeSettingsMenu,Cn=(ko=e.store.callbacks)==null?void 0:ko.onDisabledPlayPrevChapterClick,To=(Eo=e.store.callbacks)==null?void 0:Eo.onDisabledSeekToInteractiveClick,Ro=e.store.actions.internal.setQuality,Tn=J(void 0),Er=J(void 0),cr=J(void 0),qn=J(void 0),In,kn,Kn,fo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),rt=J(void 0),{closeNotification:En,notificationsToShow$:qo}=Ne,Pn=v(()=>!!l().slow_video),An=()=>En("slow_video"),Bo=de(!1),ur,Ko=J(!1),Mn=v(()=>u()!==Ps.PlaybackState.PLAYING),Qo=J(!1),mo=v(()=>f()||y()||!r(Ko)&&(p()&&!!gi||r(Mn)&&b())),Ui=J(!0),Ln=v(()=>e.uiConfig.features.thumbTimer&&Ot()&&n()==="video"&&!w()&&!d()&&!kt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),No=J(!1),Go=v(()=>(ne()||e.showAutoplayNext&&C())&&!!At()&&!!bt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(No)),Do=J(!1);tt==null||tt.setContext(Ql());let Vn=pt=>{clearTimeout(kn),pt&&(Y.set(!0),wo.set(!0),kn=setTimeout(()=>{wo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),kt||Wi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Vn});let zi=()=>{clearTimeout(In),D(Ko,!1),y()&&Si.set(!1)},Wi=pt=>{zi(),D(Ko,!0),In=setTimeout(()=>D(Ko,!1),pt);let Xt=pt-100;ur=setTimeout(()=>{I()&&Bo.set(!1)},Xt>0?Xt:pt)},pr=Lo.subscribe(pt=>{ui.set(pt),pt&&(clearTimeout(Kn),Kn=setTimeout(()=>ui.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Oo=(...Xt)=>Tt(this,[...Xt],function*(pt=$s()){var si,wi,qi,Ho,Bi,Yo;if(pt&&!Ps.clientChecker.device.isIOS){let pi=ld(),jo=vn(),Zo=Ps.clientChecker.browser.isSamsungBrowser&&pi===ei();pt=pi===jo||Zo}if(pt){Wi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield tt==null?void 0:tt.remove()}catch(pi){Ze({message:String(pi)})}try{let pi=(si=M())!=null&&si.width&&((wi=M())!=null&&wi.height)?M():P();yield Yh(pi)}catch(pi){Ze({message:String(pi)})}}Ht.set(pt),e.store.getAdmanWrapper().setFullscreen(pt),k()?(Ho=(qi=e.store.callbacks)==null?void 0:qi.onFullscreenEnter)==null||Ho.call(qi):(Yo=(Bi=e.store.callbacks)==null?void 0:Bi.onFullscreenExit)==null||Yo.call(Bi)}),Qn=pt=>{let Xt=pt;po.set({width:Xt.target.width,height:Xt.target.height})};Gt(()=>{var pt;return Zc(Oo),e.uiConfig.features.annotationsInside&&(hi==null||hi.init(r(Tn))),sa(tt)&&(tt==null||tt.assignPlayerContainer(r(Tn)),tt==null||tt.registryExternalEventHandlers({resize:Qn})),D(Ui,!Ps.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((pt=te().parentElement)==null||pt.insertBefore(e.interactiveContainer,te().nextSibling)),()=>{clearTimeout(In),clearTimeout(ur),clearTimeout(kn),clearTimeout(Kn),pr(),tt==null||tt.dispose().catch(Xt=>{Ze({message:String(Xt)})}),Xc(Oo)}});let Rn=J(!0),Gn=J(!0),fr=pt=>{let Xt=V()+(pt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Xt<0?(D(Rn,!1),Xt=0):Xt>=q()&&(D(Gn,!1),Xt=q()),D(Qo,!0),e.seekTime(Xt)},vn=()=>{let pt=Ps.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Rt()?r(Tn):Rt(),Xt=pt.getRootNode(),si=Xt instanceof ShadowRoot?Xt.host:Xt,wi=O()instanceof HTMLElement&&O().contains(si);return e.uiConfig.allowChangingFullscreenTarget&&O()&&wi?O():pt},mr=()=>Tt(this,null,function*(){try{if($s())yield jc(document),Ze({message:"exit fullscreen"});else{if(Ze({message:"request fullscreen"}),Ps.clientChecker.device.isIOS&&!Z())return;yield Yc(vn())}}catch(pt){Ze({message:String(pt)})}}),vr=()=>{Fi()},Yn=pt=>{if(pt.preventDefault(),H()){vr();return}if(!$e()){e.firstStart(),Wi(e.uiConfig.controls.hideTimeoutCursor);return}D(Qo,!1),w()?zi():Wi(e.uiConfig.controls.hideTimeoutMobile)},Pr=()=>{Hi.set(!0)},Ar=()=>{kt||(Bo.set(!0),Wi(e.uiConfig.controls.hideTimeoutCursor))},Bn=pt=>{Cn&&(Cn(pt),Wi(e.uiConfig.controls.hideTimeoutMobile))},ii=pt=>{To&&(To(pt),Wi(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{So.set(r(rt))}),Ue(()=>{Ye.set((r(Mn)||H()||G()||oe()||X()||!r(Go)&&(p()||r(Ko)&&!r(Qo)))&&!r(mo)&&n()==="video"&&!d()&&ae())}),Ue(()=>{!G()&&r(Do)&&!ue()&&Wi(e.uiConfig.controls.hideTimeoutMobile),D(Do,me(G()))}),Ue(()=>{D(Rn,V()>0),D(Gn,me(!Pe()&&V()<q()))}),Ue(()=>{cl(r(qn),H(),Le())});let jn=z("aria_label_video_player"),Zn=z("video360");e0({fullScreenChangeHandler:Oo,getFullscreenTarget:vn}),o0({store:e.store,getFullscreenTarget:vn});var st=mx();Pt("blur",qs,vr),De(st,"aria-label",jn);var wt=h(st);Ta(wt,{onClick:Yn,get videoContainer(){return te()},set videoContainer(pt){te(pt)}});var ki=A(wt,2);Zs(ki,()=>"slot",!1,(pt,Xt)=>{Ie(pt,null,{name:Ca})});var Io=A(ki,2);js(Io,he,pt=>{var Xt=fx(),si=fe(Xt);let wi=v(()=>n()!=="thumb"||d()||kt&&e.autoplay);xa(si,{get hidden(){return r(wi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var qi=A(si,2);{var Ho=Be=>{var ht=lx(),ai=fe(ht);{var to=Di=>{let ir=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Su(Di,{side:"left",get seekStep(){return r(ir)},handleSingleFirstClick:Yn,handleSecondClick:()=>fr("backward")})};R(ai,Di=>{r(Rn)&&Di(to)})}var go=A(ai,2);{var Qr=Di=>{let ir=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Su(Di,{side:"right",get seekStep(){return r(ir)},handleSingleFirstClick:Yn,handleSecondClick:()=>fr("forward")})};R(go,Di=>{r(Gn)&&Di(Qr)})}$(Be,ht)};R(qi,Be=>{e.canRewindLive&&ci&&!le().has("TIMELINE")&&Be(Ho)})}var Bi=A(qi,2);{var Yo=Be=>{let ht=v(()=>{var ai;return(ai=e.live)==null?void 0:ai.startTime});zd(Be,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ht)}})};R(Bi,Be=>{n()==="LiveWaitingStart"&&Be(Yo)})}var pi=A(Bi,2);{var jo=Be=>{wa(Be,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(pi,Be=>{n()==="LiveWaitingRecover"&&Be(jo)})}var Zo=A(pi,2);{var Mr=Be=>{wa(Be,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Zo,Be=>{n()==="LiveWaitingRecord"&&Be(Mr)})}var Xn=A(Zo,2);{var Lr=Be=>{var ht=dx();let ai;var to=h(ht);dd(to,{get adsSlotId(){return Fe()},get adsParams(){return Xe()},get adsPreviewParam(){return Se()},get adsAutoplayParam(){return Re()},get duration(){return ke()}}),g(ht),E(go=>ai=ee(ht,1,"ads-container svelte-7yl31d",null,ai,go),[()=>({hidden:n()!=="ads"})]),$(Be,ht)};R(Xn,Be=>{e.showAds&&$e()&&Be(Lr)})}var gn=A(Xn,2);{var Jn=Be=>{let ht=v(()=>!ne()&&e.showAutoplayNext&&C());ov(Be,{get title(){return At()},get thumb(){return bt()},get isHide(){return r(ht)},clickCloseIcon:()=>D(No,!0)})};R(gn,Be=>{r(Go)&&At()&&bt()&&Be(Jn)})}var er=A(gn,2);{var qr=Be=>{Hd(Be,{})};R(er,Be=>{Ae()&&Be(qr)})}var tr=A(er,2);{var Xo=Be=>{var ht=cx(),ai=h(ht);ad(ai,{"aria-label":Zn}),g(ht),$(Be,ht)};R(tr,Be=>{re()&&Be(Xo)})}var gr=A(tr,2);{var Jo=Be=>{Fd(Be,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};R(gr,Be=>{X()&&Be(Jo)})}var hr=A(gr,2);{var Kr=Be=>{ya(Be,{get shifted(){return w()},get captions(){return be()},get position(){return V()},get playerSize(){return P()},isMobile:!0})};R(hr,Be=>{pe().value!=="off"&&Be(Kr)})}var Vr=A(hr,2);{var Rr=Be=>{var ht=ux();ht.__click=[ax,H,it,vr];var ai=h(ht);Ud(ai,{}),g(ht),$(Be,ht)};R(Vr,Be=>{d()&&Be(Rr)})}var Je=A(Vr,2);{var zt=Be=>{let ht=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),ai=v(()=>n()==="ads"),to=v(()=>e.canRewindLive&&We()!==0);Od(Be,{get bottomHidden(){return r(ht)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(ai)},get canRewindLive(){return r(to)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ct()},get nextButtonActive(){return ut()},get prevButtonActive(){return nt()},get isOneVideoPlaylist(){return Zt()},get customFullscreenSupported(){return r(Ui)},get endScreenShown(){return r(Go)},toggleFullscreen:mr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Bn,onDisabledSeekToInteractiveClick:ii,get playerControlsWrapperRef(){return r(Er)},set playerControlsWrapperRef(go){D(Er,me(go))},get playerControlsRef(){return r(cr)},set playerControlsRef(go){D(cr,me(go))}})};R(Je,Be=>{$e()&&Be(zt)})}var Ni=A(Je,2);{var en=Be=>{var ht=px(),ai=h(ht);Qd(ai,{get supportLink(){return e.supportLink},returnFocus:n0.noop,get ref(){return r(qn)},set ref(to){D(qn,me(to))}}),g(ht),$(Be,ht)};R(Ni,Be=>{H()&&Be(en)})}var Fo=A(Ni,2);let Nn=v(()=>!r(Ln));pd(Fo,{get isLive(){return se()},get isHidden(){return r(Nn)},get isPlaying(){return Q()},get position(){return V()},get duration(){return q()}});var hn=A(Fo,2);{var Ce=Be=>{ua(Be,{})};R(hn,Be=>{r(fo)&&Be(Ce)})}var mt=A(hn,2);{var Qt=Be=>{vd(Be,{})};R(mt,Be=>{_e()&&Be(Qt)})}var di=A(mt,2);{var eo=Be=>{Gd(Be,{onClose:An,onSelectAutoQuality:()=>{Ro("auto"),An()}})};R(di,Be=>{r(Pn)&&Be(eo)})}$(pt,Xt)});var vo=A(Io,2);_t(vo,pt=>D(rt,pt),()=>r(rt)),g(st),_t(st,pt=>D(Tn,pt),()=>r(Tn)),Pt("click",st,Pr,!0),Pt("focusin",st,Ar,!0),$(t,st),U(),o()}lt(["click"]);function Tu(t){let e="";return lo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),lo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),lo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),lo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),lo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),lo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),lo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),lo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),lo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),lo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),lo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),lo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),lo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),lo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),lo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),lo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),lo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),lo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),lo(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function lo(t){return typeof t=="string"&&!t.includes(";")}var r0=require("@vkontakte/videoplayer-shared/es2015");var gx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),hx={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 rv(t,e){F(e,!0),K(t,hx);let[i,o]=Oe(),n=()=>S(oe,"$playerSize",i),a=()=>S(k,"$isPlaying$",i),s=()=>S(M,"$duration$",i),d=()=>S(Z,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),u=()=>S(I,"$crashed$",i),f=()=>S(V,"$currentSubtitle$",i),y=()=>S(q,"$currentSubtitleCaptions$",i),p=()=>S(P,"$positionExact$",i),b=()=>S(H,"$isLive$",i),w=()=>S(G,"$isRewindableLive$",i),_=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:k,currentSubtitle$:V,currentSubtitleCaptions$:q,positionWithScrubbing$:Z,isLive$:H,isRewindableLive$:G},ui:{playerSize:oe,controls:X},actions:{internal:{getVideoElement:ae}}}=Te(),ue=8,Pe=J(!1),Le=me({}),he=()=>{D(Pe,!0)},le=()=>{D(Pe,!1)},Ae=(0,r0.debounceFn)(hl,260);Ue(()=>{n(),Ae(ae(),X,Le,r(Pe))});let re=v(()=>a()?pn(s()-d()):pn(isFinite(s())?s():_()));var N=gx(),pe=h(N);Ta(pe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(ke){C(ke)}});var be=A(pe,2);Zs(be,()=>"slot",!1,(ke,ze)=>{Ie(ke,null,{name:Ca})});var We=A(be,2);let se=v(()=>l()!=="thumb"||u());xa(We,{get hidden(){return r(se)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Q=A(We,2);{var _e=ke=>{ya(ke,{shifted:!1,get captions(){return y()},get position(){return p()},get playerSize(){return n()}})};R(Q,ke=>{f().value!=="off"&&ke(_e)})}var te=A(Q,2),Fe=h(te);ud(Fe,{get isLive(){return b()},get isPlaying(){return a()},get time(){return r(re)}}),g(te);var Xe=A(te,2);let Se;var Re=h(Xe);va(Re,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ue,tooltipRightOffset:ue,get ref(){return Le.timeline},set ref(ke){Le.timeline=ke}}),g(Xe),g(N),E(ke=>Se=ee(Xe,1,"timeline svelte-1qfjf44",null,Se,ke),[()=>({visible:r(Pe)})]),Pt("mouseenter",N,he),Pt("mouseleave",N,le),$(t,N),U(),o()}var _x=L("<div><!></div>"),bx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
361
+ }.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 Au(t,e){O(e,!0),q(t,dx);let i=m(e,"seekStep",3,0),o=J(!1),n=0,a=0,r=J(ge(i())),d=$=>{$.stopPropagation(),a+=1,D(r,i()*(a-1)),a===1?e.handleSingleFirstClick($):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};kn(()=>{window.clearTimeout(n)});var l=lx();l.__click=d;var u=h(l);{var f=$=>{var p=ax(),_=_e(p),w=A(_,2),b=h(w),C=h(b),T=A(C,2),I=A(T,2);g(b);var M=A(b,2),P=h(M,!0);g(M),g(w),k(E=>{var R,W,K,U;ee(_,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),ee(C,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(K=e.side)!=null?K:""}`,"svelte-nhq2ld"),ee(I,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),be(P,E)},[()=>F("doubletap_seek_step",{seconds:s(r).toFixed(0)})]),y($,p)};V(u,$=>{s(o)&&$(f)})}g(l),k(()=>{var $;return ee(l,1,`double-click-area ${($=e.side)!=null?$:""}`,"svelte-nhq2ld")}),y(t,l),H()}ct(["click"]);var cx=(t,e,i)=>{e(!1),i()},ux=L('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),px={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 pv(t,e){O(e,!0),q(t,px);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),r=Ee(),d=r.ui.autoplayNextEnabled$,l=r.ui.timerNextVideoRunning$,u=r.actions.internal.nextVideoClick,f=r.actions.internal.nextVideoAnnouncementShow,$=r.actions.internal.nextVideoAnnouncementClick,p=r.actions.internal.nextVideoAnnouncementAuto,_=r.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},b=()=>{e.clickCloseIcon(),_()};Ht(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Fe(),T=_e(C);{var I=M=>{var P=ux(),E=A(_e(P),2),R=h(E),W=h(R),K=h(W,!0);g(W);var U=A(W,2);$a(U,{onClick:b}),g(R);var j=A(R,2);j.__click=[cx,u,$];var ae=h(j),G=h(ae),ce=h(G);let de;var Le=A(ce,2);{var Ne=le=>{Sd(le,{get isRunning(){return a()},onTimerEnded:w})};V(Le,le=>{n()&&le(Ne)})}g(G),g(ae);var he=A(ae,2),ue=h(he),Me=h(ue,!0);g(ue),g(he),g(j),g(E),k((le,N)=>{be(K,le),lt(G,`background-image: url('${e.thumb}')`),de=ee(ce,1,"thumb-overlay svelte-1qdxi6t",null,de,N),be(Me,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),y(M,P)};V(T,M=>{e.isHide||M(I)})}y(t,C),H(),o()}ct(["click"]);var r0=require("@vkontakte/videoplayer-core/es2015");var s0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ht(()=>{r0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let r=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",r),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",r),a.removeEventListener("webkitendfullscreen",d)}},0))}),kn(()=>{i==null||i(),clearTimeout(o)})};var a0=require("@vkontakte/videoplayer-core/es2015");var Mu=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 l0=require("@vkontakte/videoplayer-core/es2015"),d0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:r,availableTextTracks$:d}=t.state,l=null,u=()=>e().querySelector("video"),f=()=>l0.clientChecker.device.isIOS&&we(r)===a0.VideoFormat.DASH_LIVE_CMAF,$=()=>{l==null||l(),l=null},p=_=>{if($(),!f()||!_)return;let w=u();if(!w)return;let b=new Mu(w),C=we(d),T=we(a),I=we(n);for(let E of C)T.some(W=>W.value===E.id)&&b.attach(E,I.value===E.id);let M=d.subscribe(E=>{for(let R of E)b.updateSrc(R)}),P=()=>{let E=b.getCurrentShowingId();o(we(a).find(R=>R.value===E))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};Ht(()=>i.subscribe(p)),kn($)};var fx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},mx=L("<!> <!>",1),vx=L("<div><!></div>"),gx=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),hx=L("<div><!></div>"),_x=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),bx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),$x=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),yx={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 fv(t,e){var Ur,wr;O(e,!0),q(t,yx);let[i,o]=Oe(),n=()=>S(ht,"$playerPhase",i),a=()=>S(eo,"$isLoaderVisible",i),r=()=>S(nt,"$adPlaybackState",i),d=()=>S(fi,"$crashed",i),l=()=>S(Rn,"$notificationsToShow$",i),u=()=>S(Qe,"$playbackState$",i),f=()=>S(Ae,"$graphIsOpened$",i),$=()=>S(Gt,"$interactiveHideMobileControls",i),p=()=>S(rt,"$isEnded$",i),_=()=>S(Ho,"$isInteractiveExpectation$",i),w=()=>S(bt,"$controlsVisible",i),b=()=>S(Ei,"$touched",i),C=()=>S(Mn,"$autoplayNextEnabled$",i),T=()=>S(Ii,"$postrollPassed",i),I=()=>S(Bn,"$bottomNoSmooth",i),M=()=>S(Bt,"$videoSize",i),P=()=>S(Bi,"$playerSize",i),E=()=>S(Yt,"$isFullscreen",i),R=()=>S(et,"$position$",i),W=()=>S(St,"$duration$",i),K=()=>S(Uo,"$loadedMetadata",i),U=()=>S(Je,"$settingsMenuVisible",i),j=()=>S(Ji,"$scrubbingInProgress",i),ae=()=>S(Ui,"$volumeChangingInProgress",i),G=()=>S(xt,"$chromecastConnected$",i),ce=()=>S(Ti,"$isControlsAvailable",i),de=()=>S(Ni,"$isInteractiveTime$",i),Le=()=>S(Ri,"$isActiveLive",i),Ne=()=>S(ti,"$settingsMenuOpenedByKeyboard",i),he=()=>S(me,"$language$",i),ue=()=>S(ci,"$disabledControls$",i),Me=()=>S(Oo,"$is3DVideo",i),le=()=>S(xi,"$icon3DVideoVisible",i),N=()=>S(pi,"$chromecastDeviceName$",i),je=()=>S(ho,"$currentSubtitle$",i),te=()=>S(ii,"$currentSubtitleCaptions$",i),qe=()=>S(er,"$realDuration$",i),re=()=>S(jt,"$isLive$",i),ve=()=>S(mi,"$isPlaying$",i),ye=()=>S(go,"$debugPanelVisible",i),X=m(e,"videoContainer",15),We=m(e,"adsSlotId",3,void 0),tt=m(e,"adsParams",3,void 0),Te=m(e,"adsPreviewParam",3,void 0),oe=m(e,"adsAutoplayParam",3,void 0),ke=m(e,"duration",3,void 0),Ke=m(e,"logoTargetUrl",3,""),st=m(e,"showNextPrevButtons",3,!1),ut=m(e,"nextButtonActive",3,!1),at=m(e,"prevButtonActive",3,!1),Et=m(e,"endScreenVideoTitle",3,void 0),ft=m(e,"endScreenVideoThumb",3,void 0),Xt=m(e,"isOneVideoPlaylist",3,!1),si=m(e,"shadowRootContainer",3,void 0),Wt=m(e,"outerContainerRef",3,void 0),Mt=m(e,"showMiniTimer",3,!1),ie=m(e,"fullScreenTarget",3,void 0),Rt=m(e,"playerStarted",3,!1),Z=m(e,"showEndScreen",3,!0),{notifications$:fe,graphIsOpened$:Ae}=mo(),Be=e.store.getLogger().createComponentLog("Root component"),me=e.store.interfaceLanguage$,Qe=e.store.state.playbackState$,nt=e.store.ads.playbackState,et=e.store.state.positionWithScrubbing$,St=e.store.state.duration$,ht=e.store.playerPhase,Yt=e.store.ui.isFullscreen,bt=e.store.ui.controlsVisible,Ti=e.store.ui.isControlsAvailable,Gt=e.store.ui.interactiveHideMobileControls,Je=e.store.ui.settingsMenu.visible$,ti=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ji=e.store.ui.scrubbingInProgress,Ui=e.store.ui.volumeChangingInProgress,go=e.store.ui.debugPanelVisible,eo=e.store.state.isLoaderVisible,rt=e.store.state.isEnded$,xt=e.store.state.chromecastConnected$,pi=e.store.state.chromecastDeviceName$,Ii=e.store.ads.postrollPassed,Io=e.store.ui.mobileUnmuteButtonExpanded,Y=e.store.ui.mobileUnmuteButtonVisible,jt=e.store.state.isLive$,mi=e.store.state.isPlaying$,Ri=e.store.state.isActiveLive$,di=e.store.state.isRewindableLive$,fi=e.store.state.crashed$,mt=e.store.webApi.annotationsApi,it=e.store.webApi.pictureInPictureApi,Bt=e.store.state.videoSize$,ho=e.store.state.currentSubtitle$,ii=e.store.state.currentSubtitleCaptions$,er=e.store.state.duration$,Bi=e.store.ui.playerSize,Oo=e.store.ui.is3DVideo,xi=e.store.ui.icon3DVideoVisible,_t=e.store.state.isInteractive,Ni=e.store.state.isInteractiveTime$,Ho=e.store.state.isInteractiveExpectation$,An=e.store.state.hasInteractiveBranches,ci=e.store.ui.controls.disabledControls$,Ei=e.store.ui.touched,Fo=e.store.ui.overlayContainer$,Mn=e.store.ui.autoplayNextEnabled$,Uo=e.store.state.loadedMetadata$,Eo=e.store.actions.internal.closeSettingsMenu,$n=(Ur=e.store.callbacks)==null?void 0:Ur.onDisabledPlayPrevChapterClick,en=(wr=e.store.callbacks)==null?void 0:wr.onDisabledSeekToInteractiveClick,_o=e.store.actions.internal.setQuality,ko=J(void 0),Or=J(void 0),_r=J(void 0),tr=J(void 0),ir,or,Ln,os=v(()=>(n()==="video"&&a()||n()==="ads"&&r()==="inactive")&&!d()),Vn=J(void 0),{closeNotification:Di,notificationsToShow$:Rn}=fe,tn=v(()=>!!l().slow_video),on=()=>Di("slow_video"),Bn=se(!1),Nn,zo=J(!1),Hr=v(()=>u()!==Ws.PlaybackState.PLAYING),Dn=J(!1),nr=v(()=>f()||$()||!s(zo)&&(p()&&!!An||s(Hr)&&_())),zi=J(!0),Po=v(()=>e.uiConfig.features.thumbTimer&&Mt()&&n()==="video"&&!w()&&!d()&&!_t&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),dt=J(!1),Jt=v(()=>(Z()||e.showAutoplayNext&&C())&&!!Et()&&!!ft()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!s(dt)),br=J(!1);it==null||it.setContext(td());let On=$t=>{clearTimeout(or),$t&&(Y.set(!0),Io.set(!0),or=setTimeout(()=>{Io.set(!1)},e.uiConfig.controls.collapseMobileUnmute),_t||Oi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:On});let yn=()=>{clearTimeout(ir),D(zo,!1),$()&&Gt.set(!1)},Oi=$t=>{yn(),D(zo,!0),ir=setTimeout(()=>D(zo,!1),$t);let ai=$t-100;Nn=setTimeout(()=>{I()&&Bn.set(!1)},ai>0?ai:$t)},Hn=Oo.subscribe($t=>{xi.set($t),$t&&(clearTimeout(Ln),Ln=setTimeout(()=>xi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ao=(...ai)=>Tt(this,[...ai],function*($t=Vs()){var qo,Ko,Wi,Wn,rn,dr;if($t&&!Ws.clientChecker.device.isIOS){let qi=gd(),sn=rr(),Ze=Ws.clientChecker.browser.isSamsungBrowser&&qi===si();$t=qi===sn||Ze}if($t){Oi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield it==null?void 0:it.remove()}catch(qi){Be({message:String(qi)})}try{let qi=(qo=M())!=null&&qo.width&&((Ko=M())!=null&&Ko.height)?M():P();yield n1(qi)}catch(qi){Be({message:String(qi)})}}Yt.set($t),e.store.getAdmanWrapper().setFullscreen($t),E()?(Wn=(Wi=e.store.callbacks)==null?void 0:Wi.onFullscreenEnter)==null||Wn.call(Wi):(dr=(rn=e.store.callbacks)==null?void 0:rn.onFullscreenExit)==null||dr.call(rn)}),Fn=$t=>{let ai=$t;Bi.set({width:ai.target.width,height:ai.target.height})};Ht(()=>{var $t;return ou(Ao),e.uiConfig.features.annotationsInside&&(mt==null||mt.init(s(ko))),ga(it)&&(it==null||it.assignPlayerContainer(s(ko)),it==null||it.registryExternalEventHandlers({resize:Fn})),D(zi,!Ws.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&(($t=X().parentElement)==null||$t.insertBefore(e.interactiveContainer,X().nextSibling)),()=>{clearTimeout(ir),clearTimeout(Nn),clearTimeout(or),clearTimeout(Ln),Hn(),it==null||it.dispose().catch(ai=>{Be({message:String(ai)})}),nu(Ao)}});let Mo=J(!0),Un=J(!0),zn=$t=>{let ai=R()+($t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ai<0?(D(Mo,!1),ai=0):ai>=W()&&(D(Un,!1),ai=W()),D(Dn,!0),e.seekTime(ai)},rr=()=>{let $t=Ws.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Wt()?s(ko):Wt(),ai=$t.getRootNode(),qo=ai instanceof ShadowRoot?ai.host:ai,Ko=ie()instanceof HTMLElement&&ie().contains(qo);return e.uiConfig.allowChangingFullscreenTarget&&ie()&&Ko?ie():$t},$r=()=>Tt(this,null,function*(){try{if(Vs())yield iu(document),Be({message:"exit fullscreen"});else{if(Be({message:"request fullscreen"}),Ws.clientChecker.device.isIOS&&!K())return;yield tu(rr())}}catch($t){Be({message:String($t)})}}),sr=()=>{Eo()},Wo=$t=>{if($t.preventDefault(),U()){sr();return}if(!Rt()){e.firstStart(),Oi(e.uiConfig.controls.hideTimeoutCursor);return}D(Dn,!1),w()?yn():Oi(e.uiConfig.controls.hideTimeoutMobile)},Fr=()=>{Ei.set(!0)},ar=()=>{_t||(Bn.set(!0),Oi(e.uiConfig.controls.hideTimeoutCursor))},yr=$t=>{$n&&($n($t),Oi(e.uiConfig.controls.hideTimeoutMobile))},nn=$t=>{en&&(en($t),Oi(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Fo.set(s(Vn))}),ze(()=>{bt.set((s(Hr)||U()||j()||ae()||G()||!s(Jt)&&(p()||s(zo)&&!s(Dn)))&&!s(nr)&&n()==="video"&&!d()&&ce())}),ze(()=>{!j()&&s(br)&&!de()&&Oi(e.uiConfig.controls.hideTimeoutMobile),D(br,ge(j()))}),ze(()=>{D(Mo,R()>0),D(Un,ge(!Le()&&R()<W()))}),ze(()=>{ml(s(tr),U(),Ne())});let Zt=F("aria_label_video_player"),bo=F("video360");s0({fullScreenChangeHandler:Ao,getFullscreenTarget:rr}),d0({store:e.store,getFullscreenTarget:rr});var Lo=$x();Pt("blur",ta,sr),De(Lo,"aria-label",Zt);var lr=h(Lo);Ba(lr,{onClick:Wo,get videoContainer(){return X()},set videoContainer($t){X($t)}});var xr=A(lr,2);aa(xr,()=>"slot",!1,($t,ai)=>{Pe($t,null,{name:Ra})});var ki=A(xr,2);sa(ki,he,$t=>{var ai=bx(),qo=_e(ai);let Ko=v(()=>n()!=="thumb"||d()||_t&&e.autoplay);Ma(qo,{get hidden(){return s(Ko)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Wi=A(qo,2);{var Wn=xe=>{var Ct=mx(),Kt=_e(Ct);{var Pi=kt=>{let oi=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Au(kt,{side:"left",get seekStep(){return s(oi)},handleSingleFirstClick:Wo,handleSecondClick:()=>zn("backward")})};V(Kt,kt=>{s(Mo)&&kt(Pi)})}var yi=A(Kt,2);{var Ue=kt=>{let oi=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Au(kt,{side:"right",get seekStep(){return s(oi)},handleSingleFirstClick:Wo,handleSecondClick:()=>zn("forward")})};V(yi,kt=>{s(Un)&&kt(Ue)})}y(xe,Ct)};V(Wi,xe=>{e.canRewindLive&&di&&!ue().has("TIMELINE")&&xe(Wn)})}var rn=A(Wi,2);{var dr=xe=>{let Ct=v(()=>{var Kt;return(Kt=e.live)==null?void 0:Kt.startTime});jd(xe,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(Ct)}})};V(rn,xe=>{n()==="LiveWaitingStart"&&xe(dr)})}var qi=A(rn,2);{var sn=xe=>{La(xe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(qi,xe=>{n()==="LiveWaitingRecover"&&xe(sn)})}var Ze=A(qi,2);{var Nt=xe=>{La(xe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ze,xe=>{n()==="LiveWaitingRecord"&&xe(Nt)})}var bi=A(Ze,2);{var $o=xe=>{var Ct=vx();let Kt;var Pi=h(Ct);hd(Pi,{get adsSlotId(){return We()},get adsParams(){return tt()},get adsPreviewParam(){return Te()},get adsAutoplayParam(){return oe()},get duration(){return ke()}}),g(Ct),k(yi=>Kt=ee(Ct,1,"ads-container svelte-7yl31d",null,Kt,yi),[()=>({hidden:n()!=="ads"})]),y(xe,Ct)};V(bi,xe=>{e.showAds&&Rt()&&xe($o)})}var oo=A(bi,2);{var Qo=xe=>{let Ct=v(()=>!Z()&&e.showAutoplayNext&&C());pv(xe,{get title(){return Et()},get thumb(){return ft()},get isHide(){return s(Ct)},clickCloseIcon:()=>D(dt,!0)})};V(oo,xe=>{s(Jt)&&Et()&&ft()&&xe(Qo)})}var to=A(oo,2);{var Go=xe=>{Qd(xe,{})};V(to,xe=>{Me()&&xe(Go)})}var Vo=A(to,2);{var Ki=xe=>{var Ct=gx(),Kt=h(Ct);vd(Kt,{"aria-label":bo}),g(Ct),y(xe,Ct)};V(Vo,xe=>{le()&&xe(Ki)})}var $i=A(Vo,2);{var Yo=xe=>{Gd(xe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};V($i,xe=>{G()&&xe(Yo)})}var an=A($i,2);{var Qi=xe=>{Aa(xe,{get shifted(){return w()},get captions(){return te()},get position(){return R()},get playerSize(){return P()},isMobile:!0})};V(an,xe=>{je().value!=="off"&&xe(Qi)})}var Sr=A(an,2);{var zr=xe=>{var Ct=hx();Ct.__click=[fx,U,Je,sr];var Kt=h(Ct);Yd(Kt,{}),g(Ct),y(xe,Ct)};V(Sr,xe=>{d()&&xe(zr)})}var Wr=A(Sr,2);{var xn=xe=>{let Ct=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Kt=v(()=>n()==="ads"),Pi=v(()=>e.canRewindLive&&qe()!==0);Kd(xe,{get bottomHidden(){return s(Ct)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s(Kt)},get canRewindLive(){return s(Pi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ke()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return st()},get nextButtonActive(){return ut()},get prevButtonActive(){return at()},get isOneVideoPlaylist(){return Xt()},get customFullscreenSupported(){return s(zi)},get endScreenShown(){return s(Jt)},toggleFullscreen:$r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:yr,onDisabledSeekToInteractiveClick:nn,get playerControlsWrapperRef(){return s(Or)},set playerControlsWrapperRef(yi){D(Or,ge(yi))},get playerControlsRef(){return s(_r)},set playerControlsRef(yi){D(_r,ge(yi))}})};V(Wr,xe=>{Rt()&&xe(xn)})}var qn=A(Wr,2);{var qr=xe=>{var Ct=_x(),Kt=h(Ct);ec(Kt,{get supportLink(){return e.supportLink},returnFocus:c0.noop,get ref(){return s(tr)},set ref(Pi){D(tr,ge(Pi))}}),g(Ct),y(xe,Ct)};V(qn,xe=>{U()&&xe(qr)})}var no=A(qn,2);let jo=v(()=>!s(Po));$d(no,{get isLive(){return re()},get isHidden(){return s(jo)},get isPlaying(){return ve()},get position(){return R()},get duration(){return W()}});var Kn=A(no,2);{var cr=xe=>{ya(xe,{})};V(Kn,xe=>{s(os)&&xe(cr)})}var ur=A(Kn,2);{var Kr=xe=>{wd(xe,{})};V(ur,xe=>{ye()&&xe(Kr)})}var rs=A(ur,2);{var Ie=xe=>{tc(xe,{onClose:on,onSelectAutoQuality:()=>{_o("auto"),on()}})};V(rs,xe=>{s(tn)&&xe(Ie)})}y($t,ai)});var ns=A(ki,2);ot(ns,$t=>D(Vn,$t),()=>s(Vn)),g(Lo),ot(Lo,$t=>D(ko,$t),()=>s(ko)),Pt("click",Lo,Fr,!0),Pt("focusin",Lo,ar,!0),y(t,Lo),H(),o()}ct(["click"]);function Lu(t){let e="";return vo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),vo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),vo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),vo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),vo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),vo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),vo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),vo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),vo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),vo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),vo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),vo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),vo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),vo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),vo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),vo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),vo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),vo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),vo(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function vo(t){return typeof t=="string"&&!t.includes(";")}var u0=require("@vkontakte/videoplayer-shared/es2015");var xx=L('<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 mv(t,e){O(e,!0),q(t,wx);let[i,o]=Oe(),n=()=>S(ae,"$playerSize",i),a=()=>S(E,"$isPlaying$",i),r=()=>S(M,"$duration$",i),d=()=>S(K,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),u=()=>S(I,"$crashed$",i),f=()=>S(R,"$currentSubtitle$",i),$=()=>S(W,"$currentSubtitleCaptions$",i),p=()=>S(P,"$positionExact$",i),_=()=>S(U,"$isLive$",i),w=()=>S(j,"$isRewindableLive$",i),b=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:E,currentSubtitle$:R,currentSubtitleCaptions$:W,positionWithScrubbing$:K,isLive$:U,isRewindableLive$:j},ui:{playerSize:ae,controls:G},actions:{internal:{getVideoElement:ce}}}=Ee(),de=8,Le=J(!1),Ne=ge({}),he=()=>{D(Le,!0)},ue=()=>{D(Le,!1)},Me=(0,u0.debounceFn)(yl,260);ze(()=>{n(),Me(ce(),G,Ne,s(Le))});let le=v(()=>a()?_n(r()-d()):_n(isFinite(r())?r():b()));var N=xx(),je=h(N);Ba(je,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(ke){C(ke)}});var te=A(je,2);aa(te,()=>"slot",!1,(ke,Ke)=>{Pe(ke,null,{name:Ra})});var qe=A(te,2);let re=v(()=>l()!=="thumb"||u());Ma(qe,{get hidden(){return s(re)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ve=A(qe,2);{var ye=ke=>{Aa(ke,{shifted:!1,get captions(){return $()},get position(){return p()},get playerSize(){return n()}})};V(ve,ke=>{f().value!=="off"&&ke(ye)})}var X=A(ve,2),We=h(X);bd(We,{get isLive(){return _()},get isPlaying(){return a()},get time(){return s(le)}}),g(X);var tt=A(X,2);let Te;var oe=h(tt);Ca(oe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:de,tooltipRightOffset:de,get ref(){return Ne.timeline},set ref(ke){Ne.timeline=ke}}),g(tt),g(N),k(ke=>Te=ee(tt,1,"timeline svelte-1qfjf44",null,Te,ke),[()=>({visible:s(Le)})]),Pt("mouseenter",N,he),Pt("mouseleave",N,ue),y(t,N),H(),o()}var Sx=L("<div><!></div>"),Cx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
361
362
 
362
363
  /* USER DEFINED COLORS */
363
364
 
@@ -391,5 +392,5 @@ Try switching the\xA0quality to\xA0Auto.`},Wh=z_;var rs=new Map;rs.set(nl.Interf
391
392
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}
392
393
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
393
394
 
394
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function sv(t,e){F(e,!0),K(t,bx);let[i,o]=Oe(),n=()=>S(Zt,"$isLive$",i),a=m(e,"sources",7),s=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),y=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),b=m(e,"interactiveController",7),w=m(e,"subtitles",7),_=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),P=m(e,"fromTime",7),k=m(e,"canRewindLive",7),V=m(e,"showAds",7),q=m(e,"adsSlotId",7,void 0),Z=m(e,"adsParams",7,void 0),H=m(e,"adsPreviewParam",7,void 0),G=m(e,"adsAutoplayParam",7,void 0),oe=m(e,"duration",7,void 0),X=m(e,"logoClickable",7),ae=m(e,"logoHidden",7),ue=m(e,"isMobile",7),Pe=m(e,"showNextPrevButtons",7,!1),Le=m(e,"nextButtonActive",7,!1),he=m(e,"prevButtonActive",7,!1),le=m(e,"endScreenVideoTitle",7,void 0),Ae=m(e,"endScreenVideoThumb",7,void 0),re=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),pe=m(e,"shadowRootContainer",7,void 0),be=m(e,"outerContainerRef",7,void 0),We=m(e,"fullScreenTarget",7,void 0),se=m(e,"failoverHosts",7,void 0),Q=m(e,"showMiniTimer",7,!1),_e=m(e,"saveRate",7),te=m(e,"seekToInteractive",7,Ia.noop),Fe=m(e,"playPrevChapter",7,Ia.noop),Xe=m(e,"volumeMultiplier",7),Se=m(e,"showAutoplayNext",7),Re=m(e,"showEndScreen",7,!0),ke=m(e,"keyboardControls",15,void 0),{subscribers:ze,stores:ct}=d();ch(u());let ut=Yt(),nt=u().logoLink,At=s().ui.debugPanelVisible,bt=s().ui.playerSize,Zt=s().state.isLive$,Rt=s().state.isInteractive&&Iu.clientChecker.device.isAndroid,Ot=J(void 0),O=null,$e=J(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),yh(s(),ct),Ue(()=>{var Y,ti;s().ui.isMobile.set(ue()),(ti=(Y=l().callbacks)==null?void 0:Y.onDomReady)==null||ti.call(Y)});let ne=(Y=!1)=>{D($e,!0),Y?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Ne=()=>{if(ut.features.qualityDetailsSubMenuEnabled){let Y=Fh(s().videoId);if(Y)switch(Y.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,Y.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,Y.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(Y.quality);break}}else{Uh(s().videoId),jp()&&s().actions.internal.setTrafficSavingEnabled(!0);let ti=Kp(s().videoId);ti&&s().actions.internal.setQuality(ti)}};function Ge(Y){var gt,hi,tt;let ti=a()||Y;ti&&s().initVideo({container:r(Ot),sources:ti,failoverHosts:se(),subtitles:w(),volumeMultiplier:Xe()});let xi=Ia.safeStorage.get(td)==="true";At.set(xi),P()>0&&s().actions.external.seekTime(P());let Vi=ue()?ut.volumeDefault:(hi=(gt=I())!=null?gt:Uc())!=null?hi:ut.volumeDefault,ci=(tt=M())!=null?tt:Rh();if(s().actions.external.setVolume(Vi),s().actions.external.setMuted(ci),s().getAdmanWrapper().setInitialVolume(ci?0:Vi),Ne(),ut.features.saveRate&&_e()){let Nt=Dh();Nt&&!n()&&s().actions.internal.setPlaybackRate(Nt)}if(Se()){let Nt=Hh();Nt&&s().actions.internal.setAutoplayNextEnabled(Nt)}s().ui.isAutoplay.set(T()),T()?ne():C()&&ut.features.preload&&s().actions.internal.preload()}let Ze=Y=>{if(window.ResizeObserver){let ti,xi;O=new ResizeObserver((0,Ia.throttleFn)(Vi=>{let ci=Vi[0];if(ci.contentBoxSize){let gt=Array.isArray(ci.contentBoxSize)?ci.contentBoxSize[0]:ci.contentBoxSize;ti=gt.inlineSize,xi=gt.blockSize}else ci.contentRect&&(ti=ci.contentRect.width,xi=ci.contentRect.height);bt.set({width:ti,height:xi})},300)),O.observe(Y)}bt.set({width:Y.clientWidth,height:Y.clientHeight})},Ve=()=>{document.hidden&&s().actions.external.stop()};Gt(()=>{var xi,Vi,ci,gt;Rt&&document.addEventListener("visibilitychange",Ve),ut.debugLog&&s().actions.internal.startLogging(),Ze(r(Ot));let Y=ze.map(hi=>hi.init({store:s(),microStores:ct,config:l(),interactiveController:b(),uiConfig:u()})),ti=()=>{Rt&&document.removeEventListener("visibilitychange",Ve),O==null||O.disconnect(),Y.forEach(hi=>hi.unsubscribe()),s().destroy()};return((xi=_())==null?void 0:xi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),ti):((Vi=_())==null?void 0:Vi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),ti):(((ci=_())==null?void 0:ci.status)==="finished"||((gt=_())==null?void 0:gt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),ti):(Ge(),ti)});function ot(){r($e)?s().actions.external.play():ne(!0)}function et(){s().actions.external.pause()}function yt(Y){s().actions.external.setMuted(Y)}function ft(){s().actions.external.toggleSubtitle()}function vt(){var Y;(Y=s().webApi.slotsApi)!=null&&Y.haveSlots()&&s().actions.external.hideControls()}function Ht(){var Y;(Y=s().webApi.slotsApi)!=null&&Y.haveSlots()&&s().actions.external.showControls()}function Ye(Y){ue()||Y>=0&&Y<=1&&s().actions.external.setVolume(Y)}function li(Y){s().actions.internal.seekTime(Y,s0.SeekAction.UNKNOWN)}function Si(Y){s().actions.external.seekEpisodeStartTime(Y)}function it(){s().actions.external.returnFocusToEpisodes()}function Jt(Y){s().actions.external.setPlaybackRate(Y)}function Li(Y){s().actions.external.setAutoQualityLimits(Y)}let Zi=Tu(ut.view),Bt=l().playerView==="preview";var xt=_x();let Ft;at(xt,Zi);var co=h(xt);{var mn=Y=>{nv(Y,{get store(){return s()},uiConfig:ut,get thumbUrl(){return y()},get interactiveContainer(){return p()},get live(){return _()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return Z()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return G()},get duration(){return oe()},get logoClickable(){return X()},get logoHidden(){return ae()},logoTargetUrl:nt,get nextButtonActive(){return Le()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return le()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return re()},get supportLink(){return N()},get shadowRootContainer(){return pe()},get outerContainerRef(){return be()},get fullScreenTarget(){return We()},get showMiniTimer(){return Q()},get playerStarted(){return r($e)},get seekToInteractive(){return te()},get playPrevChapter(){return Fe()},firstStart:ne,seekTime:li,get showEndScreen(){return Re()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return Pe()},get videoContainer(){return r(Ot)},set videoContainer(ti){D(Ot,me(ti))}})},Sn=Y=>{var ti=He(),xi=fe(ti);{var Vi=gt=>{rv(gt,{get thumbUrl(){return y()},get outsideDuration(){return oe()},get canRewindLive(){return k()},get videoContainer(){return r(Ot)},set videoContainer(hi){D(Ot,me(hi))}})},ci=gt=>{iv(gt,{get store(){return s()},uiConfig:ut,get title(){return f()},get thumbUrl(){return y()},get interactiveContainer(){return p()},get live(){return _()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return Z()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return G()},get duration(){return oe()},get logoClickable(){return X()},get logoHidden(){return ae()},logoTargetUrl:nt,get nextButtonActive(){return Le()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return le()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return re()},get supportLink(){return N()},get shadowRootContainer(){return pe()},get outerContainerRef(){return be()},get fullScreenTarget(){return We()},get showMiniTimer(){return Q()},get playerStarted(){return r($e)},get seekToInteractive(){return te()},get playPrevChapter(){return Fe()},firstStart:ne,get showEndScreen(){return Re()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return Pe()},get videoContainer(){return r(Ot)},set videoContainer(hi){D(Ot,me(hi))},get keyboardControls(){return ke()},set keyboardControls(hi){ke(hi)}})};R(xi,gt=>{Bt?gt(Vi):gt(ci,!1)})}$(Y,ti)};R(co,Y=>{ue()?Y(mn):Y(Sn,!1)})}g(xt),E(Y=>Ft=ee(xt,1,"root svelte-tw6yp4",null,Ft,Y),[()=>({"root--miui-browser":Iu.clientChecker.device.isMobile&&Iu.clientChecker.browser.isMiuiBrowser,"visible-outside":Bt})]),$(t,xt);var wo=U({initVideo:Ge,play:ot,pause:et,setMuted:yt,toggleSubtitle:ft,hideControls:vt,showControls:Ht,setVolume:Ye,seekTime:li,seekEpisodeStartTime:Si,returnFocusToEpisodes:it,setPlaybackRate:Jt,setAutoQualityLimits:Li,get sources(){return a()},set sources(Y){a(Y)},get store(){return s()},set store(Y){s(Y)},get microStoresRoot(){return d()},set microStoresRoot(Y){d(Y)},get videoConfig(){return l()},set videoConfig(Y){l(Y)},get uiConfig(){return u()},set uiConfig(Y){u(Y)},get title(){return f()},set title(Y){f(Y)},get thumbUrl(){return y()},set thumbUrl(Y){y(Y)},get interactiveContainer(){return p()},set interactiveContainer(Y){p(Y)},get interactiveController(){return b()},set interactiveController(Y){b(Y)},get subtitles(){return w()},set subtitles(Y){w(Y)},get live(){return _()},set live(Y){_(Y)},get preload(){return C()},set preload(Y){C(Y)},get autoplay(){return T()},set autoplay(Y){T(Y)},get volume(){return I()},set volume(Y){I(Y)},get muted(){return M()},set muted(Y){M(Y)},get fromTime(){return P()},set fromTime(Y){P(Y)},get canRewindLive(){return k()},set canRewindLive(Y){k(Y)},get showAds(){return V()},set showAds(Y){V(Y)},get adsSlotId(){return q()},set adsSlotId(Y){q(Y)},get adsParams(){return Z()},set adsParams(Y){Z(Y)},get adsPreviewParam(){return H()},set adsPreviewParam(Y){H(Y)},get adsAutoplayParam(){return G()},set adsAutoplayParam(Y){G(Y)},get duration(){return oe()},set duration(Y){oe(Y)},get logoClickable(){return X()},set logoClickable(Y){X(Y)},get logoHidden(){return ae()},set logoHidden(Y){ae(Y)},get isMobile(){return ue()},set isMobile(Y){ue(Y)},get showNextPrevButtons(){return Pe()},set showNextPrevButtons(Y){Pe(Y)},get nextButtonActive(){return Le()},set nextButtonActive(Y){Le(Y)},get prevButtonActive(){return he()},set prevButtonActive(Y){he(Y)},get endScreenVideoTitle(){return le()},set endScreenVideoTitle(Y){le(Y)},get endScreenVideoThumb(){return Ae()},set endScreenVideoThumb(Y){Ae(Y)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(Y){re(Y)},get supportLink(){return N()},set supportLink(Y){N(Y)},get shadowRootContainer(){return pe()},set shadowRootContainer(Y){pe(Y)},get outerContainerRef(){return be()},set outerContainerRef(Y){be(Y)},get fullScreenTarget(){return We()},set fullScreenTarget(Y){We(Y)},get failoverHosts(){return se()},set failoverHosts(Y){se(Y)},get showMiniTimer(){return Q()},set showMiniTimer(Y){Q(Y)},get saveRate(){return _e()},set saveRate(Y){_e(Y)},get showAutoplayNext(){return Se()},set showAutoplayNext(Y){Se(Y)},get seekToInteractive(){return te()},set seekToInteractive(Y){te(Y)},get playPrevChapter(){return Fe()},set playPrevChapter(Y){Fe(Y)},get volumeMultiplier(){return Xe()},set volumeMultiplier(Y){Xe(Y)},get showEndScreen(){return Re()},set showEndScreen(Y){Re(Y)},get keyboardControls(){return ke()},set keyboardControls(Y){ke(Y)}});return o(),wo}var $x=xe('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function av(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=$x();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i))),$(t,o)}function lv(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");av(t,{get style(){return r(o)}})}var yx=L('<div class="title svelte-1y9fytq"> </div>'),xx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),wx={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 dv(t,e){K(t,wx);var i=xx(),o=h(i);{var n=d=>{var l=yx(),u=h(l,!0);g(l),E(()=>ve(u,e.title)),$(d,l)};R(o,d=>{e.title&&d(n)})}var a=A(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);lv(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var v0=require("@vkontakte/videoplayer-shared/es2015"),ji=require("@vkontakte/videoplayer-shared/es2015"),oc=require("@vkontakte/videoplayer-core/es2015"),g0=require("@vkontakte/videoplayer-statistics/es2015");var Eu=require("@vkontakte/videoplayer-shared/es2015"),ku=class{constructor(){this.subscription=new Eu.Subscription,this.logger=new Eu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=we(e.state.currentPlaybackRate$),n=we(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var wl=require("@vkontakte/videoplayer-shared/es2015");var Sx=xe('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function cv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Sx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i))),$(t,o)}var Cx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Tx={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 uv(t,e){F(e,!0),K(t,Tx);let[i,o]=Oe(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),s=Te(),d=Yt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,y=s.ui.t,p=v(()=>n()&&y("pip_dummy_title")),b=Tu(d.view);var w=Cx();ee(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),at(w,b);var _=h(w);let C;var T=h(_);cv(T,{}),g(_);var I=A(_,2),M=h(I,!0);g(I),g(w),E(P=>{C=ee(_,1,"dummy-image svelte-1pbsod4",null,C,P),ve(M,r(p))},[()=>({desktop:!a()})]),$(t,w),U(),o()}var Ix=Object.defineProperty,kx=(t,e,i)=>e in t?Ix(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,xl=(t,e,i)=>kx(t,typeof e!="symbol"?e+"":e,i),pv=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),Ex=460,Px=280,Yd=class{constructor({enabled:e=!0}={enabled:!0}){xl(this,"playerDomElement"),xl(this,"playerParentShadowRoot"),xl(this,"playerDummyElement"),xl(this,"svelteContext"),xl(this,"pipWindow"),xl(this,"info",{isActive$:new wl.ValueSubject(!1),isEnabled$:new wl.ValueSubject(!1),type:1}),this.info.isEnabled$=new wl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,wl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return pv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Ex,height:Px,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
395
- `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=is(uv,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ys(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return pv(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return pv(this,null,function*(){yield this.remove()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function a0(t){return t instanceof Yd}var Pu=class{static getLatestSupportedVersion(e){let i=new ra(e),o=new Yd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Au(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var l0="Inner error. Unexpectedly root annotation container null reference exception",d0="Annotation with such name already exists",c0="Annotation with such name does not exist";var Sl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Cl=require("@vkontakte/videoplayer-shared/es2015"),Ax="1",Mx=100,Mu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Cl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Cl.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"},Mx);this.subscriptions.add((0,Cl.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 Sl(l0);if(this.annotations.has(e))throw new Sl(d0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Ax,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 Sl(c0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var ka=require("@vkontakte/videoplayer-shared/es2015"),zo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,ka.assertNonNullable)(e),(0,ka.assertNonNullable)(i),(0,ka.assertNonNullable)(n),n.interactiveData&&(0,ka.assertNonNullable)(o),this.subscription=new ka.Subscription,this.subscription}};var jd=class extends zo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ut(W({},de(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Zd=class extends zo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ut(W({},de(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:u,isMobile:f}=a.ui,y=we(f),p=()=>y&&we(u);return o.add(u.subscribe(b=>{if(!y)return;let w=we(s);we(l)?this.state$.set(b):w!==null&&this.state$.set(!w||b)})),o.add(l.subscribe(b=>{this.state$.set(!b||p())})),o.add(s.subscribe(b=>{if(b===null)return;let w=we(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!b)})),o}};var Xd=class extends zo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var u0=require("@vkontakte/videoplayer-shared/es2015");var fv=de(!1),Lu=null,Jd=class extends zo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ut(W({},fv),{set:(i,o=!1)=>{i!==we(fv)&&(this.clearTimeout(),fv.set(i),!i&&Lu&&(Lu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(l.subscribe(y=>{we(s)&&y&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,u0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:y,isInteractiveTime$:p,interactiveTimeIndicator:b})=>{var w,_;if(!(!y||!(b!=null&&b.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Lu===null&&(Lu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Vu=require("@vkontakte/videoplayer-shared/es2015");var ec=class extends zo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ut(W({},de(null)),{toggle:Vu.noop});this.checkIfShouldHide=i=>Is(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>Tt(this,null,function*(){if(this.checkIfShouldHide(we(s)))return;let l=we(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:y}=n.ui.controls,p=we(u),b=we(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),y.remove(Hp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),y.add(Hp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,Vu.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(f=>Tt(this,[f],function*({graphIsOpened:l,currentGridType:u}){if(this.checkIfShouldHide(u)&&l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var mv=require("@vkontakte/videoplayer-shared/es2015"),tc=class extends zo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new mv.ValueSubject(!1),isEnabled$:new mv.ValueSubject(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};var Bu=require("@vkontakte/videoplayer-shared/es2015");var Ru=require("@vkontakte/videoplayer-shared/es2015");var p0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Lx({maxCount:t}):void 0,e!==0?Vx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Lx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Ru.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}}},Vx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ru.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Ru.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Ut(W({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var ic=class extends zo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=p0({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Bu.filterChanged)(),(0,Bu.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var f0=()=>[jd,Zd,Xd,Jd,ec,tc,ic].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ut(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Tl=require("@vkontakte/videoplayer-shared/es2015");var Rx=Object.defineProperty,Bx=Object.defineProperties,Nx=Object.getOwnPropertyDescriptors,m0=Object.getOwnPropertySymbols,Dx=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,vv=(t,e,i)=>e in t?Rx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,As=(t,e)=>{for(var i in e||(e={}))Dx.call(e,i)&&vv(t,i,e[i]);if(m0)for(var i of m0(e))Ox.call(e,i)&&vv(t,i,e[i]);return t},Hx=(t,e)=>Bx(t,Nx(e)),ri=(t,e,i)=>vv(t,typeof e!="symbol"?e+"":e,i),Nu=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),Fx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ji.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,oc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},wn=J(void 0),Du=class extends HTMLElement{constructor(){super(),ri(this,"svelteStubComponent"),ri(this,"svelteRootComponent"),ri(this,"store"),ri(this,"microStoresRoot"),ri(this,"statistics"),ri(this,"sentry"),ri(this,"_shadowRoot"),ri(this,"playerContainer"),ri(this,"rootContainer"),ri(this,"shadowRootContainer"),ri(this,"uiConfig"),ri(this,"coreConfig"),ri(this,"statisticsConfig"),ri(this,"interactiveController"),ri(this,"interactiveContainer"),ri(this,"graphMadePause"),ri(this,"currentPlayingVideoIndex",0),ri(this,"needToRepeatPlaylist",!1),ri(this,"videoConfig"),ri(this,"pictureInPictureApi"),ri(this,"mediaSessionApi"),ri(this,"unsubscribePlayerPhaseSubscription"),ri(this,"logger"),ri(this,"log"),ri(this,"subscription"),ri(this,"interactiveSubscription"),ri(this,"annotationsApi"),ri(this,"slotsApi"),ri(this,"prevIsid"),ri(this,"isInited",!1),ri(this,"internalsExposure",null),ri(this,"shadowDOMCallbacksDisabled",!1),ri(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:y,refreshStatAuthToken:p,autoplay:b,isMobile:w,isTouch:_,refDomain:C,deviceId:T,interactiveData:I}=Au(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&k)return new g0.OneStat(As({movieId:k,albumId:d,place:l,trackCode:f,vkAppId:y,autoplay:(s=b&&!this.interactiveController)!=null?s:!1,mobile:_!=null?_:w,clip:V,refDomain:C,deviceId:T},M&&(!this.isInited||P)&&{projectId:Number(M)}),As({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),Tl.devNull.create("ui"),this.logger=new ji.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ji.Subscription,this.interactiveSubscription=new ji.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=me({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=is(dv,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Tl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,u,f,y;if(!this.videoConfig)return;let{albumId:p,statPlace:b,statAuthToken:w,preload:_,autoplay:C,volume:T,muted:I,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:q,adsParams:Z={},adsPreviewParam:H,adsAutoplayParam:G,interfaceLanguage:oe,isCyrillicRelatedInterface:X,logoClickable:ae,logoHidden:ue,isMobile:Pe,isTouch:Le,isAudioDisabled:he,isLiveCatchUpMode:le,fullScreenTarget:Ae,failoverHosts:re,canDownload:N,callbacks:pe,interactiveData:be,showThumbTimer:We,additionalButtons:se=[],additionalSettingsMenuItems:Q=[],additionalContextMenuItems:_e=[],repeat:te,saveRate:Fe,volumeMultiplier:Xe,showEndScreen:Se,showAutoplayNext:Re}=Au(this.videoConfig,i),{sources:ke,title:ze,thumbUrl:ct,unitedVideoId:ut,isClip:nt=!1,duration:At,adsParams:bt={},videoEpisodes:Zt,previewThumbsData:ei,subtitles:Rt,live:Ot}=e,O=As(As({},Z),bt),$e=this.getNextVideoInfo(),ne={sources:ke,title:ze,thumbUrl:ct,subtitles:Rt,unitedVideoId:ut,isClip:nt,live:Ot,albumId:p,statPlace:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:G,duration:At,logoClickable:ae,logoHidden:ue,isTouch:Le!=null?Le:Pe,repeat:te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ne={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(ne)}`});let Ge=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ze=(Ge==null?void 0:Ge.oneStat)||this.createOneStat(e,i);Ze&&(this.statistics=new fu(Ze,Ge==null?void 0:Ge.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new na(this.uiConfig.sentry,{version:ta,env:Oc},{movieId:ut,albumId:p,place:b,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Le!=null?Le:Pe,clip:nt}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry=As(As({},this.sentry),na.getInstance());let ot=!!be,et=[],yt="tooltip_interactive_go_back_disabled_first";if(ot&&this.interactiveController){let Ye=this.interactiveController.state.isInitialChapter$.getValue(),li=this.interactiveController.getHistoryState();Ye&&et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||et.push("SEEK_TO_INTERACTIVE_BUTTON"),li.hasPrevChapter$.getValue()||(et.push("PLAY_PREV_CHAPTER_BUTTON"),Ye||(li.isGoBackLimited$.getValue()?yt="tooltip_interactive_go_back_disabled_limit":yt="tooltip_interactive_go_back_disabled"))}let ft=()=>{var Ye;this.isInited=!1,this.prevIsid=void 0;let li=(o==null?void 0:o.info.isEnded$.getValue())&&((Ye=this.interactiveController)==null?void 0:Ye.state.isEndChapter$.getValue());pe.onReplayInteractiveVideo&&!li?pe.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=k1({player:o,interfaceLanguage:oe,isCyrillicRelatedInterface:X,videoId:ut,isClip:nt,isLiveCatchUpMode:le,isAudioDisabled:he,statAuthToken:w,callbacks:pe,webApi:Ne,videoEpisodes:Zt,previewThumbsData:ei,canDownload:N,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:et,isInteractive:ot,saveRate:Fe,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ft,playPrevChapterDisabledTooltip:yt,hasInteractiveBranches:!!((y=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?se:[],additionalSettingsMenuItems:Q!=null?Q:[],additionalContextMenuItems:_e!=null?_e:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:te&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:vt}=this.microStoresRoot=f0(),Ht=()=>{var Ye,li,Si,it,Jt,Li;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Bt=>{var xt;return(xt=pe==null?void 0:pe.onCurrentFormatChanged)==null?void 0:xt.call(pe,Bt)})),this.subscription.add(vt.interactiveControlsOpacity$.subscribe(Bt=>{var xt;Bt!==null&&((xt=this==null?void 0:this.interactiveController)==null||xt.setDisabledControls(Bt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Bt=>{var xt;return(xt=pe==null?void 0:pe.onThroughputEstimationChanged)==null?void 0:xt.call(pe,Bt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Bt=>{var xt;return(xt=pe==null?void 0:pe.onTrafficSavingEnabledChanged)==null?void 0:xt.call(pe,Bt)})),this.subscription.add(new ji.Observable(Bt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(xt=>Bt.next(xt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,ji.skip)(1):Bt=>Bt).subscribe(Bt=>{var xt;return(xt=pe==null?void 0:pe.onCurrentPlaybackRateChanged)==null?void 0:xt.call(pe,Bt)})),this.subscription.add(this.store.state.volume$.subscribe(Bt=>{var xt;return(xt=pe==null?void 0:pe.onVolumeChange)==null?void 0:xt.call(pe,Bt)})),this.subscription.add(this.store.state.muted$.subscribe(Bt=>{var xt,Ft;return Bt?(xt=pe==null?void 0:pe.onMute)==null?void 0:xt.call(pe):(Ft=pe==null?void 0:pe.onUnmute)==null?void 0:Ft.call(pe)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Bt=>{var xt;return(xt=pe==null?void 0:pe.onVideoBitrateChanged)==null?void 0:xt.call(pe,Bt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Bt=>{var xt;let Ft=(xt=this.store)==null?void 0:xt.ui.controls.disabledControls$;Ft&&(Bt&&!Ft.includes(id)&&Ft.add(id),Bt||Ft.remove(id))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Bt=>Nu(this,null,function*(){var xt;if(!oc.clientChecker.browser.isSamsungBrowser||!Bt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((xt=this.videoConfig)==null?void 0:xt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Bt=>{var xt;return(xt=pe==null?void 0:pe.onVSIDChanged)==null?void 0:xt.call(pe,Bt)})),this.initMediaSession(),D(wn,me({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ke,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ze,thumbUrl:ct,subtitles:Rt,live:Ot,preload:_,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:G,duration:At,logoClickable:ae,logoHidden:ue,isMobile:Le!=null?Le:Pe,failoverHosts:re,fullScreenTarget:Ae,saveRate:Fe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:We,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Xe,showEndScreen:Se,showAutoplayNext:Re}));let Zi={target:this.playerContainer,props:r(wn)};this.svelteRootComponent=is(sv,Zi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Si=(li=(Ye=this.videoConfig)==null?void 0:Ye.callbacks)==null?void 0:li.onInited)==null||Si.call(li)),(it=this.internalsExposure)==null||it.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Li=(Jt=this.videoConfig)==null?void 0:Jt.callbacks)!=null&&Li.onDevNullLog)?Tl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Tl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?oc.clientChecker.isInited$.subscribe(Ye=>{Ye&&(console.log("UI SDK async start"),Ht())}):Ht()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,ji.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Nu(this,null,function*(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?we(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:f,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:f,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:p,isSeekable$:b}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(b.subscribe(_=>{if(!this.isInited)return;let C=this.store;_?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(_=>{this.store&&this.store.state.isInteractiveExpectation$.set(_)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(_=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Hx(As({},_.config),{title:(l==null?void 0:l.title)||_.config.title});let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(_.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:_,actionType:C})=>{var T,I,M,P,k,V;if(!this.store||!this.microStoresRoot)return;let q=p.getValue();if(_==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(od)),_==="action-choice-canceled"){let Z=we(this.store.state.isPlaying$)||q;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(P=this.videoConfig)==null?void 0:(k=P.callbacks).onDisabledInteractiveClick)==null||V.call(k)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:_,removeAllOpenURI:C})=>{this.store&&_==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(od)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let _=this.interactiveController.getHistoryState();this.subscription.add(_.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var _,C,T,I;(_=this.microStoresRoot)==null||_.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(_=>{this.log({message:_.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,s,d,l,u,f,y,p,b,w,_,C,T,I,M,P,k,V,q,Z,H,G,oe,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Au(Fx,(0,ji.cloneDeepWith)(e,ae=>ae instanceof HTMLElement?ae:void 0)),this.uiConfig=dh((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new ji.InternalsExposure("UI"))),Tl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[(0,v0.now)()]}),(0,ji.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,ji.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(w=(b=this.uiConfig.features.dpip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(_=this.uiConfig.isMobile)!=null?_:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((k=this.uiConfig.showLogo)!=null?k:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(q=this.videoConfig.supportLink)!=null?q:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((oe=this.videoConfig.videos)!=null&&oe[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ae={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Pu.getLatestSupportedVersion(ae):this.pictureInPictureApi=new ra(ae)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ku:void 0,this.slotsApi=this.uiConfig.features.slots?new wu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Mu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),a0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(X=this.slotsApi)==null||X.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(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}=As({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(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)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Nu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Nu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),s=we(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,ji.once)()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&Ys(e)}};var Il=require("@vkontakte/videoplayer-shared/es2015"),Ou=require("@vkontakte/videoplayer-core/es2015"),Ux=()=>{window.customElements.define("vk-video-player",Du)};
395
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function vv(t,e){O(e,!0),q(t,Cx);let[i,o]=Oe(),n=()=>S(Xt,"$isLive$",i),a=m(e,"sources",7),r=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),$=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),_=m(e,"interactiveController",7),w=m(e,"subtitles",7),b=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),P=m(e,"fromTime",7),E=m(e,"canRewindLive",7),R=m(e,"showAds",7),W=m(e,"adsSlotId",7,void 0),K=m(e,"adsParams",7,void 0),U=m(e,"adsPreviewParam",7,void 0),j=m(e,"adsAutoplayParam",7,void 0),ae=m(e,"duration",7,void 0),G=m(e,"logoClickable",7),ce=m(e,"logoHidden",7),de=m(e,"isMobile",7),Le=m(e,"showNextPrevButtons",7,!1),Ne=m(e,"nextButtonActive",7,!1),he=m(e,"prevButtonActive",7,!1),ue=m(e,"endScreenVideoTitle",7,void 0),Me=m(e,"endScreenVideoThumb",7,void 0),le=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),je=m(e,"shadowRootContainer",7,void 0),te=m(e,"outerContainerRef",7,void 0),qe=m(e,"fullScreenTarget",7,void 0),re=m(e,"failoverHosts",7,void 0),ve=m(e,"showMiniTimer",7,!1),ye=m(e,"saveRate",7),X=m(e,"seekToInteractive",7,Na.noop),We=m(e,"playPrevChapter",7,Na.noop),tt=m(e,"volumeMultiplier",7),Te=m(e,"showAutoplayNext",7),oe=m(e,"showEndScreen",7,!0),ke=m(e,"keyboardControls",15,void 0),{subscribers:Ke,stores:st}=d();bh(u());let ut=qt(),at=u().logoLink,Et=r().ui.debugPanelVisible,ft=r().ui.playerSize,Xt=r().state.isLive$,Wt=r().state.isInteractive&&Tl.clientChecker.device.isAndroid,Mt=J(void 0),ie=null,Rt=J(!1);r().getAdmanWrapper().init({switchFromAdsToVideo:r().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r().actions.internal.switchFromVideoToAds,setMuted:r().actions.external.setMuted},r().ads,{isMobile:r().ui.isMobile,mobileUnmuteButtonVisible:r().ui.mobileUnmuteButtonVisible,vsid:r().vsid}),Ph(r(),st),ze(()=>{var Y,jt;r().ui.isMobile.set(de()),(jt=(Y=l().callbacks)==null?void 0:Y.onDomReady)==null||jt.call(Y)});let Z=(Y=!1)=>{D(Rt,!0),Y?r().actions.external.firstStart(R()):r().actions.internal.firstStart(R())},fe=()=>{if(ut.features.qualityDetailsSubMenuEnabled){let Y=jh(r().videoId);if(Y)switch(Y.type){case"high_quality":r().actions.internal.setHighQualityEnabled(!0,Y.appliesTo);break;case"traffic_saving":r().actions.internal.setTrafficSavingEnabled(!0,Y.appliesTo);break;case"exact_quality":r().actions.internal.setQuality(Y.quality);break}}else{Zh(r().videoId),nf()&&r().actions.internal.setTrafficSavingEnabled(!0);let jt=Jp(r().videoId);jt&&r().actions.internal.setQuality(jt)}};function Ae(Y){var fi,mt,it;let jt=a()||Y;jt&&r().initVideo({container:s(Mt),sources:jt,failoverHosts:re(),subtitles:w(),volumeMultiplier:tt()});let mi=Na.safeStorage.get(dd)==="true";Et.set(mi),P()>0&&r().actions.external.seekTime(P());let Ri=de()?ut.volumeDefault:(mt=(fi=I())!=null?fi:Gc())!=null?mt:ut.volumeDefault,di=(it=M())!=null?it:Wh();if(r().actions.external.setVolume(Ri),r().actions.external.setMuted(di),r().getAdmanWrapper().setInitialVolume(di?0:Ri),fe(),ut.features.saveRate&&ye()){let Bt=Qh();Bt&&!n()&&r().actions.internal.setPlaybackRate(Bt)}if(Te()){let Bt=Yh();Bt&&r().actions.internal.setAutoplayNextEnabled(Bt)}r().ui.isAutoplay.set(T()),T()?Z():C()&&ut.features.preload&&r().actions.internal.preload()}let Be=Y=>{if(window.ResizeObserver){let jt,mi;ie=new ResizeObserver((0,Na.throttleFn)(Ri=>{let di=Ri[0];if(di.contentBoxSize){let fi=Array.isArray(di.contentBoxSize)?di.contentBoxSize[0]:di.contentBoxSize;jt=fi.inlineSize,mi=fi.blockSize}else di.contentRect&&(jt=di.contentRect.width,mi=di.contentRect.height);ft.set({width:jt,height:mi})},300)),ie.observe(Y)}ft.set({width:Y.clientWidth,height:Y.clientHeight})},me=()=>{document.hidden&&r().actions.external.stop()};Ht(()=>{var mi,Ri,di,fi;Wt&&document.addEventListener("visibilitychange",me),ut.debugLog&&r().actions.internal.startLogging(),Be(s(Mt));let Y=Ke.map(mt=>mt.init({store:r(),microStores:st,config:l(),interactiveController:_(),uiConfig:u()})),jt=()=>{Wt&&document.removeEventListener("visibilitychange",me),ie==null||ie.disconnect(),Y.forEach(mt=>mt.unsubscribe()),r().destroy()};return((mi=b())==null?void 0:mi.status)==="upcoming"?(r().actions.internal.setLiveWaitingStart(!0),jt):((Ri=b())==null?void 0:Ri.status)==="waiting"?(r().actions.internal.setLiveWaitingRecover(!0),jt):(((di=b())==null?void 0:di.status)==="finished"||((fi=b())==null?void 0:fi.status)==="postlive")&&!(a()&&(0,Tl.areValidLiveRecordSources)(a()))?(r().actions.internal.setLiveWaitingRecord(!0),jt):(Ae(),jt)});function Qe(){s(Rt)?r().actions.external.play():Z(!0)}function nt(){r().actions.external.pause()}function et(Y){r().actions.external.setMuted(Y)}function St(){r().actions.external.toggleSubtitle()}function ht(){var Y;(Y=r().webApi.slotsApi)!=null&&Y.haveSlots()&&r().actions.external.hideControls()}function Yt(){var Y;(Y=r().webApi.slotsApi)!=null&&Y.haveSlots()&&r().actions.external.showControls()}function bt(Y){de()||Y>=0&&Y<=1&&r().actions.external.setVolume(Y)}function Ti(Y){r().actions.internal.seekTime(Y,p0.SeekAction.UNKNOWN)}function Gt(Y){r().actions.external.seekEpisodeStartTime(Y)}function Je(){r().actions.external.returnFocusToEpisodes()}function ti(Y){r().actions.external.setPlaybackRate(Y)}function Ji(Y){r().actions.external.setAutoQualityLimits(Y)}let Ui=Lu(ut.view),go=l().playerView==="preview";var eo=Sx();let rt;lt(eo,Ui);var xt=h(eo);{var pi=Y=>{fv(Y,{get store(){return r()},uiConfig:ut,get thumbUrl(){return $()},get interactiveContainer(){return p()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return R()},get adsSlotId(){return W()},get adsParams(){return K()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return j()},get duration(){return ae()},get logoClickable(){return G()},get logoHidden(){return ce()},logoTargetUrl:at,get nextButtonActive(){return Ne()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return ue()},get endScreenVideoThumb(){return Me()},get isOneVideoPlaylist(){return le()},get supportLink(){return N()},get shadowRootContainer(){return je()},get outerContainerRef(){return te()},get fullScreenTarget(){return qe()},get showMiniTimer(){return ve()},get playerStarted(){return s(Rt)},get seekToInteractive(){return X()},get playPrevChapter(){return We()},firstStart:Z,seekTime:Ti,get showEndScreen(){return oe()},get showAutoplayNext(){return Te()},get showNextPrevButtons(){return Le()},get videoContainer(){return s(Mt)},set videoContainer(jt){D(Mt,ge(jt))}})},Ii=Y=>{var jt=Fe(),mi=_e(jt);{var Ri=fi=>{mv(fi,{get thumbUrl(){return $()},get outsideDuration(){return ae()},get canRewindLive(){return E()},get videoContainer(){return s(Mt)},set videoContainer(mt){D(Mt,ge(mt))}})},di=fi=>{uv(fi,{get store(){return r()},uiConfig:ut,get title(){return f()},get thumbUrl(){return $()},get interactiveContainer(){return p()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return R()},get adsSlotId(){return W()},get adsParams(){return K()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return j()},get duration(){return ae()},get logoClickable(){return G()},get logoHidden(){return ce()},logoTargetUrl:at,get nextButtonActive(){return Ne()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return ue()},get endScreenVideoThumb(){return Me()},get isOneVideoPlaylist(){return le()},get supportLink(){return N()},get shadowRootContainer(){return je()},get outerContainerRef(){return te()},get fullScreenTarget(){return qe()},get showMiniTimer(){return ve()},get playerStarted(){return s(Rt)},get seekToInteractive(){return X()},get playPrevChapter(){return We()},firstStart:Z,get showEndScreen(){return oe()},get showAutoplayNext(){return Te()},get showNextPrevButtons(){return Le()},get videoContainer(){return s(Mt)},set videoContainer(mt){D(Mt,ge(mt))},get keyboardControls(){return ke()},set keyboardControls(mt){ke(mt)}})};V(mi,fi=>{go?fi(Ri):fi(di,!1)})}y(Y,jt)};V(xt,Y=>{de()?Y(pi):Y(Ii,!1)})}g(eo),k(Y=>rt=ee(eo,1,"root svelte-tw6yp4",null,rt,Y),[()=>({"root--miui-browser":Tl.clientChecker.device.isMobile&&Tl.clientChecker.browser.isMiuiBrowser,"visible-outside":go})]),y(t,eo);var Io=H({initVideo:Ae,play:Qe,pause:nt,setMuted:et,toggleSubtitle:St,hideControls:ht,showControls:Yt,setVolume:bt,seekTime:Ti,seekEpisodeStartTime:Gt,returnFocusToEpisodes:Je,setPlaybackRate:ti,setAutoQualityLimits:Ji,get sources(){return a()},set sources(Y){a(Y)},get store(){return r()},set store(Y){r(Y)},get microStoresRoot(){return d()},set microStoresRoot(Y){d(Y)},get videoConfig(){return l()},set videoConfig(Y){l(Y)},get uiConfig(){return u()},set uiConfig(Y){u(Y)},get title(){return f()},set title(Y){f(Y)},get thumbUrl(){return $()},set thumbUrl(Y){$(Y)},get interactiveContainer(){return p()},set interactiveContainer(Y){p(Y)},get interactiveController(){return _()},set interactiveController(Y){_(Y)},get subtitles(){return w()},set subtitles(Y){w(Y)},get live(){return b()},set live(Y){b(Y)},get preload(){return C()},set preload(Y){C(Y)},get autoplay(){return T()},set autoplay(Y){T(Y)},get volume(){return I()},set volume(Y){I(Y)},get muted(){return M()},set muted(Y){M(Y)},get fromTime(){return P()},set fromTime(Y){P(Y)},get canRewindLive(){return E()},set canRewindLive(Y){E(Y)},get showAds(){return R()},set showAds(Y){R(Y)},get adsSlotId(){return W()},set adsSlotId(Y){W(Y)},get adsParams(){return K()},set adsParams(Y){K(Y)},get adsPreviewParam(){return U()},set adsPreviewParam(Y){U(Y)},get adsAutoplayParam(){return j()},set adsAutoplayParam(Y){j(Y)},get duration(){return ae()},set duration(Y){ae(Y)},get logoClickable(){return G()},set logoClickable(Y){G(Y)},get logoHidden(){return ce()},set logoHidden(Y){ce(Y)},get isMobile(){return de()},set isMobile(Y){de(Y)},get showNextPrevButtons(){return Le()},set showNextPrevButtons(Y){Le(Y)},get nextButtonActive(){return Ne()},set nextButtonActive(Y){Ne(Y)},get prevButtonActive(){return he()},set prevButtonActive(Y){he(Y)},get endScreenVideoTitle(){return ue()},set endScreenVideoTitle(Y){ue(Y)},get endScreenVideoThumb(){return Me()},set endScreenVideoThumb(Y){Me(Y)},get isOneVideoPlaylist(){return le()},set isOneVideoPlaylist(Y){le(Y)},get supportLink(){return N()},set supportLink(Y){N(Y)},get shadowRootContainer(){return je()},set shadowRootContainer(Y){je(Y)},get outerContainerRef(){return te()},set outerContainerRef(Y){te(Y)},get fullScreenTarget(){return qe()},set fullScreenTarget(Y){qe(Y)},get failoverHosts(){return re()},set failoverHosts(Y){re(Y)},get showMiniTimer(){return ve()},set showMiniTimer(Y){ve(Y)},get saveRate(){return ye()},set saveRate(Y){ye(Y)},get showAutoplayNext(){return Te()},set showAutoplayNext(Y){Te(Y)},get seekToInteractive(){return X()},set seekToInteractive(Y){X(Y)},get playPrevChapter(){return We()},set playPrevChapter(Y){We(Y)},get volumeMultiplier(){return tt()},set volumeMultiplier(Y){tt(Y)},get showEndScreen(){return oe()},set showEndScreen(Y){oe(Y)},get keyboardControls(){return ke()},set keyboardControls(Y){ke(Y)}});return o(),Io}var Tx=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 gv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Tx();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i))),y(t,o)}function hv(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");gv(t,{get style(){return s(o)}})}var Ix=L('<div class="title svelte-1y9fytq"> </div>'),Ex=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),kx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function _v(t,e){q(t,kx);var i=Ex(),o=h(i);{var n=d=>{var l=Ix(),u=h(l,!0);g(l),k(()=>be(u,e.title)),y(d,l)};V(o,d=>{e.title&&d(n)})}var a=A(o,2);{var r=d=>{let l=v(()=>!!e.thumbUrl);hv(d,{get isWhite(){return s(l)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(r)})}g(i),k(()=>lt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),y(t,i)}var y0=require("@vkontakte/videoplayer-shared/es2015"),Xi=require("@vkontakte/videoplayer-shared/es2015"),Cv=require("@vkontakte/videoplayer-core/es2015"),pc=require("@vkontakte/videoplayer-core/es2015"),Wu=require("@vkontakte/videoplayer-statistics/es2015");var Ru=require("@vkontakte/videoplayer-shared/es2015"),Vu=class{constructor(){this.subscription=new Ru.Subscription,this.logger=new Ru.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(r){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,r;let o=we(e.state.currentPlaybackRate$),n=we(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(r=(a=navigator.mediaSession).setPositionState)==null||r.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var El=require("@vkontakte/videoplayer-shared/es2015");var Px=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 bv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Px();let n;var a=h(o);$e(a,()=>{var r;return(r=e.children)!=null?r:ne}),Se(),g(o),k(()=>n=Pe(o,n,z({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))),y(t,o)}var Ax=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Mx={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 $v(t,e){O(e,!0),q(t,Mx);let[i,o]=Oe(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),r=Ee(),d=qt(),l=!!r.webApi.pictureInPictureApi,u=r.interfaceLanguage$,f=r.ui.isMobile,$=r.ui.t,p=v(()=>n()&&$("pip_dummy_title")),_=Lu(d.view);var w=Ax();ee(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),lt(w,_);var b=h(w);let C;var T=h(b);bv(T,{}),g(b);var I=A(b,2),M=h(I,!0);g(I),g(w),k(P=>{C=ee(b,1,"dummy-image svelte-1pbsod4",null,C,P),be(M,s(p))},[()=>({desktop:!a()})]),y(t,w),H(),o()}var Lx=Object.defineProperty,Vx=(t,e,i)=>e in t?Lx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Il=(t,e,i)=>Vx(t,typeof e!="symbol"?e+"":e,i),yv=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},r=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,r);d((i=i.apply(t,e)).next())}),Rx=460,Bx=280,oc=class{constructor({enabled:e=!0}={enabled:!0}){Il(this,"playerDomElement"),Il(this,"playerParentShadowRoot"),Il(this,"playerDummyElement"),Il(this,"svelteContext"),Il(this,"pipWindow"),Il(this,"info",{isActive$:new El.ValueSubject(!1),isEnabled$:new El.ValueSubject(!1),type:1}),this.info.isEnabled$=new El.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,El.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return yv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Rx,height:Bx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
396
+ `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),r=a.attachShadow({mode:"open"});r.append(n),r.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ms($v,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(ra(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}remove(){return yv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return yv(this,null,function*(){yield this.remove()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function f0(t){return t instanceof oc}var Bu=class{static getLatestSupportedVersion(e){let i=new va(e),o=new oc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function nc(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=(a=(n=e[r])!=null?n:t[r])!=null?a:void 0;return o}var m0="Inner error. Unexpectedly root annotation container null reference exception",v0="Annotation with such name already exists",g0="Annotation with such name does not exist";var kl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Pl=require("@vkontakte/videoplayer-shared/es2015"),Nx="1",Dx=100,Nu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Pl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Pl.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"},Dx);this.subscriptions.add((0,Pl.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 kl(m0);if(this.annotations.has(e))throw new kl(v0);i.style.zIndex=(o=i.style.zIndex)!=null?o:Nx,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 kl(g0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,r=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+r>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Da=require("@vkontakte/videoplayer-shared/es2015"),Jo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Da.assertNonNullable)(e),(0,Da.assertNonNullable)(i),(0,Da.assertNonNullable)(n),n.interactiveData&&(0,Da.assertNonNullable)(o),this.subscription=new Da.Subscription,this.subscription}};var rc=class extends Jo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ot(z({},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(a=>{this.state$.set(a?!0:null)})),o}};var sc=class extends Jo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ot(z({},se(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:r}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:u,isMobile:f}=a.ui,$=we(f),p=()=>$&&we(u);return o.add(u.subscribe(_=>{if(!$)return;let w=we(r);we(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||p())})),o.add(r.subscribe(_=>{if(_===null)return;let w=we(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var ac=class extends Jo{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(a=>{a.length&&(a.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var h0=require("@vkontakte/videoplayer-shared/es2015");var xv=se(!1),Du=null,lc=class extends Jo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ot(z({},xv),{set:(i,o=!1)=>{i!==we(xv)&&(this.clearTimeout(),xv.set(i),!i&&Du&&(Du=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:r,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(l.subscribe($=>{we(r)&&$&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,h0.combine)({isPlaying$:d,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:$,isInteractiveTime$:p,interactiveTimeIndicator:_})=>{var w,b;if(!(!$||!(_!=null&&_.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Du===null&&(Du=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Ou=require("@vkontakte/videoplayer-shared/es2015");var dc=class extends Jo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ot(z({},se(null)),{toggle:Ou.noop});this.checkIfShouldHide=i=>Fs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,r=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>Tt(this,null,function*(){if(this.checkIfShouldHide(we(r)))return;let l=we(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:$}=n.ui.controls,p=we(u),_=we(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),$.remove(Qp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),$.add(Qp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,Ou.combine)({graphIsOpened:this.state$,currentGridType:r}).subscribe(f=>Tt(this,[f],function*({graphIsOpened:l,currentGridType:u}){if(this.checkIfShouldHide(u)&&l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var wv=require("@vkontakte/videoplayer-shared/es2015"),cc=class extends Jo{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$:a,isEnabled$:r,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new wv.ValueSubject(!1),isEnabled$:new wv.ValueSubject(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(r.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};var Fu=require("@vkontakte/videoplayer-shared/es2015");var Hu=require("@vkontakte/videoplayer-shared/es2015");var _0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Ox({maxCount:t}):void 0,e!==0?Hx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Ox=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Hu.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}}},Hx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Hu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Hu.safeStorage.set(e,JSON.stringify(a)),n=a=>{let r=i();delete r[a],o(r)};return{notificationShowed:a=>{o(Ot(z({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let r=i()[a];if(r){let d=Date.now()-r.launchTime>t;return d&&n(a),d}else return!0}}};var uc=class extends Jo{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:a,timeoutShowSlowVideoNotification:r,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=_0({maxShowCount:a,timeout:r});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Fu.filterChanged)(),(0,Fu.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var b0=()=>[rc,sc,ac,lc,dc,cc,uc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ot(z({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Al=require("@vkontakte/videoplayer-shared/es2015");var Fx=Object.defineProperty,Ux=Object.defineProperties,zx=Object.getOwnPropertyDescriptors,$0=Object.getOwnPropertySymbols,Wx=Object.prototype.hasOwnProperty,qx=Object.prototype.propertyIsEnumerable,Sv=(t,e,i)=>e in t?Fx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qs=(t,e)=>{for(var i in e||(e={}))Wx.call(e,i)&&Sv(t,i,e[i]);if($0)for(var i of $0(e))qx.call(e,i)&&Sv(t,i,e[i]);return t},Kx=(t,e)=>Ux(t,zx(e)),ri=(t,e,i)=>Sv(t,typeof e!="symbol"?e+"":e,i),Uu=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},r=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,r);d((i=i.apply(t,e)).next())}),Qx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Xi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,pc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Pn=J(void 0),zu=class extends HTMLElement{constructor(){super(),ri(this,"svelteStubComponent"),ri(this,"svelteRootComponent"),ri(this,"store"),ri(this,"microStoresRoot"),ri(this,"statistics"),ri(this,"sentry"),ri(this,"_shadowRoot"),ri(this,"playerContainer"),ri(this,"rootContainer"),ri(this,"shadowRootContainer"),ri(this,"uiConfig"),ri(this,"coreConfig"),ri(this,"statisticsConfig"),ri(this,"interactiveController"),ri(this,"interactiveContainer"),ri(this,"graphMadePause"),ri(this,"currentPlayingVideoIndex",0),ri(this,"needToRepeatPlaylist",!1),ri(this,"videoConfig"),ri(this,"pictureInPictureApi"),ri(this,"mediaSessionApi"),ri(this,"unsubscribePlayerPhaseSubscription"),ri(this,"logger"),ri(this,"log"),ri(this,"subscription"),ri(this,"interactiveSubscription"),ri(this,"annotationsApi"),ri(this,"slotsApi"),ri(this,"prevIsid"),ri(this,"isInited",!1),ri(this,"internalsExposure",null),ri(this,"shadowDOMCallbacksDisabled",!1),ri(this,"createOneStat",(e,i={})=>{var o,n,a,r;if(!this.videoConfig)return;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:$,refreshStatAuthToken:p,autoplay:_,isMobile:w,isTouch:b,refDomain:C,deviceId:T,interactiveData:I}=nc(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Wu.OneStat(qs({movieId:E,albumId:d,place:l,trackCode:f,vkAppId:$,autoplay:(r=_&&!this.interactiveController)!=null?r:!1,mobile:b!=null?b:w,clip:R,refDomain:C,deviceId:T},M&&(!this.isInited||P)&&{projectId:Number(M)}),qs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(K){console.error(K),this.log({message:K.message})}}),Al.devNull.create("ui"),this.logger=new Xi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Xi.Subscription,this.interactiveSubscription=new Xi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ge({title:o,thumbUrl:n}),r={target:this.playerContainer,props:a};this.svelteStubComponent=ms(_v,r)}disconnectedCallback(){var e,i,o,n,a,r;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.mediaSessionApi)==null||o.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)==null||n.call(this),(a=this.interactiveController)==null||a.destroy(),this.interactiveSubscription.unsubscribe(),(r=this.internalsExposure)==null||r.destroy(),Al.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:a}=nc(this.videoConfig,i),{unitedVideoId:r}=e;if(this.uiConfig.features.thinStatistics&&r)return new Wu.ThinOneStat.ThinOneStat({deviceId:o,movieId:r,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,r,d,l,u,f,$,p;if(!this.videoConfig)return;let{albumId:_,statPlace:w,statAuthToken:b,preload:C,autoplay:T,volume:I,muted:M,fromTime:P,canRewindLive:E,supportLink:R,showAds:W,adsSlotId:K,adsParams:U={},adsPreviewParam:j,adsAutoplayParam:ae,interfaceLanguage:G,isCyrillicRelatedInterface:ce,logoClickable:de,logoHidden:Le,isMobile:Ne,isTouch:he,isAudioDisabled:ue,isLiveCatchUpMode:Me,fullScreenTarget:le,failoverHosts:N,canDownload:je,callbacks:te,interactiveData:qe,showThumbTimer:re,additionalButtons:ve=[],additionalSettingsMenuItems:ye=[],additionalContextMenuItems:X=[],repeat:We,saveRate:tt,volumeMultiplier:Te,showEndScreen:oe,showAutoplayNext:ke}=nc(this.videoConfig,i),{sources:Ke,title:st,thumbUrl:ut,unitedVideoId:at,isClip:Et=!1,duration:ft,adsParams:Xt={},videoEpisodes:si,previewThumbsData:Wt,subtitles:Mt,live:ie}=e,Rt=qs(qs({},U),Xt),Z=this.getNextVideoInfo(),fe={sources:Ke,title:st,thumbUrl:ut,subtitles:Mt,unitedVideoId:at,isClip:Et,live:ie,albumId:_,statPlace:w,autoplay:T,muted:M,volume:I,fromTime:P,canRewindLive:E,showAds:W,adsSlotId:K,adsParams:Rt,adsPreviewParam:j,adsAutoplayParam:ae,duration:ft,logoClickable:de,logoHidden:Le,isTouch:he!=null?he:Ne,repeat:We,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Z.nextVideoTitle,endScreenVideoThumb:Z.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ae={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(fe)}`});let Be=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),me=(Be==null?void 0:Be.oneStat)||this.createOneStat(e,i),Qe=this.createThinOneStat(e,i);(me||Qe)&&(this.statistics=new bu(me,Qe,Be==null?void 0:Be.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ma(this.uiConfig.sentry,{version:ua,env:qc},{movieId:at,albumId:_,place:w,autoplay:(a=T&&!this.interactiveController)!=null?a:!1,mobile:he!=null?he:Ne,clip:Et}),this.interactiveController&&((l=this.prevIsid)!=null||(this.prevIsid=(d=(r=this.statistics)==null?void 0:r.oneStat)==null?void 0:d.isid$.getValue())),this.sentry=qs(qs({},this.sentry),ma.getInstance());let et=!!qe,St=[],ht="tooltip_interactive_go_back_disabled_first";if(et&&this.interactiveController){let Gt=this.interactiveController.state.isInitialChapter$.getValue(),Je=this.interactiveController.getHistoryState();Gt&&St.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||St.push("SEEK_TO_INTERACTIVE_BUTTON"),Je.hasPrevChapter$.getValue()||(St.push("PLAY_PREV_CHAPTER_BUTTON"),Gt||(Je.isGoBackLimited$.getValue()?ht="tooltip_interactive_go_back_disabled_limit":ht="tooltip_interactive_go_back_disabled"))}let Yt=()=>{var Gt;this.isInited=!1,this.prevIsid=void 0;let Je=(o==null?void 0:o.info.isEnded$.getValue())&&((Gt=this.interactiveController)==null?void 0:Gt.state.isEndChapter$.getValue());te.onReplayInteractiveVideo&&!Je?te.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=N1({player:o,interfaceLanguage:G,isCyrillicRelatedInterface:ce,videoId:at,isClip:Et,isLiveCatchUpMode:Me,isAudioDisabled:ue,statAuthToken:b,callbacks:te,webApi:Ae,videoEpisodes:si,previewThumbsData:Wt,canDownload:je,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:St,isInteractive:et,saveRate:tt,interactiveRanges$:(u=this.interactiveController)==null?void 0:u.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Yt,playPrevChapterDisabledTooltip:ht,hasInteractiveBranches:!!((p=($=this.interactiveController)==null?void 0:$.getChapterBranches())!=null&&p.length),additionalButtons:this.uiConfig.features.additionalButtons?ve:[],additionalSettingsMenuItems:ye!=null?ye:[],additionalContextMenuItems:X!=null?X:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:We&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:bt}=this.microStoresRoot=b0(),Ti=()=>{var Gt,Je,ti,Ji,Ui,go;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(rt=>{var xt;return(xt=te==null?void 0:te.onCurrentFormatChanged)==null?void 0:xt.call(te,rt)})),this.subscription.add(bt.interactiveControlsOpacity$.subscribe(rt=>{var xt;rt!==null&&((xt=this==null?void 0:this.interactiveController)==null||xt.setDisabledControls(rt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(rt=>{var xt;return(xt=te==null?void 0:te.onThroughputEstimationChanged)==null?void 0:xt.call(te,rt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(rt=>{var xt;return(xt=te==null?void 0:te.onTrafficSavingEnabledChanged)==null?void 0:xt.call(te,rt)})),this.subscription.add(new Xi.Observable(rt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(xt=>rt.next(xt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Xi.skip)(1):rt=>rt).subscribe(rt=>{var xt;return(xt=te==null?void 0:te.onCurrentPlaybackRateChanged)==null?void 0:xt.call(te,rt)})),this.subscription.add(this.store.state.volume$.subscribe(rt=>{var xt;return(xt=te==null?void 0:te.onVolumeChange)==null?void 0:xt.call(te,rt)})),this.subscription.add(this.store.state.muted$.subscribe(rt=>{var xt,pi;return rt?(xt=te==null?void 0:te.onMute)==null?void 0:xt.call(te):(pi=te==null?void 0:te.onUnmute)==null?void 0:pi.call(te)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(rt=>{var xt;return(xt=te==null?void 0:te.onVideoBitrateChanged)==null?void 0:xt.call(te,rt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(rt=>{var xt;let pi=(xt=this.store)==null?void 0:xt.ui.controls.disabledControls$;pi&&(rt&&!pi.includes(cd)&&pi.add(cd),rt||pi.remove(cd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(rt=>Uu(this,null,function*(){var xt;if(!pc.clientChecker.browser.isSamsungBrowser||!rt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((xt=this.videoConfig)==null?void 0:xt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(rt=>{var xt;return(xt=te==null?void 0:te.onVSIDChanged)==null?void 0:xt.call(te,rt)})),this.initMediaSession(),D(Pn,ge({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ke,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:st,thumbUrl:ut,subtitles:Mt,live:ie,preload:C,autoplay:T,muted:M,volume:I,fromTime:P,canRewindLive:E,supportLink:R,showAds:W,adsSlotId:K,adsParams:Rt,adsPreviewParam:j,adsAutoplayParam:ae,duration:ft,logoClickable:de,logoHidden:Le,isMobile:he!=null?he:Ne,failoverHosts:N,fullScreenTarget:le,saveRate:tt,shadowRootContainer:this.shadowRootContainer,showMiniTimer:re,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Z.nextVideoTitle,endScreenVideoThumb:Z.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Te,showEndScreen:oe,showAutoplayNext:ke}));let eo={target:this.playerContainer,props:s(Pn)};this.svelteRootComponent=ms(vv,eo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ti=(Je=(Gt=this.videoConfig)==null?void 0:Gt.callbacks)==null?void 0:Je.onInited)==null||ti.call(Je)),(Ji=this.internalsExposure)==null||Ji.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((go=(Ui=this.videoConfig)==null?void 0:Ui.callbacks)!=null&&go.onDevNullLog)?Al.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Al.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?pc.clientChecker.isInited$.subscribe(Gt=>{Gt&&(console.log("UI SDK async start"),Ti())}):Ti()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let r=a==null?void 0:a.uiInfo;r&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=r.onControlsVisibleChanged)==null?void 0:l.call(r,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=r.onIsMobileChanged)==null?void 0:l.call(r,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=r.onPlayerSizeChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=r.onPrevButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=r.onPlayButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=r.onReplayButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=r.onNextButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=r.onPlayPrevChapterChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=r.onSeekToInteractiveButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=r.onGraphButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=r.onLiveButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=r.onTimeUpdateChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=r.onEpisodesChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=r.onSubtitlesChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var l;return(l=r.onTopLeftControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var l;return(l=r.onTopRightControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var l;return(l=r.onBottomLeftControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var l;return(l=r.onBottomRightControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var l;return(l=r.onMiddleControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var l;return(l=r.onBottomControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var l;return(l=r.onTitleChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=r.onSettingsChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=r.onFullscreenChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=r.onChromecastChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=r.onPipChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=r.onVkLogoChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=r.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=r.onTimelineChanged)==null?void 0:l.call(r,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,Xi.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)}initInteractives(){return Uu(this,null,function*(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let r=(i=this.store)==null?void 0:i.interfaceLanguage$,d=r?we(r):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:f,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:f,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:p,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(b=>{if(!this.isInited)return;let C=this.store;b?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Kx(qs({},b.config),{title:(l==null?void 0:l.title)||b.config.title});let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:C})=>{var T,I,M,P,E,R;if(!this.store||!this.microStoresRoot)return;let W=p.getValue();if(b==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ud)),b==="action-choice-canceled"){let K=we(this.store.state.isPlaying$)||W;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&K){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(P=this.videoConfig)==null?void 0:(E=P.callbacks).onDisabledInteractiveClick)==null||R.call(E)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:C})=>{this.store&&b==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(ud)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var b,C,T,I;(b=this.microStoresRoot)==null||b.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(b=>{this.log({message:b.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,r,d,l,u,f,$,p,_,w,b,C,T,I,M,P,E,R,W,K,U,j,ae,G;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=nc(Qx,(0,Xi.cloneDeepWith)(e,ce=>ce instanceof HTMLElement?ce:void 0)),this.uiConfig=_h((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(r=this.uiConfig.sentry)!=null?r:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Xi.InternalsExposure("UI"))),Al.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[(0,y0.now)()]}),(0,Xi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Xi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((E=this.uiConfig.showLogo)!=null?E:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(K=this.uiConfig.features.endScreen)!=null?K:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ae=this.videoConfig.videos)!=null&&ae[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ce={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Bu.getLatestSupportedVersion(ce):this.pictureInPictureApi=new va(ce)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Vu:void 0,this.slotsApi=this.uiConfig.features.slots?new Pu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Nu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),f0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(G=this.slotsApi)==null||G.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(Pn)&&(s(Pn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Pn).nextButtonActive=this.isNextButtonActive(),s(Pn).prevButtonActive=this.isPrevButtonActive(),s(Pn).endScreenVideoTitle=o.nextVideoTitle,s(Pn).endScreenVideoThumb=o.nextVideoThumb,s(Pn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=qs({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Pn)&&(s(Pn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Pn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Pn).nextButtonActive=this.isNextButtonActive(),s(Pn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Uu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i,n=o.currentFormat$.getValue();return(n===Cv.VideoFormat.DASH_LIVE_CMAF||n===Cv.VideoFormat.HLS_LIVE_CMAF)&&!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 a=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecover(!0)};n&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;n||a(),(r=this.store)==null||r.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||n(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var r,d;(r=this.store)==null||r.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}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()}replayInteractiveChapter(e){return Uu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),r=we(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,Xi.once)()).subscribe(()=>{r&&n>=r.time?this.seekTime(r.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield 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)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&ra(e)}};var Ml=require("@vkontakte/videoplayer-shared/es2015"),qu=require("@vkontakte/videoplayer-core/es2015"),Gx=()=>{window.customElements.define("vk-video-player",zu)};