@vkontakte/videoplayer 1.1.64-dev.dae0b8a8.0 → 1.1.64-dev.dc6a30a0.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.esm.js CHANGED
@@ -1,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.64-dev.dae0b8a8.0
3
- * Mon, 09 Jun 2025 04:03:57 GMT
2
+ * @vkontakte/videoplayer v1.1.64-dev.dc6a30a0.0
3
+ * Fri, 20 Jun 2025 11:05:01 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
- var q1=Object.defineProperty,W1=Object.defineProperties;var K1=Object.getOwnPropertyDescriptors;var Gm=Object.getOwnPropertySymbols;var Q1=Object.prototype.hasOwnProperty,G1=Object.prototype.propertyIsEnumerable;var jm=t=>{throw TypeError(t)};var xu=(t,e,i)=>e in t?q1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))Q1.call(e,i)&&xu(t,i,e[i]);if(Gm)for(var i of Gm(e))G1.call(e,i)&&xu(t,i,e[i]);return t},Rt=(t,e)=>W1(t,K1(e));var Dn=(t,e,i)=>xu(t,typeof e!="symbol"?e+"":e,i),wu=(t,e,i)=>e.has(t)||jm("Cannot "+i);var Ri=(t,e,i)=>(wu(t,e,"read from private field"),i?i.call(t):e.get(t)),cs=(t,e,i)=>e.has(t)?jm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xa=(t,e,i,o)=>(wu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Ym=(t,e,i)=>(wu(t,e,"access private method"),i);var Pt=(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 us="[",Vs="[!",Rs="]",Wr={};var Di=Symbol(),_i=Symbol("filename"),Zm=Symbol("hmr"),Xm="http://www.w3.org/1999/xhtml",Su="http://www.w3.org/2000/svg";var jd=!0;var ev,tv,Jm=(tv=(ev=globalThis.process)==null?void 0:ev.env)==null?void 0:tv.NODE_ENV,Ee=Jm&&!Jm.toLowerCase().startsWith("prod");var Uo=Symbol("$state"),Kr=Symbol("$state metadata"),ml=Symbol("legacy props"),iv=Symbol("");var mr=Array.isArray,ov=Array.prototype.indexOf,vl=Array.from,Cu=Object.keys,lo=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,Yd=Object.getOwnPropertyDescriptors,Tu=Object.prototype,nv=Array.prototype,Qr=Object.getPrototypeOf;function ps(t){return typeof t=="function"}var ne=()=>{};function rv(t){return t()}function fs(t){for(var e=0;e<t.length;e++)t[e]()}var gl=[],Iu=[];function sv(){var t=gl;gl=[],fs(t)}function j1(){var t=Iu;Iu=[],fs(t)}function on(t){gl.length===0&&queueMicrotask(sv),gl.push(t)}function ku(){gl.length>0&&sv(),Iu.length>0&&j1()}function Zd(t){return t===this.v}function wa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function av(t,e){return t!==e}function Sa(t){return!wa(t,this.v)}function lv(){if(Ee){let t=new Error(`derived_references_self
6
+ var Q1=Object.defineProperty,G1=Object.defineProperties;var Y1=Object.getOwnPropertyDescriptors;var Zm=Object.getOwnPropertySymbols;var j1=Object.prototype.hasOwnProperty,Z1=Object.prototype.propertyIsEnumerable;var Xm=t=>{throw TypeError(t)};var Cu=(t,e,i)=>e in t?Q1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,K=(t,e)=>{for(var i in e||(e={}))j1.call(e,i)&&Cu(t,i,e[i]);if(Zm)for(var i of Zm(e))Z1.call(e,i)&&Cu(t,i,e[i]);return t},Nt=(t,e)=>G1(t,Y1(e));var Bn=(t,e,i)=>Cu(t,typeof e!="symbol"?e+"":e,i),Tu=(t,e,i)=>e.has(t)||Xm("Cannot "+i);var Li=(t,e,i)=>(Tu(t,e,"read from private field"),i?i.call(t):e.get(t)),cs=(t,e,i)=>e.has(t)?Xm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ca=(t,e,i,o)=>(Tu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Jm=(t,e,i)=>(Tu(t,e,"access private method"),i);var Et=(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 us="[",Ls="[!",Vs="]",Kr={};var Vi=Symbol(),$i=Symbol("filename"),ev=Symbol("hmr"),tv="http://www.w3.org/1999/xhtml",Iu="http://www.w3.org/2000/svg";var Yd=!0;var ov,nv,iv=(nv=(ov=globalThis.process)==null?void 0:ov.env)==null?void 0:nv.NODE_ENV,Ee=iv&&!iv.toLowerCase().startsWith("prod");var Oo=Symbol("$state"),Qr=Symbol("$state metadata"),fl=Symbol("legacy props"),rv=Symbol("");var _r=Array.isArray,sv=Array.prototype.indexOf,ml=Array.from,ku=Object.keys,to=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,jd=Object.getOwnPropertyDescriptors,Eu=Object.prototype,av=Array.prototype,Gr=Object.getPrototypeOf;function ps(t){return typeof t=="function"}var oe=()=>{};function lv(t){return t()}function fs(t){for(var e=0;e<t.length;e++)t[e]()}var vl=[],Pu=[];function dv(){var t=vl;vl=[],fs(t)}function X1(){var t=Pu;Pu=[],fs(t)}function nn(t){vl.length===0&&queueMicrotask(dv),vl.push(t)}function Au(){vl.length>0&&dv(),Pu.length>0&&X1()}function Zd(t){return t===this.v}function Ta(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function cv(t,e){return t!==e}function Ia(t){return!Ta(t,this.v)}function uv(){if(Ee){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 pv(t){if(Ee){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 cv(){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 uv(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 fv(){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 mv(t){if(Ee){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 pv(){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 vv(){if(Ee){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 fv(){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 gv(){if(Ee){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 mv(){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 vv(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 hv(){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 _v(t){if(Ee){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 gv(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 bv(t){if(Ee){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 hv(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 $v(t){if(Ee){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 _v(){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 bv(){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 $v(){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 yv(){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 Dr=!1,Nr=!1;function xv(){Dr=!0}var hl=null;function Gr(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 yv(){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 xv(){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 wv(){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 Sv(){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 Rr=!1,Br=!1;function Cv(){Rr=!0}var gl=null;function Yr(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;lo(e,"stack",{value:n.join(`
25
- `)}),lo(e,"name",{value:`${t}Error`})}return e}var Ds=new Set,Ca=new Map;function Mu(t){Ds=t}function Ki(t,e){var i={f:0,v:t,reactions:null,equals:Zd,rv:0,wv:0};return Ee&&Nr&&(i.created=e!=null?e:Gr("CreatedAt"),i.debug=null),i}function ee(t){return Y1(Ki(t))}function Yr(t,e=!1){var o,n;let i=Ki(t);return e||(i.equals=Sa),Dr&&Lt!==null&&Lt.l!==null&&((n=(o=Lt.l).s)!=null?n:o.s=[]).push(i),i}function Y1(t){return Bt!==null&&!On&&(Bt.f&2)!==0&&(vr===null?Cv([t]):vr.push(t)),t}function B(t,e){return Bt!==null&&!On&&Br()&&(Bt.f&18)!==0&&(vr===null||!vr.includes(t))&&yv(),Ta(t,e)}function Ta(t,e){var o;if(!t.equals(e)){var i=t.v;if(Bs?Ca.set(t,e):Ca.set(t,i),t.v=e,t.wv=bl(),Ee&&Nr&&(t.updated=Gr("UpdatedAt"),It!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Sv(t,2048),Br()&&It!==null&&(It.f&1024)!==0&&(It.f&96)===0&&(Bn===null?Tv([t]):Bn.push(t)),Ee&&Ds.size>0){let n=Array.from(Ds);for(let a of n)(a.f&1024)!==0&&sn(a,4096),ms(a)&&Ia(a);Ds.clear()}}return e}function Sv(t,e){var i=t.reactions;if(i!==null)for(var o=Br(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===It)){if(Ee&&(d&262144)!==0){Ds.add(s);continue}sn(s,e),(d&1280)!==0&&((d&2)!==0?Sv(s,4096):ka(s))}}}function m(t){var e=2050,i=Bt!==null&&(Bt.f&2)!==0?Bt:null;It===null||i!==null&&(i.f&256)!==0?e|=256:It.f|=1048576;let o={ctx:Lt,deps:null,effects:null,equals:Zd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:It};return Ee&&Nr&&(o.created=Gr("CreatedAt")),o}function hr(t){let e=m(t);return e.equals=Sa,e}function Xd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)uo(e[i])}}var Lu=[];function Z1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function X1(t){var e,i=It;if(co(Z1(t)),Ee){let o=Ds;Mu(new Set);try{Lu.includes(t)&&lv(),Lu.push(t),Xd(t),e=Jd(t)}finally{co(i),Mu(o),Lu.pop()}}else try{Xd(t),e=Jd(t)}finally{co(i)}return e}function Ru(t){var e=X1(t),i=(Zr||(t.f&256)!==0)&&t.deps!==null?4096:1024;sn(t,i),t.equals(e)||(t.v=e,t.wv=bl())}var Os="font-weight: bold",Hs="font-weight: normal";function Iv(t,e,i){Ee?console.warn(`%c[svelte] hydration_attribute_changed
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;to(e,"stack",{value:n.join(`
25
+ `)}),to(e,"name",{value:`${t}Error`})}return e}var Rs=new Set,ka=new Map;function Ru(t){Rs=t}function Wi(t,e){var i={f:0,v:t,reactions:null,equals:Zd,rv:0,wv:0};return Ee&&Br&&(i.created=e!=null?e:Yr("CreatedAt"),i.debug=null),i}function J(t){return J1(Wi(t))}function Zr(t,e=!1){var o,n;let i=Wi(t);return e||(i.equals=Ia),Rr&&At!==null&&At.l!==null&&((n=(o=At.l).s)!=null?n:o.s=[]).push(i),i}function J1(t){return Ut!==null&&!On&&(Ut.f&2)!==0&&(br===null?kv([t]):br.push(t)),t}function D(t,e){return Ut!==null&&!On&&Nr()&&(Ut.f&18)!==0&&(br===null||!br.includes(t))&&Sv(),Ea(t,e)}function Ea(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ns?ka.set(t,e):ka.set(t,i),t.v=e,t.wv=_l(),Ee&&Br&&(t.updated=Yr("UpdatedAt"),kt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Iv(t,2048),Nr()&&kt!==null&&(kt.f&1024)!==0&&(kt.f&96)===0&&(Dn===null?Ev([t]):Dn.push(t)),Ee&&Rs.size>0){let n=Array.from(Rs);for(let a of n)(a.f&1024)!==0&&an(a,4096),ms(a)&&Pa(a);Rs.clear()}}return e}function Iv(t,e){var i=t.reactions;if(i!==null)for(var o=Nr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===kt)){if(Ee&&(d&262144)!==0){Rs.add(s);continue}an(s,e),(d&1280)!==0&&((d&2)!==0?Iv(s,4096):Aa(s))}}}function v(t){var e=2050,i=Ut!==null&&(Ut.f&2)!==0?Ut:null;kt===null||i!==null&&(i.f&256)!==0?e|=256:kt.f|=1048576;let o={ctx:At,deps:null,effects:null,equals:Zd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:kt};return Ee&&Br&&(o.created=Yr("CreatedAt")),o}function yr(t){let e=v(t);return e.equals=Ia,e}function Xd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)oo(e[i])}}var Bu=[];function e0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function t0(t){var e,i=kt;if(io(e0(t)),Ee){let o=Rs;Ru(new Set);try{Bu.includes(t)&&uv(),Bu.push(t),Xd(t),e=Jd(t)}finally{io(i),Ru(o),Bu.pop()}}else try{Xd(t),e=Jd(t)}finally{io(i)}return e}function Du(t){var e=t0(t),i=(Xr||(t.f&256)!==0)&&t.deps!==null?4096:1024;an(t,i),t.equals(e)||(t.v=e,t.wv=_l())}var Ds="font-weight: bold",Os="font-weight: normal";function Pv(t,e,i){Ee?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`,Os,Hs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function kv(t){Ee?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Ds,Os):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Av(t){Ee?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`,Os,Hs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Fs(t){Ee?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Ds,Os):console.warn("https://svelte.dev/e/hydration_html_changed")}function Hs(t){Ee?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`,Os,Hs):console.warn("https://svelte.dev/e/hydration_mismatch")}function Ev(){Ee?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Ds,Os):console.warn("https://svelte.dev/e/hydration_mismatch")}function Mv(){Ee?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`,Os,Hs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Pv(t,e,i){Ee?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Ds,Os):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Lv(t,e,i){Ee?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`,Os,Hs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Du(t,e){Ee?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Ds,Os):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Ou(t,e){Ee?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`,Os,Hs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function ec(t){Ee?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Ds,Os):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function ec(t){Ee?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`,Os,Hs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var je=!1;function po(t){je=t}var vt;function bi(t){if(t===null)throw Fs(),Wr;return vt=t}function Oi(){return bi(Vo(vt))}function g(t){if(je){if(Vo(vt)!==null)throw Fs(),Wr;vt=t}}function be(t=1){if(je){for(var e=t,i=vt;e--;)i=Vo(i);vt=i}}function Ea(){for(var t=0,e=vt;;){if(e.nodeType===8){var i=e.data;if(i===Rs){if(t===0)return e;t-=1}else(i===us||i===Vs)&&(t+=1)}var o=Vo(e);e.remove(),e=o}}function fe(t,e=null,i){var u,v;var o=null;if(Ee&&Nr&&(o=Gr("CreatedAt")),typeof t!="object"||t===null||Uo in t)return t;let n=Qr(t);if(n!==Tu&&n!==nv)return t;var a=new Map,s=mr(t),d=Ki(0);s&&a.set("length",Ki(t.length,o));var l;if(Ee)if(l={parent:e,owners:null},i){let $=(v=(u=i.v)==null?void 0:u[Kr])==null?void 0:v.owners;l.owners=$?new Set($):null}else l.owners=e===null?Lt!==null?new Set([Lt.function]):null:new Set;return new Proxy(t,{defineProperty($,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&_v();var w=a.get(p);return w===void 0?(w=Ki(_.value,o),a.set(p,w)):B(w,fe(_.value,l)),!0},deleteProperty($,p){var _=a.get(p);if(_===void 0)p in $&&a.set(p,Ki(Di,o));else{if(s&&typeof p=="string"){var w=a.get("length"),y=Number(p);Number.isInteger(y)&&y<w.v&&B(w,y)}B(_,Di),Av(d)}return!0},get($,p,_){var E;if(Ee&&p===Kr)return l;if(p===Uo)return t;var w=a.get(p),y=p in $;if(w===void 0&&(!y||(E=Nn($,p))!=null&&E.writable)&&(w=Ki(fe(y?$[p]:Di,l),o),a.set(p,w)),w!==void 0){var C=r(w);if(Ee){var T=C==null?void 0:C[Kr];T&&(T==null?void 0:T.parent)!==l&&Nu(l,T)}return C===Di?void 0:C}return Reflect.get($,p,_)},getOwnPropertyDescriptor($,p){var _=Reflect.getOwnPropertyDescriptor($,p);if(_&&"value"in _){var w=a.get(p);w&&(_.value=r(w))}else if(_===void 0){var y=a.get(p),C=y==null?void 0:y.v;if(y!==void 0&&C!==Di)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has($,p){var C;if(Ee&&p===Kr||p===Uo)return!0;var _=a.get(p),w=_!==void 0&&_.v!==Di||Reflect.has($,p);if(_!==void 0||It!==null&&(!w||(C=Nn($,p))!=null&&C.writable)){_===void 0&&(_=Ki(w?fe($[p],l):Di,o),a.set(p,_));var y=r(_);if(y===Di)return!1}return w},set($,p,_,w){var H;var y=a.get(p),C=p in $;if(s&&p==="length")for(var T=_;T<y.v;T+=1){var E=a.get(T+"");E!==void 0?B(E,Di):T in $&&(E=Ki(Di,o),a.set(T+"",E))}if(y===void 0?(!C||(H=Nn($,p))!=null&&H.writable)&&(y=Ki(void 0,o),B(y,fe(_,l)),a.set(p,y)):(C=y.v!==Di,B(y,fe(_,l))),Ee){var P=_==null?void 0:_[Kr];P&&(P==null?void 0:P.parent)!==l&&Nu(l,P),Mv(l)}var A=Reflect.getOwnPropertyDescriptor($,p);if(A!=null&&A.set&&A.set.call(w,_),!C){if(s&&typeof p=="string"){var I=a.get("length"),V=Number(p);Number.isInteger(V)&&V>=I.v&&B(I,V+1)}Av(d)}return!0},ownKeys($){r(d);var p=Reflect.ownKeys($).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Di});for(var[_,w]of a)w.v!==Di&&!(_ in $)&&p.push(_);return p},setPrototypeOf(){bv()}})}function Av(t,e=1){B(t,t.v+e)}function tc(t){return t!==null&&typeof t=="object"&&Uo in t?t[Uo]:t}function Lv(){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(tc(this[l])===a){ec("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(tc(this[l])===a){ec("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(tc(this[l])===a){ec("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Us,Vv,$l,Rv,Dv;function ic(){if(Us===void 0){Us=window,Vv=document,$l=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Rv=Nn(e,"firstChild").get,Dv=Nn(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,Lv())}}function an(t=""){return document.createTextNode(t)}function $i(t){return Rv.call(t)}function Vo(t){return Dv.call(t)}function h(t,e){if(!je)return $i(t);var i=$i(vt);if(i===null)i=vt.appendChild(an());else if(e&&i.nodeType!==3){var o=an();return i==null||i.before(o),bi(o),o}return bi(i),i}function pe(t,e){var n,a;if(!je){var i=$i(t);return i.nodeType===8&&i.data===""?Vo(i):i}if(e&&((n=vt)==null?void 0:n.nodeType)!==3){var o=an();return(a=vt)==null||a.before(o),bi(o),o}return vt}function M(t,e=1,i=!1){let o=je?vt:t;for(var n;e--;)n=o,o=Vo(o);if(!je)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=an();return o===null?n==null||n.after(s):o.before(s),bi(s),s}return bi(o),o}function yl(t){t.textContent=""}var Nv=new WeakSet,oc=!1,Sl=!1,xl=null,zs=!1,Bs=!1;function Hu(t){Bs=t}var wl=[],rc=[],Bt=null,On=!1;function yo(t){Bt=t}var It=null;function co(t){It=t}var vr=null;function Cv(t){vr=t}var ln=null,Fn=0,Bn=null;function Tv(t){Bn=t}var Uv=1,sc=0,Zr=!1,_l=null;function bl(){return++Uv}function ms(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,s=(e&512)!==0,d=o&&It!==null&&!Zr,l=i.length;if(s||d){var u=t,v=u.parent;for(n=0;n<l;n++)a=i[n],(s||!(($=a==null?void 0:a.reactions)!=null&&$.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);s&&(u.f^=512),d&&v!==null&&(v.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],ms(a)&&Ru(a),a.wv>t.wv)return!0}(!o||It!==null&&!Zr)&&sn(t,1024)}return!1}function Bv(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 oc=!1,t}function Ov(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Aa(t,e,i,o){var v,$;if(oc){if(i===null&&(oc=!1),Ov(e))throw t;return}if(i!==null&&(oc=!0),!Ee||o===null||!(t instanceof Error)||Nv.has(t)){Bv(t,e);return}Nv.add(t);let n=[],a=(v=e.fn)==null?void 0:v.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ee){var d=($=s.function)==null?void 0:$[_i];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=$l?" ":" ";lo(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Ds,Os):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function no(t){Ye=t}var ht;function yi(t){if(t===null)throw Hs(),Kr;return ht=t}function Hi(){return yi(Po(ht))}function g(t){if(Ye){if(Po(ht)!==null)throw Hs(),Kr;ht=t}}function ye(t=1){if(Ye){for(var e=t,i=ht;e--;)i=Po(i);ht=i}}function Ma(){for(var t=0,e=ht;;){if(e.nodeType===8){var i=e.data;if(i===Vs){if(t===0)return e;t-=1}else(i===us||i===Ls)&&(t+=1)}var o=Po(e);e.remove(),e=o}}function fe(t,e=null,i){var u,m;var o=null;if(Ee&&Br&&(o=Yr("CreatedAt")),typeof t!="object"||t===null||Oo in t)return t;let n=Gr(t);if(n!==Eu&&n!==av)return t;var a=new Map,s=_r(t),d=Wi(0);s&&a.set("length",Wi(t.length,o));var l;if(Ee)if(l={parent:e,owners:null},i){let y=(m=(u=i.v)==null?void 0:u[Qr])==null?void 0:m.owners;l.owners=y?new Set(y):null}else l.owners=e===null?At!==null?new Set([At.function]):null:new Set;return new Proxy(t,{defineProperty(y,p,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&yv();var w=a.get(p);return w===void 0?(w=Wi($.value,o),a.set(p,w)):D(w,fe($.value,l)),!0},deleteProperty(y,p){var $=a.get(p);if($===void 0)p in y&&a.set(p,Wi(Vi,o));else{if(s&&typeof p=="string"){var w=a.get("length"),b=Number(p);Number.isInteger(b)&&b<w.v&&D(w,b)}D($,Vi),Vv(d)}return!0},get(y,p,$){var I;if(Ee&&p===Qr)return l;if(p===Oo)return t;var w=a.get(p),b=p in y;if(w===void 0&&(!b||(I=Nn(y,p))!=null&&I.writable)&&(w=Wi(fe(b?y[p]:Vi,l),o),a.set(p,w)),w!==void 0){var C=r(w);if(Ee){var T=C==null?void 0:C[Qr];T&&(T==null?void 0:T.parent)!==l&&Hu(l,T)}return C===Vi?void 0:C}return Reflect.get(y,p,$)},getOwnPropertyDescriptor(y,p){var $=Reflect.getOwnPropertyDescriptor(y,p);if($&&"value"in $){var w=a.get(p);w&&($.value=r(w))}else if($===void 0){var b=a.get(p),C=b==null?void 0:b.v;if(b!==void 0&&C!==Vi)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return $},has(y,p){var C;if(Ee&&p===Qr||p===Oo)return!0;var $=a.get(p),w=$!==void 0&&$.v!==Vi||Reflect.has(y,p);if($!==void 0||kt!==null&&(!w||(C=Nn(y,p))!=null&&C.writable)){$===void 0&&($=Wi(w?fe(y[p],l):Vi,o),a.set(p,$));var b=r($);if(b===Vi)return!1}return w},set(y,p,$,w){var W;var b=a.get(p),C=p in y;if(s&&p==="length")for(var T=$;T<b.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Vi):T in y&&(I=Wi(Vi,o),a.set(T+"",I))}if(b===void 0?(!C||(W=Nn(y,p))!=null&&W.writable)&&(b=Wi(void 0,o),D(b,fe($,l)),a.set(p,b)):(C=b.v!==Vi,D(b,fe($,l))),Ee){var M=$==null?void 0:$[Qr];M&&(M==null?void 0:M.parent)!==l&&Hu(l,M),Rv(l)}var P=Reflect.getOwnPropertyDescriptor(y,p);if(P!=null&&P.set&&P.set.call(w,$),!C){if(s&&typeof p=="string"){var k=a.get("length"),R=Number(p);Number.isInteger(R)&&R>=k.v&&D(k,R+1)}Vv(d)}return!0},ownKeys(y){r(d);var p=Reflect.ownKeys(y).filter(b=>{var C=a.get(b);return C===void 0||C.v!==Vi});for(var[$,w]of a)w.v!==Vi&&!($ in y)&&p.push($);return p},setPrototypeOf(){xv()}})}function Vv(t,e=1){D(t,t.v+e)}function tc(t){return t!==null&&typeof t=="object"&&Oo in t?t[Oo]:t}function Bv(){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(tc(this[l])===a){ec("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(tc(this[l])===a){ec("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(tc(this[l])===a){ec("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Fs,Nv,bl,Dv,Ov;function ic(){if(Fs===void 0){Fs=window,Nv=document,bl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Dv=Nn(e,"firstChild").get,Ov=Nn(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,Bv())}}function ln(t=""){return document.createTextNode(t)}function xi(t){return Dv.call(t)}function Po(t){return Ov.call(t)}function h(t,e){if(!Ye)return xi(t);var i=xi(ht);if(i===null)i=ht.appendChild(ln());else if(e&&i.nodeType!==3){var o=ln();return i==null||i.before(o),yi(o),o}return yi(i),i}function pe(t,e){var n,a;if(!Ye){var i=xi(t);return i.nodeType===8&&i.data===""?Po(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==3){var o=ln();return(a=ht)==null||a.before(o),yi(o),o}return ht}function A(t,e=1,i=!1){let o=Ye?ht:t;for(var n;e--;)n=o,o=Po(o);if(!Ye)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),yi(s),s}return yi(o),o}function $l(t){t.textContent=""}var Hv=new WeakSet,oc=!1,wl=!1,yl=null,Us=!1,Ns=!1;function zu(t){Ns=t}var xl=[],rc=[],Ut=null,On=!1;function $o(t){Ut=t}var kt=null;function io(t){kt=t}var br=null;function kv(t){br=t}var dn=null,Fn=0,Dn=null;function Ev(t){Dn=t}var Wv=1,sc=0,Xr=!1,hl=null;function _l(){return++Wv}function ms(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&&kt!==null&&!Xr,l=i.length;if(s||d){var u=t,m=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&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],ms(a)&&Du(a),a.wv>t.wv)return!0}(!o||kt!==null&&!Xr)&&an(t,1024)}return!1}function Fv(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 oc=!1,t}function Uv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Va(t,e,i,o){var m,y;if(oc){if(i===null&&(oc=!1),Uv(e))throw t;return}if(i!==null&&(oc=!0),!Ee||o===null||!(t instanceof Error)||Hv.has(t)){Fv(t,e);return}Hv.add(t);let n=[],a=(m=e.fn)==null?void 0:m.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=bl?" ":" ";to(t,"message",{value:t.message+`
40
40
  ${n.map(p=>`
41
41
  ${l}in ${p}`).join("")}
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 y=p[w];y.includes("svelte/src/internal")||_.push(y)}lo(t,"stack",{value:_.join(`
44
- `)})}if(Bv(t,e),Ov(e))throw t}function zv(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?zv(a,e,!1):e===a&&(i?sn(a,2048):(a.f&1024)!==0&&sn(a,4096),ka(a))}}function Jd(t){var _,w;var e=ln,i=Fn,o=Bn,n=Bt,a=Zr,s=vr,d=Lt,l=On,u=t.f;ln=null,Fn=0,Bn=null,Zr=(u&256)!==0&&(On||!zs||Bt===null),Bt=(u&96)===0?t:null,vr=null,Tl(t.ctx),On=!1,sc++;try{var v=(0,t.fn)(),$=t.deps;if(ln!==null){var p;if(Cl(t,Fn),$!==null&&Fn>0)for($.length=Fn+ln.length,p=0;p<ln.length;p++)$[Fn+p]=ln[p];else t.deps=$=ln;if(!Zr)for(p=Fn;p<$.length;p++)((w=(_=$[p]).reactions)!=null?w:_.reactions=[]).push(t)}else $!==null&&Fn<$.length&&(Cl(t,Fn),$.length=Fn);if(Br()&&Bn!==null&&!On&&$!==null&&(t.f&6146)===0)for(p=0;p<Bn.length;p++)zv(Bn[p],t);return n!==null&&(sc++,Bn!==null&&(o===null?o=Bn:o.push(...Bn))),v}finally{ln=e,Fn=i,Bn=o,Bt=n,Zr=a,vr=s,Tl(d),On=l}}function J1(t,e){let i=e.reactions;if(i!==null){var o=ov.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&&(ln===null||!ln.includes(e))&&(sn(e,4096),(e.f&768)===0&&(e.f^=512),Xd(e),Cl(e,0))}function Cl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)J1(t,i[o])}function Ia(t){var e=t.f;if((e&16384)===0){sn(t,1024);var i=It,o=Lt,n=zs;if(It=t,zs=!0,Ee){var a=dn;Il(t.component_function)}try{(e&16)!==0?qv(t):Uu(t),Fu(t);var s=Jd(t);t.teardown=typeof s=="function"?s:null,t.wv=Uv;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=bl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ee&&rc.push(t)}catch(u){Aa(u,t,i,o||t.ctx)}finally{zs=n,It=i,Ee&&Il(a)}}}function Hv(){console.error("Last ten effects were: ",rc.slice(-10).map(t=>t.fn)),rc=[]}function e0(){try{pv()}catch(t){if(Ee&&lo(t,"stack",{value:""}),xl!==null)if(Ee)try{Aa(t,xl,null,null)}catch(e){throw Hv(),e}else Aa(t,xl,null,null);else throw Ee&&Hv(),t}}function Bu(){var t=zs;try{var e=0;for(zs=!0;wl.length>0;){e++>1e3&&e0();var i=wl,o=i.length;wl=[];for(var n=0;n<o;n++){var a=i0(i[n]);t0(a)}}}finally{Sl=!1,zs=t,xl=null,Ee&&(rc=[]),Ca.clear()}}function t0(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{ms(o)&&(Ia(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?zu(o):o.fn=null))}catch(n){Aa(n,o,null,o.ctx)}}}function ka(t){Sl||(Sl=!0,queueMicrotask(Bu));for(var e=xl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}wl.push(e)}function i0(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=Bt;try{Bt=i,ms(i)&&Ia(i)}catch(u){Aa(u,i,null,i.ctx)}finally{Bt=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 Ma(t){var e;for(t&&(Sl=!0,Bu(),e=t()),ku();wl.length>0;)Sl=!0,Bu(),ku();return e}function xo(){return Pt(this,null,function*(){yield Promise.resolve(),Ma()})}function r(t){var e=t.f,i=(e&2)!==0;if(_l!==null&&_l.add(t),Bt!==null&&!On){vr!==null&&vr.includes(t)&&$v();var o=Bt.deps;t.rv<sc&&(t.rv=sc,ln===null&&o!==null&&o[Fn]===t?Fn++:ln===null?ln=[t]:(!Zr||!ln.includes(t))&&ln.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,ms(n)&&Ru(n)),Ee&&Nr&&hl!==null&&Bt!==null&&hl.reaction===Bt){if(t.debug)t.debug();else if(t.created){var s=hl.entries.get(t);s===void 0&&(s={read:[]},hl.entries.set(t,s)),s.read.push(Gr("TracedAt"))}}return Bs&&Ca.has(t)?Ca.get(t):t.v}function yt(t){var e=On;try{return On=!0,t()}finally{On=e}}var o0=-7169;function sn(t,e){t.f=t.f&o0|e}function lc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Uo in t)ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Uo 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=Qr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Yd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Wu(t){It===null&&Bt===null&&uv(t),Bt!==null&&(Bt.f&256)!==0&&It===null&&cv(),Bs&&dv(t)}function n0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function qs(t,e,i,o=!0){var l;var n=It;if(Ee)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Lt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ee&&(a.component_function=dn),i)try{Ia(a),a.f|=32768}catch(u){throw uo(a),u}else e!==null&&ka(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&&n0(a,n),Bt!==null&&(Bt.f&2)!==0)){var d=Bt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function cn(t){let e=qs(8,null,!1);return sn(e,1024),e.teardown=t,e}function ze(t){var n;Wu("$effect");var e=It!==null&&(It.f&32)!==0&&Lt!==null&&!Lt.m;if(Ee&&lo(t,"name",{value:"$effect"}),e){var i=Lt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:It,reaction:Bt})}else{var o=yn(t);return o}}function La(t){return Wu("$effect.pre"),Ee&&lo(t,"name",{value:"$effect.pre"}),wo(t)}function cc(t){let e=qs(64,t,!0);return()=>{uo(e)}}function Kv(t){let e=qs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?xn(e,()=>{uo(e),o(void 0)}):(uo(e),o(void 0))})}function yn(t){return qs(4,t,!1)}function wo(t){return qs(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Ee&&lo(n,"name",{value:"{expression}"}),fo(n)}function fo(t,e=0){return qs(24|e,t,!0)}function Qi(t,e=!0){return qs(40,t,!0,e)}function Fu(t){var e=t.teardown;if(e!==null){let i=Bs,o=Bt;Hu(!0),yo(null);try{e.call(null)}finally{Hu(i),yo(o)}}}function Uu(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 qv(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:Vo(o);o.remove(),o=a}i=!0}Uu(t,e&&!i),Cl(t,0),sn(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Fu(t);var d=t.parent;d!==null&&d.first!==null&&zu(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 zu(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function xn(t,e){var i=[];uc(t,i,!0),Ku(i,()=>{uo(t),e&&e()})}function Ku(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function uc(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;uc(o,e,a?i:!1),o=n}}}function Xr(t){Qv(t,!0)}function Qv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ms(t)&&(sn(t,2048),ka(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Qv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var r0={},s0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,a0=/@(.+):(\d+):(\d+)$/;function l0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
- `)){let n=(i=s0.exec(o))!=null?i:a0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Gv(){var e;let t=(e=l0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=r0[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 Qu(t,e,i=!1,o=!1){if(t&&!i){let n=dn,a=t[Kr];if(a&&!Gu(a,n)){let s=ju(a);e&&e[_i]!==n[_i]&&!o&&Pv(n[_i],e[_i],s[_i])}}fc(t,e,new Set)}function Nu(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 fc(t,e,i){var a;let o=t==null?void 0:t[Kr];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])wo(()=>{t[pc](e)});else{var n=Qr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Di;wo(()=>{let l=t[s];d!==l&&(d=l,fc(l,e,i))})}else fc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)fc(t[s],e,i)}}}function Gu(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&&Gu(t.parent,e)}function ju(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:ju(t.parent)}var d0=!1;function Mv(t){if(d0)return;let e=Gv();if(e&&!Gu(t,e)){let i=ju(t);i[_i]!==e[_i]?Du(e[_i],i[_i]):Du()}}function Va(t){if(Ee){let e=new Error(`lifecycle_outside_component
42
+ `}),to(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)}to(t,"stack",{value:$.join(`
44
+ `)})}if(Fv(t,e),Uv(e))throw t}function Kv(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?Kv(a,e,!1):e===a&&(i?an(a,2048):(a.f&1024)!==0&&an(a,4096),Aa(a))}}function Jd(t){var $,w;var e=dn,i=Fn,o=Dn,n=Ut,a=Xr,s=br,d=At,l=On,u=t.f;dn=null,Fn=0,Dn=null,Xr=(u&256)!==0&&(On||!Us||Ut===null),Ut=(u&96)===0?t:null,br=null,Cl(t.ctx),On=!1,sc++;try{var m=(0,t.fn)(),y=t.deps;if(dn!==null){var p;if(Sl(t,Fn),y!==null&&Fn>0)for(y.length=Fn+dn.length,p=0;p<dn.length;p++)y[Fn+p]=dn[p];else t.deps=y=dn;if(!Xr)for(p=Fn;p<y.length;p++)((w=($=y[p]).reactions)!=null?w:$.reactions=[]).push(t)}else y!==null&&Fn<y.length&&(Sl(t,Fn),y.length=Fn);if(Nr()&&Dn!==null&&!On&&y!==null&&(t.f&6146)===0)for(p=0;p<Dn.length;p++)Kv(Dn[p],t);return n!==null&&(sc++,Dn!==null&&(o===null?o=Dn:o.push(...Dn))),m}finally{dn=e,Fn=i,Dn=o,Ut=n,Xr=a,br=s,Cl(d),On=l}}function i0(t,e){let i=e.reactions;if(i!==null){var o=sv.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),Xd(e),Sl(e,0))}function Sl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)i0(t,i[o])}function Pa(t){var e=t.f;if((e&16384)===0){an(t,1024);var i=kt,o=At,n=Us;if(kt=t,Us=!0,Ee){var a=cn;Tl(t.component_function)}try{(e&16)!==0?Qv(t):Wu(t),qu(t);var s=Jd(t);t.teardown=typeof s=="function"?s:null,t.wv=Wv;var d=t.deps;if(Ee&&Br&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=_l(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ee&&rc.push(t)}catch(u){Va(u,t,i,o||t.ctx)}finally{Us=n,kt=i,Ee&&Tl(a)}}}function zv(){console.error("Last ten effects were: ",rc.slice(-10).map(t=>t.fn)),rc=[]}function o0(){try{vv()}catch(t){if(Ee&&to(t,"stack",{value:""}),yl!==null)if(Ee)try{Va(t,yl,null,null)}catch(e){throw zv(),e}else Va(t,yl,null,null);else throw Ee&&zv(),t}}function Fu(){var t=Us;try{var e=0;for(Us=!0;xl.length>0;){e++>1e3&&o0();var i=xl,o=i.length;xl=[];for(var n=0;n<o;n++){var a=r0(i[n]);n0(a)}}}finally{wl=!1,Us=t,yl=null,Ee&&(rc=[]),ka.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{ms(o)&&(Pa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ku(o):o.fn=null))}catch(n){Va(n,o,null,o.ctx)}}}function Aa(t){wl||(wl=!0,queueMicrotask(Fu));for(var e=yl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}xl.push(e)}function r0(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=Ut;try{Ut=i,ms(i)&&Pa(i)}catch(u){Va(u,i,null,i.ctx)}finally{Ut=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 Ra(t){var e;for(t&&(wl=!0,Fu(),e=t()),Au();xl.length>0;)wl=!0,Fu(),Au();return e}function yo(){return Et(this,null,function*(){yield Promise.resolve(),Ra()})}function r(t){var e=t.f,i=(e&2)!==0;if(hl!==null&&hl.add(t),Ut!==null&&!On){br!==null&&br.includes(t)&&wv();var o=Ut.deps;t.rv<sc&&(t.rv=sc,dn===null&&o!==null&&o[Fn]===t?Fn++:dn===null?dn=[t]:(!Xr||!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,ms(n)&&Du(n)),Ee&&Br&&gl!==null&&Ut!==null&&gl.reaction===Ut){if(t.debug)t.debug();else if(t.created){var s=gl.entries.get(t);s===void 0&&(s={read:[]},gl.entries.set(t,s)),s.read.push(Yr("TracedAt"))}}return Ns&&ka.has(t)?ka.get(t):t.v}function wt(t){var e=On;try{return On=!0,t()}finally{On=e}}var s0=-7169;function an(t,e){t.f=t.f&s0|e}function lc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Oo in t)ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Oo 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=Gr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=jd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Gu(t){kt===null&&Ut===null&&mv(t),Ut!==null&&(Ut.f&256)!==0&&kt===null&&fv(),Ns&&pv(t)}function a0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function zs(t,e,i,o=!0){var l;var n=kt;if(Ee)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:At,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{Pa(a),a.f|=32768}catch(u){throw oo(a),u}else e!==null&&Aa(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&&a0(a,n),Ut!==null&&(Ut.f&2)!==0)){var d=Ut;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function un(t){let e=zs(8,null,!1);return an(e,1024),e.teardown=t,e}function Ue(t){var n;Gu("$effect");var e=kt!==null&&(kt.f&32)!==0&&At!==null&&!At.m;if(Ee&&to(t,"name",{value:"$effect"}),e){var i=At;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:kt,reaction:Ut})}else{var o=Sn(t);return o}}function Ba(t){return Gu("$effect.pre"),Ee&&to(t,"name",{value:"$effect.pre"}),xo(t)}function cc(t){let e=zs(64,t,!0);return()=>{oo(e)}}function Yv(t){let e=zs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Cn(e,()=>{oo(e),o(void 0)}):(oo(e),o(void 0))})}function Sn(t){return zs(4,t,!1)}function xo(t){return zs(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return Ee&&to(n,"name",{value:"{expression}"}),ro(n)}function ro(t,e=0){return zs(24|e,t,!0)}function Ki(t,e=!0){return zs(40,t,!0,e)}function qu(t){var e=t.teardown;if(e!==null){let i=Ns,o=Ut;zu(!0),$o(null);try{e.call(null)}finally{zu(i),$o(o)}}}function Wu(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:oo(i,e),i=o}}function Qv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&oo(e),e=i}}function oo(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}Wu(t,e&&!i),Sl(t,0),an(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();qu(t);var d=t.parent;d!==null&&d.first!==null&&Ku(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 Ku(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 Cn(t,e){var i=[];uc(t,i,!0),Yu(i,()=>{oo(t),e&&e()})}function Yu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function uc(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;uc(o,e,a?i:!1),o=n}}}function Jr(t){jv(t,!0)}function jv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ms(t)&&(an(t,2048),Aa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;jv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var l0={},d0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,c0=/@(.+):(\d+):(\d+)$/;function u0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=d0.exec(o))!=null?i:c0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Zv(){var e;let t=(e=u0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=l0[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 ju(t,e,i=!1,o=!1){if(t&&!i){let n=cn,a=t[Qr];if(a&&!Zu(a,n)){let s=Xu(a);e&&e[$i]!==n[$i]&&!o&&Lv(n[$i],e[$i],s[$i])}}fc(t,e,new Set)}function Hu(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 fc(t,e,i){var a;let o=t==null?void 0:t[Qr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),pc in t&&t[pc])xo(()=>{t[pc](e)});else{var n=Gr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Vi;xo(()=>{let l=t[s];d!==l&&(d=l,fc(l,e,i))})}else fc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)fc(t[s],e,i)}}}function Zu(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&&Zu(t.parent,e)}function Xu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Xu(t.parent)}var p0=!1;function Rv(t){if(p0)return;let e=Zv();if(e&&!Zu(t,e)){let i=Xu(t);i[$i]!==e[$i]?Ou(e[$i],i[$i]):Ou()}}function Na(t){if(Ee){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 Lt=null;function Tl(t){Lt=t}var dn=null;function Il(t){dn=t}function Ra(t){return Yu("getContext").get(t)}function Da(t,e){let i=Yu("setContext");return Ee&&yt(()=>Qu(e,null,!0)),i.set(t,e),e}function El(){return Yu("getAllContexts")}function U(t,e=!1,i){var o=Lt={p:Lt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Dr&&!e&&(Lt.l={s:null,u:null,r1:[],r2:Ki(!1)}),cn(()=>{o.d=!0}),Ee&&(Lt.function=i,dn=i)}function z(t){var s,d;let e=Lt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=It,o=Bt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];co(a.effect),yo(a.reaction),yn(a.fn)}}finally{co(i),yo(o)}}Lt=e.p,Ee&&(dn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Br(){return!Dr||Lt!==null&&Lt.l===null}function Yu(t){var e;return Lt===null&&Va(t),(e=Lt.c)!=null?e:Lt.c=new Map(u0(Lt)||void 0)}function u0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var p0=/\r/g;function jv(t){t=t.replace(p0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Yv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var f0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Zv(t){return f0.includes(t)}var m0=["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 v0={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 Xv(t){var e;return t=t.toLowerCase(),(e=v0[t])!=null?e:t}var R6=[...m0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var g0=["touchstart","touchmove"];function Jv(t){return g0.includes(t)}var h0=["textarea","script","style","title"];function eg(t){return h0.includes(t)}function Zu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var tg=new Map;function ig(t,e){var i=tg.get(t);i||(i=new Set,tg.set(t,i)),i.add(e)}function Xu(t,e){if(e){let i=document.body;t.autofocus=!0,on(()=>{document.activeElement===i&&t.focus()})}}function Pl(t){var e=Bt,i=It;yo(null),co(null);try{return t()}finally{yo(e),co(i)}}var Ju=new Set,mc=new Set;function Ws(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 ep(t,e,i,o={}){function n(a){if(o.capture||Na.call(e,a),!a.cancelBubble)return Pl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?on(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function wt(t,e,i,o,n){var a={capture:o,passive:n},s=ep(t,e,i,a);(e===document.body||e===window||e===document)&&cn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)Ju.add(t[e]);for(var i of mc)i(t)}function Na(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.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){lo(t,"currentTarget",{configurable:!0,get(){return a||i}});var v=Bt,$=It;yo(null),co(null);try{for(var p,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(mr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){p?_.push(P):p=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let P of _)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,yo(v),co($)}}}var b0;function og(){b0=void 0}function Ba(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function So(t,e){var i=It;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 So(vt,null),vt;n===void 0&&(n=Ba(a?t:"<!>"+t),i||(n=$i(n)));var s=o||$l?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=$i(s),l=s.lastChild;So(d,l)}else So(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return So(vt,null),vt;if(!s){var d=Ba(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 v=$i(u),$=u.lastChild;So(v,$)}else So(u,u);return u}}function Or(t=""){if(!je){var e=an(t+"");return So(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=an()),bi(i)),So(i,i),i}function Ue(){if(je)return So(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=an();return t.append(e,i),So(e,i),t}function b(t,e){if(je){It.nodes_end=vt,Oi();return}t!==null&&t.before(e)}var Al=!0;function vc(t){Al=t}function he(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Jr(t,e){return rg(t,e)}function ip(t,e){var s;ic(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=vt;try{for(var a=$i(i);a&&(a.nodeType!==8||a.data!==us);)a=Vo(a);if(!a)throw Wr;po(!0),bi(a),Oi();let d=rg(t,Rt(q({},e),{anchor:a}));if(vt===null||vt.nodeType!==8||vt.data!==Rs)throw Fs(),Wr;return po(!1),d}catch(d){if(d===Wr)return e.recover===!1&&fv(),ic(),yl(i),po(!1),Jr(t,e);throw d}finally{po(o),bi(n),og()}}var Oa=new Map;function rg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){ic();var d=new Set,l=$=>{for(var p=0;p<$.length;p++){var _=$[p];if(!d.has(_)){d.add(_);var w=Jv(_);e.addEventListener(_,Na,{passive:w});var y=Oa.get(_);y===void 0?(document.addEventListener(_,Na,{passive:w}),Oa.set(_,1)):Oa.set(_,y+1)}}};l(vl(Ju)),mc.add(l);var u=void 0,v=Kv(()=>{var $=i!=null?i:e.appendChild(an());return Qi(()=>{if(a){U({});var p=Lt;p.c=a}n&&(o.$$events=n),je&&So($,null),Al=s,u=t($,o)||{},Al=!0,je&&(It.nodes_end=vt),a&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,Na);var _=Oa.get(p);--_===0?(document.removeEventListener(p,Na),Oa.delete(p)):Oa.set(p,_)}mc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return tp.set(u,v),u}var tp=new WeakMap;function Ks(t,e){let i=tp.get(t);return i?(tp.delete(t),i(e)):(Ee&&Ev(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){je&&i===0&&Oi();var n=t,a=null,s=null,d=Di,l=i>0?65536:0,u=!1;let v=(p,_=!0)=>{u=!0,$(_,p)},$=(p,_)=>{if(d===(d=p))return;let w=!1;if(je&&o!==-1){if(i===0){let C=n.data;C===us?o=0:C===Vs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ea(),bi(n),po(!1),w=!0,o=-1)}d?(a?Xr(a):_&&(a=Qi(()=>_(n))),s&&xn(s,()=>{s=null})):(s?Xr(s):_&&(s=Qi(()=>_(n,[i+1,o]))),a&&xn(a,()=>{a=null})),w&&po(!0)};fo(()=>{u=!1,e(v),u||$(null,null)},l),je&&(n=vt)}function Qs(t,e,i){je&&Oi();var o=t,n=Di,a,s=Br()?av:wa;fo(()=>{s(n,n=e())&&(a&&xn(a),a=Qi(()=>i(o)))}),je&&(o=vt)}var gs=null;function rp(t){gs=t}function Ml(t,e){return e}function w0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)uc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;yl(l),l.append(i),o.clear(),vs(t,e[0].prev,e[a-1].next)}Ku(n,()=>{for(var u=0;u<a;u++){var v=e[u];d||(o.delete(v.k),vs(t,v.prev,v.next)),uo(v.e,!d)}})}function ki(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(an())}je&&Oi();var v=null,$=!1,p=hr(()=>{var _=i();return mr(_)?_:_==null?[]:vl(_)});fo(()=>{var _=r(p),w=_.length;if($&&w===0)return;$=w===0;let y=!1;if(je){var C=s.data===Vs;C!==(w===0)&&(s=Ea(),bi(s),po(!1),y=!0)}if(je){for(var T=null,E,P=0;P<w;P++){if(vt.nodeType===8&&vt.data===Rs){s=vt,y=!0,po(!1);break}var A=_[P],I=o(A,P);E=lg(vt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&bi(Ea())}je||S0(_,d,s,n,e,o,i),a!==null&&(w===0?v?Xr(v):v=Qi(()=>a(s)):v!==null&&xn(v,()=>{v=null})),y&&po(!0),r(p)}),je&&(s=vt)}function S0(t,e,i,o,n,a,s){var de,Le,Me,ve;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,v=e.items,$=e.first,p=$,_,w=null,y,C=[],T=[],E,P,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],P=a(E,I),A=v.get(P),A!==void 0&&((de=A.a)==null||de.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],P=a(E,I),A=v.get(P),A===void 0){var V=p?p.e.nodes_start:i;w=lg(V,e,w,w===null?e.first:w.next,E,P,I,o,n,s),v.set(P,w),C=[],T=[],p=w.next;continue}if(l&&C0(A,E,I,n),(A.e.f&8192)!==0&&(Xr(A.e),d&&((Le=A.a)==null||Le.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(_!==void 0&&_.has(A)){if(C.length<T.length){var H=T[0],Y;w=H.prev;var O=C[0],J=C[C.length-1];for(Y=0;Y<C.length;Y+=1)sg(C[Y],H,i);for(Y=0;Y<T.length;Y+=1)_.delete(T[Y]);vs(e,O.prev,J.next),vs(e,w,O),vs(e,J,H),p=H,w=J,I-=1,C=[],T=[]}else _.delete(A),sg(A,p,i),vs(e,A.prev,A.next),vs(e,A,w===null?e.first:w.next),vs(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&(_!=null?_:_=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||_!==void 0){for(var re=_===void 0?[]:vl(_);p!==null;)(p.e.f&8192)===0&&re.push(p),p=p.next;var Z=re.length;if(Z>0){var me=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<Z;I+=1)(Me=re[I].a)==null||Me.measure();for(I=0;I<Z;I+=1)(ve=re[I].a)==null||ve.fix()}w0(e,re,me,v)}}d&&on(()=>{var le;if(y!==void 0)for(A of y)(le=A.a)==null||le.apply()}),It.first=e.first&&e.first.e,It.last=w&&w.e}function C0(t,e,i,o){(o&1)!==0&&Ta(t.v,e),(o&2)!==0?Ta(t.i,i):t.i=i}function lg(t,e,i,o,n,a,s,d,l,u){var v=gs,$=(l&1)!==0,p=(l&16)===0,_=$?p?Yr(n):Ki(n):n,w=(l&2)===0?s:Ki(s);Ee&&$&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;u()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};gs=y;try{return y.e=Qi(()=>d(t,_,w,u),je),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{gs=v}}function sg(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=Vo(a);n.before(a),a=s}}function vs(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 T0(t,e,i){var a,s;if(!e||e===jv(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=dn)!=null&&s[_i]&&(o=`in ${dn[_i]}`),kv(Zu(o))}function Ll(t,e,i,o,n){var a=t,s="",d;fo(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Oi();return}d!==void 0&&(uo(d),d=void 0),s!==""&&(d=Qi(()=>{if(je){for(var u=vt.data,v=Oi(),$=v;v!==null&&(v.nodeType!==8||v.data!=="");)$=v,v=Vo(v);if(v===null)throw Fs(),Wr;Ee&&!n&&T0(v.parentNode,u,s),So(vt,$),a=bi(v);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var _=Ba(p);if((i||o)&&(_=$i(_)),So($i(_),_.lastChild),i||o)for(;$i(_);)a.before($i(_));else a.before(_)}))})}function _e(t,e,...i){var o=t,n=ne,a;fo(()=>{n!==(n=e())&&(a&&(uo(a),a=null),Ee&&n==null&&mv(),a=Qi(()=>n(o,...i)))},65536),je&&(o=vt)}function Ei(t,e,i){je&&Oi();var o=t,n,a;fo(()=>{n!==(n=e())&&(a&&(xn(a),a=null),n&&(a=Qi(()=>i(o,n))))},65536),je&&(o=vt)}function Gs(t,e,i,o,n,a){var w;let s=je;je&&Oi();var d=Ee&&a&&((w=Lt)==null?void 0:w.function[_i]),l,u,v=null;je&&vt.nodeType===1&&(v=vt,Oi());var $=je?vt:t,p,_=gs;fo(()=>{let y=e()||null;var C=n?n():i||y==="svg"?Su:null;if(y!==l){var T=gs;rp(_),p&&(y===null?xn(p,()=>{p=null,u=null}):y===u?Xr(p):(uo(p),vc(!1))),y&&y!==u&&(p=Qi(()=>{if(v=je?v:C?document.createElementNS(C,y):document.createElement(y),Ee&&a&&(v.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),So(v,v),o){je&&eg(y)&&v.append(document.createComment(""));var E=je?$i(v):v.appendChild(an());je&&(E===null?po(!1):bi(E)),o(v,E)}It.nodes_end=v,$.before(v)})),l=y,l&&(u=l),vc(!0),rp(T)}},65536),s&&(po(!0),bi($))}var ap;function dg(t){return ap=t.target,new sp(t)}var es,rr,sp=class{constructor(e){cs(this,es);cs(this,rr);var a,s;var i=new Map,o=(d,l)=>{var u=Yr(l);return i.set(d,u),u};let n=new Proxy(Rt(q({},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 v;return B((v=i.get(l))!=null?v:o(l,u),u),Reflect.set(d,l,u)}});xa(this,rr,(e.hydrate?ip:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Ma(),xa(this,es,n.$$events);for(let d of Object.keys(Ri(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||lo(this,d,{get(){return Ri(this,rr)[d]},set(l){Ri(this,rr)[d]=l},enumerable:!0});Ri(this,rr).$set=d=>{Object.assign(n,d)},Ri(this,rr).$destroy=()=>{Ks(Ri(this,rr))}}$set(e){Ri(this,rr).$set(e)}$on(e,i){Ri(this,es)[e]=Ri(this,es)[e]||[];let o=(...n)=>i.call(this,...n);return Ri(this,es)[e].push(o),()=>{Ri(this,es)[e]=Ri(this,es)[e].filter(n=>n!==o)}}$destroy(){Ri(this,rr).$destroy()}};es=new WeakMap,rr=new WeakMap;function W(t,e){on(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=ap)==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&&ig(e.hash,d)}})}function cg(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=cg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ug(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=cg(t))&&(o&&(o+=" "),o+=e);return o}function Vl(t){return typeof t=="object"?ug(t):t!=null?t:""}var pg=[...`
48
- \r\f\xA0\v\uFEFF`];function mg(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||pg.includes(o[s-1]))&&(d===o.length||pg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function fg(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 lp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function vg(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(lp)),n&&l.push(...Object.keys(n).map(lp));var u=0,v=-1;let y=t.length;for(var $=0;$<y;$++){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==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&v===-1)v=$;else if(p===";"||$===y-1){if(v!==-1){var _=lp(t.substring(u,v).trim());if(!l.includes(_)){p!==";"&&$++;var w=t.substring(u,$).trim();i+=" "+w+";"}}u=$+1,v=-1}}}}return o&&(i+=fg(o)),n&&(i+=fg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=mg(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 dp(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 it(t,e,i,o){var n=t.__style;if(je||n!==e){var a=vg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(dp(t,i==null?void 0:i[0],o[0]),dp(t,i==null?void 0:i[1],o[1],"important")):dp(t,i,o));return o}var Ha=Symbol("class"),Fa=Symbol("style"),_g=Symbol("is custom element"),bg=Symbol("is html");function $g(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=yg(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||L0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[iv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&xg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var A;var a=yg(t),s=a[_g],d=!a[bg];let l=je&&s;l&&po(!1);var u=e||{},v=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Vl(i.class):(o||i[Ha])&&(i.class=null),i[Fa]&&((A=i.style)!=null||(i.style=null));var p=xg(t);for(let I in i){let V=i[I];if(v&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,_,V,o,e==null?void 0:e[Ha],i[Ha]),u[I]=V,u[Ha]=i[Ha];continue}if(I==="style"){it(t,V,e==null?void 0:e[Fa],i[Fa]),u[I]=V,u[Fa]=i[Fa];continue}var w=u[I];if(V!==w){u[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},Y="$$"+I,O=I.slice(2);var C=Zv(O);if(Yv(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,u[Y],H),u[Y]=null}if(V!=null)if(C)t[`__${O}`]=V,at([O]);else{let J=function(re){u[I].call(this,re)};var P=J;u[Y]=ep(O,t,J,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")Fe(t,I,V);else if(I==="autofocus")Xu(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&v)$g(t,V);else{var T=I;d||(T=Xv(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,Y=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=Y?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=Y?O:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Fe(t,T,V,n)}}}return l&&po(!0),u}function yg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[_g]:t.nodeName.includes("-"),[bg]:t.namespaceURI===Xm}}var gg=new Map;function xg(t){var e=gg.get(t.nodeName);if(e)return e;gg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Yd(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function L0(t,e,i){var o;Ee&&(e==="srcset"&&V0(t,i)||cp((o=t.getAttribute(e))!=null?o:"",i)||Iv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function cp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function hg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function V0(t,e){var i=hg(t.srcset),o=hg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(cp(i[s][0],n)||cp(n,i[s][0])))}var R0=jd?()=>performance.now():()=>Date.now(),br={tick:t=>(jd?requestAnimationFrame:ne)(t),now:()=>R0(),tasks:new Set};function wg(){let t=br.now();br.tasks.forEach(e=>{e.c(t)||(br.tasks.delete(e),e.f())}),br.tasks.size!==0&&br.tick(wg)}function Sg(t){let e;return br.tasks.size===0&&br.tick(wg),{promise:new Promise(i=>{br.tasks.add(e={c:t,f:i})}),abort(){br.tasks.delete(e)}}}function gc(t,e){Pl(()=>{t.dispatchEvent(new CustomEvent(e))})}function O0(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 Cg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=O0(n.trim());e[s]=a.trim()}return e}var H0=t=>t;function pp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,v=e.inert,$=e.style.overflow,p,_;function w(){var V;var A=Bt,I=It;yo(null),co(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{yo(A),co(I)}}var y={is_global:d,in(){var A;if(e.inert=v,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||p==null||p.abort(),gc(e,"introstart"),p=up(e,w(),_,1,()=>{gc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,gc(e,"outrostart"),_=up(e,w(),p,0,()=>{gc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),_==null||_.abort()}},C=It;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Al){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&yn(()=>{yt(()=>y.in())})}}function up(t,e,i,o,n){var a=o===1;if(ps(e)){var s,d=!1;return on(()=>{if(!d){var C=e({direction:a?"in":"out"});s=up(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:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:v,easing:$=H0}=e;var p=[];if(a&&i===void 0&&(v&&v(0,1),u)){var _=Cg(u(0,1));p.push(_,_)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),Y=Cg(u(H,1-H));P.push(Y),A||(A=Y.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var J=y.currentTime;return C+T*$(J/E)},v&&Sg(()=>{if(y.playState!=="running")return!1;var J=w();return v(J,1-J),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,v==null||v(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(v==null||v(1,0))},t:()=>w()}}var hs,Ua,Rl,_c,Tg,bc=class bc{constructor(e){cs(this,_c);cs(this,hs,new WeakMap);cs(this,Ua);cs(this,Rl);xa(this,Rl,e)}observe(e,i){var o=Ri(this,hs).get(e)||new Set;return o.add(i),Ri(this,hs).set(e,o),Ym(this,_c,Tg).call(this).observe(e,Ri(this,Rl)),()=>{var n=Ri(this,hs).get(e);n.delete(i),n.size===0&&(Ri(this,hs).delete(e),Ri(this,Ua).unobserve(e))}}};hs=new WeakMap,Ua=new WeakMap,Rl=new WeakMap,_c=new WeakSet,Tg=function(){var e;return(e=Ri(this,Ua))!=null?e:xa(this,Ua,new ResizeObserver(i=>{for(var o of i){bc.entries.set(o.target,o);for(var n of Ri(this,hs).get(o.target)||[])n(o)}}))},Dn(bc,"entries",new WeakMap);var fp=bc;var z0=new fp({box:"border-box"});function Hr(t,e,i){var o=z0.observe(t,()=>i(t[e]));yn(()=>(yt(()=>i(t[e])),o))}function Ig(t,e){return t===e||(t==null?void 0:t[Uo])===e}function ft(t={},e,i,o){return yn(()=>{var n,a;return wo(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&Ig(i(...n),t)&&e(null,...n))})}),()=>{on(()=>{a&&Ig(i(...a),t)&&e(null,...a)})}}),t}function $r(t=!1){let e=Lt,i=e.l.u;if(!i)return;let o=()=>lc(e.s);if(t){let n=0,a={},s=m(()=>{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&&La(()=>{kg(e,o),fs(i.b)}),ze(()=>{let n=yt(()=>i.m.map(rv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&ze(()=>{kg(e,o),fs(i.a)})}function kg(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;hv(e)},set:o=>{i=o}})}};W0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var W0;function Ft(t){Lt===null&&Va("onMount"),Dr&&Lt.l!==null?q0(Lt).m.push(t):ze(()=>{let e=yt(t);if(typeof e=="function")return e})}function wn(t){Lt===null&&Va("onDestroy"),Ft(()=>()=>yt(t))}function q0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Dl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var za=[];function sr(t,e){return{subscribe:ue(t,e).subscribe}}function ue(t,e=ne){let i=null,o=new Set;function n(d){if(wa(t,d)&&(t=d,i)){let l=!za.length;for(let u of o)u[1](),za.push(u,t);if(l){for(let u=0;u<za.length;u+=2)za[u][0](za[u+1]);za.length=0}}}function a(d){n(d(t))}function s(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: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 sr(i,(s,d)=>{let l=!1,u=[],v=0,$=ne,p=()=>{if(v)return;$();let w=e(o?u[0]:u,s,d);a?s(w):$=typeof w=="function"?w:ne},_=n.map((w,y)=>Dl(w,C=>{u[y]=C,v&=~(1<<y),l&&p()},()=>{v|=1<<y}));return l=!0,p(),function(){fs(_),$(),l=!1}})}function Se(t){let e;return Dl(t,i=>e=i)(),e}var $c=!1,mp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Yr(void 0),unsubscribe:ne};if(o.store!==t&&!(mp 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=Dl(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&mp in i?Se(t):r(o.source)}function Oe(){let t={};function e(){cn(()=>{for(var i in t)t[i].unsubscribe();lo(t,mp,{enumerable:!1,value:!0})})}return[t,e]}function vp(t){var e=$c;try{return $c=!1,[t(),$c]}finally{$c=e}}var X0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&gv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Pe(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},X0)}var J0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ps(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];ps(n)&&(n=n());let a=Nn(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(ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Nn(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(ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ts(...t){return new Proxy({props:t},J0)}function Eg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,Y;var n=(i&1)!==0,a=!Dr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=vp(()=>t[e]):u=t[e];var v=Uo in t||ml in t,$=s&&((Y=(H=Nn(t,e))==null?void 0:H.set)!=null?Y:v&&e in t&&(O=>t[e]=O))||void 0,p=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?p=yt(o):p=o),p);u===void 0&&o!==void 0&&($&&a&&vv(e),u=y(),$&&$(u));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?m:hr)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(p=void 0),O===void 0?p:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,J){return arguments.length>0?((!a||!J||E||l)&&$(J?C():O),O):C()}}var P=!1,A=!1,I=Yr(u),V=m(()=>{var O=C(),J=r(I);return P?(P=!1,A=!0,J):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Sa),function(O,J){if(_l!==null&&(P=A,C(),r(I)),arguments.length>0){let re=J?r(V):a&&s?fe(O):O;if(!V.equals(re)){if(P=!0,B(I,re),w&&p!==void 0&&(p=re),Eg(V))return O;yt(()=>r(V))}return O}return Eg(V)?V.v:r(V)}}var e_;typeof HTMLElement=="function"&&(e_=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 Pt(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),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=t_(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]=gp(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:Rt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=cc(()=>{wo(()=>{var a;this.$$r=!0;for(let s of Cu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=gp(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]=gp(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 Cu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function gp(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 t_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Pg="5";var Ag,Mg,Lg;typeof window!="undefined"&&((Lg=(Mg=(Ag=window.__svelte)!=null?Ag:window.__svelte={}).v)!=null?Lg:Mg.v=new Set).add(Pg);import{clientChecker as Am}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as k1,safeStorage as Ox,throttleFn as Hx}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Fx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as o_,fillWithDefault as n_,VideoQuality as Vg}from"@vkontakte/videoplayer-shared/es2015";var r_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:o_.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:Vg.Q_480P,highQualityLimit:Vg.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,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,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}},Rg=t=>n_(t,r_),Dg=t=>Da("ui-config",t),Ut=()=>Ra("ui-config");var Nl="vk_player_debug_panel_opened";var Ng="videoplayer",Bg="videoplayer";var Fr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Og=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Hg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Fg=new Set(["ShiftRight","ShiftLeft"]);var Ug=["TIMELINE"],Bl=[...Ug,"GRAPH_BUTTON"],hp=[...Ug,"PLAY_BUTTON"],Ol=[...Bl,"PLAY_BUTTON"];var Ur=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ur||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as zg,VERSION as s_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as a_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as l_}from"@vkontakte/videoplayer-statistics/es2015";var yc="prod",qa="1.1.64-dev.dae0b8a8.0";var Zs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var qg=Symbol("storeContext"),Wg=Symbol("microStoresContext"),Kg=(t,e)=>{Da(qg,t),Da(Wg,e),yc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=Ra(qg);return zg(t,"Store context is empty!"),t},mo=()=>{let t=Ra(Wg);return zg(t,"MicroStores context is empty!"),t},Zt=(t,e)=>wc(t,t.getValue(),e),wc=(t,e,i)=>sr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Qg=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${qa} (core: ${a_}, stat: ${l_}, shared: ${s_})`,v=Se(i.state.errorLog$),$=v.length?`
49
- `+v.map((H,Y)=>{var Z;let O=`${Y}) Type: ${H.id}
50
- `,J=`Message: ${H.message} (${H.thrown})
51
- `,re=`Trace: ${(Z=H.thrown)==null?void 0:Z.stack}
52
- `;return O+J+re}).join(`
53
- `):void 0,p=i.state.isAudioDisabled?"disabled":Se(i.state.isAudioAvailable$)?void 0:"unavailable",_=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),y=[];_&&y.push(`Video: ${(I=_==null?void 0:_.codec)!=null?I:""}`+(_!=null&&_.hdr?" (HDR)":"")),w&&y.push(`Audio: ${(V=w==null?void 0:w.codec)!=null?V:""}`+(w!=null&&w.language?` (${w.language})`:""));let C={Version:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:Se(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:y.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:p,Position:`${Se(i.state.positionExact$)}s`,State:`${Se(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:$};return Object.entries(C).filter(([H,Y])=>Y!==void 0).map(([H,Y])=>`${H}: ${Y}`).join(`
54
- `)},Gg=(t,e,i)=>{var H,Y,O,J;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s={version:qa,viewport:`${n}x${a}`,volume:Math.round(Se(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let v=o.currentBuffer$.getValue(),$=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();v&&($&&p?s.buffer=v.end-p:s.buffer=Math.max(v.end-Se(i.state.positionExact$),0));let _=o.throughputEstimation$.getValue();_&&(s.speed=_);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let E=Se(i.vsid);typeof E=="string"&&(s.vsid=E);let P=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;P&&(s.videoCodec=P);let A=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;A&&(s.audioCodec=A),((O=t.info.currentVideoStream$.getValue())==null?void 0:O.hdr)&&(s.hdr=!0);let V=(J=t.info.currentAudioStream$.getValue())==null?void 0:J.language;return V&&(s.audioLanguage=V),s},jg=(t,e)=>Zs(t,e,"mp4"),Yg=t=>!t.type,Zg=t=>!!t.type,Xg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},xc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Pt(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}};import{isNullable as $p,safeStorage as Co}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var Jg="vk_player_prefer_traffic_saving_enabled",eh="vk_player_preferred_volume",th="vk_player_prefer_volume_mute",yp="vk_player_preferred_quality",_p="vk_player_preferred_default_quality_settings",bp="vk_player_preferred_quality_settings_by_video",ih="vk_player_preferred_stream_language",oh="vk_player_preferred_rate",nh="vk_player_preferred_autoplay_next",rh=t=>t>1?1:t<0?0:t,xp=t=>Co.set(eh,rh(t).toString(10)),Sc=()=>{let t=Co.get(eh);return $p(t)?void 0:rh(parseFloat(t))},wp=(t,e)=>Co.set(yp,JSON.stringify({videoId:t,value:e})),Fl=()=>Co.remove(yp),Sp=t=>{let e=Co.get(yp);if($p(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Fl();return}return o},Cp=(t,e)=>{e?Co.set(t,"true"):Co.remove(t)},Tp=t=>Co.get(t)==="true",Ip=t=>Cp(th,t),sh=()=>Tp(th),Hl=t=>Cp(Jg,t),kp=()=>Tp(Jg),ah=()=>Co.get(ih),Ep=t=>Co.set(ih,t),lh=t=>Co.set(oh,JSON.stringify({rate:t})),dh=()=>{let t=Co.get(oh);if($p(t))return;let{rate:e}=JSON.parse(t);return e},ch=t=>Cp(nh,t),uh=()=>Tp(nh),d_=()=>{let t=v=>{Co.set(_p,JSON.stringify(v))},e=()=>{try{let v=Co.get(_p);return v?JSON.parse(v):null}catch(v){return null}},i=()=>{try{let v=Co.get(bp);return v?JSON.parse(v):null}catch(v){return null}},o=v=>{Co.set(bp,JSON.stringify(v))},n=v=>{u(v);let $=v?i():null;if($&&($==null?void 0:$.videoId)===v)return Rt(q({},$),{appliesTo:"to-video"});$&&a();let p=e();return p?Rt(q({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Co.remove(bp)},s=()=>{Co.remove(_p)},d=(v,$="as-default")=>{v.type==="exact_quality"?o(v):$==="as-default"?t(v):o(v)},l=v=>{let $=n(v);if($){switch($.type){case"traffic_saving":Hl(!0);break;case"exact_quality":wp(v,$.quality)}a(),s()}},u=v=>{let $=Sp(v);if($){o({type:"exact_quality",videoId:v,quality:$});return}kp()&&t({type:"traffic_saving",videoId:v}),Hl(!1),Fl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:ph,migrateSettingsToLegacyWay:fh,savePreferredQualitySettings:Cc,savePreferredDefaultQualitySettings:pA,removePreferredQualitySettingsByVideo:fA,getPreferredDefaultQualitySettings:Tc}=d_();import{PlaybackState as C1}from"@vkontakte/videoplayer-core/es2015";var c_=$e('<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 Ul(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=c_();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),b(t,o)}import{isNullable as gh,InterfaceLanguage as hh}from"@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}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
47
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var At=null;function Cl(t){At=t}var cn=null;function Tl(t){cn=t}function Da(t){return Ju("getContext").get(t)}function Oa(t,e){let i=Ju("setContext");return Ee&&wt(()=>ju(e,null,!0)),i.set(t,e),e}function kl(){return Ju("getAllContexts")}function U(t,e=!1,i){var o=At={p:At,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Rr&&!e&&(At.l={s:null,u:null,r1:[],r2:Wi(!1)}),un(()=>{o.d=!0}),Ee&&(At.function=i,cn=i)}function z(t){var s,d;let e=At;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=kt,o=Ut;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];io(a.effect),$o(a.reaction),Sn(a.fn)}}finally{io(i),$o(o)}}At=e.p,Ee&&(cn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Nr(){return!Rr||At!==null&&At.l===null}function Ju(t){var e;return At===null&&Na(t),(e=At.c)!=null?e:At.c=new Map(m0(At)||void 0)}function m0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var v0=/\r/g;function Xv(t){t=t.replace(v0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Jv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var g0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function eg(t){return g0.includes(t)}var h0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var _0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function tg(t){var e;return t=t.toLowerCase(),(e=_0[t])!=null?e:t}var D6=[...h0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var b0=["touchstart","touchmove"];function ig(t){return b0.includes(t)}var $0=["textarea","script","style","title"];function og(t){return $0.includes(t)}function ep(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var ng=new Map;function rg(t,e){var i=ng.get(t);i||(i=new Set,ng.set(t,i)),i.add(e)}function tp(t,e){if(e){let i=document.body;t.autofocus=!0,nn(()=>{document.activeElement===i&&t.focus()})}}function El(t){var e=Ut,i=kt;$o(null),io(null);try{return t()}finally{$o(e),io(i)}}var ip=new Set,mc=new Set;function qs(t){if(!Ye)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 op(t,e,i,o={}){function n(a){if(o.capture||Ha.call(e,a),!a.cancelBubble)return El(()=>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 It(t,e,i,o,n){var a={capture:o,passive:n},s=op(t,e,i,a);(e===document.body||e===window||e===document)&&un(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)ip.add(t[e]);for(var i of mc)i(t)}function Ha(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){to(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ut,y=kt;$o(null),io(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(_r(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,$o(m),io(y)}}}var x0;function sg(){x0=void 0}function Fa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function wo(t,e){var i=kt;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(Ye)return wo(ht,null),ht;n===void 0&&(n=Fa(a?t:"<!>"+t),i||(n=xi(n)));var s=o||bl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=xi(s),l=s.lastChild;wo(d,l)}else wo(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(Ye)return wo(ht,null),ht;if(!s){var d=Fa(a),l=xi(d);if(n)for(s=document.createDocumentFragment();xi(l);)s.appendChild(xi(l));else s=xi(l)}var u=s.cloneNode(!0);if(n){var m=xi(u),y=u.lastChild;wo(m,y)}else wo(u,u);return u}}function Dr(t=""){if(!Ye){var e=ln(t+"");return wo(e,e),e}var i=ht;return i.nodeType!==3&&(i.before(i=ln()),yi(i)),wo(i,i),i}function He(){if(Ye)return wo(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=ln();return t.append(e,i),wo(e,i),t}function _(t,e){if(Ye){kt.nodes_end=ht,Hi();return}t!==null&&t.before(e)}var Pl=!0;function vc(t){Pl=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 es(t,e){return lg(t,e)}function rp(t,e){var s;ic(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=ht;try{for(var a=xi(i);a&&(a.nodeType!==8||a.data!==us);)a=Po(a);if(!a)throw Kr;no(!0),yi(a),Hi();let d=lg(t,Nt(K({},e),{anchor:a}));if(ht===null||ht.nodeType!==8||ht.data!==Vs)throw Hs(),Kr;return no(!1),d}catch(d){if(d===Kr)return e.recover===!1&&gv(),ic(),$l(i),no(!1),es(t,e);throw d}finally{no(o),yi(n),sg()}}var Ua=new Map;function lg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){ic();var d=new Set,l=y=>{for(var p=0;p<y.length;p++){var $=y[p];if(!d.has($)){d.add($);var w=ig($);e.addEventListener($,Ha,{passive:w});var b=Ua.get($);b===void 0?(document.addEventListener($,Ha,{passive:w}),Ua.set($,1)):Ua.set($,b+1)}}};l(ml(ip)),mc.add(l);var u=void 0,m=Yv(()=>{var y=i!=null?i:e.appendChild(ln());return Ki(()=>{if(a){U({});var p=At;p.c=a}n&&(o.$$events=n),Ye&&wo(y,null),Pl=s,u=t(y,o)||{},Pl=!0,Ye&&(kt.nodes_end=ht),a&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,Ha);var $=Ua.get(p);--$===0?(document.removeEventListener(p,Ha),Ua.delete(p)):Ua.set(p,$)}mc.delete(l),y!==i&&((w=y.parentNode)==null||w.removeChild(y))}});return np.set(u,m),u}var np=new WeakMap;function Ws(t,e){let i=np.get(t);return i?(np.delete(t),i(e)):(Ee&&Mv(),Promise.resolve())}function B(t,e,[i,o]=[0,0]){Ye&&i===0&&Hi();var n=t,a=null,s=null,d=Vi,l=i>0?65536:0,u=!1;let m=(p,$=!0)=>{u=!0,y($,p)},y=(p,$)=>{if(d===(d=p))return;let w=!1;if(Ye&&o!==-1){if(i===0){let C=n.data;C===us?o=0:C===Ls?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=Ma(),yi(n),no(!1),w=!0,o=-1)}d?(a?Jr(a):$&&(a=Ki(()=>$(n))),s&&Cn(s,()=>{s=null})):(s?Jr(s):$&&(s=Ki(()=>$(n,[i+1,o]))),a&&Cn(a,()=>{a=null})),w&&no(!0)};ro(()=>{u=!1,e(m),u||y(null,null)},l),Ye&&(n=ht)}function Ks(t,e,i){Ye&&Hi();var o=t,n=Vi,a,s=Nr()?cv:Ta;ro(()=>{s(n,n=e())&&(a&&Cn(a),a=Ki(()=>i(o)))}),Ye&&(o=ht)}var gs=null;function lp(t){gs=t}function Al(t,e){return e}function T0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)uc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;$l(l),l.append(i),o.clear(),vs(t,e[0].prev,e[a-1].next)}Yu(n,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),vs(t,m.prev,m.next)),oo(m.e,!d)}})}function ki(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=Ye?yi(xi(u)):u.appendChild(ln())}Ye&&Hi();var m=null,y=!1,p=yr(()=>{var $=i();return _r($)?$:$==null?[]:ml($)});ro(()=>{var $=r(p),w=$.length;if(y&&w===0)return;y=w===0;let b=!1;if(Ye){var C=s.data===Ls;C!==(w===0)&&(s=Ma(),yi(s),no(!1),b=!0)}if(Ye){for(var T=null,I,M=0;M<w;M++){if(ht.nodeType===8&&ht.data===Vs){s=ht,b=!0,no(!1);break}var P=$[M],k=o(P,M);I=ug(ht,d,T,null,P,k,M,n,e,i),d.items.set(k,I),T=I}w>0&&yi(Ma())}Ye||I0($,d,s,n,e,o,i),a!==null&&(w===0?m?Jr(m):m=Ki(()=>a(s)):m!==null&&Cn(m,()=>{m=null})),b&&no(!0),r(p)}),Ye&&(s=ht)}function I0(t,e,i,o,n,a,s){var ce,Me,Le,he;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,m=e.items,y=e.first,p=y,$,w=null,b,C=[],T=[],I,M,P,k;if(d)for(k=0;k<u;k+=1)I=t[k],M=a(I,k),P=m.get(M),P!==void 0&&((ce=P.a)==null||ce.measure(),(b!=null?b:b=new Set).add(P));for(k=0;k<u;k+=1){if(I=t[k],M=a(I,k),P=m.get(M),P===void 0){var R=p?p.e.nodes_start:i;w=ug(R,e,w,w===null?e.first:w.next,I,M,k,o,n,s),m.set(M,w),C=[],T=[],p=w.next;continue}if(l&&k0(P,I,k,n),(P.e.f&8192)!==0&&(Jr(P.e),d&&((Me=P.a)==null||Me.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],j;w=W.prev;var F=C[0],G=C[C.length-1];for(j=0;j<C.length;j+=1)dg(C[j],W,i);for(j=0;j<T.length;j+=1)$.delete(T[j]);vs(e,F.prev,G.next),vs(e,w,F),vs(e,G,W),p=W,w=G,k-=1,C=[],T=[]}else $.delete(P),dg(P,p,i),vs(e,P.prev,P.next),vs(e,P,w===null?e.first:w.next),vs(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 ne=$===void 0?[]:ml($);p!==null;)(p.e.f&8192)===0&&ne.push(p),p=p.next;var X=ne.length;if(X>0){var se=(n&4)!==0&&u===0?i:null;if(d){for(k=0;k<X;k+=1)(Le=ne[k].a)==null||Le.measure();for(k=0;k<X;k+=1)(he=ne[k].a)==null||he.fix()}T0(e,ne,se,m)}}d&&nn(()=>{var ae;if(b!==void 0)for(P of b)(ae=P.a)==null||ae.apply()}),kt.first=e.first&&e.first.e,kt.last=w&&w.e}function k0(t,e,i,o){(o&1)!==0&&Ea(t.v,e),(o&2)!==0?Ea(t.i,i):t.i=i}function ug(t,e,i,o,n,a,s,d,l,u){var m=gs,y=(l&1)!==0,p=(l&16)===0,$=y?p?Zr(n):Wi(n):n,w=(l&2)===0?s:Wi(s);Ee&&y&&($.debug=()=>{var C=typeof w=="number"?s:w.v;u()[C]});var b={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};gs=b;try{return b.e=Ki(()=>d(t,$,w,u),Ye),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{gs=m}}function dg(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 vs(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 E0(t,e,i){var a,s;if(!e||e===Xv(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]}`),Av(ep(o))}function Ml(t,e,i,o,n){var a=t,s="",d;ro(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Hi();return}d!==void 0&&(oo(d),d=void 0),s!==""&&(d=Ki(()=>{if(Ye){for(var u=ht.data,m=Hi(),y=m;m!==null&&(m.nodeType!==8||m.data!=="");)y=m,m=Po(m);if(m===null)throw Hs(),Kr;Ee&&!n&&E0(m.parentNode,u,s),wo(ht,y),a=yi(m);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Fa(p);if((i||o)&&($=xi($)),wo(xi($),$.lastChild),i||o)for(;xi($);)a.before(xi($));else a.before($)}))})}function ge(t,e,...i){var o=t,n=oe,a;ro(()=>{n!==(n=e())&&(a&&(oo(a),a=null),Ee&&n==null&&hv(),a=Ki(()=>n(o,...i)))},65536),Ye&&(o=ht)}function Ei(t,e,i){Ye&&Hi();var o=t,n,a;ro(()=>{n!==(n=e())&&(a&&(Cn(a),a=null),n&&(a=Ki(()=>i(o,n))))},65536),Ye&&(o=ht)}function Qs(t,e,i,o,n,a){var w;let s=Ye;Ye&&Hi();var d=Ee&&a&&((w=At)==null?void 0:w.function[$i]),l,u,m=null;Ye&&ht.nodeType===1&&(m=ht,Hi());var y=Ye?ht:t,p,$=gs;ro(()=>{let b=e()||null;var C=n?n():i||b==="svg"?Iu:null;if(b!==l){var T=gs;lp($),p&&(b===null?Cn(p,()=>{p=null,u=null}):b===u?Jr(p):(oo(p),vc(!1))),b&&b!==u&&(p=Ki(()=>{if(m=Ye?m:C?document.createElementNS(C,b):document.createElement(b),Ee&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),wo(m,m),o){Ye&&og(b)&&m.append(document.createComment(""));var I=Ye?xi(m):m.appendChild(ln());Ye&&(I===null?no(!1):yi(I)),o(m,I)}kt.nodes_end=m,y.before(m)})),l=b,l&&(u=l),vc(!0),lp(T)}},65536),s&&(no(!0),yi(y))}var cp;function pg(t){return cp=t.target,new dp(t)}var ts,lr,dp=class{constructor(e){cs(this,ts);cs(this,lr);var a,s;var i=new Map,o=(d,l)=>{var u=Zr(l);return i.set(d,u),u};let n=new Proxy(Nt(K({},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===fl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var m;return D((m=i.get(l))!=null?m:o(l,u),u),Reflect.set(d,l,u)}});Ca(this,lr,(e.hydrate?rp:es)(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)&&Ra(),Ca(this,ts,n.$$events);for(let d of Object.keys(Li(this,lr)))d==="$set"||d==="$destroy"||d==="$on"||to(this,d,{get(){return Li(this,lr)[d]},set(l){Li(this,lr)[d]=l},enumerable:!0});Li(this,lr).$set=d=>{Object.assign(n,d)},Li(this,lr).$destroy=()=>{Ws(Li(this,lr))}}$set(e){Li(this,lr).$set(e)}$on(e,i){Li(this,ts)[e]=Li(this,ts)[e]||[];let o=(...n)=>i.call(this,...n);return Li(this,ts)[e].push(o),()=>{Li(this,ts)[e]=Li(this,ts)[e].filter(n=>n!==o)}}$destroy(){Li(this,lr).$destroy()}};ts=new WeakMap,lr=new WeakMap;function Q(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=cp)==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&&rg(e.hash,d)}})}function fg(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=fg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function mg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=fg(t))&&(o&&(o+=" "),o+=e);return o}function Ll(t){return typeof t=="object"?mg(t):t!=null?t:""}var vg=[...`
48
+ \r\f\xA0\v\uFEFF`];function hg(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||vg.includes(o[s-1]))&&(d===o.length||vg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function gg(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 up(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function _g(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(up)),n&&l.push(...Object.keys(n).map(up));var u=0,m=-1;let b=t.length;for(var y=0;y<b;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===":"&&m===-1)m=y;else if(p===";"||y===b-1){if(m!==-1){var $=up(t.substring(u,m).trim());if(!l.includes($)){p!==";"&&y++;var w=t.substring(u,y).trim();i+=" "+w+";"}}u=y+1,m=-1}}}}return o&&(i+=gg(o)),n&&(i+=gg(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(Ye||s!==i){var d=hg(i,o,a);(!Ye||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 pp(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 st(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=_g(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(pp(t,i==null?void 0:i[0],o[0]),pp(t,i==null?void 0:i[1],o[1],"important")):pp(t,i,o));return o}var za=Symbol("class"),qa=Symbol("style"),yg=Symbol("is custom element"),xg=Symbol("is html");function wg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=Sg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||B0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[rv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Cg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ie(t,e,i,o,n=!1){var P;var a=Sg(t),s=a[yg],d=!a[xg];let l=Ye&&s;l&&no(!1);var u=e||{},m=t.tagName==="OPTION";for(var y in e)y in i||(i[y]=null);i.class?i.class=Ll(i.class):(o||i[za])&&(i.class=null),i[qa]&&((P=i.style)!=null||(i.style=null));var p=Cg(t);for(let k in i){let R=i[k];if(m&&k==="value"&&R==null){t.value=t.__value="",u[k]=R;continue}if(k==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,$,R,o,e==null?void 0:e[za],i[za]),u[k]=R,u[za]=i[za];continue}if(k==="style"){st(t,R,e==null?void 0:e[qa],i[qa]),u[k]=R,u[qa]=i[qa];continue}var w=u[k];if(R!==w){u[k]=R;var b=k[0]+k[1];if(b!=="$$")if(b==="on"){let W={},j="$$"+k,F=k.slice(2);var C=eg(F);if(Jv(F)&&(F=F.slice(0,-7),W.capture=!0),!C&&w){if(R!=null)continue;t.removeEventListener(F,u[j],W),u[j]=null}if(R!=null)if(C)t[`__${F}`]=R,at([F]);else{let G=function(ne){u[k].call(this,ne)};var M=G;u[j]=op(F,t,G,W)}else C&&(t[`__${F}`]=void 0)}else if(k==="style")Ne(t,k,R);else if(k==="autofocus")tp(t,!!R);else if(!s&&(k==="__value"||k==="value"&&R!=null))t.value=t.__value=R;else if(k==="selected"&&m)wg(t,R);else{var T=k;d||(T=tg(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!s&&!I)if(a[k]=null,T==="value"||T==="checked"){let W=t,j=e===void 0;if(T==="value"){let F=W.defaultValue;W.removeAttribute(T),W.defaultValue=F,W.value=W.__value=j?F:null}else{let F=W.defaultChecked;W.removeAttribute(T),W.defaultChecked=F,W.checked=j?F:!1}}else t.removeAttribute(k);else I||p.includes(T)&&(s||typeof R!="string")?t[T]=R:typeof R!="function"&&Ne(t,T,R,n)}}}return l&&no(!0),u}function Sg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[yg]:t.nodeName.includes("-"),[xg]:t.namespaceURI===tv}}var bg=new Map;function Cg(t){var e=bg.get(t.nodeName);if(e)return e;bg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=jd(o);for(var a in i)i[a].set&&e.push(a);o=Gr(o)}return e}function B0(t,e,i){var o;Ee&&(e==="srcset"&&N0(t,i)||fp((o=t.getAttribute(e))!=null?o:"",i)||Pv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function fp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function $g(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function N0(t,e){var i=$g(t.srcset),o=$g(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(fp(i[s][0],n)||fp(n,i[s][0])))}var D0=Yd?()=>performance.now():()=>Date.now(),wr={tick:t=>(Yd?requestAnimationFrame:oe)(t),now:()=>D0(),tasks:new Set};function Tg(){let t=wr.now();wr.tasks.forEach(e=>{e.c(t)||(wr.tasks.delete(e),e.f())}),wr.tasks.size!==0&&wr.tick(Tg)}function Ig(t){let e;return wr.tasks.size===0&&wr.tick(Tg),{promise:new Promise(i=>{wr.tasks.add(e={c:t,f:i})}),abort(){wr.tasks.delete(e)}}}function gc(t,e){El(()=>{t.dispatchEvent(new CustomEvent(e))})}function U0(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 kg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=U0(n.trim());e[s]=a.trim()}return e}var z0=t=>t;function vp(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,m=e.inert,y=e.style.overflow,p,$;function w(){var R;var P=Ut,k=kt;$o(null),io(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{$o(P),io(k)}}var b={is_global:d,in(){var P;if(e.inert=m,!n){$==null||$.abort(),(P=$==null?void 0:$.reset)==null||P.call($);return}a||p==null||p.abort(),gc(e,"introstart"),p=mp(e,w(),$,1,()=>{gc(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,gc(e,"outrostart"),$=mp(e,w(),p,0,()=>{gc(e,"outroend"),P==null||P()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},C=kt;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&Pl){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&&Sn(()=>{wt(()=>b.in())})}}function mp(t,e,i,o,n){var a=o===1;if(ps(e)){var s,d=!1;return nn(()=>{if(!d){var C=e({direction:a?"in":"out"});s=mp(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:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:m,easing:y=z0}=e;var p=[];if(a&&i===void 0&&(m&&m(0,1),u)){var $=kg(u(0,1));p.push($,$)}var w=()=>1-o,b=t.animate(p,{duration:l});return b.onfinish=()=>{var F;var C=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(u)for(var k=Math.ceil(I/16.666666666666668),R=0;R<=k;R+=1){var W=C+T*y(R/k),j=kg(u(W,1-W));M.push(j),P||(P=j.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var G=b.currentTime;return C+T*y(G/I)},m&&Ig(()=>{if(b.playState!=="running")return!1;var G=w();return m(G,1-G),!0})}b=t.animate(M,{duration:I,fill:"forwards"}),b.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var hs,Wa,Vl,_c,Eg,bc=class bc{constructor(e){cs(this,_c);cs(this,hs,new WeakMap);cs(this,Wa);cs(this,Vl);Ca(this,Vl,e)}observe(e,i){var o=Li(this,hs).get(e)||new Set;return o.add(i),Li(this,hs).set(e,o),Jm(this,_c,Eg).call(this).observe(e,Li(this,Vl)),()=>{var n=Li(this,hs).get(e);n.delete(i),n.size===0&&(Li(this,hs).delete(e),Li(this,Wa).unobserve(e))}}};hs=new WeakMap,Wa=new WeakMap,Vl=new WeakMap,_c=new WeakSet,Eg=function(){var e;return(e=Li(this,Wa))!=null?e:Ca(this,Wa,new ResizeObserver(i=>{for(var o of i){bc.entries.set(o.target,o);for(var n of Li(this,hs).get(o.target)||[])n(o)}}))},Bn(bc,"entries",new WeakMap);var gp=bc;var K0=new gp({box:"border-box"});function Or(t,e,i){var o=K0.observe(t,()=>i(t[e]));Sn(()=>(wt(()=>i(t[e])),o))}function Pg(t,e){return t===e||(t==null?void 0:t[Oo])===e}function gt(t={},e,i,o){return Sn(()=>{var n,a;return xo(()=>{n=a,a=(o==null?void 0:o())||[],wt(()=>{t!==i(...a)&&(e(t,...a),n&&Pg(i(...n),t)&&e(null,...n))})}),()=>{nn(()=>{a&&Pg(i(...a),t)&&e(null,...a)})}}),t}function Sr(t=!1){let e=At,i=e.l.u;if(!i)return;let o=()=>lc(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&&Ba(()=>{Ag(e,o),fs(i.b)}),Ue(()=>{let n=wt(()=>i.m.map(lv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ue(()=>{Ag(e,o),fs(i.a)})}function Ag(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;$v(e)},set:o=>{i=o}})}};G0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var G0;function zt(t){At===null&&Na("onMount"),Rr&&At.l!==null?Q0(At).m.push(t):Ue(()=>{let e=wt(t);if(typeof e=="function")return e})}function Tn(t){At===null&&Na("onDestroy"),zt(()=>()=>wt(t))}function Q0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Rl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ka=[];function dr(t,e){return{subscribe:ue(t,e).subscribe}}function ue(t,e=oe){let i=null,o=new Set;function n(d){if(Ta(t,d)&&(t=d,i)){let l=!Ka.length;for(let u of o)u[1](),Ka.push(u,t);if(l){for(let u=0;u<Ka.length;u+=2)Ka[u][0](Ka[u+1]);Ka.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function wi(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 dr(i,(s,d)=>{let l=!1,u=[],m=0,y=oe,p=()=>{if(m)return;y();let w=e(o?u[0]:u,s,d);a?s(w):y=typeof w=="function"?w:oe},$=n.map((w,b)=>Rl(w,C=>{u[b]=C,m&=~(1<<b),l&&p()},()=>{m|=1<<b}));return l=!0,p(),function(){fs($),y(),l=!1}})}function Ce(t){let e;return Rl(t,i=>e=i)(),e}var $c=!1,hp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Zr(void 0),unsubscribe:oe};if(o.store!==t&&!(hp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Rl(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&hp in i?Ce(t):r(o.source)}function De(){let t={};function e(){un(()=>{for(var i in t)t[i].unsubscribe();to(t,hp,{enumerable:!1,value:!0})})}return[t,e]}function _p(t){var e=$c;try{return $c=!1,[t(),$c]}finally{$c=e}}var t_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&bv(`${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 Ae(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},t_)}var i_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ps(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];ps(n)&&(n=n());let a=Nn(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(ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Nn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Oo||e===fl)return!1;for(let i of t.props)if(ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function is(...t){return new Proxy({props:t},i_)}function Mg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var W,j;var n=(i&1)!==0,a=!Rr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=_p(()=>t[e]):u=t[e];var m=Oo in t||fl in t,y=s&&((j=(W=Nn(t,e))==null?void 0:W.set)!=null?j:m&&e in t&&(F=>t[e]=F))||void 0,p=o,$=!0,w=!1,b=()=>(w=!0,$&&($=!1,d?p=wt(o):p=o),p);u===void 0&&o!==void 0&&(y&&a&&_v(e),u=b(),y&&y(u));var C;if(a)C=()=>{var F=t[e];return F===void 0?b():($=!0,w=!1,F)};else{var T=(n?v:yr)(()=>t[e]);T.f|=131072,C=()=>{var F=r(T);return F!==void 0&&(p=void 0),F===void 0?p:F}}if((i&4)===0)return C;if(y){var I=t.$$legacy;return function(F,G){return arguments.length>0?((!a||!G||I||l)&&y(G?C():F),F):C()}}var M=!1,P=!1,k=Zr(u),R=v(()=>{var F=C(),G=r(k);return M?(M=!1,P=!0,G):(P=!1,k.v=F)});return s&&r(R),n||(R.equals=Ia),function(F,G){if(hl!==null&&(M=P,C(),r(k)),arguments.length>0){let ne=G?r(R):a&&s?fe(F):F;if(!R.equals(ne)){if(M=!0,D(k,ne),w&&p!==void 0&&(p=ne),Mg(R))return F;wt(()=>r(R))}return F}return Mg(R)?R.v:r(R)}}var o_;typeof HTMLElement=="function"&&(o_=class extends HTMLElement{constructor(e,i,o){super();Bn(this,"$$ctor");Bn(this,"$$s");Bn(this,"$$c");Bn(this,"$$cn",!1);Bn(this,"$$d",{});Bn(this,"$$r",!1);Bn(this,"$$p_d",{});Bn(this,"$$l",{});Bn(this,"$$l_u",new Map);Bn(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 Et(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]=bp(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=pg({component:this.$$ctor,target:this.shadowRoot||this,props:Nt(K({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=cc(()=>{xo(()=>{var a;this.$$r=!0;for(let s of ku(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=bp(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]=bp(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 ku(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function bp(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 Lg="5";var Vg,Rg,Bg;typeof window!="undefined"&&((Bg=(Rg=(Vg=window.__svelte)!=null?Vg:window.__svelte={}).v)!=null?Bg:Rg.v=new Set).add(Lg);import{clientChecker as Vm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as A1,safeStorage as Ux,throttleFn as zx}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as qx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as s_,fillWithDefault as a_,VideoQuality as Ng}from"@vkontakte/videoplayer-shared/es2015";var l_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:s_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ng.Q_480P,highQualityLimit:Ng.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null}},Dg=t=>a_(t,l_),Og=t=>Oa("ui-config",t),qt=()=>Da("ui-config");var Bl="vk_player_debug_panel_opened";var Hg="videoplayer",Fg="videoplayer";var Hr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ug=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),zg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),qg=new Set(["ShiftRight","ShiftLeft"]);var Wg=["TIMELINE"],Nl=[...Wg,"GRAPH_BUTTON"],$p=[...Wg,"PLAY_BUTTON"],Dl=[...Nl,"PLAY_BUTTON"];var Fr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Fr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Kg,VERSION as d_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as c_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as u_}from"@vkontakte/videoplayer-statistics/es2015";var yc="prod",Qa="1.1.64-dev.dc6a30a0.0";var js=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Qg=Symbol("storeContext"),Gg=Symbol("microStoresContext"),Yg=(t,e)=>{Oa(Qg,t),Oa(Gg,e),yc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Da(Qg);return Kg(t,"Store context is empty!"),t},so=()=>{let t=Da(Gg);return Kg(t,"MicroStores context is empty!"),t},ti=(t,e)=>wc(t,t.getValue(),e),wc=(t,e,i)=>dr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),jg=(t,e,i,o)=>{var P,k,R,W,j,F;let n=t.info,{width:a,height:s}=Ce(i.ui.playerSize),d=(k=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?k:0,l=(W=(R=n.rttEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?W:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${Qa} (core: ${c_}, stat: ${u_}, shared: ${d_})`,y=Ce(i.state.errorLog$),p=y.length?`
49
+ `+y.map((G,ne)=>{var Me;let X=`${ne}) Type: ${G.id}
50
+ `,se=`Message: ${G.message} (${G.thrown})
51
+ `,ce=`Trace: ${(Me=G.thrown)==null?void 0:Me.stack}
52
+ `;return X+se+ce}).join(`
53
+ `):void 0,$=i.state.isAudioDisabled?"disabled":Ce(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: ${(F=b==null?void 0:b.codec)!=null?F:""}`+(b!=null&&b.language?` (${b.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let G=n.availableQualitiesFps$.getValue()[T];I=G?`${G}fps`:""}let M={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:Ce(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:`${Ce(i.state.positionExact$)}s`,State:`${Ce(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:p};return Object.entries(M).filter(([G,ne])=>ne!==void 0).map(([G,ne])=>`${G}: ${ne}`).join(`
54
+ `)},Zg=(t,e,i)=>{var W,j,F,G;let o=t.info,{width:n,height:a}=Ce(i.ui.playerSize),s={version:Qa,viewport:`${n}x${a}`,volume:Math.round(Ce(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let m=o.currentBuffer$.getValue(),y=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();m&&(y&&p?s.buffer=m.end-p:s.buffer=Math.max(m.end-Ce(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let b=o.liveLatency$.getValue();b&&(s.liveLatency=b);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let I=Ce(i.vsid);typeof I=="string"&&(s.vsid=I);let M=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;M&&(s.videoCodec=M);let P=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;P&&(s.audioCodec=P),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let R=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return R&&(s.audioLanguage=R),s},Xg=(t,e)=>js(t,e,"mp4"),Jg=t=>!t.type,eh=t=>!!t.type,th=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},xc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Et(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}};import{isNullable as wp,safeStorage as So}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var ih="vk_player_prefer_traffic_saving_enabled",oh="vk_player_preferred_volume",nh="vk_player_prefer_volume_mute",Sp="vk_player_preferred_quality",yp="vk_player_preferred_default_quality_settings",xp="vk_player_preferred_quality_settings_by_video",rh="vk_player_preferred_stream_language",sh="vk_player_preferred_rate",ah="vk_player_preferred_autoplay_next",lh=t=>t>1?1:t<0?0:t,Cp=t=>So.set(oh,lh(t).toString(10)),Sc=()=>{let t=So.get(oh);return wp(t)?void 0:lh(parseFloat(t))},Tp=(t,e)=>So.set(Sp,JSON.stringify({videoId:t,value:e})),Hl=()=>So.remove(Sp),Ip=t=>{let e=So.get(Sp);if(wp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Hl();return}return o},kp=(t,e)=>{e?So.set(t,"true"):So.remove(t)},Ep=t=>So.get(t)==="true",Pp=t=>kp(nh,t),dh=()=>Ep(nh),Ol=t=>kp(ih,t),Ap=()=>Ep(ih),ch=()=>So.get(rh),Mp=t=>So.set(rh,t),uh=t=>So.set(sh,JSON.stringify({rate:t})),ph=()=>{let t=So.get(sh);if(wp(t))return;let{rate:e}=JSON.parse(t);return e},fh=t=>kp(ah,t),mh=()=>Ep(ah),p_=()=>{let t=m=>{So.set(yp,JSON.stringify(m))},e=()=>{try{let m=So.get(yp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=So.get(xp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{So.set(xp,JSON.stringify(m))},n=m=>{u(m);let y=m?i():null;if(y&&(y==null?void 0:y.videoId)===m)return Nt(K({},y),{appliesTo:"to-video"});y&&a();let p=e();return p?Nt(K({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{So.remove(xp)},s=()=>{So.remove(yp)},d=(m,y="as-default")=>{m.type==="exact_quality"?o(m):y==="as-default"?t(m):o(m)},l=m=>{let y=n(m);if(y){switch(y.type){case"traffic_saving":Ol(!0);break;case"exact_quality":Tp(m,y.quality)}a(),s()}},u=m=>{let y=Ip(m);if(y){o({type:"exact_quality",videoId:m,quality:y});return}Ap()&&t({type:"traffic_saving",videoId:m}),Ol(!1),Hl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:vh,migrateSettingsToLegacyWay:gh,savePreferredQualitySettings:Cc,savePreferredDefaultQualitySettings:vA,removePreferredQualitySettingsByVideo:gA,getPreferredDefaultQualitySettings:Tc}=p_();import{PlaybackState as k1}from"@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 Fl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=f_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),_(t,o)}import{isNullable as bh,InterfaceLanguage as $h}from"@vkontakte/videoplayer-shared/es2015";var m_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_volume:"\u0417\u0432\u0443\u043A",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
55
55
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
56
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},mh=u_;var p_={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}",aria_open_settings:"Open video player settings",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_disable:"Disabled",traffic_saving_enable:"Enabled",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:"Turn 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",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_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",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_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable 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_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",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`},hh=m_;var v_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume_on:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
57
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
58
- Try switching the\xA0quality to\xA0Auto.`},vh=p_;var is=new Map;is.set(hh.EN,vh);is.set(hh.RU,mh);var _h=new Map,Pp=({language:t,pack:e,fallback:i})=>{if(is.has(t)){let o=is.get(t);is.set(t,q(q({},o),e))}else is.set(t,e);_h.set(t,i)},Ap=t=>is.has(t),Mp=(t,e,i,o)=>{var s;let n=is.get(t),a=n==null?void 0:n[e];if(gh(a)){let d=(s=_h.get(t))!=null?s:o,l=d?is.get(d):void 0;a=l==null?void 0:l[e]}return gh(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}=Ce(),o=Se(i),n=Ut();return Mp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var Wa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Wa||(Wa={}));var f_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,m_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,v_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ic="?",g_="X-Sentry-Auth",h_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function __(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=f_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Ic,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=v_.exec(i[a]))n={filename:o[2],function:o[1]||Ic,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=m_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Ic,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Ic),e.push(n)}return e.length?{value:bh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function bh(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function b_(t){try{let e=__(t);if(e)return e}catch(e){}return{value:bh(t),type:t&&t.name,stacktrace:{frames:[]}}}function $_(){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=h_.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 Rt(q({},this.getRequestBlank()),{exception:{values:[b_(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(g_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:$_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function $h(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function y_(){return window}var Ec=class t extends kc{constructor(e,i=y_()){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",q({},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",q({},e)),this}setUser(e){return this.setKeyState("user",q({},e)),this}clone(){let e=new t(Rt(q({},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:[q({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Rt(q({},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=>$h(i,o))):!1}getRequestBlank(){return q(Rt(q({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(q({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=>$h(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 Rt(q({},i),{[o]:a||d?[...a||[],...d||[]]:q(q({},typeof n!="string"?n:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Pc,Subscription as x_}from"@vkontakte/videoplayer-shared/es2015";var Ac=null,Xs=class{constructor(e,i,o={}){!Ac&&e.dsn&&(this.sentryClient=new Ec({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new x_,this.options=e,this.context=o,Ac=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ac=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:v,blackErrorCategoryList:$}=s,{errorType:p,category:_}=i;if(Pc(_)&&$.includes(_)||Pc(p)&&v.includes(p))return;if(Math.random()<=d||Pc(_)&&u.includes(_)||Pc(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(q({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(q(q({},a),o));try{p&&n.captureMessage(p,i.fatal?Wa.fatal:Wa.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Ac}};var os=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(os||{});var Mc=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()},Lc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),yh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},zl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},_s=()=>!!zl(),Vc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Rc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},xh=t=>{let e=window.screen;return(n=>Pt(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))};import{clientChecker as wh}from"@vkontakte/videoplayer-core/es2015";var Sh=()=>({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:wh.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:wh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as w_,ValueSubject as Lp}from"@vkontakte/videoplayer-shared/es2015";var Js=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:w_(this.onResize.bind(this),300)};this.info={isActive$:new Lp(!1),isEnabled$:new Lp(!1),type:0};this.info.isEnabled$=new Lp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Pt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return Pt(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 Pt(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=q({},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 Pt(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 ea(t){return t instanceof Js}import{devNull as Ch,now as Th}from"@vkontakte/videoplayer-shared/es2015";xv();function Dp(t,e){U(e,!1);let i=Ce();Ft(()=>{i.getAdmanWrapper().startPostroll()}),$r(),z()}import{noop as S_}from"@vkontakte/videoplayer-shared/es2015";var C_=(t,e)=>{t.stopPropagation(),e()()},T_=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>'),I_=L("<div><!></div>"),k_={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 Np(t,e){U(e,!0),W(t,k_);let[i,o]=Oe(),n=()=>S(u,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,S_),u=Ce().ui.isMobile,v=m(()=>a()>0&&a()>=s());var $=I_();let p;var _=h($);{var w=C=>{var T=T_();T.__click=[C_,d];var E=h(T);be(),g(T),k(P=>he(E,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(C,T)},y=C=>{var T=Or();k(E=>he(T,E),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(C,T)};R(_,C=>{r(v)?C(w):C(y,!1)})}g($),k(C=>p=te($,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(v)})]),b(t,$),z(),o()}at(["click"]);var E_=L('<button class="svelte-1wy3dql"> </button>'),P_={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 Bp(t,e){U(e,!1),W(t,P_),$r();var i=E_(),o=h(i,!0);g(i),k(n=>he(o,n),[()=>F("visit_advertiser")],hr),b(t,i),z()}var A_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),M_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),L_={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.`},_h=v_;var os=new Map;os.set($h.EN,_h);os.set($h.RU,hh);var yh=new Map,Lp=({language:t,pack:e,fallback:i})=>{if(os.has(t)){let o=os.get(t);os.set(t,K(K({},o),e))}else os.set(t,e);yh.set(t,i)},Vp=t=>os.has(t),Rp=(t,e,i,o)=>{var s;let n=os.get(t),a=n==null?void 0:n[e];if(bh(a)){let d=(s=yh.get(t))!=null?s:o,l=d?os.get(d):void 0;a=l==null?void 0:l[e]}return bh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},q=(t,e)=>{let{interfaceLanguage$:i}=Te(),o=Ce(i),n=qt();return Rp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var Ga;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ga||(Ga={}));var g_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,h_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,__=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ic="?",b_="X-Sentry-Auth",$_=/^(?:(\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=g_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Ic,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=__.exec(i[a]))n={filename:o[2],function:o[1]||Ic,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=h_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Ic,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Ic),e.push(n)}return e.length?{value:xh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function xh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function x_(t){try{let e=y_(t);if(e)return e}catch(e){}return{value:xh(t),type:t&&t.name,stacktrace:{frames:[]}}}function w_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var kc=class{constructor(e){if(e&&e.dsn){let i=$_.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 Nt(K({},this.getRequestBlank()),{exception:{values:[x_(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(b_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:w_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function wh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function S_(){return window}var Ec=class t extends kc{constructor(e,i=S_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb: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",K({},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",K({},e)),this}setUser(e){return this.setKeyState("user",K({},e)),this}clone(){let e=new t(Nt(K({},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:[K({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Nt(K({},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=>wh(i,o))):!1}getRequestBlank(){return K(Nt(K({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(K({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=>wh(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 Nt(K({},i),{[o]:a||d?[...a||[],...d||[]]:K(K({},typeof n!="string"?n:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Pc,Subscription as C_}from"@vkontakte/videoplayer-shared/es2015";var Ac=null,Zs=class{constructor(e,i,o={}){!Ac&&e.dsn&&(this.sentryClient=new Ec({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new C_,this.options=e,this.context=o,Ac=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ac=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:m,blackErrorCategoryList:y}=s,{errorType:p,category:$}=i;if(Pc($)&&y.includes($)||Pc(p)&&m.includes(p))return;if(Math.random()<=d||Pc($)&&u.includes($)||Pc(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(K({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(K(K({},a),o));try{p&&n.captureMessage(p,i.fatal?Ga.fatal:Ga.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return Ac}};var ns=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ns||{});var Mc=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()},Lc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Sh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ul=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},_s=()=>!!Ul(),Vc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Rc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Ch=t=>{let e=window.screen;return(n=>Et(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))};import{clientChecker as Th}from"@vkontakte/videoplayer-core/es2015";var Ih=()=>({title:q("hotkey_map_modal_title"),closeBtnText:q("hotkey_map_modal_close_btn_text"),groups:[{title:q("hotkey_map_group_title_common"),items:[{description:q("hotkey_map_item_mute_description"),value:q("hotkey_map_item_mute_value")},{description:q("hotkey_map_item_volume_up_description"),value:q("hotkey_map_item_volume_up_value")},{description:q("hotkey_map_item_volume_down_description"),value:q("hotkey_map_item_volume_down_value")},{description:q("hotkey_map_item_pip_description"),value:q("hotkey_map_item_pip_value")},{description:q("hotkey_map_item_full_screen_description"),value:q("hotkey_map_item_full_screen_value")},{description:q("hotkey_map_item_show_context_menu_description"),value:q("hotkey_map_item_show_context_menu_value")},{description:q("hotkey_map_item_show_hotkey_map_description"),value:q("hotkey_map_item_show_hotkey_map_value")}]},{title:q("hotkey_map_group_title_playback"),items:[{description:q("hotkey_map_item_play_toggle_description"),value:q("hotkey_map_item_play_toggle_value")},{description:q("hotkey_map_item_seek_backward_description"),value:q("hotkey_map_item_seek_backward_value")},{description:q("hotkey_map_item_seek_forward_description"),value:q("hotkey_map_item_seek_forward_value")},{description:q("hotkey_map_item_fast_seek_backward_description"),value:q("hotkey_map_item_fast_seek_backward_value")},{description:q("hotkey_map_item_fast_seek_forward_description"),value:q("hotkey_map_item_fast_seek_forward_value")},{description:q("hotkey_map_item_rate_down_description"),value:q("hotkey_map_item_rate_down_value")},{description:q("hotkey_map_item_rate_up_description"),value:q("hotkey_map_item_rate_up_value")},{description:q("hotkey_map_item_prev_frame_description"),value:q("hotkey_map_item_prev_frame_value")},{description:q("hotkey_map_item_next_frame_description"),value:q("hotkey_map_item_next_frame_value")},{description:q("hotkey_map_item_jump_seek_description"),value:q("hotkey_map_item_jump_seek_value")},{description:q("hotkey_map_item_next_video_description"),value:q("hotkey_map_item_next_video_value")},{description:q("hotkey_map_item_prev_video_description"),value:q("hotkey_map_item_prev_video_value")}]},{title:q("hotkey_map_group_title_subtitles"),items:[{description:q("hotkey_map_item_subtitles_toggle_description"),value:q("hotkey_map_item_subtitles_toggle_value")}]},{title:q("hotkey_map_group_title_episodes"),items:[{description:q("hotkey_map_item_prev_episode_description"),value:Th.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:Th.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as T_,ValueSubject as Bp}from"@vkontakte/videoplayer-shared/es2015";var Xs=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:T_(this.onResize.bind(this),300)};this.info={isActive$:new Bp(!1),isEnabled$:new Bp(!1),type:0};this.info.isEnabled$=new Bp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Et(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return Et(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 Et(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=K({},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 Et(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 Js(t){return t instanceof Xs}import{devNull as kh,now as Eh}from"@vkontakte/videoplayer-shared/es2015";Cv();function Op(t,e){U(e,!1);let i=Te();zt(()=>{i.getAdmanWrapper().startPostroll()}),Sr(),z()}import{noop as I_}from"@vkontakte/videoplayer-shared/es2015";var k_=(t,e)=>{t.stopPropagation(),e()()},E_=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>'),P_=L("<div><!></div>"),A_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Hp(t,e){U(e,!0),Q(t,A_);let[i,o]=De(),n=()=>S(u,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,I_),u=Te().ui.isMobile,m=v(()=>a()>0&&a()>=s());var y=P_();let p;var $=h(y);{var w=C=>{var T=E_();T.__click=[k_,d];var I=h(T);ye(),g(T),E(M=>ve(I,`${M!=null?M:""} `),[()=>q("skip_ads_now")]),_(C,T)},b=C=>{var T=Dr();E(I=>ve(T,I),[()=>q("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),_(C,T)};B($,C=>{r(m)?C(w):C(b,!1)})}g(y),E(C=>p=ee(y,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(m)})]),_(t,y),z(),o()}at(["click"]);var M_=L('<button class="svelte-1wy3dql"> </button>'),L_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Fp(t,e){U(e,!1),Q(t,L_),Sr();var i=M_(),o=h(i,!0);g(i),E(n=>ve(o,n),[()=>q("visit_advertiser")],yr),_(t,i),z()}var V_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),R_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),B_={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.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
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 ql(t,e){U(e,!0),W(t,L_);let[i,o]=Oe(),n=()=>S(Y,"$canSkipAd",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(E,"$isMobile",i),d=()=>S(O,"$adPosition",i),l=()=>S(J,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),v=f(e,"adsSlotId",3,void 0),$=f(e,"adsParams",3,void 0),p=f(e,"adsPreviewParam",3,void 0),_=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),y=Ce(),C=Ut(),T=y.state.isEnded$,E=y.ui.isMobile,P=C.ads.isMobileGoToSiteButton,A=ee(void 0),I=ee(void 0),V=!1,H=y.ads.playbackState,Y=y.ads.canSkip,O=y.ads.position,J=y.ads.secondsToWatchBeforeSkip,re=m(()=>n()&&a()!=="inactive"),Z=m(()=>s()&&a()!=="inactive"&&P);Ft(()=>{var we;let ie=y.getAdmanWrapper();if(Ch.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Th(),v()]}),!v()){ie.onAdmanLoadingError();return}let Ge=Be=>{ie.initAdman(Be),V=!0},oe=new AbortController,G=()=>{oe.abort()},{width:K,height:Ve}=Se(y.ui.playerSize),Ne=Se(y.ui.isFullscreen),Je=(we=_())!=null?we:Se(y.ui.isAutoplay),xe={width:K,height:Ve,isFullscreen:Ne,isAutoplay:Je,adsContainer:r(A),adsVideoElement:r(I),slotId:v(),params:$(),previewParam:p(),duration:w()};return window.AdmanHTML?Ge(xe):ie.loadAdman(oe.signal).then(()=>{Ge(xe)}).catch(()=>{ie.onAdmanLoadingError()}),()=>{Ch.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Th(),v()]}),!V&&G()}});var me=M_(),de=h(me);{var Le=ie=>{var Ge=A_();b(ie,Ge)};R(de,ie=>{s()&&ie(Le)})}var Me=M(de,2);ft(Me,ie=>B(I,ie),()=>r(I));var ve=M(Me,2);{var le=ie=>{Np(ie,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(ve,ie=>{r(re)&&ie(le)})}var Ae=M(ve,2);{var se=ie=>{Dp(ie,{})};R(Ae,ie=>{u()&&ie(se)})}var N=M(Ae,2);{var Re=ie=>{Bp(ie,{})};R(N,ie=>{r(Z)&&ie(Re)})}g(me),ft(me,ie=>B(A,ie),()=>r(A)),b(t,me),z(),o()}var un=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var V_=$e('<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 Op(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=V_();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i))),b(t,o)}var R_=$e('<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 Hp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=R_();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i))),b(t,o)}function Wl(t,e){let i=f(e,"isActive",3,!1);var o=Ue(),n=pe(o);{var a=d=>{Hp(d,{})},s=d=>{Op(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var D_=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>'),N_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),B_=L('<span class="text svelte-1s15d2i"> </span>'),O_=L("<div><!> <!></div>"),H_={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 zl(t,e){U(e,!0),Q(t,B_);let[i,o]=De(),n=()=>S(j,"$canSkipAd",i),a=()=>S(W,"$adPlaybackState",i),s=()=>S(I,"$isMobile",i),d=()=>S(F,"$adPosition",i),l=()=>S(G,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),m=f(e,"adsSlotId",3,void 0),y=f(e,"adsParams",3,void 0),p=f(e,"adsPreviewParam",3,void 0),$=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),b=Te(),C=qt(),T=b.state.isEnded$,I=b.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=J(void 0),k=J(void 0),R=!1,W=b.ads.playbackState,j=b.ads.canSkip,F=b.ads.position,G=b.ads.secondsToWatchBeforeSkip,ne=v(()=>n()&&a()!=="inactive"),X=v(()=>s()&&a()!=="inactive"&&M);zt(()=>{var Re;let be=b.getAdmanWrapper();if(kh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Eh(),m()]}),!m()){be.onAdmanLoadingError();return}let qe=ke=>{be.initAdman(ke),R=!0},H=new AbortController,de=()=>{H.abort()},{width:_e,height:te}=Ce(b.ui.playerSize),Oe=Ce(b.ui.isFullscreen),Ze=(Re=$())!=null?Re:Ce(b.ui.isAutoplay),Se={width:_e,height:te,isFullscreen:Oe,isAutoplay:Ze,adsContainer:r(P),adsVideoElement:r(k),slotId:m(),params:y(),previewParam:p(),duration:w()};return window.AdmanHTML?qe(Se):be.loadAdman(H.signal).then(()=>{qe(Se)}).catch(()=>{be.onAdmanLoadingError()}),()=>{kh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Eh(),m()]}),!R&&de()}});var se=R_(),ce=h(se);{var Me=be=>{var qe=V_();_(be,qe)};B(ce,be=>{s()&&be(Me)})}var Le=A(ce,2);gt(Le,be=>D(k,be),()=>r(k));var he=A(Le,2);{var ae=be=>{Hp(be,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};B(he,be=>{r(ne)&&be(ae)})}var Pe=A(he,2);{var re=be=>{Op(be,{})};B(Pe,be=>{u()&&be(re)})}var V=A(Pe,2);{var we=be=>{Fp(be,{})};B(V,be=>{r(X)&&be(we)})}g(se),gt(se,be=>D(P,be),()=>r(P)),_(t,se),z(),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 N_=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 Up(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=N_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i))),_(t,o)}var D_=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 zp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=D_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({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 ql(t,e){let i=f(e,"isActive",3,!1);var o=He(),n=pe(o);{var a=d=>{zp(d,{})},s=d=>{Up(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var O_=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>'),H_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),F_=L('<span class="text svelte-1s15d2i"> </span>'),U_=L("<div><!> <!></div>"),z_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
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.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
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 Kl(t,e){W(t,H_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=O_();let s;var d=h(a);{var l=p=>{var _=D_();b(p,_)};R(d,p=>{i()&&p(l)})}var u=M(d,2);{var v=p=>{var _=N_(),w=h(_);Wl(w,{isActive:!0}),g(_),b(p,_)},$=p=>{var _=B_(),w=h(_,!0);g(_),k(()=>he(w,e.time)),b(p,_)};R(u,p=>{o()?p(v):p($,!1)})}g(a),k(p=>s=te(a,1,"wrapper svelte-1s15d2i",null,s,p),[()=>({live:o(),playing:n()})]),b(t,a)}var F_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),U_={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 Ql(t,e){U(e,!0),W(t,U_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=m(()=>un(e.duration-e.position));var s=F_();let d;var l=h(s);Kl(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),k(u=>d=te(s,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),b(t,s),z()}var Ka=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as J_}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as Ih}from"@vkontakte/videoplayer-core/es2015";var ar=t=>{t.stopPropagation(),t.preventDefault()},q_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},W_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},K_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Q_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},kh=t=>t.code==="Escape",G_=t=>t.code==="ArrowLeft",Gl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Eh=t=>{if(K_(t)){ar(t),W_(t.target);return}Q_(t)&&(ar(t),q_(t.target))},ys=t=>!Ih.device.isAndroid&&(t==null?void 0:t.detail)===0||Ih.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Qa=(t,e,i)=>Pt(void 0,null,function*(){yield xo(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(yield xo(),i.set(!1),t.focus())}),Ph=(t,e,i)=>Pt(void 0,null,function*(){yield xo(),t&&!e&&Se(i)&&(i.set(!1),t.focus())}),Ga=(t,e,i)=>Pt(void 0,null,function*(){var n;yield xo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Ah=(t,e)=>Pt(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Dc=(t,e)=>{Eh(t),kh(t)&&(ar(t),e())},Nc=(t,e)=>Pt(void 0,null,function*(){Gl(t,["ArrowRight"])&&(ar(t),e())}),Mh=(t,e,i)=>Pt(void 0,null,function*(){if(Eh(t),G_(t)){ar(t),e();return}kh(t)&&(ar(t),i())}),ja=(t,e)=>{Gl(t)&&(ar(t),e())},Lh=(t,e,i)=>{if(Gl(t))ar(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),ar(t);return}o==="ArrowRight"&&!e&&(i(!0),ar(t))}},Vh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Rh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Bc,isValidURL as eb}from"@vkontakte/videoplayer-shared/es2015";var yr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as Dh}from"@vkontakte/videoplayer-shared/es2015";var Y_=(t,e)=>{ja(t,()=>e())},Z_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),X_={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 Fp(t,e){U(e,!0),W(t,X_);let i=f(e,"onClick",3,Dh),o=f(e,"closeContextMenu",3,Dh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Z_();a.__click=n,a.__keydown=[Y_,n];var s=h(a,!0);g(a),k(()=>{var d;Fe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Fe(a,"data-testid",e.id),he(s,e.label)}),b(t,a),z()}at(["click","keydown"]);var ia=(t,e)=>t.weight-e.weight;var jl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(jl||{});var tb=(t,e)=>{Dc(t,e)},ib=t=>{t.preventDefault()},ob=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),nb={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 Up(t,e){U(e,!0),W(t,nb);let[i,o]=Oe(),n=()=>S(Z,"$isLive$",i),a=()=>S(Me,"$isPiPEnabled$",i),s=()=>S(re,"$chromecastState$",i),d=()=>S(ve,"$pictureInPictureApiIsActive$",i),l=()=>S(Le,"$isLooped$",i),u=()=>S(me,"$positionExact$",i),v=()=>S(H,"$debugPanelVisible",i),$=()=>S(Y,"$additionalContextMenuItems$",i),p=f(e,"visible",3,!1),_=f(e,"position",19,()=>({top:0,left:0})),w=f(e,"playerContainerRef",3,void 0),y=f(e,"controlsContainerRef",3,void 0),C=f(e,"menuElementRef",15,void 0),T=ee(0),E=ee(0),P=Ce(),{pictureInPicture$:A}=mo(),I=Ut(),V=P.ui.contextMenu.visible$,H=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,O=P.ui.t,J=P.actions.internal.togglePictureInPicture,re=P.state.chromecastState$,Z=P.state.isLive$,me=P.state.positionExact$,de=P.state.isInteractive,Le=P.state.looped$,{isEnabled$:Me,isActive$:ve}=A,le=m(()=>{var Ye;return I.features.copyVideoLink&&((Ye=P.callbacks)==null?void 0:Ye.onCopyVideoLink)}),Ae=m(()=>r(le)&&!n()&&!de),se=m(()=>{var Ye;return!!((Ye=P.callbacks)!=null&&Ye.onCopyEmbedCodeClicked)}),N=m(()=>a()&&s()!==J_.CONNECTED&&!de),Re=m(()=>I.features.videoRotate&&!de),ie=m(()=>I.showSupport&&!d()),Ge=m(()=>I.features.saveTraceInfoToFile),oe=()=>{var Ye;V.set(!1),(Ye=e.returnFocus)==null||Ye.call(e)},G=(Ye,Xe)=>{if(!C()||!w()||!y())return;let dt=C().getBoundingClientRect(),De=w().getBoundingClientRect();B(T,Ye-De.left),B(E,Xe-De.top),r(T)+dt.width>De.width&&B(T,De.width-dt.width),r(E)+dt.height>De.height&&B(E,De.height-dt.height),B(T,fe(Math.max(r(T),0))),B(E,fe(Math.max(r(E),0)))};ze(()=>{Pt(this,null,function*(){if(C()&&w()&&y()){yield xo();let{top:Xe,left:dt,bottom:De,right:bt}=_(),We=dt!=null?dt:0,Et=Xe!=null?Xe:0,ai=C().getBoundingClientRect();Bc(dt)&&!Bc(bt)&&(We=bt-ai.width),Bc(Xe)&&!Bc(De)&&(Et=De-ai.height),We=Math.max(We,0),Et=Math.max(Et,0),G(We,Et)}})});let K=()=>{P.actions.internal.videoRotate()},Ve=()=>{eb(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ne=()=>{let Ye=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Xe=new Blob([...Ye],{type:"plain/text"}),dt=window.URL.createObjectURL(Xe);Zs(dt,"vk_player_debug_info","txt")}else Ka(P.actions.internal.getDebugTextData())},Je=()=>{let Ye=P.actions.internal.getTraceTextData(),Xe=new Blob([...Ye],{type:"application/json"}),dt=window.URL.createObjectURL(Xe);Zs(dt,"vk_player_trace_info","json")},xe=()=>{H.set(!0)},we=()=>Pt(this,null,function*(){var Ye;try{J()}finally{(Ye=e.returnFocus)==null||Ye.call(e)}}),Be=()=>{P.actions.internal.setLooped(!l())},Ze=()=>{var Ye,Xe;if(r(se)){let dt=(Xe=(Ye=P.callbacks)==null?void 0:Ye.onCopyEmbedCodeClicked)==null?void 0:Xe.call(Ye);dt&&Ka(dt)}},ot=(Ye=!1)=>{var Xe,dt;if((Xe=P.callbacks)!=null&&Xe.onCopyVideoLink){let De=(dt=P.callbacks)==null?void 0:dt.onCopyVideoLink(Ye,u());De&&Ka(De)}},gt=m(()=>I.features.saveDebugInfoToFile?O("menu_save_debug"):O("menu_copy_debug")),et=m(()=>r(le)?{id:"copy-link",weight:yr["copy-link"],label:O("menu_copy_video_link"),onClick:()=>ot()}:void 0),mt=m(()=>r(Ae)?{id:"copy-link-timestamp",weight:yr["copy-link-timestamp"],label:O("menu_copy_video_link_with_timestamp"),onClick:()=>ot(!0)}:void 0),kt=m(()=>r(se)?{id:"copy-embed-code",weight:yr["copy-embed-code"],label:O("menu_copy_embed_code"),onClick:Ze}:void 0),Gt=m(()=>r(N)?{id:"pip",weight:yr.pip,label:O("menu_pip"),onClick:we}:void 0),zt=m(()=>({id:"video-loop",weight:yr["video-loop"],label:l()?O("menu_video_loop_off"):O("menu_video_loop_on"),ariaLabel:O("aria_label_menu_loop"),onClick:Be})),Kt=m(()=>r(Re)?{id:"rotate",weight:yr.rotate,label:O("menu_video_rotate"),ariaLabel:O("aria_label_menu_rotate"),onClick:K}:void 0),ge=m(()=>r(ie)?{id:"report",weight:yr.report,label:O("menu_report"),ariaLabel:`${O("menu_report")}. ${O("aria_label_new_tab_alert")}`,onClick:Ve}:void 0),j=m(()=>({id:"save-debug",weight:yr["save-debug"],label:r(gt),onClick:Ne})),Ie=m(()=>r(Ge)?{id:"save-trace",weight:yr["save-trace"],label:O("menu_save_debug"),onClick:Je}:void 0),ae=m(()=>({id:"debug-info",weight:yr["debug-info"],label:O("menu_debug_overlay"),ariaLabel:v()?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable"),onClick:xe})),He=m(()=>[r(et),r(mt),r(kt),r(Gt),r(zt),r(Kt),r(ge),r(j),r(Ie),r(ae),...$()].filter(Ye=>!!Ye).sort(ia));var qe=Ue(),tt=pe(qe);{var lt=Ye=>{var Xe=ob();Xe.__contextmenu=[ib],Xe.__keydown=[tb,oe],ki(Xe,21,()=>r(He),dt=>dt.id,(dt,De)=>{Fp(dt,{get id(){return r(De).id},get label(){return r(De).label},get ariaLabel(){return r(De).ariaLabel},get onClick(){return r(De).onClick},closeContextMenu:oe})}),g(Xe),ft(Xe,dt=>C(dt),()=>C()),k(()=>{var dt,De;return it(Xe,`top: ${(dt=r(E))!=null?dt:""}px; left: ${(De=r(T))!=null?De:""}px;`)}),b(Ye,Xe)};R(tt,Ye=>{p()&&Ye(lt)})}b(t,qe),z(),o()}at(["contextmenu","keydown"]);var Oc=class{constructor(e){this.value=e,this.next=null}};var Ya=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Oc(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 rb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),sb={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 Yl(t,e){U(e,!0),W(t,sb);let i=f(e,"values",19,()=>[]),o=ee(void 0),n=ee(null),a=16,s=120,d=60,l=s/d;Ft(()=>{r(o).width=s,r(o).height=a,B(n,fe(r(o).getContext("2d")))});function u(p,_,w,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(_,w,y,C)}ze(()=>{let p="";if(r(n)){let _=i()[0];for(let y=1;y<i().length;y++)i()[y]>_&&(_=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*l,T=_>0?a*(i()[y]/_):0;u(r(n),C,0,l,T),p=T+" "+p,w--}}});var v=rb(),$=h(v);ft($,p=>B(o,p),()=>r(o)),g(v),b(t,v),z()}import{safeStorage as Nh}from"@vkontakte/videoplayer-shared/es2015";var ab=(t,e)=>{t.stopPropagation(),Nh.remove(Nl),e.set(!1)},lb=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>'),cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),gb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),$b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),yb=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 Zl(t,e){U(e,!0),W(t,xb);let[i,o]=Oe(),n=()=>S(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ee(fe(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),v=ee(0),$=ee(0),p=ee(0),_=new Ya(60),w=new Ya(60),y=new Ya(60),C=ee(fe([])),T=ee(fe([])),E=ee(fe([])),P=F("aria_label_debug_panel");Ft(()=>{Nh.set(Nl,"true"),a.actions.internal.startLogging(),u&&(B($,fe(u.getVideoPlaybackQuality().droppedVideoFrames)),B(v,fe(u.getVideoPlaybackQuality().totalVideoFrames)));let j=window.setInterval(()=>{B(l,fe(a.actions.internal.getDebugPanelData()))},500),Ie;return u&&(Ie=window.setInterval(()=>{if(u){B($,fe(u.getVideoPlaybackQuality().droppedVideoFrames));let ae=u.getVideoPlaybackQuality().totalVideoFrames;B(p,ae-r(v)),B(v,fe(ae)),_.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),B(C,fe(_.getValuesFromBottom())),B(T,fe(w.getValuesFromBottom())),B(E,fe(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(j),Ie&&clearInterval(Ie)}});var A=yb();let I;Fe(A,"aria-label",P);var V=h(A);V.__click=[ab,s];var H=M(V,2),Y=h(H),O=M(h(Y),2),J=h(O,!0);g(O),g(Y);var re=M(Y,2);{var Z=j=>{var Ie=lb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).id)),b(j,Ie)};R(re,j=>{r(l).id&&j(Z)})}var me=M(re,2);{var de=j=>{var Ie=db(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).vsid)),b(j,Ie)};R(me,j=>{r(l).vsid&&j(de)})}var Le=M(me,2);{var Me=j=>{var Ie=cb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).provider)),b(j,Ie)};R(Le,j=>{r(l).provider&&j(Me)})}var ve=M(Le,2);{var le=j=>{var Ie=ub(),ae=M(h(Ie),2),He=h(ae);g(ae),g(Ie),k(()=>{var qe,tt;return he(He,`Video: ${r(l).videoCodec||""} ${(qe=r(l).hdr?"(HDR)":"")!=null?qe:""}
141
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Wl(t,e){Q(t,z_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=U_();let s;var d=h(a);{var l=p=>{var $=O_();_(p,$)};B(d,p=>{i()&&p(l)})}var u=A(d,2);{var m=p=>{var $=H_(),w=h($);ql(w,{isActive:!0}),g($),_(p,$)},y=p=>{var $=F_(),w=h($,!0);g($),E(()=>ve(w,e.time)),_(p,$)};B(u,p=>{o()?p(m):p(y,!1)})}g(a),E(p=>s=ee(a,1,"wrapper svelte-1s15d2i",null,s,p),[()=>({live:o(),playing:n()})]),_(t,a)}var q_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),W_={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 Kl(t,e){U(e,!0),Q(t,W_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>pn(e.duration-e.position));var s=q_();let d;var l=h(s);Wl(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),z()}var Ya=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as ib}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as Ph}from"@vkontakte/videoplayer-core/es2015";var cr=t=>{t.stopPropagation(),t.preventDefault()},Q_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},G_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Y_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},j_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Ah=t=>t.code==="Escape",Z_=t=>t.code==="ArrowLeft",Ql=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Mh=t=>{if(Y_(t)){cr(t),G_(t.target);return}j_(t)&&(cr(t),Q_(t.target))},ys=t=>!Ph.device.isAndroid&&(t==null?void 0:t.detail)===0||Ph.device.isAndroid&&(t==null?void 0:t.pointerType)==="",ja=(t,e,i)=>Et(void 0,null,function*(){yield yo(),t&&!t.classList.contains("opened")&&!e&&Ce(i)&&(yield yo(),i.set(!1),t.focus())}),Lh=(t,e,i)=>Et(void 0,null,function*(){yield yo(),t&&!e&&Ce(i)&&(i.set(!1),t.focus())}),Za=(t,e,i)=>Et(void 0,null,function*(){var n;yield yo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Vh=(t,e)=>Et(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Bc=(t,e)=>{Mh(t),Ah(t)&&(cr(t),e())},Nc=(t,e)=>Et(void 0,null,function*(){Ql(t,["ArrowRight"])&&(cr(t),e())}),Rh=(t,e,i)=>Et(void 0,null,function*(){if(Mh(t),Z_(t)){cr(t),e();return}Ah(t)&&(cr(t),i())}),Xa=(t,e)=>{Ql(t)&&(cr(t),e())},Bh=(t,e,i)=>{if(Ql(t))cr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),cr(t);return}o==="ArrowRight"&&!e&&(i(!0),cr(t))}},Nh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Dh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Dc,isValidURL as ob}from"@vkontakte/videoplayer-shared/es2015";var Cr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as Oh}from"@vkontakte/videoplayer-shared/es2015";var J_=(t,e)=>{Xa(t,()=>e())},eb=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 qp(t,e){U(e,!0),Q(t,tb);let i=f(e,"onClick",3,Oh),o=f(e,"closeContextMenu",3,Oh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=eb();a.__click=n,a.__keydown=[J_,n];var s=h(a,!0);g(a),E(()=>{var d;Ne(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(a,"data-testid",e.id),ve(s,e.label)}),_(t,a),z()}at(["click","keydown"]);var ta=(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 nb=(t,e)=>{Bc(t,e)},rb=t=>{t.preventDefault()},sb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),ab={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function Wp(t,e){U(e,!0),Q(t,ab);let[i,o]=De(),n=()=>S(ne,"$isLive$",i),a=()=>S(Me,"$isPiPEnabled$",i),s=()=>S(G,"$chromecastState$",i),d=()=>S(Le,"$pictureInPictureApiIsActive$",i),l=()=>S(ce,"$isLooped$",i),u=()=>S(X,"$positionExact$",i),m=()=>S(W,"$additionalContextMenuItems$",i),y=f(e,"visible",3,!1),p=f(e,"position",19,()=>({top:0,left:0})),$=f(e,"playerContainerRef",3,void 0),w=f(e,"controlsContainerRef",3,void 0),b=f(e,"menuElementRef",15,void 0),C=J(0),T=J(0),I=Te(),{pictureInPicture$:M}=so(),P=qt(),k=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,j=I.ui.t,F=I.actions.internal.togglePictureInPicture,G=I.state.chromecastState$,ne=I.state.isLive$,X=I.state.positionExact$,se=I.state.isInteractive,ce=I.state.looped$,{isEnabled$:Me,isActive$:Le}=M,he=v(()=>{var Ve;return P.features.copyVideoLink&&((Ve=I.callbacks)==null?void 0:Ve.onCopyVideoLink)}),ae=v(()=>r(he)&&!n()&&!se),Pe=v(()=>{var Ve;return!!((Ve=I.callbacks)!=null&&Ve.onCopyEmbedCodeClicked)}),re=v(()=>a()&&s()!==ib.CONNECTED&&!se),V=v(()=>P.features.videoRotate&&!se),we=v(()=>P.showSupport&&!d()),be=v(()=>P.features.saveTraceInfoToFile),qe=()=>{var Ve;k.set(!1),(Ve=e.returnFocus)==null||Ve.call(e)},H=(Ve,rt)=>{if(!b()||!$()||!w())return;let et=b().getBoundingClientRect(),_t=$().getBoundingClientRect();D(C,Ve-_t.left),D(T,rt-_t.top),r(C)+et.width>_t.width&&D(C,_t.width-et.width),r(T)+et.height>_t.height&&D(T,_t.height-et.height),D(C,fe(Math.max(r(C),0))),D(T,fe(Math.max(r(T),0)))};Ue(()=>{Et(this,null,function*(){if(b()&&$()&&w()){yield yo();let{top:rt,left:et,bottom:_t,right:it}=p(),Xe=et!=null?et:0,Qt=rt!=null?rt:0,bt=b().getBoundingClientRect();Dc(et)&&!Dc(it)&&(Xe=it-bt.width),Dc(rt)&&!Dc(_t)&&(Qt=_t-bt.height),Xe=Math.max(Xe,0),Qt=Math.max(Qt,0),H(Xe,Qt)}})});let de=()=>{I.actions.internal.videoRotate()},_e=()=>{ob(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 rt=new Blob([...Ve],{type:"plain/text"}),et=window.URL.createObjectURL(rt);js(et,"vk_player_debug_info","txt")}else Ya(I.actions.internal.getDebugTextData())},Oe=()=>{let Ve=I.actions.internal.getTraceTextData(),rt=new Blob([...Ve],{type:"application/json"}),et=window.URL.createObjectURL(rt);js(et,"vk_player_trace_info","json")},Ze=()=>{R.set(!0)},Se=()=>Et(this,null,function*(){var Ve;try{F()}finally{(Ve=e.returnFocus)==null||Ve.call(e)}}),Re=()=>{I.actions.internal.setLooped(!l())},ke=()=>{var Ve,rt;if(r(Pe)){let et=(rt=(Ve=I.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:rt.call(Ve);et&&Ya(et)}},ze=(Ve=!1)=>{var rt,et;if((rt=I.callbacks)!=null&&rt.onCopyVideoLink){let _t=(et=I.callbacks)==null?void 0:et.onCopyVideoLink(Ve,u());_t&&Ya(_t)}},ct=v(()=>P.features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),ut=v(()=>r(he)?{id:"copy-link",weight:Cr["copy-link"],label:j("menu_copy_video_link"),onClick:()=>ze()}:void 0),nt=v(()=>r(ae)?{id:"copy-link-timestamp",weight:Cr["copy-link-timestamp"],label:j("menu_copy_video_link_with_timestamp"),onClick:()=>ze(!0)}:void 0),St=v(()=>r(Pe)?{id:"copy-embed-code",weight:Cr["copy-embed-code"],label:j("menu_copy_embed_code"),onClick:ke}:void 0),mt=v(()=>r(re)?{id:"pip",weight:Cr.pip,label:j("menu_pip"),onClick:Se}:void 0),Kt=v(()=>({id:"video-loop",weight:Cr["video-loop"],label:l()?j("menu_video_loop_off"):j("menu_video_loop_on"),ariaLabel:j("aria_label_menu_loop"),onClick:Re})),ni=v(()=>r(V)?{id:"rotate",weight:Cr.rotate,label:j("menu_video_rotate"),ariaLabel:j("aria_label_menu_rotate"),onClick:de}:void 0),Mt=v(()=>r(we)?{id:"report",weight:Cr.report,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,onClick:_e}:void 0),Bt=v(()=>({id:"save-debug",weight:Cr["save-debug"],label:r(ct),onClick:te})),O=v(()=>r(be)?{id:"save-trace",weight:Cr["save-trace"],label:j("menu_save_debug"),onClick:Oe}:void 0),$e=v(()=>({id:"debug-info",weight:Cr["debug-info"],label:j("menu_debug_overlay"),ariaLabel:j("aria_label_menu_debug_overlay"),onClick:Ze})),ie=v(()=>[r(ut),r(nt),r(St),r(mt),r(Kt),r(ni),r(Mt),r(Bt),r(O),r($e),...m()].filter(Ve=>!!Ve).sort(ta));var Be=He(),je=pe(Be);{var Qe=Ve=>{var rt=sb();rt.__contextmenu=[rb],rt.__keydown=[nb,qe],ki(rt,21,()=>r(ie),et=>et.id,(et,_t)=>{qp(et,{get id(){return r(_t).id},get label(){return r(_t).label},get ariaLabel(){return r(_t).ariaLabel},get onClick(){return r(_t).onClick},closeContextMenu:qe})}),g(rt),gt(rt,et=>b(et),()=>b()),E(()=>{var et,_t;return st(rt,`top: ${(et=r(T))!=null?et:""}px; left: ${(_t=r(C))!=null?_t:""}px;`)}),_(Ve,rt)};B(je,Ve=>{y()&&Ve(Qe)})}_(t,Be),z(),o()}at(["contextmenu","keydown"]);var Oc=class{constructor(e){this.value=e,this.next=null}};var Ja=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Oc(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var lb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),db={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Yl(t,e){U(e,!0),Q(t,db);let i=f(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,s=120,d=60,l=s/d;zt(()=>{r(o).width=s,r(o).height=a,D(n,fe(r(o).getContext("2d")))});function u(p,$,w,b,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect($,w,b,C)}Ue(()=>{let p="";if(r(n)){let $=i()[0];for(let b=1;b<i().length;b++)i()[b]>$&&($=i()[b]);r(n).clearRect(0,0,s,a);let w=d-1;for(let b=i().length-1;b>=0;b--){let C=w*l,T=$>0?a*(i()[b]/$):0;u(r(n),C,0,l,T),p=T+" "+p,w--}}});var m=lb(),y=h(m);gt(y,p=>D(o,p),()=>r(o)),g(m),_(t,m),z()}import{safeStorage as Hh}from"@vkontakte/videoplayer-shared/es2015";var cb=(t,e)=>{t.stopPropagation(),Hh.remove(Bl),e.set(!1)},ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),gb=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>'),_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),$b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Sb=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>'),Cb={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 jl(t,e){U(e,!0),Q(t,Cb);let[i,o]=De(),n=()=>S(d,"$isMobile",i),a=Te(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(fe(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=J(0),y=J(0),p=J(0),$=new Ja(60),w=new Ja(60),b=new Ja(60),C=J(fe([])),T=J(fe([])),I=J(fe([])),M=q("aria_label_debug_panel");zt(()=>{Hh.set(Bl,"true"),a.actions.internal.startLogging(),u&&(D(y,fe(u.getVideoPlaybackQuality().droppedVideoFrames)),D(m,fe(u.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,fe(a.actions.internal.getDebugPanelData()))},500),$e;return u&&($e=window.setInterval(()=>{if(u){D(y,fe(u.getVideoPlaybackQuality().droppedVideoFrames));let ie=u.getVideoPlaybackQuality().totalVideoFrames;D(p,ie-r(m)),D(m,fe(ie)),$.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&b.push(r(l).bitrate),D(C,fe($.getValuesFromBottom())),D(T,fe(w.getValuesFromBottom())),D(I,fe(b.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),$e&&clearInterval($e)}});var P=Sb();let k;Ne(P,"aria-label",M);var R=h(P);R.__click=[cb,s];var W=A(R,2),j=h(W),F=A(h(j),2),G=h(F,!0);g(F),g(j);var ne=A(j,2);{var X=O=>{var $e=ub(),ie=A(h($e),2),Be=h(ie,!0);g(ie),g($e),E(()=>ve(Be,r(l).id)),_(O,$e)};B(ne,O=>{r(l).id&&O(X)})}var se=A(ne,2);{var ce=O=>{var $e=pb(),ie=A(h($e),2),Be=h(ie,!0);g(ie),g($e),E(()=>ve(Be,r(l).vsid)),_(O,$e)};B(se,O=>{r(l).vsid&&O(ce)})}var Me=A(se,2);{var Le=O=>{var $e=fb(),ie=A(h($e),2),Be=h(ie,!0);g(ie),g($e),E(()=>ve(Be,r(l).provider)),_(O,$e)};B(Me,O=>{r(l).provider&&O(Le)})}var he=A(Me,2);{var ae=O=>{var $e=mb(),ie=A(h($e),2),Be=h(ie);g(ie),g($e),E(()=>{var je,Qe;return ve(Be,`Video: ${r(l).videoCodec||""} ${(je=r(l).hdr?"(HDR)":"")!=null?je:""}
143
143
  &
144
- Audio: ${r(l).audioCodec||""} ${(tt=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?tt:""}`)}),b(j,Ie)};R(ve,j=>{(r(l).videoCodec||r(l).audioCodec)&&j(le)})}var Ae=M(ve,2);{var se=j=>{var Ie=pb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).viewport)),b(j,Ie)};R(Ae,j=>{r(l).viewport&&j(se)})}var N=M(Ae,2);{var Re=j=>{var Ie=fb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).videoSize)),b(j,Ie)};R(N,j=>{r(l).videoSize&&j(Re)})}var ie=M(N,2);{var Ge=j=>{var Ie=mb(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(()=>he(He,r(l).cdn)),b(j,Ie)};R(ie,j=>{r(l).cdn&&j(Ge)})}var oe=M(ie,2);{var G=j=>{var Ie=vb(),ae=M(h(Ie),2),He=h(ae);g(ae),g(Ie),k(()=>{var qe;return he(He,`${(qe=r(l).volume)!=null?qe:""} %`)}),b(j,Ie)};R(oe,j=>{r(l).volume&&j(G)})}var K=M(oe,2);{var Ve=j=>{var Ie=gb(),ae=M(h(Ie),2),He=h(ae);g(ae),g(Ie),k(qe=>he(He,`${qe!=null?qe:""} s`),[()=>r(l).buffer.toFixed(2)]),b(j,Ie)};R(K,j=>{r(l).buffer&&j(Ve)})}var Ne=M(K,2);{var Je=j=>{var Ie=hb(),ae=M(h(Ie),2),He=h(ae);g(ae),g(Ie),k(qe=>he(He,`${qe!=null?qe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(j,Ie)};R(Ne,j=>{r(l).liveLatency&&j(Je)})}var xe=M(Ne,2);{var we=j=>{var Ie=_b(),ae=M(h(Ie),2),He=h(ae,!0);g(ae),g(Ie),k(qe=>he(He,qe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:qe})=>qe).map(({value:qe,title:tt})=>`${tt} ${((qe!=null?qe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(j,Ie)};R(xe,j=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&j(we)})}var Be=M(xe,2),Ze=M(h(Be),2),ot=h(Ze);g(Ze),g(Be);var gt=M(Be,2);{var et=j=>{var Ie=bb(),ae=M(h(Ie),2);Yl(ae,{get values(){return r(T)}});var He=M(ae,2),qe=h(He);g(He),g(Ie),k(tt=>he(qe,`${tt!=null?tt:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(j,Ie)};R(gt,j=>{r(l).speed&&j(et)})}var mt=M(gt,2);{var kt=j=>{var Ie=$b(),ae=M(h(Ie),2);Yl(ae,{get values(){return r(E)}});var He=M(ae,2),qe=h(He);g(He),g(Ie),k(tt=>he(qe,`${tt!=null?tt:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(j,Ie)};R(mt,j=>{r(l).bitrate&&j(kt)})}var Gt=M(mt,2),zt=M(h(Gt),2);Yl(zt,{get values(){return r(C)}});var Kt=M(zt,2),ge=h(Kt,!0);g(Kt),g(Gt),g(H),g(A),k(j=>{var Ie,ae;I=te(A,1,"container svelte-4deykz",null,I,j),he(J,r(l).version),he(ot,`${(Ie=r($))!=null?Ie:""} / ${(ae=r(v))!=null?ae:""} frames`),he(ge,r(p))},[()=>({"container-mobile":n()})]),b(t,A),z(),o()}at(["click"]);import{noop as wb}from"@vkontakte/videoplayer-shared/es2015";var Sb=(t,e)=>{t.stopPropagation(),e()()},Cb=L('<div class="close svelte-1ome55p"></div>'),Tb={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 oa(t,e){U(e,!0),W(t,Tb);let i=f(e,"onClick",3,wb);var o=Cb();o.__click=[Sb,i],b(t,o),z()}at(["click"]);import{noop as Ib}from"@vkontakte/videoplayer-shared/es2015";var kb=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>'),Eb={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 Xl(t,e){U(e,!0),W(t,Eb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,Ib),n=5e3,a=ee(void 0),s,d,l=ee(0),u;ze(()=>{i()&&(d=Date.now(),B(l,fe(requestAnimationFrame($))))});let v=()=>{r(l)&&(cancelAnimationFrame(r(l)),B(l,0))},$=()=>{if(!i()){v();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(),B(l,fe(requestAnimationFrame($)))):o()()};Ft(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{v()}}),wn(()=>{v()});var p=kb(),_=h(p);ft(_,w=>B(a,w),()=>r(a)),be(2),g(p),b(t,p),z()}var Pb=(t,e,i)=>{e(!1),i()},Ab=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),Mb={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 zp(t,e){U(e,!0),W(t,Mb);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,v=s.actions.internal.nextVideoAnnouncementShow,$=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),_()};Ft(()=>{e.isHide||v(),e.isHide&&n()&&(u(!1),p())});var C=Ue(),T=pe(C);{var E=P=>{var A=Ab(),I=M(pe(A),2),V=h(I),H=h(V),Y=h(H,!0);g(H);var O=M(H,2);oa(O,{onClick:y}),g(V);var J=M(V,2);J.__click=[Pb,u,$];var re=h(J),Z=h(re),me=h(Z);let de;var Le=M(me,2);{var Me=se=>{let N=m(()=>a()&&n());Xl(se,{get isRunning(){return r(N)},onTimerEnded:w})};R(Le,se=>{n()&&se(Me)})}g(Z),g(re);var ve=M(re,2),le=h(ve),Ae=h(le,!0);g(le),g(ve),g(J),g(I),k((se,N)=>{he(Y,se),it(Z,`background-image: url('${e.thumb}')`),de=te(me,1,"thumb-overlay svelte-jfbaax",null,de,N),he(Ae,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}at(["click"]);import{PlaybackState as na}from"@vkontakte/videoplayer-core/es2015";import{checkNever as Vb}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Sn}from"@vkontakte/videoplayer-statistics/es2015";var qp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Wp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Hc=(t,e,i)=>{let o=qp(e,i);e<1&&t.actions.internal.setVolume(o)},Fc=(t,e,i)=>{let o=Wp(e,i);e>0&&t.actions.internal.setVolume(o)};var xs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Rb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Db={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Kp(t,e){var zt,Kt;U(e,!0),W(t,Db);let[i,o]=Oe(),n=()=>S(Y,"$playbackState$",i),a=()=>S(O,"$adPlaybackState",i),s=()=>S(me,"$disabledControls$",i),d=()=>S(J,"$positionExact$",i),l=()=>S(re,"$duration$",i),u=()=>S(G,"$isAudioAvailable$",i),v=()=>S(Z,"$volume$",i),$=()=>S(ve,"$availablePlaybackRates$",i),p=()=>S(Me,"$currentPlaybackRate$",i),_=()=>S(Ve,"$isInteractiveTime$",i),w=()=>S(Ne,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Re,"$isEnded$",i),C=()=>S(de,"$muted$",i),T=()=>S(Le,"$currentSubtitle$",i),E=()=>S(ie,"$overlayContainer$",i),P=f(e,"nextButtonActive",3,!1),A=f(e,"prevButtonActive",3,!1),I=Ce(),V=Ut(),H=I.getLogger().createComponentLog("KeyboardControls component"),Y=I.state.playbackState$,O=I.ads.playbackState,J=I.state.positionExact$,re=I.state.duration$,Z=I.state.volume$,me=I.ui.controls.disabledControls$,de=I.state.muted$,Le=I.state.currentSubtitle$,Me=I.state.currentPlaybackRate$,ve=I.state.availablePlaybackRates$,le=I.ui.contextMenu.openedByHotKey$,Ae=I.ui.contextMenu.lastActiveElem$,se=I.ui.contextMenu.visible$,N=I.ui.contextMenu.position$,Re=I.state.isEnded$,ie=I.ui.overlayContainer$,Ge=(zt=I.callbacks)==null?void 0:zt.onAudioDoesNotExistHint,oe=(Kt=I.callbacks)==null?void 0:Kt.onAudioDisabledHint,G=I.state.isAudioAvailable$,K=I.state.isAudioDisabled,Ve=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ne}=mo(),Je=0,xe=!0,we=ee(void 0),Be=()=>{var ge;return(ge=r(we))==null?void 0:ge.focus()},Ze=ge=>(ge!==xe&&(xe=ge,Je=0),Je+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Je)/1e3),ot=ge=>{var De,bt;let j=ge.target,Ie=(De=j==null?void 0:j.getAttribute("role"))==null?void 0:De.includes("menuitem"),ae=j.classList.contains("btn"),He=ge.code;if(ae&&He==="Space")return;let qe=Hg.has(He);if(Ie&&qe)return;let tt=!Og.has(He);if(ge.ctrlKey&&tt||ge.altKey&&tt||ge.metaKey)return;let lt=Ie&&He==="Escape";Fg.has(He)||lt||e.hideContextMenu();let Ye=n()===na.PLAYING||n()===na.PAUSED,Xe=e.isAds&&(a()==="paused"||a()==="playing"),dt=!Xe&&!s().has("TIMELINE");if(Ye||Xe)switch(H({message:`key down, code: ${He}`}),He){case"KeyJ":case"ArrowLeft":{if(!dt)break;if(ge.ctrlKey||ge.altKey){let We=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(We),We&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:We.text}),ge.preventDefault()}else{let We=ge.shiftKey?Ze(!1):V.controls.seekStepKeyboard/1e3,Et=Math.max(d()-We,0);d()>0&&(I.actions.internal.seekTime(Et,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:We.toString()}),ge.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!dt)break;if(ge.ctrlKey||ge.altKey){let We=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(We),We&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:We.text}),ge.preventDefault()}else{let We=ge.shiftKey?Ze(!0):V.controls.seekStepKeyboard/1e3,Et=Math.min(d()+We,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(Et,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:We.toString()}),ge.preventDefault())}break}case"ArrowUp":{if(xs({isAudioDisabled:K,audioDisabledHintCallback:oe,isAudioAvailable:u(),audioIsNotExistHintCallback:Ge})){let We=v(),Et=V.controls.volumeStepKeyboard,ai=We<=1;if(Hc(I,We,Et),ai){let ei=Math.round(qp(We,Et)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ei}})}}ge.preventDefault();break}case"ArrowDown":{if(xs({isAudioDisabled:K,audioDisabledHintCallback:oe,isAudioAvailable:u(),audioIsNotExistHintCallback:Ge})){let We=v(),Et=V.controls.volumeStepKeyboard,ai=We>=0;if(Fc(I,We,Et),ai){let ei=Math.round(Wp(We,Et)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ei}})}}ge.preventDefault();break}case"Comma":{if(ge.shiftKey){I.actions.internal.decrementPlaybackRate();let We=$().find(Et=>Et.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:We==null?void 0:We.displayValue}),ge.preventDefault()}else{if(Xe||n()!==na.PAUSED)break;let We=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(We,Sn.DOUBLE_TAP),ge.preventDefault())}break}case"Period":{if(ge.shiftKey){I.actions.internal.incrementPlaybackRate();let We=$().find(Et=>Et.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:We==null?void 0:We.displayValue}),ge.preventDefault()}else{if(Xe||n()!==na.PAUSED)break;let We=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(We,Sn.DOUBLE_TAP),ge.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&Ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let We="PLAY";n()===na.PAUSED?We="PAUSE":y()&&(We="REPLAY"),e.showHotKeyHelpers({type:We})}ge.preventDefault();break;case"KeyM":{xs({isAudioDisabled:K,audioDisabledHintCallback:oe,isAudioAvailable:u(),audioIsNotExistHintCallback:Ge})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),ge.preventDefault();break}case"KeyF":e.toggleFullscreen(),ge.preventDefault();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(bt=T())==null?void 0:bt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ge.preventDefault();break;case"KeyI":I.actions.internal.togglePictureInPicture(),ge.preventDefault();break;case"Digit1":case"Numpad1":if(ge.shiftKey){let We=Rh(E());N.set(We),Ae.set(j),le.set(!0),se.set(!0),ge.preventDefault();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,Sn.DOUBLE_TAP),ge.preventDefault();break;case"Slash":{ge.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),ge.preventDefault());break}case"KeyN":ge.shiftKey&&P()&&I.actions.internal.nextVideoClick();break;case"KeyP":ge.shiftKey&&A()&&I.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":ge.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:Vb(He);break}},gt=ge=>{let j=ge.code;if(ge.ctrlKey||ge.altKey||ge.metaKey)return;let Ie=n()===na.PLAYING||n()===na.PAUSED,ae=e.isAds&&(a()==="paused"||a()==="playing");if(Ie||ae)switch(j){case"ShiftLeft":case"ShiftRight":Je=0;break}},et=F("aria_label_video_player");var mt=Rb();mt.__keyup=gt,mt.__keydown=ot,Fe(mt,"aria-label",et);var kt=h(mt);_e(kt,()=>{var ge;return(ge=e.children)!=null?ge:ne}),g(mt),ft(mt,ge=>B(we,ge),()=>r(we)),b(t,mt);var Gt=z({focus:Be});return o(),Gt}at(["keyup","keydown"]);var Nb=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>'),Bb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
144
+ Audio: ${r(l).audioCodec||""} ${(Qe=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Qe:""}`)}),_(O,$e)};B(he,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(ae)})}var Pe=A(he,2);{var re=O=>{var $e=vb(),ie=A(h($e),2),Be=h(ie,!0);g(ie),g($e),E(()=>ve(Be,r(l).viewport)),_(O,$e)};B(Pe,O=>{r(l).viewport&&O(re)})}var V=A(Pe,2);{var we=O=>{var $e=gb(),ie=A(h($e),2),Be=h(ie,!0);g(ie),g($e),E(()=>ve(Be,r(l).videoSize)),_(O,$e)};B(V,O=>{r(l).videoSize&&O(we)})}var be=A(V,2);{var qe=O=>{var $e=hb(),ie=A(h($e),2),Be=h(ie,!0);g(ie),g($e),E(()=>ve(Be,r(l).cdn)),_(O,$e)};B(be,O=>{r(l).cdn&&O(qe)})}var H=A(be,2);{var de=O=>{var $e=_b(),ie=A(h($e),2),Be=h(ie);g(ie),g($e),E(()=>{var je;return ve(Be,`${(je=r(l).volume)!=null?je:""} %`)}),_(O,$e)};B(H,O=>{r(l).volume&&O(de)})}var _e=A(H,2);{var te=O=>{var $e=bb(),ie=A(h($e),2),Be=h(ie);g(ie),g($e),E(je=>ve(Be,`${je!=null?je:""} s`),[()=>r(l).buffer.toFixed(2)]),_(O,$e)};B(_e,O=>{r(l).buffer&&O(te)})}var Oe=A(_e,2);{var Ze=O=>{var $e=$b(),ie=A(h($e),2),Be=h(ie);g(ie),g($e),E(je=>ve(Be,`${je!=null?je:""} s`),[()=>r(l).liveLatency.toFixed(2)]),_(O,$e)};B(Oe,O=>{r(l).liveLatency&&O(Ze)})}var Se=A(Oe,2);{var Re=O=>{var $e=yb(),ie=A(h($e),2),Be=h(ie,!0);g(ie),g($e),E(je=>ve(Be,je),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:je})=>je).map(({value:je,title:Qe})=>`${Qe} ${((je!=null?je:0)/1e3).toFixed(2)} s`).join(" & ")]),_(O,$e)};B(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=xb(),ie=A(h($e),2);Yl(ie,{get values(){return r(T)}});var Be=A(ie,2),je=h(Be);g(Be),g($e),E(Qe=>ve(je,`${Qe!=null?Qe:""} Kbps`),[()=>r(l).speed.toFixed(2)]),_(O,$e)};B(ut,O=>{r(l).speed&&O(nt)})}var St=A(ut,2);{var mt=O=>{var $e=wb(),ie=A(h($e),2);Yl(ie,{get values(){return r(I)}});var Be=A(ie,2),je=h(Be);g(Be),g($e),E(Qe=>ve(je,`${Qe!=null?Qe:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),_(O,$e)};B(St,O=>{r(l).bitrate&&O(mt)})}var Kt=A(St,2),ni=A(h(Kt),2);Yl(ni,{get values(){return r(C)}});var Mt=A(ni,2),Bt=h(Mt,!0);g(Mt),g(Kt),g(W),g(P),E(O=>{var $e,ie;k=ee(P,1,"container svelte-4deykz",null,k,O),ve(G,r(l).version),ve(ct,`${($e=r(y))!=null?$e:""} / ${(ie=r(m))!=null?ie:""} frames`),ve(Bt,r(p))},[()=>({"container-mobile":n()})]),_(t,P),z(),o()}at(["click"]);import{noop as Tb}from"@vkontakte/videoplayer-shared/es2015";var Ib=(t,e)=>{t.stopPropagation(),e()()},kb=L('<div class="close svelte-1ome55p"></div>'),Eb={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 ia(t,e){U(e,!0),Q(t,Eb);let i=f(e,"onClick",3,Tb);var o=kb();o.__click=[Ib,i],_(t,o),z()}at(["click"]);import{noop as Pb}from"@vkontakte/videoplayer-shared/es2015";var Ab=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>'),Mb={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 Zl(t,e){U(e,!0),Q(t,Mb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,Pb),n=5e3,a=J(void 0),s,d,l=J(0),u;Ue(()=>{i()&&(d=Date.now(),D(l,fe(requestAnimationFrame(y))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},y=()=>{if(!i()){m();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,fe(requestAnimationFrame(y)))):o()()};zt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),Tn(()=>{m()});var p=Ab(),$=h(p);gt($,w=>D(a,w),()=>r(a)),ye(2),g(p),_(t,p),z()}var Lb=(t,e,i)=>{e(!1),i()},Vb=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),Rb={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 Kp(t,e){U(e,!0),Q(t,Rb);let[i,o]=De(),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,m=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},b=()=>{e.clickCloseIcon(),$()};zt(()=>{e.isHide||m(),e.isHide&&n()&&(u(!1),p())});var C=He(),T=pe(C);{var I=M=>{var P=Vb(),k=A(pe(P),2),R=h(k),W=h(R),j=h(W,!0);g(W);var F=A(W,2);ia(F,{onClick:b}),g(R);var G=A(R,2);G.__click=[Lb,u,y];var ne=h(G),X=h(ne),se=h(X);let ce;var Me=A(se,2);{var Le=re=>{let V=v(()=>a()&&n());Zl(re,{get isRunning(){return r(V)},onTimerEnded:w})};B(Me,re=>{n()&&re(Le)})}g(X),g(ne);var he=A(ne,2),ae=h(he),Pe=h(ae,!0);g(ae),g(he),g(G),g(k),E((re,V)=>{ve(j,re),st(X,`background-image: url('${e.thumb}')`),ce=ee(se,1,"thumb-overlay svelte-jfbaax",null,ce,V),ve(Pe,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}at(["click"]);import{PlaybackState as oa}from"@vkontakte/videoplayer-core/es2015";import{checkNever as Nb}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as In}from"@vkontakte/videoplayer-statistics/es2015";var Qp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Gp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Hc=(t,e,i)=>{let o=Qp(e,i);e<1?t.actions.internal.setVolume(o):Ce(t.state.muted$)&&t.actions.external.setMuted(!1)},Fc=(t,e,i)=>{let o=Gp(e,i);e>0&&t.actions.internal.setVolume(o)};var xs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Db=(t,e)=>{e(t)},Ob=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Hb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Yp(t,e){var Mt,Bt;U(e,!0),Q(t,Hb);let[i,o]=De(),n=()=>S(j,"$playbackState$",i),a=()=>S(F,"$adPlaybackState",i),s=()=>S(se,"$disabledControls$",i),d=()=>S(G,"$positionExact$",i),l=()=>S(ne,"$duration$",i),u=()=>S(de,"$isAudioAvailable$",i),m=()=>S(X,"$volume$",i),y=()=>S(he,"$availablePlaybackRates$",i),p=()=>S(Le,"$currentPlaybackRate$",i),$=()=>S(te,"$isInteractiveTime$",i),w=()=>S(Oe,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>S(we,"$isEnded$",i),C=()=>S(ce,"$muted$",i),T=()=>S(Me,"$currentSubtitle$",i),I=()=>S(be,"$overlayContainer$",i),M=f(e,"nextButtonActive",3,!1),P=f(e,"prevButtonActive",3,!1),k=Te(),R=qt(),W=k.getLogger().createComponentLog("KeyboardControls component"),j=k.state.playbackState$,F=k.ads.playbackState,G=k.state.positionExact$,ne=k.state.duration$,X=k.state.volume$,se=k.ui.controls.disabledControls$,ce=k.state.muted$,Me=k.state.currentSubtitle$,Le=k.state.currentPlaybackRate$,he=k.state.availablePlaybackRates$,ae=k.ui.contextMenu.openedByHotKey$,Pe=k.ui.contextMenu.lastActiveElem$,re=k.ui.contextMenu.visible$,V=k.ui.contextMenu.position$,we=k.state.isEnded$,be=k.ui.overlayContainer$,qe=(Mt=k.callbacks)==null?void 0:Mt.onAudioDoesNotExistHint,H=(Bt=k.callbacks)==null?void 0:Bt.onAudioDisabledHint,de=k.state.isAudioAvailable$,_e=k.state.isAudioDisabled,te=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Oe}=so(),Ze=0,Se=!0,Re=J(void 0),ke=O=>(O!==Se&&(Se=O,Ze=0),Ze+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Ze)/1e3),ze=(O,$e=!1)=>{var Si,ii;let ie=O.target,Be=(Si=ie==null?void 0:ie.getAttribute("role"))==null?void 0:Si.includes("menuitem"),je=ie.classList.contains("btn"),Qe=O.code;if(je&&Qe==="Space")return!1;let Ve=zg.has(Qe);if(Be&&Ve)return!1;let rt=!Ug.has(Qe);if(O.ctrlKey&&rt||O.altKey&&rt||O.metaKey)return!1;let et=Be&&Qe==="Escape";qg.has(Qe)||et||e.hideContextMenu();let _t=n()===oa.PLAYING||n()===oa.PAUSED,it=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!it&&!s().has("TIMELINE");if(!(_t||it))return!1;W({message:`key down, code: ${Qe}, isExternal = ${$e}`});let Qt=!1,bt=()=>{Qt=!0,$e||O.preventDefault()};switch(Qe){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(O.ctrlKey||O.altKey){let Ge=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ge.text}),bt()}else{let Ge=O.shiftKey?ke(!1):R.controls.seekStepKeyboard/1e3,Xt=Math.max(d()-Ge,0);d()>0&&(k.actions.internal.seekTime(Xt,In.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ge.toString()}),bt())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(O.ctrlKey||O.altKey){let Ge=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ge.text}),bt()}else{let Ge=O.shiftKey?ke(!0):R.controls.seekStepKeyboard/1e3,Xt=Math.min(d()+Ge,l());Math.round(d())<Math.round(l())&&(k.actions.internal.seekTime(Xt,In.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ge.toString()}),bt())}break}case"ArrowUp":{if(xs({isAudioDisabled:_e,audioDisabledHintCallback:H,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})){let Ge=m(),Xt=R.controls.volumeStepKeyboard,Ri=Ge<=1;if(Hc(k,Ge,Xt),Ri){let Fi=Math.round(Qp(Ge,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Fi}})}}bt();break}case"ArrowDown":{if(xs({isAudioDisabled:_e,audioDisabledHintCallback:H,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})){let Ge=m(),Xt=R.controls.volumeStepKeyboard,Ri=Ge>=0;if(Fc(k,Ge,Xt),Ri){let Fi=Math.round(Gp(Ge,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Fi}})}}bt();break}case"Comma":{if(O.shiftKey){k.actions.internal.decrementPlaybackRate();let Ge=y().find(Xt=>Xt.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ge==null?void 0:Ge.displayValue}),bt()}else{if(it||n()!==oa.PAUSED)break;let Ge=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(Ge,In.DOUBLE_TAP),bt())}break}case"Period":{if(O.shiftKey){k.actions.internal.incrementPlaybackRate();let Ge=y().find(Xt=>Xt.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:Ge==null?void 0:Ge.displayValue}),bt()}else{if(it||n()!==oa.PAUSED)break;let Ge=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(Ge,In.DOUBLE_TAP),bt())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Oe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let Ge="PLAY";n()===oa.PAUSED?Ge="PAUSE":b()&&(Ge="REPLAY"),e.showHotKeyHelpers({type:Ge})}bt();break;case"KeyM":{xs({isAudioDisabled:_e,audioDisabledHintCallback:H,isAudioAvailable:u(),audioIsNotExistHintCallback:qe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),bt();break}case"KeyF":e.toggleFullscreen(),bt();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ii=T())==null?void 0:ii.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),bt();break;case"KeyI":k.actions.internal.togglePictureInPicture(),bt();break;case"Digit1":case"Numpad1":if(O.shiftKey){let Ge=Dh(I());V.set(Ge),Pe.set(ie),ae.set(!0),re.set(!0),bt();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,In.DOUBLE_TAP),bt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,In.DOUBLE_TAP),bt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,In.DOUBLE_TAP),bt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,In.DOUBLE_TAP),bt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,In.DOUBLE_TAP),bt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,In.DOUBLE_TAP),bt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,In.DOUBLE_TAP),bt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,In.DOUBLE_TAP),bt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,In.DOUBLE_TAP),bt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,In.DOUBLE_TAP),bt();break;case"Slash":{O.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),bt());break}case"KeyN":O.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),bt());break;case"KeyP":O.shiftKey&&P()&&(k.actions.internal.prevVideoClick(),bt());break;case"ShiftLeft":case"ShiftRight":bt();break;case"Tab":case"Escape":case"Enter":break;default:Nb(Qe);break}return Qt},ct=O=>{let $e=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let ie=n()===oa.PLAYING||n()===oa.PAUSED,Be=e.isAds&&(a()==="paused"||a()==="playing");if(ie||Be)switch($e){case"ShiftLeft":case"ShiftRight":Ze=0;break}},ut=q("aria_label_video_player"),nt=()=>{var O;return(O=r(Re))==null?void 0:O.focus()},St=O=>O.type==="keydown"?ze(O,!0):(O.type==="keyup"&&ct(O),!1);var mt=Ob();mt.__keyup=ct,mt.__keydown=[Db,ze],Ne(mt,"aria-label",ut);var Kt=h(mt);ge(Kt,()=>{var O;return(O=e.children)!=null?O:oe}),g(mt),gt(mt,O=>D(Re,O),()=>r(Re)),_(t,mt);var ni=z({focus:nt,handleExternalKeyboardEvent:St});return o(),ni}at(["keyup","keydown"]);var Fb=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>'),Ub={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.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
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 ra(t,e){W(t,Bb);let i=f(e,"style",3,"");var o=Nb();k(()=>it(o,i())),b(t,o)}var Ob=$e('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Qp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ob();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i))),b(t,o)}import{noop as Za}from"@vkontakte/videoplayer-shared/es2015";var Hb=t=>{t.stopPropagation()},Fb=L("<button><!></button>"),Ub={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 na(t,e){Q(t,Ub);let i=f(e,"style",3,"");var o=Fb();E(()=>st(o,i())),_(t,o)}var zb=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 jp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=zb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i))),_(t,o)}import{noop as el}from"@vkontakte/videoplayer-shared/es2015";var qb=t=>{t.stopPropagation()},Wb=L("<button><!></button>"),Kb={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.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
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 Vt(t,e){U(e,!0),W(t,Ub);let i=f(e,"className",3,""),o=f(e,"style",3,""),n=f(e,"disabled",3,void 0),a=f(e,"testId",3,void 0),s=f(e,"ariaHidden",3,void 0),d=f(e,"ariaLabel",3,void 0),l=f(e,"ref",15,void 0),u=f(e,"ariaKeyShortCut",3,void 0),v=f(e,"ariaExpanded",3,void 0),$=f(e,"tabIndex",3,0),p=f(e,"click",3,Za),_=f(e,"focus",3,Za),w=f(e,"blur",3,Za),y=m(()=>p()===Za?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>_()===Za?null:A=>{A.preventDefault(),_()()}),T=m(()=>w()===Za?null:A=>{A.preventDefault(),w()()});var E=Fb();E.__pointerdown=[Hb],E.__click=function(...A){var I;(I=r(y))==null||I.apply(this,A)};var P=h(E);_e(P,()=>{var A;return(A=e.children)!=null?A:ne}),g(E),ft(E,A=>l(A),()=>l()),k(()=>{var A,I,V,H,Y,O,J;te(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-wr0kwr"),it(E,o()||null),E.disabled=(I=n())!=null?I:null,Fe(E,"aria-hidden",(V=s())!=null?V:null),Fe(E,"aria-label",(H=d())!=null?H:null),Fe(E,"aria-keyshortcuts",(Y=u())!=null?Y:null),Fe(E,"aria-expanded",(O=v())!=null?O:null),Fe(E,"data-testid",(J=a())!=null?J:null),Fe(E,"tabindex",$())}),wt("focus",E,function(...A){var I;(I=r(C))==null||I.apply(this,A)}),wt("blur",E,function(...A){var I;(I=r(T))==null||I.apply(this,A)}),b(t,E),z()}at(["pointerdown","click"]);var zb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),qb=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>'),Wb={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 Gp(t,e){U(e,!0),W(t,Wb);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=qb(),s=h(a),d=h(s);{var l=p=>{var _=zb(),w=h(_),y=h(w,!0);g(w);var C=M(w,2);{var T=E=>{Vt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,A)=>{Qp(P,{})},$$slots:{default:!0}})};R(C,E=>{o()&&E(T)})}g(_),k(()=>he(y,e.title)),b(p,_)};R(d,p=>{i()&&p(l)})}var u=M(d,2),v=h(u),$=h(v);_e($,()=>{var p;return(p=e.children)!=null?p:ne}),g(v),g(u),g(s),g(a),b(t,a),z()}var Kb=new Set(["BR"]),Bh=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;Kb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Qb=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>'),Gb=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>'),jb=L('<div class="hot-key-map svelte-quklnq"></div>'),Yb={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 Rt(t,e){U(e,!0),Q(t,Kb);let i=f(e,"className",3,""),o=f(e,"style",3,""),n=f(e,"disabled",3,void 0),a=f(e,"testId",3,void 0),s=f(e,"ariaHidden",3,void 0),d=f(e,"ariaLabel",3,void 0),l=f(e,"ref",15,void 0),u=f(e,"ariaKeyShortCut",3,void 0),m=f(e,"ariaExpanded",3,void 0),y=f(e,"tabIndex",3,0),p=f(e,"click",3,el),$=f(e,"focus",3,el),w=f(e,"blur",3,el),b=v(()=>p()===el?null:P=>{P.stopPropagation(),p()(P)}),C=v(()=>$()===el?null:P=>{P.preventDefault(),$()()}),T=v(()=>w()===el?null:P=>{P.preventDefault(),w()()});var I=Wb();I.__pointerdown=[qb],I.__click=function(...P){var k;(k=r(b))==null||k.apply(this,P)};var M=h(I);ge(M,()=>{var P;return(P=e.children)!=null?P:oe}),g(I),gt(I,P=>l(P),()=>l()),E(()=>{var P,k,R,W,j,F,G;ee(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),st(I,o()||null),I.disabled=(k=n())!=null?k:null,Ne(I,"aria-hidden",(R=s())!=null?R:null),Ne(I,"aria-label",(W=d())!=null?W:null),Ne(I,"aria-keyshortcuts",(j=u())!=null?j:null),Ne(I,"aria-expanded",(F=m())!=null?F:null),Ne(I,"data-testid",(G=a())!=null?G:null),Ne(I,"tabindex",y()),Ne(I,"role",e.role)}),It("focus",I,function(...P){var k;(k=r(C))==null||k.apply(this,P)}),It("blur",I,function(...P){var k;(k=r(T))==null||k.apply(this,P)}),_(t,I),z()}at(["pointerdown","click"]);var Qb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Gb=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>'),Yb={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 Zp(t,e){U(e,!0),Q(t,Yb);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var a=Gb(),s=h(a),d=h(s);{var l=p=>{var $=Qb(),w=h($),b=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Rt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{jp(M,{})},$$slots:{default:!0}})};B(C,I=>{o()&&I(T)})}g($),E(()=>ve(b,e.title)),_(p,$)};B(d,p=>{i()&&p(l)})}var u=A(d,2),m=h(u),y=h(m);ge(y,()=>{var p;return(p=e.children)!=null?p:oe}),g(m),g(u),g(s),g(a),_(t,a),z()}var jb=new Set(["BR"]),Fh=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;jb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Zb=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>'),Xb=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>'),Jb=L('<div class="hot-key-map svelte-quklnq"></div>'),e$={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 jp(t,e){U(e,!1),W(t,Yb);let[i,o]=Oe(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};$r(),Gp(t,{get title(){return n().title},onClose:l,children:(u,v)=>{var $=jb();ki($,5,()=>n().groups,({title:p,items:_})=>p,(p,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=Gb(),T=h(C),E=h(T,!0);g(T);var P=M(T,2);ki(P,5,y,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,H=()=>r(I).value;var Y=Qb(),O=h(Y),J=h(O);Ll(J,()=>Bh(V()),!1,!1),g(O);var re=M(O,2),Z=h(re,!0);g(re),g(Y),k(()=>he(Z,H())),b(A,Y)}),g(P),g(C),k(()=>he(E,w())),b(p,C)}),g($),b(u,$)},$$slots:{default:!0}}),z(),o()}import{noop as a1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as o1,PlaybackState as Rf}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var Zb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Xb={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 Yp(t,e){W(t,Xb);var i=Zb(),o=h(i);_e(o,()=>{var n;return(n=e.children)!=null?n:ne}),g(i),b(t,i)}import{VideoQuality as td}from"@vkontakte/videoplayer-shared/es2015";var Jb=$e('<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 Zp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Jb();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var e$=$e('<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 Xp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=e$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var t$=$e('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Jp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var i$=$e('<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 Jl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=i$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),b(t,o)}var o$=$e('<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 ed(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=o$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),b(t,o)}var Uc=t=>{switch(t){case td.Q_720P:return Jp;case td.Q_1080P:return Jl;case td.Q_1440P:return ed;case td.Q_2160P:return Zp;case td.Q_4320P:return Xp}};var n$=$e('<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 ef(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=n$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i))),b(t,o)}var r$=$e('<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 tf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=r$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),b(t,o)}var s$=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 id(t,e){U(e,!0),W(t,a$);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=m(()=>Uc(o())),a=m(()=>!!r(n)&&[Jl,ed].includes(r(n)));var s=Ue(),d=pe(s);{var l=v=>{ef(v,{})},u=v=>{var $=s$();let p;var _=h($);{var w=T=>{Yp(T,{children:(E,P)=>{var A=Ue(),I=pe(A);Ei(I,()=>r(n),(V,H)=>{H(V,{})}),b(E,A)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var y=M(_,2);let C=m(()=>r(n)?"settings-icon--labeled":"settings-icon");tf(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g($),k(T=>p=te($,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(a)})]),b(v,$)};R(d,v=>{i()?v(l):v(u,!1)})}b(t,s),z()}var l$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),d$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Xa(t,e){U(e,!0),W(t,d$);let[i,o]=Oe(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(v,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Ce(),u=l.state.currentQuality$,v=l.ui.settingsMenu.visible$,$=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=ee(void 0);ze(()=>{n()&&yt(()=>{e.ref$.set(r(y))})});let C=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));function T(P){return Pt(this,null,function*(){let A=ys(P);a()?p():$(A,xo)})}let E=m(()=>a()?"opened":"");Vt(t,{get className(){return r(E)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){B(y,fe(P))},children:(P,A)=>{var I=l$(),V=h(I);id(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),b(P,I)},$$slots:{default:!0}}),z(),o()}var c$=$e('<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 of(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=c$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img"},i))),b(t,o)}var u$=$e('<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 od(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img"},i))),b(t,o)}function nf(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyC},children:(s,d)=>{var l=Ue(),u=pe(l);{var v=p=>{of(p,{})},$=p=>{od(p,{})};R(u,p=>{i()?p(v):p($,!1)})}b(s,l)},$$slots:{default:!0}}),z()}var p$=L('<span class="duration svelte-sz9er7"> </span>'),f$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),m$={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 nd(t,e){U(e,!0),W(t,m$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=m(()=>un(e.duration)),s=m(()=>un(e.position));var d=f$();let l;var u=h(d),v=h(u,!0);g(u);var $=M(u,2);{var p=_=>{var w=p$(),y=h(w,!0);g(w),k(()=>he(y,r(a))),b(_,w)};R($,_=>{o()&&_(p)})}g(d),ft(d,_=>n(_),()=>n()),k(_=>{l=te(d,1,"time svelte-sz9er7",null,l,_),he(v,r(s))},[()=>({mobile:i()})]),b(t,d),z()}import{noop as zc}from"@vkontakte/videoplayer-shared/es2015";var v$=$e('<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>'),g$={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 Xp(t,e){U(e,!1),Q(t,e$);let[i,o]=De(),n=()=>S(s,"$data",i),a=Te(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Sr(),Zp(t,{get title(){return n().title},onClose:l,children:(u,m)=>{var y=Jb();ki(y,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let w=()=>r($).title,b=()=>r($).items;var C=Xb(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);ki(M,5,b,({description:P,value:k})=>k,(P,k)=>{let R=()=>r(k).description,W=()=>r(k).value;var j=Zb(),F=h(j),G=h(F);Ml(G,()=>Fh(R()),!1,!1),g(F);var ne=A(F,2),X=h(ne,!0);g(ne),g(j),E(()=>ve(X,W())),_(P,j)}),g(M),g(C),E(()=>ve(I,w())),_(p,C)}),g(y),_(u,y)},$$slots:{default:!0}}),z(),o()}import{noop as c1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as s1,PlaybackState as Df}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var t$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),i$={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 Jp(t,e){Q(t,i$);var i=t$(),o=h(i);ge(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),_(t,i)}import{VideoQuality as ed}from"@vkontakte/videoplayer-shared/es2015";var o$=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 ef(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=o$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),_(t,o)}var n$=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 tf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=n$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),_(t,o)}var r$=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 of(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=r$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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="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 Xl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=s$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),_(t,o)}var a$=xe('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Jl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=a$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),_(t,o)}var Uc=t=>{switch(t){case ed.Q_720P:return of;case ed.Q_1080P:return Xl;case ed.Q_1440P:return Jl;case ed.Q_2160P:return ef;case ed.Q_4320P:return tf}};var l$=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 nf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 d$=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 rf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=d$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),_(t,o)}var c$=L('<div aria-hidden="true"><!> <!></div>'),u$={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 td(t,e){U(e,!0),Q(t,u$);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>Uc(o())),a=v(()=>!!r(n)&&[Xl,Jl].includes(r(n)));var s=He(),d=pe(s);{var l=m=>{nf(m,{})},u=m=>{var y=c$();let p;var $=h(y);{var w=T=>{Jp(T,{children:(I,M)=>{var P=He(),k=pe(P);Ei(k,()=>r(n),(R,W)=>{W(R,{})}),_(I,P)},$$slots:{default:!0}})};B($,T=>{r(n)&&T(w)})}var b=A($,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");rf(b,{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)})]),_(m,y)};B(d,m=>{i()?m(l):m(u,!1)})}_(t,s),z()}var p$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),f$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function tl(t,e){U(e,!0),Q(t,f$);let[i,o]=De(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(m,"$settingsMenuVisible",i),s=()=>S($,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Te(),u=l.state.currentQuality$,m=l.ui.settingsMenu.visible$,y=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,b=J(void 0);Ue(()=>{n()&&wt(()=>{e.ref$.set(r(b))})});let C=w("aria_label_settings");function T(M){return Et(this,null,function*(){let P=ys(M);a()?p():y(P,yo)})}let I=v(()=>a()?"opened":"");Rt(t,{get className(){return r(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},get ref(){return r(b)},set ref(M){D(b,fe(M))},children:(M,P)=>{var k=p$(),R=h(k);td(R,{get isMobile(){return s()},get currentQuality(){return d()}}),g(k),_(M,k)},$$slots:{default:!0}}),z(),o()}var m$=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 sf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 v$=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 id(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=v$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 af(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Rt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Hr.KeyC},children:(s,d)=>{var l=He(),u=pe(l);{var m=p=>{sf(p,{})},y=p=>{id(p,{})};B(u,p=>{i()?p(m):p(y,!1)})}_(s,l)},$$slots:{default:!0}}),z()}var g$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),h$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),_$={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 od(t,e){U(e,!0),Q(t,_$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>pn(e.duration)),s=v(()=>pn(e.position));var d=h$();let l;var u=h(d),m=h(u,!0);g(u);var y=A(u,2);{var p=$=>{var w=g$(),b=h(w,!0);g(w),E(()=>ve(b,r(a))),_($,w)};B(y,$=>{o()&&$(p)})}g(d),gt(d,$=>n($),()=>n()),E($=>{l=ee(d,1,"time svelte-sz9er7",null,l,$),ve(m,r(s))},[()=>({mobile:i()})]),_(t,d),z()}import{noop as zc}from"@vkontakte/videoplayer-shared/es2015";var b$=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>'),$$={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 ws(t,e){W(t,g$);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=v$();k(()=>{var d;Fe(s,"data-value",r(a)),Fe(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}import{isNonNullable as Hh,noop as Un}from"@vkontakte/videoplayer-shared/es2015";import{noop as sf}from"@vkontakte/videoplayer-shared/es2015";import{noop as _$}from"@vkontakte/videoplayer-shared/es2015";var h$=L('<div class="overlay"><!></div>');function rf(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(s,"$overlayContainer$",i),s=Ce().ui.overlayContainer$,d=ee(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))};ze(()=>{u(n())}),Ft(()=>(u(n()),()=>l(n())));var v=h$(),$=h(v);_e($,()=>{var p;return(p=e.children)!=null?p:ne}),g(v),ft(v,p=>B(d,p),()=>r(d)),b(t,v),z(),o()}var b$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),$$=L("<div><!></div> <!>",1),y$={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 sa(t,e){U(e,!0),W(t,y$);let[i,o]=Oe(),n=()=>S(J,"$overlayContainer$",i),a=()=>S(O,"$containerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"content",3,""),l=f(e,"active",15,!1),u=f(e,"translateX",3,0),v=f(e,"translateY",3,0),$=f(e,"isFullWidthWrapper",3,!1),p=f(e,"maxTooltipWidth",3,void 0),_=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,_$),y=5,C=ee(void 0),T=ee(void 0),E,P=ee(0),A=ee(0),I=ee(0),V=ee(0),H=Ut(),Y=Ce(),O=Y.ui.playerSize,J=Y.ui.overlayContainer$;ze(()=>{yt(()=>{w()(l())})});let re=Y.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!n()||!r(T)||!r(C))return;B(A,y);let xe=n().getBoundingClientRect(),we=r(C).getBoundingClientRect(),Be=we.width,Ze=r(T).clientWidth,ot=a().width,gt=(Be-Ze)/2,et=we.left+u()-xe.left,mt=et+gt,kt=we.top+v()-xe.top,Gt=Ze/2-y,zt=mt<8,Kt=mt+Ze>ot-8;zt&&(mt=8,Gt=et+we.width/2-2.5*y),Kt&&(mt=ot-8-Ze,Gt=we.left-xe.left+we.width/2-mt-y),B(I,fe(mt)),B(V,kt),B(P,fe(Gt))},me=()=>{!n()||!r(T)||!r(C)||B(A,-y)},de=()=>{if(!n()||!r(T)||!r(C))return;B(P,y);let xe=n().getBoundingClientRect(),we=r(C).getBoundingClientRect(),Be=we.height,Ze=r(T).clientHeight,ot=(Be-Ze)/2+Ze,gt=we.left+u()-xe.left-r(T).clientWidth,et=2,mt=gt-y;mt<8&&(mt=8);let Gt=we.top+v()-xe.top+ot,zt=et-ot/2,Kt=et-y;B(I,fe(mt)),B(V,Gt),B(A,zt),B(P,Kt)},Le=()=>{!n()||!r(T)||!r(C)||B(P,-y)},Me=()=>{switch(_()){case"top":Z();break;case"bottom":me();break;case"left":de();break;default:Le()}},ve=()=>{try{if(!n()||!r(C))return;Me(),l(!0)}catch(xe){re({message:String(xe)})}},le=()=>{l(!1)},Ae=()=>{r(T)&&(E||(E=window.setTimeout(ve,H.controls.hideTimeoutTooltips)),l()&&ve())},se=()=>{le(),window.clearTimeout(E),E=void 0},N=(xe,we,Be)=>{let Ze="";switch(_()){case"top":Ze=`transform: translate(${xe}px, ${we}px);`;break;case"bottom":Ze=`transform: translate(${xe}px, ${we}px); top: auto; bottom: 100%;`;break;case"left":Ze=`transform: translate(${xe}px, ${we}px); left: 0; right: auto;`;break;default:Ze=`transform: translate(${xe}px, ${we}px);`}return Ze+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ze+=` opacity: ${Be?1:0}; visibility: ${Be?"visible":"hidden"}`,Ze},Re=(xe,we)=>{let Be="";switch(_()){case"top":Be=`transform: translate(${xe}px, ${we}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Be=`transform: translate(${xe}px, ${we}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Be=`transform: translate(${xe}px, ${we}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Be=`transform: translate(${xe}px, ${we}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Be},ie=m(()=>N(r(I),r(V),l())),Ge=m(()=>Re(r(P),r(A)));Ft(Me),wn(()=>window.clearTimeout(E));var oe=$$(),G=pe(oe);let K;G.__mousemove=Ae,G.__mousedown=se,G.__mouseup=Ae;var Ve=h(G);_e(Ve,()=>{var xe;return(xe=e.children)!=null?xe:ne}),g(G),ft(G,xe=>B(C,xe),()=>r(C));var Ne=M(G,2);{var Je=xe=>{rf(xe,{children:(we,Be)=>{var Ze=b$(),ot=h(Ze),gt=h(ot,!0);g(ot);var et=M(ot,2);g(Ze),ft(Ze,mt=>B(T,mt),()=>r(T)),k(()=>{it(Ze,r(ie)),he(gt,d()),it(et,r(Ge))}),b(we,Ze)},$$slots:{default:!0}})};R(Ne,xe=>{d()&&!s()&&xe(Je)})}k(xe=>K=te(G,1,"tooltip-wrapper svelte-hxlyne",null,K,xe),[()=>({"full-width":$()})]),wt("mouseenter",G,Ae),wt("mouseleave",G,se),b(t,oe),z(),o()}at(["mousemove","mousedown","mouseup"]);var Oh=t=>{t.stopPropagation()},x$=L("<div><!></div>"),w$={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 Ro(t,e){U(e,!0),W(t,w$);let[i,o]=Oe(),n=()=>S(u,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Ce(),d=mo(),l=s.ui.isMobile,u=d.graphIsOpened$,v=s.ui.t,$=f(e,"className",3,""),p=f(e,"disabled",3,!1),_=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),y=f(e,"width",15,void 0),C=f(e,"isFullWidthTooltip",3,!0),T=f(e,"tooltipContent",3,""),E=f(e,"tooltipActive",3,!1),P=f(e,"tooltipPlacement",3,"top"),A=f(e,"disabledTooltipContent",19,()=>v("tooltip_button_disabled")),I=f(e,"isAriaHidden",3,!1),V=f(e,"onTooltipVisibilityChange",3,sf),H=f(e,"initialTranslateXPx",3,0),Y=f(e,"initialTranslateYPx",19,()=>-18),O=f(e,"mouseEnter",3,sf),J=f(e,"mouseLeave",3,sf),re=m(()=>p()?n()?v("tooltip_disabled_when_graph_on"):A():T());var Z=x$();Z.__pointerdown=[Oh],Z.__click=[Oh];var me=h(Z);{var de=Me=>{sa(Me,{get content(){return r(re)},get translateX(){return H()},get translateY(){return Y()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return P()},get onVisibilityChange(){return V()},children:(ve,le)=>{var Ae=Ue(),se=pe(Ae);_e(se,()=>{var N;return(N=e.children)!=null?N:ne}),b(ve,Ae)},$$slots:{default:!0}})},Le=Me=>{var ve=Ue(),le=pe(ve);_e(le,()=>{var Ae;return(Ae=e.children)!=null?Ae:ne}),b(Me,ve)};R(me,Me=>{_()&&r(re)&&!a()?Me(de):Me(Le,!1)})}g(Z),ft(Z,Me=>w(Me),()=>w()),k(()=>{var Me;te(Z,1,`btn-container ${(Me=$())!=null?Me:""}`,"svelte-p9r045"),Fe(Z,"aria-hidden",I()||null)}),wt("mouseenter",Z,function(...Me){var ve;(ve=O())==null||ve.apply(this,Me)}),wt("mouseleave",Z,function(...Me){var ve;(ve=J())==null||ve.apply(this,Me)}),Hr(Z,"clientWidth",y),b(t,Z),z(),o()}at(["pointerdown","click"]);var S$=$e('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function rd(t,e){"use strict";var i=S$(),o=h(i),n=M(o);g(i),k(()=>{Fe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Fe(o,"fill-opacity",e.completed?1:.24),Fe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var C$=L("<div><!></div>"),T$={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){U(e,!0),W(t,T$);let o=Ce().ui.t,n=ee(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ro(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=C$();let u;var v=h(l);let $=m(()=>!!e.videoEpisode.completed);rd(v,{get completed(){return r($)}}),g(l),k(p=>{u=te(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),it(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Hr(l,"clientWidth",p=>B(n,p)),b(s,l)},$$slots:{default:!0}}),z()}var I$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),k$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),E$={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 ws(t,e){Q(t,$$);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=b$();E(()=>{var d;Ne(s,"data-value",r(a)),Ne(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),_(t,s)}import{isNonNullable as zh,noop as Un}from"@vkontakte/videoplayer-shared/es2015";import{noop as df}from"@vkontakte/videoplayer-shared/es2015";import{noop as x$}from"@vkontakte/videoplayer-shared/es2015";var y$=L('<div class="overlay"><!></div>');function lf(t,e){U(e,!0);let[i,o]=De(),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())}),zt(()=>(u(n()),()=>l(n())));var m=y$(),y=h(m);ge(y,()=>{var p;return(p=e.children)!=null?p:oe}),g(m),gt(m,p=>D(d,p),()=>r(d)),_(t,m),z(),o()}var w$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),S$=L("<div><!></div> <!>",1),C$={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 ra(t,e){U(e,!0),Q(t,C$);let[i,o]=De(),n=()=>S(G,"$overlayContainer$",i),a=()=>S(F,"$containerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"content",3,""),l=f(e,"active",15,!1),u=f(e,"translateX",3,0),m=f(e,"translateY",3,0),y=f(e,"isFullWidthWrapper",3,!1),p=f(e,"maxTooltipWidth",3,void 0),$=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,x$),b=5,C=J(void 0),T=J(void 0),I,M=J(0),P=J(0),k=J(0),R=J(0),W=qt(),j=Te(),F=j.ui.playerSize,G=j.ui.overlayContainer$;Ue(()=>{wt(()=>{w()(l())})});let ne=j.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n()||!r(T)||!r(C))return;D(P,b);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,St=nt+ut,mt=Re.top+m()-Se.top,Kt=ze/2-b,ni=St<8,Mt=St+ze>ct-8;ni&&(St=8,Kt=nt+Re.width/2-2.5*b),Mt&&(St=ct-8-ze,Kt=Re.left-Se.left+Re.width/2-St-b),D(k,fe(St)),D(R,mt),D(M,fe(Kt))},se=()=>{!n()||!r(T)||!r(C)||D(P,-b)},ce=()=>{if(!n()||!r(T)||!r(C))return;D(M,b);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,St=ut-b;St<8&&(St=8);let Kt=Re.top+m()-Se.top+ct,ni=nt-ct/2,Mt=nt-b;D(k,fe(St)),D(R,Kt),D(P,ni),D(M,Mt)},Me=()=>{!n()||!r(T)||!r(C)||D(M,-b)},Le=()=>{switch($()){case"top":X();break;case"bottom":se();break;case"left":ce();break;default:Me()}},he=()=>{try{if(!n()||!r(C))return;Le(),l(!0)}catch(Se){ne({message:String(Se)})}},ae=()=>{l(!1)},Pe=()=>{r(T)&&(I||(I=window.setTimeout(he,W.controls.hideTimeoutTooltips)),l()&&he())},re=()=>{ae(),window.clearTimeout(I),I=void 0},V=(Se,Re,ke)=>{let ze="";switch($()){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},we=(Se,Re)=>{let ke="";switch($()){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(()=>V(r(k),r(R),l())),qe=v(()=>we(r(M),r(P)));zt(Le),Tn(()=>window.clearTimeout(I));var H=S$(),de=pe(H);let _e;de.__mousemove=Pe,de.__mousedown=re,de.__mouseup=Pe;var te=h(de);ge(te,()=>{var Se;return(Se=e.children)!=null?Se:oe}),g(de),gt(de,Se=>D(C,Se),()=>r(C));var Oe=A(de,2);{var Ze=Se=>{lf(Se,{children:(Re,ke)=>{var ze=w$(),ct=h(ze),ut=h(ct,!0);g(ct);var nt=A(ct,2);g(ze),gt(ze,St=>D(T,St),()=>r(T)),E(()=>{st(ze,r(be)),ve(ut,d()),st(nt,r(qe))}),_(Re,ze)},$$slots:{default:!0}})};B(Oe,Se=>{d()&&!s()&&Se(Ze)})}E(Se=>_e=ee(de,1,"tooltip-wrapper svelte-hxlyne",null,_e,Se),[()=>({"full-width":y()})]),It("mouseenter",de,Pe),It("mouseleave",de,re),_(t,H),z(),o()}at(["mousemove","mousedown","mouseup"]);var Uh=t=>{t.stopPropagation()},T$=L("<div><!></div>"),I$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Ao(t,e){U(e,!0),Q(t,I$);let[i,o]=De(),n=()=>S(u,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Te(),d=so(),l=s.ui.isMobile,u=d.graphIsOpened$,m=s.ui.t,y=f(e,"className",3,""),p=f(e,"disabled",3,!1),$=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),b=f(e,"width",15,void 0),C=f(e,"isFullWidthTooltip",3,!0),T=f(e,"tooltipContent",3,""),I=f(e,"tooltipActive",3,!1),M=f(e,"tooltipPlacement",3,"top"),P=f(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),k=f(e,"isAriaHidden",3,!1),R=f(e,"onTooltipVisibilityChange",3,df),W=f(e,"initialTranslateXPx",3,0),j=f(e,"initialTranslateYPx",19,()=>-18),F=f(e,"mouseEnter",3,df),G=f(e,"mouseLeave",3,df),ne=v(()=>p()?n()?m("tooltip_disabled_when_graph_on"):P():T());var X=T$();X.__pointerdown=[Uh],X.__click=[Uh];var se=h(X);{var ce=Le=>{ra(Le,{get content(){return r(ne)},get translateX(){return W()},get translateY(){return j()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return R()},children:(he,ae)=>{var Pe=He(),re=pe(Pe);ge(re,()=>{var V;return(V=e.children)!=null?V:oe}),_(he,Pe)},$$slots:{default:!0}})},Me=Le=>{var he=He(),ae=pe(he);ge(ae,()=>{var Pe;return(Pe=e.children)!=null?Pe:oe}),_(Le,he)};B(se,Le=>{$()&&r(ne)&&!a()?Le(ce):Le(Me,!1)})}g(X),gt(X,Le=>w(Le),()=>w()),E(()=>{var Le;ee(X,1,`btn-container ${(Le=y())!=null?Le:""}`,"svelte-p9r045"),Ne(X,"aria-hidden",k()||null)}),It("mouseenter",X,function(...Le){var he;(he=F())==null||he.apply(this,Le)}),It("mouseleave",X,function(...Le){var he;(he=G())==null||he.apply(this,Le)}),Or(X,"clientWidth",b),_(t,X),z(),o()}at(["pointerdown","click"]);var k$=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 nd(t,e){"use strict";var i=k$(),o=h(i),n=A(o);g(i),E(()=>{Ne(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ne(o,"fill-opacity",e.completed?1:.24),Ne(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(t,i)}var E$=L("<div><!></div>"),P$={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 cf(t,e){U(e,!0),Q(t,P$);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=E$();let u;var m=h(l);let y=v(()=>!!e.videoEpisode.completed);nd(m,{get completed(){return r(y)}}),g(l),E(p=>{u=ee(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),st(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Or(l,"clientWidth",p=>D(n,p)),_(s,l)},$$slots:{default:!0}}),z()}var A$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),M$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),L$={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 lf(t,e){W(t,E$);let i=f(e,"videoEpisodes",19,()=>[]);var o=k$();ki(o,21,i,n=>n.from,(n,a)=>{var s=I$();let d;var l=h(s),u=h(l),v=M(u,2);let $;g(l),g(s),k((p,_)=>{d=te(s,1,"video-episode svelte-1u6kv8l",null,d,p),it(s,`left: ${r(a).from}%; width: ${r(a).width}%`),it(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),$=te(v,1,"video-episode-filled svelte-1u6kv8l",null,$,_),it(v,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function P$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&B(i,fe(e().getBoundingClientRect())),o()||r(n)||!e())return;B(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function A$(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 M$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;B(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function L$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var V$=L("<div></div>"),R$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),D$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),N$={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 uf(t,e){Q(t,L$);let i=f(e,"videoEpisodes",19,()=>[]);var o=M$();ki(o,21,i,n=>n.from,(n,a)=>{var s=A$();let d;var l=h(s),u=h(l),m=A(u,2);let y;g(l),g(s),E((p,$)=>{d=ee(s,1,"video-episode svelte-1u6kv8l",null,d,p),st(s,`left: ${r(a).from}%; width: ${r(a).width}%`),st(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),y=ee(m,1,"video-episode-filled svelte-1u6kv8l",null,y,$),st(m,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(n,s)}),g(o),_(t,o)}function V$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,fe(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function R$(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 B$(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 N$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var D$=L("<div></div>"),O$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),H$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),F$={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 aa(t,e){U(e,!0),W(t,N$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),n=f(e,"testId",3,void 0),a=f(e,"isHidden",3,!1),s=f(e,"isVertical",3,!1),d=f(e,"isActiveLive",3,!1),l=f(e,"isMobile",3,!1),u=f(e,"squareBorders",3,!1),v=f(e,"videoEpisodes",19,()=>[]),$=f(e,"withWheelHandler",3,!1),p=f(e,"isInteractive",3,!1),_=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),y=f(e,"onPointerDown",3,Un),C=f(e,"onHandleMove",3,Un),T=f(e,"onPointerUp",3,Un),E=f(e,"onPointerEnter",3,Un),P=f(e,"onPointerMove",3,Un),A=f(e,"onPointerLeave",3,Un),I=f(e,"onMouseEnter",3,Un),V=f(e,"onMouseLeave",3,Un),H=f(e,"onWheelUp",3,Un),Y=f(e,"onWheelDown",3,Un),O=f(e,"onWheelLeft",3,Un),J=f(e,"onWheelRight",3,Un),re=f(e,"onDisabledClick",3,Un),Z=f(e,"loadedProgress",3,0),me=f(e,"filledProgress",3,0),de=f(e,"handleProgress",3,0),Le=f(e,"ariaLabel",3,""),Me=f(e,"ariaValueMin",3,void 0),ve=f(e,"ariaValueMax",3,void 0),le=f(e,"ariaValueNow",3,void 0),Ae=f(e,"ariaValueText",3,""),se=Ut(),N=ee(void 0),Re=ee(!1),ie=m(()=>{var ae;return(ae=ve())!=null?ae:0}),Ge=m(()=>{var ae;return Hh(v())&&((ae=v()[v().length-1])==null?void 0:ae.time)<r(ie)}),oe=m(()=>Hh(v())&&v().length&&r(Ge)&&r(ie)?Be(Z()*100,me()*100):[]);function G(ae){if(ae.preventDefault(),i()&&B(N,fe(i().getBoundingClientRect())),_())return;let He=xe(ae.clientX,ae.clientY),qe=we(ae.clientX);E()(He,qe,r(N).width)}function K(ae){ae.preventDefault(),!_()&&A()()}function Ve(){I()()}function Ne(){V()()}function Je(ae){_()||$()&&(ae.preventDefault(),ae.deltaY<0?H()():ae.deltaY>0?Y()():ae.deltaX>0?J()():O()())}function xe(ae,He){return s()?Math.max(0,Math.min(1,(r(N).height-(He-r(N).top))/r(N).height)):Math.min(Math.max(ae-r(N).x,0),r(N).width)/r(N).width}function we(ae){return Math.min(Math.max(ae-r(N).x,0),r(N).width)}function Be(ae,He){let qe=se.features.episodesClustering&&!p()?se.episodeMinWidthPc:0,tt=[],lt=v()[0].time/r(ie)*100,Ye=0,Xe=0;for(let bt=1;bt<v().length;bt++)Ye=v()[bt].time/r(ie)*100,Ye-lt>qe&&(tt.push({from:lt,width:Math.max(0,Ye-lt),loadedWidth:Math.max(0,Math.min(Ye,ae)-lt),filledWidth:Math.max(0,Math.min(Ye,He)-lt),interactive:v()[bt-1].interactive,completed:v()[bt-1].completed}),lt=v()[bt].time/r(ie)*100,Xe++);let dt={from:lt,width:Math.max(0,100-lt),loadedWidth:Math.max(0,Math.min(ae,100)-lt),filledWidth:Math.max(0,Math.min(He,100)-lt),interactive:v()[Xe].interactive,completed:v()[Xe].completed};100-lt<qe?(Xe-=1,tt[Xe].width+=100-lt,tt[Xe].loadedWidth+=Math.max(0,Math.min(ae,100)-lt),tt[Xe].filledWidth+=Math.max(0,Math.min(He,100)-lt)):tt[Xe]=dt;let De=v()[0].time;if(De!==0){let bt=De/r(ie)*100;tt.unshift({from:0,width:bt,loadedWidth:Math.min(bt,ae),filledWidth:Math.min(bt,He)})}return tt}var Ze=D$(),ot=pe(Ze);{var gt=ae=>{var He=V$();let qe;ki(He,21,()=>r(oe),tt=>tt.from,(tt,lt)=>{var Ye=Ue(),Xe=pe(Ye);{var dt=De=>{af(De,{get videoEpisode(){return r(lt)},get disabled(){return _()}})};R(Xe,De=>{r(lt).interactive&&De(dt)})}b(tt,Ye)}),g(He),k(tt=>qe=te(He,1,"interactive-icons svelte-1tpemng",null,qe,tt),[()=>({mobile:l(),hidden:l()&&!r(Re)})]),b(ae,He)};R(ot,ae=>{p()&&ae(gt)})}var et=M(ot,2);let mt;et.__pointerdown=[P$,i,N,_,Re,xe,y],et.__pointermove=[A$,_,xe,we,P,N,Re,C],et.__pointerup=[M$,_,Re,xe,T],et.__click=[L$,_,re,xe];var kt=h(et);{var Gt=ae=>{lf(ae,{get videoEpisodes(){return r(oe)},get disabled(){return _()},get isMobile(){return l()}})},zt=ae=>{var He=R$(),qe=h(He),tt=M(qe,2);let lt;g(He),k(Ye=>{it(qe,`transform: translateX(${Z()*100}%);`),lt=te(tt,1,"filled svelte-1tpemng",null,lt,Ye),it(tt,`transform: translateX(${me()*100}%);`)},[()=>({"active-live":d()})]),b(ae,He)};R(kt,ae=>{r(oe).length?ae(Gt):ae(zt,!1)})}var Kt=M(kt,2);let ge;var j=h(Kt);let Ie;g(Kt),g(et),ft(et,ae=>i(ae),()=>i()),k((ae,He,qe)=>{var tt,lt;mt=te(et,1,`slider ${(tt=o())!=null?tt:""}`,"svelte-1tpemng",mt,ae),Fe(et,"aria-label",Le()),Fe(et,"aria-valuemin",Me()),Fe(et,"aria-valuemax",ve()),Fe(et,"aria-valuenow",le()),Fe(et,"aria-valuetext",Ae()),Fe(et,"data-testid",(lt=n())!=null?lt:null),ge=te(Kt,1,"handleWrap svelte-1tpemng",null,ge,He),it(Kt,`transform: translateX(${de()*100}%);`),Ie=te(j,1,"handle svelte-1tpemng",null,Ie,qe)},[()=>({disabled:_(),"slider-dragging":r(Re),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),wt("pointerenter",et,G),wt("pointerleave",et,K),wt("mouseenter",et,Ve),wt("mouseleave",et,Ne),wt("wheel",et,Je),b(t,Ze),z()}at(["pointerdown","pointermove","pointerup","click"]);var Gi=(t,e)=>Ys[t]>=Ys[e],Fh=(t,e)=>Ys[t]<Ys[e],Ss=(t,e)=>Ys[t]<=Ys[e],Uh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var B$=L("<div><!></div>"),O$=L("<div><!> <!></div>"),H$={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 df(t,e){var Je,xe;U(e,!0),W(t,H$);let[i,o]=Oe(),n=()=>S(E,"$isAudioAvailable$",i),a=()=>S($,"$muted$",i),s=()=>S(v,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Ce(),u=Ut(),v=l.state.volume$,$=l.state.muted$,{setVolume:p,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(Je=l.callbacks)==null?void 0:Je.onAudioDoesNotExistHint,T=(xe=l.callbacks)==null?void 0:xe.onAudioDisabledHint,E=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,I=ee(!1),V,H=m(()=>!n()||a()||s()===0),Y=m(()=>Ss(d(),"s")),O=m(()=>r(Y)?"":r(H)?!n()||P?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),J=m(()=>r(H)?A("tooltip_volume"):A("tooltip_volume_muted")),re=m(()=>r(H)?0:s()),Z=!1,me=m(()=>n()?P&&!T:!C);function de(we){_(),p(we)}function Le(){Hc(l,s(),u.controls.volumeStepWheel)}function Me(){Fc(l,s(),u.controls.volumeStepWheel)}function ve(we){p(we)}function le(we){p(we),w()}function Ae(){Z=!0}function se(){Z=!1,ie()}function N(){clearTimeout(V),B(I,!0)}function Re(){ie()}function ie(){V=window.setTimeout(()=>{Z||B(I,!1)},u.controls.volumeBarTimeout)}function Ge(we){we.preventDefault(),we.deltaY<0?Le():we.deltaY>0&&Me()}var oe=O$();let G;var K=h(oe);sa(K,{get content(){return r(O)},translateY:-18,children:(we,Be)=>{let Ze=m(()=>r(Y)?"btn-volume-vertical":"btn-volume-horizontal");Vt(we,{className:"btn-full-opacity",get disabled(){return r(me)},get testId(){return r(Ze)},get ariaLabel(){return r(J)},get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyM},children:(ot,gt)=>{ws(ot,{get volume(){return s()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ve=M(K,2);{var Ne=we=>{var Be=B$();let Ze;var ot=h(Be);let gt=m(()=>r(Y)?"volumeBar-slider-vertical":""),et=m(()=>r(Y)&&!r(I)),mt=m(()=>r(Y)?Ae:zc),kt=m(()=>r(Y)?se:zc),Gt=m(()=>Math.round(r(re)*100)),zt=m(()=>`${Math.round(r(re)*100)}%`),Kt=m(()=>r(Y)?"volume-slider-vertical":"volume-slider");aa(ot,{get className(){return r(gt)},get isHidden(){return r(et)},get isVertical(){return r(Y)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:Me,onPointerDown:de,onHandleMove:ve,onPointerUp:le,get onPointerEnter(){return r(mt)},get onPointerLeave(){return r(kt)},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(Gt)},get ariaValueText(){return r(zt)},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get testId(){return r(Kt)}}),g(Be),k(ge=>Ze=te(Be,1,"volumeBar svelte-1auih1j",null,Ze,ge),[()=>({"volumeBar-vertical":r(Y)})]),b(we,Be)};R(Ve,we=>{n()&&we(Ne)})}g(oe),k(we=>G=te(oe,1,"volumeBar-container svelte-1auih1j",null,G,we),[()=>({vertical:r(Y)})]),wt("mouseenter",oe,function(...we){var Be;(Be=r(Y)?N:zc)==null||Be.apply(this,we)}),wt("mouseleave",oe,function(...we){var Be;(Be=r(Y)?Re:zc)==null||Be.apply(this,we)}),wt("wheel",oe,Ge),b(t,oe),z(),o()}import{noop as z$}from"@vkontakte/videoplayer-shared/es2015";var F$=$e('<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 cf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=F$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img"},i))),b(t,o)}var U$={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){W(t,U$);let i=f(e,"isFullscreen",8,!1),o=hr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");cf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function sd(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,z$),n=Ce(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let v=ys(u);a.set(v),o()()},get ariaKeyShortCut(){return Fr.KeyF},children:(u,v)=>{uf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var q$=$e('<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 pf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=q$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i))),b(t,o)}var W$=$e('<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 ff(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=W$();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(4),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}var K$={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){U(e,!0),Q(t,F$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),n=f(e,"testId",3,void 0),a=f(e,"isHidden",3,!1),s=f(e,"isVertical",3,!1),d=f(e,"isActiveLive",3,!1),l=f(e,"isMobile",3,!1),u=f(e,"squareBorders",3,!1),m=f(e,"videoEpisodes",19,()=>[]),y=f(e,"withWheelHandler",3,!1),p=f(e,"isInteractive",3,!1),$=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),b=f(e,"onPointerDown",3,Un),C=f(e,"onHandleMove",3,Un),T=f(e,"onPointerUp",3,Un),I=f(e,"onPointerEnter",3,Un),M=f(e,"onPointerMove",3,Un),P=f(e,"onPointerLeave",3,Un),k=f(e,"onMouseEnter",3,Un),R=f(e,"onMouseLeave",3,Un),W=f(e,"onWheelUp",3,Un),j=f(e,"onWheelDown",3,Un),F=f(e,"onWheelLeft",3,Un),G=f(e,"onWheelRight",3,Un),ne=f(e,"onDisabledClick",3,Un),X=f(e,"loadedProgress",3,0),se=f(e,"filledProgress",3,0),ce=f(e,"handleProgress",3,0),Me=f(e,"ariaLabel",3,""),Le=f(e,"ariaValueMin",3,void 0),he=f(e,"ariaValueMax",3,void 0),ae=f(e,"ariaValueNow",3,void 0),Pe=f(e,"ariaValueText",3,""),re=qt(),V=J(void 0),we=J(!1),be=v(()=>{var ie;return(ie=he())!=null?ie:0}),qe=v(()=>{var ie;return zh(m())&&((ie=m()[m().length-1])==null?void 0:ie.time)<r(be)}),H=v(()=>zh(m())&&m().length&&r(qe)&&r(be)?ke(X()*100,se()*100):[]);function de(ie){if(ie.preventDefault(),i()&&D(V,fe(i().getBoundingClientRect())),$())return;let Be=Se(ie.clientX,ie.clientY),je=Re(ie.clientX);I()(Be,je,r(V).width)}function _e(ie){ie.preventDefault(),!$()&&P()()}function te(){k()()}function Oe(){R()()}function Ze(ie){$()||y()&&(ie.preventDefault(),ie.deltaY<0?W()():ie.deltaY>0?j()():ie.deltaX>0?G()():F()())}function Se(ie,Be){return s()?Math.max(0,Math.min(1,(r(V).height-(Be-r(V).top))/r(V).height)):Math.min(Math.max(ie-r(V).x,0),r(V).width)/r(V).width}function Re(ie){return Math.min(Math.max(ie-r(V).x,0),r(V).width)}function ke(ie,Be){let je=re.features.episodesClustering&&!p()?re.episodeMinWidthPc:0,Qe=[],Ve=m()[0].time/r(be)*100,rt=0,et=0;for(let Xe=1;Xe<m().length;Xe++)rt=m()[Xe].time/r(be)*100,rt-Ve>je&&(Qe.push({from:Ve,width:Math.max(0,rt-Ve),loadedWidth:Math.max(0,Math.min(rt,ie)-Ve),filledWidth:Math.max(0,Math.min(rt,Be)-Ve),interactive:m()[Xe-1].interactive,completed:m()[Xe-1].completed}),Ve=m()[Xe].time/r(be)*100,et++);let _t={from:Ve,width:Math.max(0,100-Ve),loadedWidth:Math.max(0,Math.min(ie,100)-Ve),filledWidth:Math.max(0,Math.min(Be,100)-Ve),interactive:m()[et].interactive,completed:m()[et].completed};100-Ve<je?(et-=1,Qe[et].width+=100-Ve,Qe[et].loadedWidth+=Math.max(0,Math.min(ie,100)-Ve),Qe[et].filledWidth+=Math.max(0,Math.min(Be,100)-Ve)):Qe[et]=_t;let it=m()[0].time;if(it!==0){let Xe=it/r(be)*100;Qe.unshift({from:0,width:Xe,loadedWidth:Math.min(Xe,ie),filledWidth:Math.min(Xe,Be)})}return Qe}var ze=H$(),ct=pe(ze);{var ut=ie=>{var Be=D$();let je;ki(Be,21,()=>r(H),Qe=>Qe.from,(Qe,Ve)=>{var rt=He(),et=pe(rt);{var _t=it=>{cf(it,{get videoEpisode(){return r(Ve)},get disabled(){return $()}})};B(et,it=>{r(Ve).interactive&&it(_t)})}_(Qe,rt)}),g(Be),E(Qe=>je=ee(Be,1,"interactive-icons svelte-1tpemng",null,je,Qe),[()=>({mobile:l(),hidden:l()&&!r(we)})]),_(ie,Be)};B(ct,ie=>{p()&&ie(ut)})}var nt=A(ct,2);let St;nt.__pointerdown=[V$,i,V,$,we,Se,b],nt.__pointermove=[R$,$,Se,Re,M,V,we,C],nt.__pointerup=[B$,$,we,Se,T],nt.__click=[N$,$,ne,Se];var mt=h(nt);{var Kt=ie=>{uf(ie,{get videoEpisodes(){return r(H)},get disabled(){return $()},get isMobile(){return l()}})},ni=ie=>{var Be=O$(),je=h(Be),Qe=A(je,2);let Ve;g(Be),E(rt=>{st(je,`transform: translateX(${X()*100}%);`),Ve=ee(Qe,1,"filled svelte-1tpemng",null,Ve,rt),st(Qe,`transform: translateX(${se()*100}%);`)},[()=>({"active-live":d()})]),_(ie,Be)};B(mt,ie=>{r(H).length?ie(Kt):ie(ni,!1)})}var Mt=A(mt,2);let Bt;var O=h(Mt);let $e;g(Mt),g(nt),gt(nt,ie=>i(ie),()=>i()),E((ie,Be,je)=>{var Qe,Ve;St=ee(nt,1,`slider ${(Qe=o())!=null?Qe:""}`,"svelte-1tpemng",St,ie),Ne(nt,"aria-label",Me()),Ne(nt,"aria-valuemin",Le()),Ne(nt,"aria-valuemax",he()),Ne(nt,"aria-valuenow",ae()),Ne(nt,"aria-valuetext",Pe()),Ne(nt,"data-testid",(Ve=n())!=null?Ve:null),Bt=ee(Mt,1,"handleWrap svelte-1tpemng",null,Bt,Be),st(Mt,`transform: translateX(${ce()*100}%);`),$e=ee(O,1,"handle svelte-1tpemng",null,$e,je)},[()=>({disabled:$(),"slider-dragging":r(we),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),It("pointerenter",nt,de),It("pointerleave",nt,_e),It("mouseenter",nt,te),It("mouseleave",nt,Oe),It("wheel",nt,Ze),_(t,ze),z()}at(["pointerdown","pointermove","pointerup","click"]);var Qi=(t,e)=>Ys[t]>=Ys[e],qh=(t,e)=>Ys[t]<Ys[e],Ss=(t,e)=>Ys[t]<=Ys[e],Wh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var U$=L("<div><!></div>"),z$=L("<div><!> <!></div>"),q$={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function pf(t,e){var Se,Re;U(e,!0),Q(t,q$);let[i,o]=De(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(y,"$muted$",i),s=()=>S(m,"$volume$",i),d=()=>S(b,"$currentGridType$",i),l=Te(),u=qt(),m=l.state.volume$,y=l.state.muted$,{setVolume:p,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,b=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),R,W=v(()=>e.isAds||n()),j=v(()=>!r(W)||a()||s()===0),F=v(()=>Ss(d(),"s")),G=v(()=>r(F)?"":r(j)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume_on"):P("tooltip_volume_muted")),ne=P("aria_label_volume"),X=v(()=>r(j)?0:s()),se=!1,ce=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Me(ke){$(),p(ke)}function Le(){Hc(l,s(),u.controls.volumeStepWheel)}function he(){Fc(l,s(),u.controls.volumeStepWheel)}function ae(ke){p(ke)}function Pe(ke){p(ke),w()}function re(){se=!0}function V(){se=!1,qe()}function we(){clearTimeout(R),D(k,!0)}function be(){qe()}function qe(){R=window.setTimeout(()=>{se||D(k,!1)},u.controls.volumeBarTimeout)}function H(ke){ke.preventDefault(),ke.deltaY<0?Le():ke.deltaY>0&&he()}var de=z$();let _e;var te=h(de);ra(te,{get content(){return r(G)},translateY:-18,children:(ke,ze)=>{let ct=v(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Rt(ke,{className:"btn-full-opacity",get disabled(){return r(ce)},get testId(){return r(ct)},ariaLabel:ne,get click(){return e.click},get ariaKeyShortCut(){return Hr.KeyM},role:"switch",children:(ut,nt)=>{ws(ut,{get volume(){return s()},get muted(){return r(j)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Oe=A(te,2);{var Ze=ke=>{var ze=U$();let ct;var ut=h(ze);let nt=v(()=>r(F)?"volumeBar-slider-vertical":""),St=v(()=>r(F)&&!r(k)),mt=v(()=>r(F)?re:zc),Kt=v(()=>r(F)?V:zc),ni=v(()=>Math.round(r(X)*100)),Mt=v(()=>`${Math.round(r(X)*100)}%`),Bt=v(()=>r(F)?"volume-slider-vertical":"volume-slider");sa(ut,{get className(){return r(nt)},get isHidden(){return r(St)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:he,onPointerDown:Me,onHandleMove:ae,onPointerUp:Pe,get onPointerEnter(){return r(mt)},get onPointerLeave(){return r(Kt)},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(ni)},get ariaValueText(){return r(Mt)},get filledProgress(){return r(X)},get handleProgress(){return r(X)},get testId(){return r(Bt)}}),g(ze),E(O=>ct=ee(ze,1,"volumeBar svelte-1auih1j",null,ct,O),[()=>({"volumeBar-vertical":r(F)})]),_(ke,ze)};B(Oe,ke=>{r(W)&&ke(Ze)})}g(de),E(ke=>_e=ee(de,1,"volumeBar-container svelte-1auih1j",null,_e,ke),[()=>({vertical:r(F)})]),It("mouseenter",de,function(...ke){var ze;(ze=r(F)?we:zc)==null||ze.apply(this,ke)}),It("mouseleave",de,function(...ke){var ze;(ze=r(F)?be:zc)==null||ze.apply(this,ke)}),It("wheel",de,H),_(t,de),z(),o()}import{noop as Q$}from"@vkontakte/videoplayer-shared/es2015";var W$=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 ff(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=W$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 K$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function mf(t,e){Q(t,K$);let i=f(e,"isFullscreen",8,!1),o=yr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");ff(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function rd(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,Q$),n=Te(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Rt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let m=ys(u);a.set(m),o()()},get ariaKeyShortCut(){return Hr.KeyF},children:(u,m)=>{mf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var G$=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 vf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=G$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 Y$=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 gf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Y$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(4),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),_(t,o)}var j$={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 mf(t,e){W(t,K$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);ff(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function ad(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(_,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),s=()=>S(y,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),u=f(e,"targetUrl",3,""),v=Ut(),$=Ce(),p=$.ui.currentGridType$,_=$.ui.isMobile,w=$.ui.t,y=$.isCyrillicRelatedInterface$,C=m(()=>v.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=m(()=>v.logoType==="vk_video"||v.logoType==="vk_video_mobile"),E=m(()=>(n()||Ss(a(),"l"))&&r(T)),P=()=>{var V,H;e.click(),(V=$.callbacks)!=null&&V.onLogoClicked?(H=$.callbacks)==null||H.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!l()),I=m(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,H)=>{var Y=Ue(),O=pe(Y);{var J=Z=>{mf(Z,{get short(){return r(E)},get isCyrillic(){return s()}})},re=Z=>{pf(Z,{})};R(O,Z=>{r(T)?Z(J):Z(re,!1)})}b(V,Y)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as Z$}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as zh}from"@vkontakte/videoplayer-core/es2015";var G$=$e('<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>'),j$=$e('<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>'),Y$={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 hf(t,e){Q(t,j$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);gf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function sd(t,e){U(e,!0);let[i,o]=De(),n=()=>S($,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),s=()=>S(b,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),u=f(e,"targetUrl",3,""),m=qt(),y=Te(),p=y.ui.currentGridType$,$=y.ui.isMobile,w=y.ui.t,b=y.isCyrillicRelatedInterface$,C=v(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),I=v(()=>(n()||Ss(a(),"l"))&&r(T)),M=()=>{var R,W;e.click(),(R=y.callbacks)!=null&&R.onLogoClicked?(W=y.callbacks)==null||W.onLogoClicked():u()&&window.open(u(),"_blank")},P=v(()=>!l()),k=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Rt(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(R){d(R)},children:(R,W)=>{var j=He(),F=pe(j);{var G=X=>{hf(X,{get short(){return r(I)},get isCyrillic(){return s()}})},ne=X=>{vf(X,{})};B(F,X=>{r(T)?X(G):X(ne,!1)})}_(R,j)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as t2}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as Kh}from"@vkontakte/videoplayer-core/es2015";var X$=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>'),J$=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>'),e2={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.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
225
225
  100% {
226
226
  opacity: 1;
227
227
  }
228
- }`};function vf(t,e){U(e,!0),W(t,Y$);let i=f(e,"isMobile",3,!1),o=m(()=>e.iconState===zh.CONNECTED),n=m(()=>e.iconState===zh.CONNECTING);var a=Ue(),s=pe(a);{var d=u=>{var v=G$(),$=h(v),p=h($),_=h(p);be(),g(p);var w=M(p);be(),g($);var y=M($),C=h(y),T=h(C);g(C),be(),g(y),g(v),k(()=>{Fe(_,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,v)},l=u=>{var v=j$();let $;var p=h(v),_=M(h(p),5);let w;g(p),g(v),k((y,C)=>{$=te(v,0,"svelte-8z1bf5",null,$,y),w=te(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,v)};R(s,u=>{i()?u(d):u(l,!1)})}b(t,a),z()}import{noop as X$}from"@vkontakte/videoplayer-shared/es2015";function ld(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,X$),s=Ce().ui.t,d=m(()=>e.state===Z$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,u)=>{vf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var J$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),e2={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){W(t,e2);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),n=f(e,"translateXPx",3,0),a=f(e,"translateYPx",3,0),s=f(e,"leftOffset",3,0),d=f(e,"rightOffset",3,0),l=ee(void 0),u=ee(void 0);function v(C){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),E=T/2;return C<E?E+s():C>e.containerWidth-E?e.containerWidth-E-d():C}let $=m(()=>v(n()));var p=J$(),_=h(p);let w;var y=h(_);_e(y,()=>{var C;return(C=e.children)!=null?C:ne}),g(_),ft(_,C=>B(u,C),()=>r(u)),g(p),ft(p,C=>B(l,C),()=>r(l)),k(C=>{it(p,`transform: translate(${r($)}px, ${a()}px);`),w=te(_,1,"tooltip svelte-5ygsa2",null,w,C),it(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var qc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var qh=t=>!!(Math.round(Math.abs(t)/90)%2),Wh=t=>Math.abs(t)/90%4===1;var t2=L('<div class="preview svelte-1wqg760"></div>'),i2=L('<div class="time svelte-1wqg760"> </div>'),o2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),n2={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 hf(t,e){U(e,!0),W(t,n2);let[i,o]=Oe(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=f(e,"time",3,""),l=f(e,"isMobile",3,!1),u=f(e,"videoEpisodes",19,()=>[]),v=f(e,"progress",3,0),$=f(e,"duration",3,0),p=f(e,"isInteractive",3,!1),_=Ce(),w=_.ui.rotateAlpha,y=_.ui.playerSize,C=ee(0),T=ee(0),E=ee(""),P=ee(0),A=ee(0),I=ee(0),V=ee(0),H=m(()=>qc(v(),$(),u())),Y=m(()=>qh(n())),O=m(()=>Wh(n())),J=m(me),re=m(()=>(r(O)?1:-1)*(r(C)/2-r(T)/2)),Z=m(()=>r(re)*-1);ze(()=>{(G=>(B(C,fe(G.width)),B(T,fe(G.height))))(Le())}),ze(()=>{(G=>(B(E,fe(G.imgSrc)),B(P,fe(G.imgWidth)),B(A,fe(G.imgHeight)),B(I,fe(G.imgOffsetX)),B(V,fe(G.imgOffsetY))))(Me(v()))});function me(){var Ne;let G=l()?s.MOBILE:s.DESKTOP,{isVertical:K}=de(),Ve=30;return(Ne=r(H))!=null&&Ne.text&&(Ve+=16),(K||r(Y))&&(Ve+=18,Ve+=50),Math.min(Math.max(a().height-Ve,0),G)}function de(){let G=e.previewThumbsData.frameWidth,K=e.previewThumbsData.frameHeight,Ve=K>G;return{width:G,height:K,isHorizontal:!Ve,isVertical:Ve}}function Le(){let{height:G,isHorizontal:K,isVertical:Ve,width:Ne}=de();return K&&(G=G/Ne*r(J),Ne=r(J)),Ve&&(Ne=Ne/G*r(J),G=r(J)),{width:Ne,height:G}}function Me(G){let K;e.previewThumbsData.isUV?K=Math.floor($()*G/e.previewThumbsData.frequency):K=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*G)));let Ve=Math.floor(K/e.previewThumbsData.countPerImage),Ne=Math.floor(K%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Je=K%e.previewThumbsData.countPerRow,xe=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ve===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(xe=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&xe++);let we=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ve===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(we=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Be=r(C)*we,Ze=r(T)*xe,ot=-Je*r(C),gt=-Ne*r(T);return{imgSrc:e.previewThumbsData.links[Ve],imgWidth:Be,imgHeight:Ze,imgOffsetX:ot,imgOffsetY:gt}}var ve=o2();let le;var Ae=h(ve);{var se=G=>{var K=t2();k(()=>it(K,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(P)}px ${r(A)}px; background-position: ${r(I)}px ${r(V)}px;
229
- transform: rotate(${n()}deg) ${r(Y)?`translate(${r(re)}px, ${r(Z)}px)`:""};
230
- `)),b(G,K)};R(Ae,G=>{r(E)&&G(se)})}var N=M(Ae,2),Re=h(N);{var ie=G=>{var K=Ue(),Ve=pe(K);{var Ne=xe=>{var we=Or();k(Be=>he(we,Be),[()=>F("tooltip_episode_unfinished")]),b(xe,we)},Je=xe=>{var we=Or();k(()=>he(we,r(H).text||"")),b(xe,we)};R(Ve,xe=>{p()&&r(H).completed===!1?xe(Ne):xe(Je,!1)})}b(G,K)};R(Re,G=>{r(H)&&G(ie)})}g(N);var Ge=M(N,2);{var oe=G=>{var K=i2(),Ve=h(K,!0);g(K),k(()=>he(Ve,d())),b(G,K)};R(Ge,G=>{p()||G(oe)})}g(ve),k(G=>{le=te(ve,1,"timeline-preview svelte-1wqg760",null,le,G),it(ve,`width: ${r(Y)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),b(t,ve),z(),o()}var r2=L('<span class="time svelte-1jr6obn"> </span>'),s2=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 _f(t,e){var tt,lt,Ye,Xe,dt;U(e,!0),W(t,a2);let[i,o]=Oe(),n=()=>S(re,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(de,"$isInteractiveExpectation$",i),l=()=>S(me,"$isInteractiveTime$",i),u=()=>S(V,"$isLive$",i),v=()=>S(Y,"$isMobile",i),$=()=>S(H,"$isActiveLive$",i),p=()=>S(P,"$bufferedProgress$",i),_=()=>S(ve,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),y=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Ce(),E=Ut(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,H=T.state.isActiveLive$,Y=T.ui.isMobile,O=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,J=T.actions.internal.getPreviewThumbsData(),re=T.state.interactiveEpisodes$,Z=T.state.isInteractive,me=T.state.isInteractiveTime$,de=T.state.isInteractiveExpectation$,Le=T.actions.internal.correctSeekTimeToInteractive,Me=(tt=T.callbacks)==null?void 0:tt.onDisabledTimelineClick,ve=T.ui.controls.disabledControls$,le=(Ye=(lt=T.callbacks)==null?void 0:lt.uiInfo)==null?void 0:Ye.onTimelineMouseEnter,Ae=(dt=(Xe=T.callbacks)==null?void 0:Xe.uiInfo)==null?void 0:dt.onTimelineMouseLeave,se=T.ui.t,N=E.features.interactiveResponsiveUi,Re=m(()=>Z?n():O),ie=m(()=>un(a())),Ge=m(()=>un(s())),oe=m(()=>s()/a()),G=m(()=>d()||l()),K=ee(!1),Ve=ee(""),Ne=ee(0),Je=ee(0),xe=ee(0),we=m(()=>({containerWidth:r(Je),translateXPx:r(Ne),translateYPx:Z&&J?-36:-16,active:r(K)&&w()&&!r(G)&&!N,pointer:!E.features.timelinePreview||!J||u()})),Be=se("aria_timeline"),Ze=m(()=>se("aria_timeline_value",{position:r(Ge),duration:r(ie)}));function ot(De){return!Le||!Z?De:Le(De*a())/a()}function gt(De){T.actions.internal.startScrubbing(ot(De))}function et(De){l()||T.actions.internal.progressScrubbing(ot(De))}function mt(De){T.actions.internal.completeScrubbing(ot(De)),B(K,!1)}function kt(De,bt,We){Kt(De,bt,We),B(K,!0)}function Gt(De,bt,We){Kt(De,bt,We),B(K,!0)}function zt(){B(K,!1)}function Kt(De,bt,We){B(xe,fe(ot(De))),B(Ne,fe(bt)),We&&B(Je,fe(We)),B(Ve,fe(ge(De)))}function ge(De){let bt=un((u()?1-De:De)*a());return u()?`-${bt}`:bt}var j=s2(),Ie=pe(j);gf(Ie,ts(()=>r(we),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(De,bt)=>{var We=Ue(),Et=pe(We);{var ai=li=>{hf(li,{get time(){return r(Ve)},get isMobile(){return v()},get videoEpisodes(){return r(Re)},previewThumbsData:J,get progress(){return r(xe)},get duration(){return a()},isInteractive:Z})},ei=li=>{var Hi=r2(),ji=h(Hi,!0);g(Hi),k(()=>he(ji,r(Ve))),b(li,Hi)};R(Et,li=>{E.features.timelinePreview&&J&&!u()?li(ai):li(ei,!1)})}b(De,We)},$$slots:{default:!0}}));var ae=M(Ie,2);let He=m(()=>Math.round(r(oe)*100)),qe=m(()=>_().has("TIMELINE"));aa(ae,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return v()},ariaLabel:Be,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(He)},get ariaValueText(){return r(Ze)},get loadedProgress(){return p()},get filledProgress(){return r(oe)},get handleProgress(){return r(oe)},get videoEpisodes(){return r(Re)},onPointerDown:gt,onHandleMove:et,onPointerMove:Gt,onPointerUp:mt,onPointerEnter:kt,onPointerLeave:zt,onMouseEnter:le,onMouseLeave:Ae,onDisabledClick:Me,isInteractive:Z,get disabled(){return r(qe)},get hideHandel(){return l()},get ref(){return C()},set ref(De){C(De)}}),b(t,j),z(),o()}var l2={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 dd(t,e){U(e,!0),W(t,l2);let[i,o]=Oe(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Ce(),l=d.ui.isMobile,u=d.ui.t,v=m(()=>un(s())),$=m(()=>un(a())),p=m(()=>a()/s()),_=m(()=>u("aria_timeline_value",{position:r($),duration:r(v)})),w=m(()=>Math.round(r(p)*100));aa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(_)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var d2=L("<div><!></div>"),c2=L("<div></div>"),u2={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function la(t,e){U(e,!0),W(t,u2);let[i,o]=Oe(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),u=f(e,"isHidden",3,!1),v=f(e,"needPadding",3,!0),$=f(e,"ref",15,void 0),p=Ce(),_=p.state.isLive$,w=p.ads.duration,y=p.ads.position,C=p.ui.isMobile,T=m(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var E=Ue(),P=pe(E);{var A=V=>{var H=d2();let Y;var O=h(H);{var J=Z=>{dd(Z,{get position(){return s()},get duration(){return d()}})},re=Z=>{_f(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(me){$(me)}})};R(O,Z=>{l()?Z(J):Z(re,!1)})}g(H),k(Z=>Y=te(H,1,"timeline svelte-1h5wsmk",null,Y,Z),[()=>({withoutPadding:!v(),mobile:a()})]),b(V,H)},I=V=>{var H=c2();let Y;k(O=>Y=te(H,1,"timeline-stub svelte-1h5wsmk",null,Y,O),[()=>({mobile:a()})]),b(V,H)};R(P,V=>{r(T)?V(A):V(I,!1)})}b(t,E),z(),o()}import{noop as m2}from"@vkontakte/videoplayer-shared/es2015";var p2=$e('<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 bf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=p2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(3),g(o),k(()=>n=Te(o,n,q({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))),b(t,o)}var f2=$e('<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 $f(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=f2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i))),b(t,o)}var v2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),g2=L('<span class="text svelte-1yhs2ga"> </span>'),h2=L('<span class="text count svelte-1yhs2ga"> </span>'),_2=L("<!> <!>",1),b2={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 cd(t,e){var de,Le,Me;U(e,!0),W(t,b2);let[i,o]=Oe(),n=()=>S(w,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),u=f(e,"duration",3,0),v=f(e,"timeCodes",19,()=>[]),$=Ce(),p=(Le=(de=$.callbacks)==null?void 0:de.onEpisodeChanged)!=null?Le:m2,_=!!((Me=$.callbacks)!=null&&Me.onEpisodeClicked),w=$.ui.currentGridType$,y=$.ui.episodes.openedByKeyboard$,C=$.ui.episodes.panelOpened$,T=$.ui.isMobile,E=$.ui.t,P=ee(void 0),A=ve=>{var Ae,se,N;if(!!((Ae=$.callbacks)!=null&&Ae.onEpisodeClicked)){let Re=ys(ve);y.set(Re),C.set(!0),(N=(se=$.callbacks)==null?void 0:se.onEpisodeClicked)==null||N.call(se,Re)}},I=ee(null),V=m(()=>l()/u());ze(()=>{var le;let ve=qc(r(V),u(),v());ve?((le=r(I))==null?void 0:le.time)!==ve.time&&(p(ve),B(I,fe(ve))):B(I,null)});let H=m(()=>{var ve;return((ve=r(I))==null?void 0:ve.text)||""}),Y=m(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&Fh(n(),"xl")?"COUNT":"SHORT"),O=m(()=>`${E("tooltip_episodes")}: ${r(H)}`),J=(ve,le,Ae)=>Pt(this,null,function*(){yield xo(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&le&&!Ae&&yt(()=>{y.set(!1),ve.focus()})});ze(()=>{J(r(P),a(),s())});var re=Ue(),Z=pe(re);{var me=ve=>{let le=m(()=>d()?"px-0":"");Vt(ve,{get className(){var Ae;return`w-max btn-full-opacity btn-jc-l ${(Ae=r(le))!=null?Ae:""}`},testId:"btn-episodes",click:A,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(O)},get ref(){return r(P)},set ref(Ae){B(P,fe(Ae))},children:(Ae,se)=>{var N=Ue(),Re=pe(N);{var ie=oe=>{var G=v2(),K=pe(G),Ve=h(K,!0);g(K);var Ne=M(K,2),Je=h(Ne);$f(Je,{}),g(Ne),k(()=>he(Ve,r(H))),b(oe,G)},Ge=oe=>{var G=_2(),K=pe(G);bf(K,{});var Ve=M(K,2);{var Ne=xe=>{var we=g2(),Be=h(we,!0);g(we),k(()=>he(Be,r(H))),b(xe,we)},Je=(xe,we)=>{{var Be=Ze=>{var ot=h2(),gt=h(ot,!0);g(ot),k(()=>he(gt,v().length)),b(Ze,ot)};R(xe,Ze=>{r(Y)==="COUNT"&&Ze(Be)},we)}};R(Ve,xe=>{r(Y)==="FULL"?xe(Ne):xe(Je,!1)})}b(oe,G)};R(Re,oe=>{d()?oe(ie):oe(Ge,!1)})}b(Ae,N)},$$slots:{default:!0}})};R(Z,ve=>{r(I)&&ve(me)})}b(t,re),z(),o()}import{debounceFn as by}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as I2,PlaybackState as ud,Player as k2,PredefinedQualityLimits as qr,VideoFormat as pd,clientChecker as E2}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as zn,getHighestQuality as P2,InterfaceLanguage as A2,isInvariantQuality as M2,isNonNullable as L2,loadVKLangPack as V2,Logger as R2,map as Xh,merge as D2,Observable as N2,Subject as Xc,Subscription as Tf,Tracer as B2,ValueSubject as O2,VideoQuality as H2,devNull as F2,now as U2}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as ns}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as $2,devNull as jt,now as Yt}from"@vkontakte/videoplayer-shared/es2015";import{addScript as y2,Subject as zo,clearVideoElement as x2}from"@vkontakte/videoplayer-shared/es2015";var Kh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var w2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Wc=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 zo,loadStarted$:new zo,loadEnded$:new zo,loadError$:new zo,ready$:new zo,slotRequested$:new zo,started$:new zo,timeRemained$:new zo,paused$:new zo,resumed$:new zo,ended$:new zo,empty$:new zo,skipped$:new zo,clicked$:new zo,closed$:new zo,error$:new zo};this.loadAdman=e=>(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Yt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Yt()]}),o())};y2(w2,e,this.loadTimeout).then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Yt()]}),window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Yt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Yt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Yt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Yt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Yt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Yt()]}),!d&&(window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Yt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Yt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Yt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Se(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Yt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Yt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Yt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Yt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:u={},duration:v,previewParam:$}=e,p,_=this.playerState&&Se(this.playerState.vsid);_&&(this.isVsidOriginal?p=_:p=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=$2(),C=(P=w?y:window.location.href)!=null?P:window.location.href,T=Rt(q(Rt(q({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:$}),p?{request_id:p}:{}),{duration:v,puid10:Kh(i,o),puid11:n?0:1});$||delete T.preview;let E={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(E),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(A){jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[Yt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Yt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adsState){this.log({message:"toggle play"});let i=Se(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Yt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,v,$,p;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Yt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(v=this.adman)==null||v.onCompleted(void 0),($=this.adman)==null||$.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&x2(this.videoElement),this.isDestroyed=!0}};var Qh=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 yf=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 Kc,{startTime:v,endTime:$}=u.parse(l);s.startTime=v,s.endTime=$}else if(l.trim()!==""){let u=new xf,{texts:v}=u.parse(l);s.texts=[...s.texts,...v]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Kc=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}},xf=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((v,$)=>{let p=s.indexOf($,d);return v===-1||v>p?p:v},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new Kc;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}},Gh=yf;import{isNonNullable as wf}from"@vkontakte/videoplayer-shared/es2015";var da,Pi,Sf=0,Cf=!1,jh="",Yh=(t,e=0,i=0)=>t<e&&t<i,Qc=(t,e=0,i=0)=>t>=e&&t<=i,S2=(t,e=0,i=0)=>t>e&&t>i,Zh=(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:v})=>Qc(t,u,v));let a=t>=Sf,s=t<Sf;if(Sf=t,s&&(Cf=!1),wf(da)&&Qc(t,da.startTime,da.endTime)&&jh===e.value)return da;if(!wf(Pi)&&(n!=null&&n.length)&&!Cf){Pi=n.find(({startTime:u,endTime:v})=>Qc(t,u,v)||a&&Yh(t,u,v)),da=void 0,!wf(Pi)&&n[n.length-1].endTime<t&&(Cf=!0);return}else{if(Qc(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return da=Pi,Pi=void 0,jh=e.value,da;(a&&S2(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||s&&Yh(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var Gc={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"},C2={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"},jc=t=>{var e,i;return(i=(e=Gc[t])!=null?e:Gc[C2[t]])!=null?i:void 0};import{Subscription as T2}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var Yc=class{constructor(e,i,o=new T2){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 Zc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Zc||{});var zr=t=>t!=null?t:0,Ja=(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))}},el=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 Jh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:v,previewThumbsData:$,uiConfig:p,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:H,additionalSettingsMenuItems:Y,additionalContextMenuItems:O,playPrevVideo:J,playNextVideo:re,looped:Z=!1,statistics:me,saveRate:de,internalsExposure:Le,playerView:Me})=>{var Wm,Km,Qm;let ve=Rt(q({},_),{configName:[...(Wm=_.configName)!=null?Wm:[],"ui"],isAudioDisabled:s,live:Rt(q({},(Km=_.live)!=null?Km:{}),{isLiveCatchUpMode:!!n})}),le=p,Ae=B2.createRootTracer(le.features.saveTraceInfoToFile),se=Ae.createComponentTracer("Store"),N=w||new k2(ve,Ae);Le==null||Le.expose({corePlayer:N});let Re=new R2,ie=new Wc(Re,{loadTimeout:le.ads.loadTimeout,initTimeout:le.ads.initTimeout,runtimeTimeout:le.ads.runtimeTimeout,useAdmanFromNPM:le.ads.useAdmanFromNPM,volumeMultiplier:le.ads.volumeMultiplier,isVsidOriginal:le.ads.isVsidOriginal}),Ge=Xs.getInstance(),oe=u==null?void 0:u.pictureInPictureApi,G=u==null?void 0:u.annotationsApi,K=Re.createComponentLog("Store"),Ve,Ne,Je={},xe=new xc,we=me&&me.oneStat?Zt(me.oneStat.vsid$):sr(void 0),Be=ue(_s()),Ze=ue(!1),ot=(Qm=oe==null?void 0:oe.info.isActive$)!=null?Qm:new O2(!1),gt=ue(0),et=ue([]),mt=D2(N.events.fatalError$,N.events.managedError$).subscribe(c=>et.update(x=>[...x,c])),kt=sr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Gt=c=>Pt(void 0,null,function*(){var ce;let x=Object.values(A2).includes(c);if(le.downloadVKLanguages&&(x&&le.updateBuiltinLanguages||!Ap(c))){let Qe;try{Qe=yield V2(c,Ng,Bg)}catch(xt){(ce=me==null?void 0:me.oneStat)==null||ce.logError({errorType:"VKLangPack",fatal:!1}),Ge==null||Ge.report(xt,{errorType:"VKLangPack",fatal:!1})}Qe&&(Pp({language:c,pack:Qe,fallback:le.defaultLanguage}),zt.set(c))}Ap(c)&&zt.set(c)}),zt=ue(t),Kt=ue(e);Gt(t);let ge=(c,x)=>{let D=Se(zt);return Mp(D,c,x,le.defaultLanguage)},j=ue("thumb"),Ie=(()=>{let c=yi([kt,j],([x,D])=>x?"crashed":D);return Rt(q({},c),{is:x=>Se(c)===x})})(),ae=(()=>{let c=ue(new Set(y));return Rt(q({},c),{add:x=>{c.update(D=>new Set([...D].concat(x)))},remove:x=>{c.update(D=>{let ce=[...D];return new Set(Array.isArray(x)?ce.filter(Qe=>!x.includes(Qe)):ce.filter(Qe=>Qe!==x))})},includes:x=>{let D=Se(c);return Array.isArray(x)?x.every(ce=>D.has(ce)):D.has(x)}})})();se.log("create store"),K({message:"create store"});let He=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),De=new MutationObserver(D=>{let{removedNodes:ce}=D[0];ce.length&&x.append(N.experimental.element$.getValue())}),De.observe(x,{childList:!0})},qe=c=>{K({message:`init video, config: ${JSON.stringify(c)}`}),C?He(c):(F2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[U2()]}),N.initVideo(c)),se.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Ve=c},tt=new Xc,lt=c=>tt.next(c),Ye=new Xc,Xe=new Xc,dt=new Xc,De=null,bt={actionRewind$:Ye,actionSeek$:Xe,inPiP$:ot,inFullscreen$:new N2(c=>Be.subscribe(x=>c.next(x))),actionSetSubtitle$:dt,nextMovie$:tt},We={actionSeek$:Xe};if(me){let{oneStat:c,thinOneStat:x,statSubscription:D}=me;c&&(C||D.add(c.attachTo(N)),D.add(c.attachToUi(bt)),D.add(c.attachToAds(ie.events)),c.authorize(a).catch(ce=>{K({message:`onestat auth error ${String(ce)}`})})),x&&(D.add(x.attachTo(N)),D.add(x.attachToUi(We)),x.authorize(a))}if(Ge){let c=new Tf,x=(D,ce)=>c.add(D.subscribe(ce));if(x(N.events.managedError$,D=>{Ge.logIError(D)}),x(N.events.fatalError$,D=>{Ge.logIError(D,!0)}),me){let{oneStat:D}=me;D&&x(D.experimental.error$,ce=>{Ge.logIError(ce)})}Ge.sentrySubscription.add(c)}let Et=()=>{E2.device.isIOS&&Ne&&yh(Ne).catch(c=>{K({message:`exitIosSafariFullscreen failed: ${c}`})})},ai=new Tf().add(N.experimental.element$.subscribe(c=>{c&&(Ne=c,c.classList.add("player-media"),ea(oe)&&(oe.updateVideoElement(),oe.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Et(),(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(()=>Pt(void 0,null,function*(){var x,D;ea(oe)&&(yield oe==null?void 0:oe.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(D=Je.onStarted)==null||D.call(Je,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var D;(D=l==null?void 0:l.onSeek)==null||D.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 D;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((D=l==null?void 0:l.onTimeupdate)==null||D.call(l,x,c),ie.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(()=>{Mt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Mt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&ae.add(Ol),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(ie.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(ie.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(ie.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(ie.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(ie.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(ie.events.started$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:D.call(x,c)})).add(ie.events.timeRemained$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:D.call(x,c)})).add(ie.events.ended$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:D.call(x,c)})).add(ie.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(ie.events.clicked$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:D.call(x,c)})).add(ie.events.closed$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:D.call(x,c)})).add(ie.events.error$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:D.call(x,c)})).add(ie.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(ie.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)})),ei=new Tf,li=()=>{var xt,Dt,Wt;let{debugLog:c}=le,x,D="#9df7b7",ce="#efd169";if(c&&c!==!0){let{colors:Nt}=c;x=c.tag,D=(xt=Nt==null?void 0:Nt[0])!=null?xt:D,ce=(Wt=(Dt=Nt==null?void 0:Nt[1])!=null?Dt:Nt==null?void 0:Nt[0])!=null?Wt:ce}let Qe=x?`: ${x}`:"";ei.add(N.events.log$.subscribe(Nt=>{console.debug(`%c sdk${Qe} `,`background:${D};`,`sdk component: ${Nt.component}`,Nt.message)})).add(Re.log$.subscribe(Nt=>{console.debug(`%c ui${Qe} `,`background:${ce};`,`ui component: ${Nt.component}.`,Nt.message)}))},Hi=()=>{ei.unsubscribe()},ji=(c,x)=>{se.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Fi=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},vo=(c,x,D)=>{se.log("move camera focus px",{xpx:c,ypx:x,dt:D}),N.moveCameraFocusPX(c,x,D)},Do=()=>{N.holdCamera()},nt=()=>{N.releaseCamera()},ht=sr(N.info.position$.getValue(),c=>{let x,D,ce=()=>{let Qe=N.info.playbackState$.getValue(),xt=N.info.isLive$.getValue(),Dt=N.info.duration$.getValue(),Wt=N.info.position$.getValue();if(Qe&&[ud.PLAYING,ud.PAUSED].includes(Qe)){let Nt=xt?Wt-Dt:N.getExactTime();Nt!==D&&c(Nt),D=Nt}x=requestAnimationFrame(ce)};return ce(),()=>cancelAnimationFrame(x)}),Si=Zt(N.info.playbackState$),X=Zt(N.info.currentBuffer$),ti=Zt(N.info.isEnded$),di=Zt(N.info.isLive$),Ui=le.features.playbackRate?Zt(N.info.canChangePlaybackSpeed$):sr(!1),ni=Zt(N.info.liveBufferTime$),gi=Zt(N.info.volume$),ci=Zt(N.info.muted$),ut=wc(N.info.predefinedQualityLimitType$.pipe(Xh(c=>c===qr.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===qr.TRAFFIC_SAVING),go=wc(N.info.predefinedQualityLimitType$.pipe(Xh(c=>c===qr.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===qr.HIGH_QUALITY),St=Zt(N.info.autoQualityLimitingAvailable$),qt=Zt(N.info.availableQualities$),ii=Zt(N.info.availableQualitiesFps$),eo=Zt(N.info.chromecastState$),Wn=Zt(N.info.chromecastDeviceName$),zi=Zt(N.info.currentFormat$),To=Zt(N.info.throughputEstimation$),ui=Zt(N.info.videoBitrate$),Ct=Zt(N.info.intrinsicVideoSize$),ho=Zt(N.info.duration$),No=Zt(N.info.isAudioAvailable$),pi=null,Io=N.info.isBuffering$,to=sr(Io.getValue(),c=>{let x=Io.subscribe(D=>{D&&pi===null?pi=window.setTimeout(()=>{c(Io.getValue()),pi=null},le.loaderDelay):c(D)});return()=>{x.unsubscribe(),pi&&clearTimeout(pi)}}),ko=()=>{pi&&clearTimeout(pi),pi=null},Bo=yi([ho,di],([c,x])=>x?-c:c),Tn=yi([Si],([c])=>c===ud.PLAYING),Ni=Zt(N.info.atLiveEdge$),In=Zt(N.info.atLiveDurationEdge$),io=Zt(N.info.position$),Eo=yi([io,ho],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Sr=yi([eo],([c])=>c===I2.CONNECTED),lr=Zt(N.info.availableVideoStreams$),kn=le.features.audioLanguages?Zt(N.info.availableAudioStreams$):sr([]),Kn=Zt(N.info.currentVideoStream$),Qn=Zt(N.info.currentAudioStream$),_o=c=>{c.language&&Ep(c.language),N.setVideoStream(c)},pn=c=>{c.language&&Ep(c.language),N.setAudioStream(c)},En=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 D=ah();return D&&(x=c.find(({language:ce})=>D===ce)),x!=null||(x=c.at(0)),x},rt=!1;ai.add(N.info.availableAudioStreams$.subscribe(c=>{if(!rt&&c.length){let x=En(c);x&&(N.setAudioStream(x),rt=!0)}}));let Pn=!1;ai.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Pn&&c.length){let x=En(c);x&&(N.setVideoStream(x),Pn=!0)}}));let Wo=ue(void 0),Ko=Zt(N.info.isAutoQualityEnabled$,c=>c&&Wo.set(void 0)),Cr=Zt(N.info.currentQuality$,()=>Wo.set(void 0)),Qo=yi([Wo,Cr],([c,x])=>c!=null?c:x),An=yi(zi,c=>c!==pd.MPEG),Gn=yi([qt,ii,Ko,Qo,An],([c,x,D,ce,Qe])=>{let xt=[];Qe&&xt.push({value:"auto",displayValue:ge("auto_quality_option"),selected:D});let Dt=c.filter(Wt=>!M2(Wt));for(let Wt of Dt){let Nt=x[Wt];xt.push({value:Wt,displayValue:`${Wt}${Nt?Qh(Nt):""}`,selected:D?!1:Wt===ce})}return xt}),Mn=Zt(N.info.currentPlaybackRate$),Go=yi([Mn,Ni,In],([c,x,D])=>{let ce=D||C?1:le.controls.playbackRateMin,Qe=x?1:le.controls.playbackRateMax,xt=le.controls.playbackRateStep,Dt=[];for(let Wt=ce;Wt<=Qe;Wt+=xt)Dt.push({value:Wt,displayValue:Wt===1?ge("playback_rate_1"):ge("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Dt}),qi={displayValue:ge("subtitles_off"),value:"off"},oo=ue(q({},qi)),Po=le.features.subtitles?Zt(N.info.availableTextTracks$):sr([]),fn=Xg(),jo=yi([Po,oo],([c,x],D)=>{var xt;let ce=[],Qe=c.find(({id:Dt})=>Dt===x.value);if(Qe!=null&&Qe.url){let[,Dt]=(xt=fn.find(Qe.url))!=null?xt:[];if(Dt){D(Dt);return}xe.download(Qe.url).then(Wt=>{if(!Wt||xe.isDestroyed())return;let Nt=new Gh,ds=Qe.language;if(ds){let U1=!!Qe.isAuto,z1=Nt.parse(Wt,ds);ce.push({lang:ds,subtitles:z1,isAuto:U1,id:Qe.id})}fn.add(Qe.url,ce),Se(oo).value===x.value&&D(ce)}).catch(Wt=>{var Nt;(Nt=me==null?void 0:me.oneStat)==null||Nt.logError({errorType:"Subtitles download",fatal:!1}),Ge==null||Ge.report(Wt,{errorType:"Subtitles download",fatal:!1})})}D(ce)}),Yo=yi([Mn,Tn,oo],([c,x,D],ce)=>{let Dt;if(N.info.isLive$.getValue()&&x&&D.value!==qi.value){let Nt=()=>{let ds=1e3/(3*c);Dt=setTimeout(Nt,ds),ce(Date.now())};return Nt(),()=>clearTimeout(Dt)}}),Ai=yi([Po,oo],([c,x])=>{if(!c.length)return[];let D=[];for(let{language:ce,isAuto:Qe,id:xt}of c){let Dt=ce&&jc(ce);ce&&Dt&&D.push({displayValue:Qe?ge("subtitles_auto",{language:Dt}):Dt,value:xt,selected:(x==null?void 0:x.value)===xt,isAuto:Qe})}return D.length?(D.unshift(Rt(q({},qi),{selected:(x==null?void 0:x.value)===qi.value})),D):[]}),Oo={available:[],prev:[]},Ao=()=>{var x,D;let c=N.experimental.getCurrentTime$.getValue();return(D=(x=c==null?void 0:c())!=null?x:Ne==null?void 0:Ne.currentTime)!=null?D:0},dr=yi([ht,oo,jo,Yo],([c,x,D,ce])=>{var xt;let Qe=N.info.isLive$.getValue();if(Qe&&Oo.prev!==D){let Dt=D.find(({id:Nt})=>Nt===x.value),Wt=Oo.prev.find(({id:Nt})=>Nt===x.value);if(Dt){let Nt=Rt(q({},Dt),{subtitles:[...(xt=Wt==null?void 0:Wt.subtitles)!=null?xt:[],...Dt.subtitles]});Oo.available=[Nt],Oo.prev=D}}if(x&&x.value!==qi.value){let Dt=Qe?Ao():c,Wt=Qe?Oo.available:D;return Zh(Dt,x,Wt,Qe)}}),mn=yi([dr],([c])=>c!=null&&c.texts?c.texts:[]);ai.add(oo.subscribe(c=>{var x,D;if(c.value===qi.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ce=Object.entries(Gc).find(([Qe,xt])=>xt===c.displayValue);(D=l==null?void 0:l.onSubtitleOn)==null||D.call(l,ce?ce[0]:"")}}));let vn=ue(!0),Tr=yi([X,Bo,io,ni],([c,x,D,ce])=>{var Wt;let Qe=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!ce)return Qe/x;let Dt=-D+ce-x;return(Qe-Dt)/x}),Ho=Zt(N.info.availableSources$),Ir=yi([Ho],([c])=>Object.keys((c==null?void 0:c[pd.MPEG])||{}).length>0),Ln=()=>{var D,ce,Qe;let c=Object.keys(((ce=(D=N.info.availableSources$)==null?void 0:D.getValue())==null?void 0:ce[pd.MPEG])||{}),x=P2(c)||H2.Q_144P;return(Qe=Ve.sources[pd.MPEG])==null?void 0:Qe[x]},jn=()=>{var x;let c=Ln();if(c)se.log("download video",{url:c}),jg(c,((x=Ve==null?void 0:Ve.meta)==null?void 0:x.title)||"video");else{let D="There is no URL for download video";se.log("download video",{message:D}),K({message:D})}},cr=()=>{K({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Mo(fi()):Ci(!c)},kr=()=>{var c;if(Mt.ui.settingsMenu.visible$.set(!1),!Se(Mt.ui.settingsSubMenu.visible$)){let x=Se(Mt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ce=el(x),Qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ce,position:Qe,name:"settings"})}}se.log("close settings menu")},Yn=(c,x=()=>Promise.resolve())=>Pt(void 0,null,function*(){var Qe;Mt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Mt.ui.settingsMenu.visible$.set(!0),yield x();let D=Se(Mt.ui.settingsMenu.ref$),ce=Ms();if((Qe=l==null?void 0:l.uiInfo)!=null&&Qe.onSettingsMenu&&D&&ce){let Dt=el(D),Wt=Ja(D,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:Wt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),gn=(c,x=!1)=>{var xt;Mt.ui.settingsSubMenu.visible$.set(!1);let D=Se(Mt.ui.settingsMenu.ref$),ce=Ms(),Qe=Se(Mt.ui.settingsMenu.visible$);if((xt=l==null?void 0:l.uiInfo)!=null&&xt.onSettingsMenu&&D&&ce)if(Qe&&!x){let Wt=el(D),Nt=Ja(D,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Nt,name:"settings"})}else{let Wt=el(c),Nt={top:0,left:0,bottom:0,right:0},ds=Se(Mt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Nt,name:ds})}se.log("close settings sub menu")},Er=(c,x)=>{var ce;Mt.ui.settingsSubMenu.visible$.set(!0),Mt.ui.settingsSubMenu.ref$.set(x),Mt.ui.settingsSubMenu.name$.set(c);let D=Ms();if((ce=l==null?void 0:l.uiInfo)!=null&&ce.onSettingsMenu&&x&&D){let xt=el(x),Dt=Ja(x,D);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:xt,position:Dt})}se.log("open settings sub menu",{name:c})},fi=()=>{var x;let c=Math.max(le.volumeMinRestore,(x=Sc())!=null?x:0);return c===0?le.volumeDefault:c},Mo=c=>{let x=c===0?fi():c,D=N.info.muted$.getValue();K({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),D&&c>0&&!s&&(D=!1,Ip(!1)),N.setVolume(c,D),ie.setVolume(c),xp(x)},Ci=c=>{let x=N.info.volume$.getValue();if(K({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c),ie.setVolume(c?0:x),Ip(c),!c&&x===0){let D=fi();N.setVolume(D),xp(D),ie.setVolume(D)}},Zn=ue(!1),pt=c=>{var x,D;se.log("set looped",{isLooped:c}),Zn.set(c),N.setLooped(c),(D=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||D.call(x,c)};pt(Z);let Ot=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Mi=(c,x=!1)=>{var D;K({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),Mt.ui.autoplayNextEnabled$.set(c),ch(c),x&&((D=l==null?void 0:l.onSetAutoplayNextEnabled)==null||D.call(l,c))},Lo=c=>{K({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),Mt.ui.timerNextVideoRunning$.set(c)},st=(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(Qe){K({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&mi("prev")||J()},Qt=(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(Qe){K({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&mi("next")||re()},mi=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:D,playbackStatusShow:ce}}=le;return D&&ce&&!x?(Mt.ui.aboutToGoNextVideo.set(c),Mt.ui.userActionsDisabled.set(!0),!0):!1},Yi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Zi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Li=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},xi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Xi=()=>{N.prepare()},Ti=()=>{zn(Mt);let c=Se(Mt.ui.controls.disabledControls$),x=Se(Mt.playerPhase),D={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(K({message:"toggle play"}),x==="ads"){D.action="play",se.log("toggle adman play",D),ie.togglePlay();return}let ce=()=>{var xt;K({message:"toggle play, call player.play"}),D.action="play",N.play(),(xt=l==null?void 0:l.onPlay)==null||xt.call(l)},Qe=()=>{var xt;K({message:"toggle play, call player.pause"}),D.action="pause",N.pause(),(xt=l==null?void 0:l.onPause)==null||xt.call(l)};if(N.info.isEnded$.getValue()){if(K({message:"toggle play, video ended, seek to 0"}),Ye.next(),Xe.next(ns.REWIND),C){P==null||P();return}N.seekTime(0),ce()}else N.info.playbackState$.getValue()!==ud.PLAYING?ce():Qe();se.log("toggle play",D)},no=(c,{changeReason:x="default",appliesTo:D="to-video"}={})=>{K({message:`set quality, quality: ${c}`}),se.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(le.features.qualityDetailsSubMenuEnabled?(Cc({type:"exact_quality",quality:c,videoId:i},D),Fl(),N.setPredefinedQualityLimits(qr.UNKNOWN)):wp(i,c),Wo.set(c),N.setQuality(c)):le.features.qualityDetailsSubMenuEnabled?x==="default"&&(ur("auto_quality",D),Se(ut)&&Wi(!1),Se(go)&&hn(!1)):Fl()},Wi=(c,x="as-default")=>{K({message:`set trafficSavingEnabled, value: ${c}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:c});let D=c?qr.TRAFFIC_SAVING:qr.UNKNOWN;le.features.qualityDetailsSubMenuEnabled?(Xn(D,x),Hl(!1)):(N.setPredefinedQualityLimits(D),Hl(c))},hn=(c,x="as-default")=>{K({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),Xn(c?qr.HIGH_QUALITY:qr.UNKNOWN,x)},Xn=(c,x)=>{c!==qr.UNKNOWN&&(Se(St)&&!Se(Ko)&&no("auto",{appliesTo:x,changeReason:"limit-changed"}),ur(c,x)),N.setPredefinedQualityLimits(c)},ur=(c,x)=>{Cc({type:c,videoId:i},x),x==="as-default"&&Cc({type:c,videoId:i},"to-video")},Jn=c=>{se.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),le.features.saveRate&&de&&!N.info.isLive$.getValue()&&lh(c)},Pr=()=>{let c=Se(Go),x=c.findIndex(({selected:ce})=>ce);if(x===c.length-1)return;let D=c[x+1];Jn(D.value)},pr=()=>{let c=Se(Go),x=c.findIndex(({selected:ce})=>ce);if(x===0)return;let D=c[x-1];Jn(D.value)},_n=(c=Rt(q({},qi),{selected:!1}))=>{se.log("set subtitles",q({},c)),c&&c.value!==qi.value&&dt.next(c.isAuto?c.value+"_auto":c.value),oo.set(c)},Vn=()=>{se.log("toggle subtitles");let c=Se(Ai),x=Se(oo),D=Se(zt);if((x==null?void 0:x.value)===qi.value){let ce=c.filter(Qe=>Qe.value!==qi.value).find(Qe=>Qe.value===D)||c[1];_n(ce)}else _n()},Zo=(c,x,D=!0)=>{var ce;if(K({message:`seek to time, time: ${c}`}),se.log("seek to time",{time:c,action:x,forcePrecise:D}),Xe.next(x),N.info.isLive$.getValue()){let Qe=N.info.duration$.getValue(),xt=Math.min(0,Qe+c);N.seekTime(xt,D)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(K({message:"seek after ended, call callbacks.onPlay"}),(ce=l==null?void 0:l.onPlay)==null||ce.call(l)),N.seekTime(qm(c),D)}},Xo=c=>{K({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),Zo(c,ns.EPISODE,!0)},er=(c,x)=>{K({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:x});let D=Se(Bo)*c;Zo(D,x,!1)},Ar=c=>{K({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),Xe.next(ns.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Mr=c=>{var ce,Qe;let x=(ce=c.max)!=null?ce:"none",D=(Qe=c.min)!=null?Qe:"none";K({message:`set auto quality limitation. Max: ${x}. Min: ${D}`}),se.log("set auto quality limits",{max:x,min:D}),N.setAutoQualityLimits(c)},fr=c=>{K({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),Zo(c,ns.EPISODE,!0)},bo=c=>{K({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Rn=ue(void 0),tr=ue(!1),Lr=c=>{K({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),tr.set(!0),ct(c)},ct=c=>{Rn.set(c)},Ht,Vi,ye=()=>{Rn.set(void 0),tr.set(!1)},Tt=()=>{clearTimeout(Vi),clearTimeout(Ht),Ht=window.setTimeout(()=>{ye()},500),Ne==null||Ne.removeEventListener("seeked",Tt)},hi=c=>{K({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),er(c,ns.SLIDER),Se(Mt.ui.isMobile)&&Se(Mt.state.currentFormat$)===pd.HLS?(Ne==null||Ne.addEventListener("seeked",Tt),Vi=window.setTimeout(()=>{Tt()},300)):ye()},Ii=yi([ht,Bo,Rn],([c,x,D],ce)=>{ce(L2(D)?D*x:c)}),ro=ue(!1),vi=()=>{ro.set(!0)},ke=()=>{ro.set(!1)},At=ue({width:0,height:0}),Xt=yi([At],([{width:c}],x)=>{let D=Uh(c);x(D)}),wi=ue(!1),oi=H.filter(c=>Yg(c)),Vr=yi([Xt,wi],([c,x])=>x?oi.filter(D=>!D.hideOnMobile):oi.filter(D=>{var ce;return!((ce=D.hideOnDesktopGridTypes)!=null&&ce.includes(c))})),Ji=ue(H.filter(c=>Zg(c))),Rr=yi([Ji,Xt],([c,x])=>c.filter(D=>{var ce;return!((ce=D.hideOnDesktopGridTypes)!=null&&ce.includes(x))})),ks=yi([Rr,Vr],([c,x])=>[...le.features.additionalButtonsDesktopControlPanelRight?c.filter(D=>D.type==="desktop-control-panel-right"):[],...le.features.additionalButtons?x.map((D,ce)=>{var Qe;return{id:ce,weight:ce,type:"desktop-control-panel-right",testId:D.testId,icon:D.iconUrl,onClick:D.onClick,ariaLabel:(Qe=D.ariaLabel)!=null?Qe:D.tooltip,tooltipText:D.tooltip}}):[]]),Jo=ue(Y),ba=yi([Jo],([c])=>le.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Rt(q({},x),{onClick:x.onChangeEnabled}):x):[]),Es=(c,x)=>{let D=Se(Ji).map(ce=>ce.id!==c?ce:q(q({},ce),x));Ji.set(D)},al=c=>{let x=Se(Ji);if(x.some(D=>D.id===c.id)){K({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ji.set(x)},$a=c=>{let x=Se(Ji);if(!x.some(D=>D.id===c)){K({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),Ji.set(x)},ll=c=>{Xe.next(ns.LIVE),K({message:"live switch to low latency "+c}),se.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Ps=(c,x)=>{let D=Se(Jo).map(ce=>ce.id!==c?ce:q(q({},ce),x));Jo.set(D)},dl=c=>{let x=Se(Jo);if(x.some(D=>D.id===c.id)){K({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Jo.set(x)},ya=c=>{let x=Se(Jo);if(!x.some(D=>D.id===c)){K({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),Jo.set(x)},ir=ue(O),As=yi([ir],([c])=>le.features.additionalContextMenuItems?c:[]),$t=(c,x)=>{let D=Se(ir).map(ce=>ce.id!==c?ce:q(q({},ce),x));ir.set(D)},_t=c=>{let x=Se(ir);if(x.some(D=>D.id===c.id)){K({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ir.set(x)},so=c=>{let x=Se(ir);if(!x.some(D=>D.id===c)){K({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),ir.set(x)},Fo=yi([wi,kt],([c,x],D)=>{D(c&&x)}),ao=()=>{Xe.next(ns.LIVE),K({message:"switch to active live"}),se.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ud.PLAYING&&Mt.actions.internal.togglePlay()},ri=()=>{se.log("skip adman"),ie.skip()},Bi=(c=!0)=>{zn(Mt),K({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),j.set("video"),c&&N.play()},ls=()=>{zn(Mt),K({message:"switch from video to ads"}),se.log("switch from video to ads"),Mt.actions.internal.pause(),Et(),j.set("ads")},cl=c=>{zn(Mt);let x=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:x}),j.set(x)},Ud=c=>{zn(Mt);let x=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:x}),j.set(x)},_u=c=>{zn(Mt);let x=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:x}),j.set(x)},zd=()=>(zn(Mt),se.log("get debug text data"),Qg(N,Ve,Mt)),bu=()=>(zn(Mt),JSON.stringify(Ae.getFinishedSpans())),qd=()=>(zn(Mt),Gg(N,Ve,Mt)),Ms=()=>Ne,Wd=()=>{K({message:"toggle chromecast"}),se.log("toggle chromecast"),N.toggleChromecast()},Kd=c=>{var D;if(zn(Mt),N.info.isEnded$.getValue())return;let x=!c;if(Se(Mt.playerPhase)==="ads"){K({message:`pause ads, internalCall: ${x}`}),se.log("pause ads",{internalCall:x}),ie.pause();return}K({message:`pause video, internalCall: ${x}`}),se.log("pause video",{internalCall:x}),x&&((D=l==null?void 0:l.onPause)==null||D.call(l)),N.pause()},ul=c=>{var D;zn(Mt);let x=!c;if(Se(Mt.playerPhase)==="ads"){K({message:`play ads, internalCall: ${x}`}),se.log("play ads",{internalCall:x}),ie.play();return}K({message:`play video, internalCall: ${x}`}),se.log("play video",{internalCall:x}),x&&((D=l==null?void 0:l.onPlay)==null||D.call(l)),N.play()},$u=c=>{zn(Mt);let x=!c;if(Se(Mt.playerPhase)==="ads"){K({message:"player cannot be stopped during ads via external method"});return}K({message:`player will be stopped, internalCall: ${x}`}),A==null||A()},pl=(c,x)=>{zn(Mt),K({message:`first start, show ads: ${c}, internalCall: ${!x}`}),se.log("first start",{showAds:c,external:x}),c?j.set("ads"):(j.set("video"),x?N.play():Mt.actions.internal.togglePlay())},fl=()=>(K({message:"getting time codes"}),v),Qd=()=>{let c=fl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(D=>D.time>x)},yu=c=>{let x=c;x||(x=Qd());let D=N.info.position$.getValue();se.log("seek to next episode",q({currentTime:D},x)),x&&(K({message:"seek to next episode"}),Zo(x.time,ns.EPISODE,!0))},Ke=()=>{let c=fl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),D=c.findIndex(Qe=>Qe.time>x),ce=D===-1?c.length-2:D-2;if(!(ce<0))return c[ce]},si=c=>{let x=c;x||(x=Ke());let D=N.info.position$.getValue();se.log("seek to prev episode",q({currentTime:D},x)),x&&(K({message:"seek to prev episode"}),Zo(x.time,ns.EPISODE,!0))},en=()=>(K({message:"getting preview thumbs data"}),se.log("get preview thumbs data",q({},$)),$),Ls=()=>Pt(void 0,null,function*(){let c=oe==null?void 0:oe.isActive(),x="none";oe!=null&&oe.isActive()?(x="remove",yield oe==null?void 0:oe.remove()):(x="request",yield oe==null?void 0:oe.request()),se.log("toggle picture in picture",{isActive:c,action:x})}),tn=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),gt.update(x=>x+c)},Gd=ue([]);T==null||T.subscribe(c=>{let x=[];for(let D=0;D<c.length;D++){let{range:[ce,Qe],subjects:xt}=c[D];D===0&&ce!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ce/1e3,text:"",interactive:!0,completed:le.features.interactiveTimeOpenUri?!xt.length||xt.every(Dt=>Dt.isRemoved):!xt.length}),Qe!==1/0&&x.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}Gd.set(x)});let O1=ue(!1);E==null||E.subscribe(c=>{c&&Se(tr)&&ye()});let qm=c=>{if(!C)return c;let x=Se(Gd),D=Se(Bo),Qe=Se(io)/D,xt=x.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>Qe);return typeof(xt==null?void 0:xt.time)=="number"?Math.min(c,xt.time-.05):c},H1=()=>{Mt.ui.episodes.panelOpened$.set(!1)},F1=()=>{se.log("destroy store"),clearTimeout(Vi),clearTimeout(Ht),ai.unsubscribe(),ei.unsubscribe(),N.destroy(),ie.destroy(),me==null||me.destroy(),Ge==null||Ge.destroy(),mt.unsubscribe(),De==null||De.disconnect(),De=null,xe.destroy()},Mt={interfaceLanguage$:zt,isCyrillicRelatedInterface$:Kt,initVideo:qe,videoId:i,isClip:o,playerPhase:Ie,vsid:we,state:{positionExact$:ht,positionWithScrubbing$:Ii,duration$:Bo,playbackState$:Si,isPlaying$:Tn,isLoaderVisible:to,bufferedProgress$:Tr,isLive$:di,canChangePlaybackSpeed$:Ui,isActiveLive$:Ni,isOldestAvailableLive$:In,isRewindableLive$:Eo,isEnded$:ti,muted$:ci,volume$:gi,trafficSavingEnabled$:ut,highQualityEnabled$:go,autoQualityLimitingAvailable$:St,availableVideoStreams$:lr,availableAudioStreams$:kn,videoStream$:Kn,audioStream$:Qn,currentQuality$:Qo,isAutoQualityEnabled$:Ko,availableQualities$:Gn,currentPlaybackRate$:Mn,availablePlaybackRates$:Go,currentSubtitle$:oo,availableTextTracks$:Po,availableSubtitlesList$:Ai,currentSubtitleCaptions$:mn,isAutoSubtitleCaptionVisible$:vn,chromecastState$:eo,chromecastDeviceName$:Wn,chromecastConnected$:Sr,currentFormat$:zi,throughputEstimation$:To,videoBitrate$:ui,videoSize$:Ct,errorLog$:et,crashed$:kt,isAudioAvailable$:No,isAudioDisabled:!!s,canDownload:le.features.download&&!!d,availableSources$:Ho,hasMpegSources$:Ir,isInteractive:C,showInteractiveGraph:le.features.interactiveGraph,showSeekToInteractive:le.features.seekToInteractive,showPlayPrevChapter:le.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:le.features.interactiveTimeIndicator&&!!Se(Gd).length,interactiveEpisodes$:Gd,isInteractiveTime$:E?Zt(E):ue(!1),isInteractiveExpectation$:O1,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Zn,loadedMetadata$:ue(!1),isAutoQualityAvailable$:An},ui:{t:ge,controlsVisible:ue(!1),touched:ue(!1),controls:{prevButton:ue(void 0),playButton:ue(void 0),replayButton:ue(void 0),nextButton:ue(void 0),playPrevChapterButton:ue(void 0),seekToInteractiveButton:ue(void 0),interactiveGraphButton:ue(void 0),liveButton:ue(void 0),time:ue(void 0),episodes:ue(void 0),volume:ue(void 0),subtitles:ue(void 0),settings:ue(void 0),context:ue(void 0),chromecast:ue(void 0),pip:ue(void 0),fullscreen:ue(void 0),vkLogo:ue(void 0),interactiveTimeIndicator:ue(void 0),timeline:ue(void 0),autoplayNextToggle:ue(void 0),additionalButtons:H.length?H.reduce(c=>[...c,ue(void 0)],[]):[],disabledControls$:ae},modals:{hotKeyMap:{show:ue(!1),data:ue({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Be,isFullscreenOpenedByKeyboard:Ze,rotateAlpha:gt,isAutoplay:ue(!1),debugPanelVisible:ue(!1),episodes:{panelOpened$:ue(!1),openedByKeyboard$:ue(!1)},contextMenu:{visible$:ue(!1),btnRef$:ue(void 0),openedByBtnKeyboard$:ue(!1),openedByHotKey$:ue(!1),lastActiveElem$:ue(void 0),showContextMenuBtn$:ue(!1),position$:ue({top:0,left:0})},playerSize:At,isMobile:wi,mobileNotReportControlHidden$:Fo,mobileUnmuteButtonExpanded:ue(!1),mobileUnmuteButtonVisible:ue(!1),icon3DVideoVisible:ue(!1),scrubbingInProgress:tr,volumeChangingInProgress:ro,is3DVideo:ue(!1),currentGridType$:Xt,additionalButtonsDeprecated$:Vr,additionalDesktopControlPanelRightButtons$:ks,additionalSettingsMenuItems$:ba,additionalContextMenuItems$:As,interactiveHideMobileControls:ue(!1),overlayContainer$:ue(void 0),startedByKeyboard$:ue(!1),autoplayNextEnabled$:ue(!1),timerNextVideoRunning$:ue(!0),settingsMenu:{visible$:ue(!1),ref$:ue(void 0),openedByBtnKeyboard$:ue(!1)},settingsSubMenu:{visible$:ue(!1),ref$:ue(void 0),name$:ue(void 0)},aboutToGoNextVideo:ue(void 0),userActionsDisabled:ue(!1)},ads:{position:ue(0),duration:ue(0),playbackState:ue("inactive"),canSkip:ue(!1),secondsToWatchBeforeSkip:ue(0),postrollPassed:ue(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:G},actions:{internal:{preload:Xi,firstStart:c=>pl(c,!1),play:()=>ul(!1),pause:()=>Kd(!1),togglePlay:Ti,toggleMuted:cr,openSettingsMenu:Yn,closeSettingsMenu:kr,openSettingsSubMenu:Er,closeSettingsSubMenu:gn,setVolume:Mo,startVolumeChanging:vi,stopVolumeChanging:ke,setVideoStream:_o,setAudioStream:pn,setQuality:no,setTrafficSavingEnabled:Wi,setHighQualityEnabled:hn,setPlaybackRate:Jn,incrementPlaybackRate:Pr,decrementPlaybackRate:pr,setSubtitle:_n,toggleSubtitle:Vn,togglePictureInPicture:Ls,startScrubbing:Lr,progressScrubbing:ct,completeScrubbing:hi,toggleChromecast:Wd,switchToActiveLive:ao,switchFromAdsToVideo:Bi,switchFromVideoToAds:ls,skipAd:ri,setLiveWaitingStart:cl,setLiveWaitingRecover:Ud,setLiveWaitingRecord:_u,getDebugTextData:zd,getTraceTextData:bu,getDebugPanelData:qd,getVideoElement:Ms,seekTime:(c,x,D)=>Zo(c,x,D),clearDelayedBufferingCheckTimeout:ko,seekEpisodeStartTime:Xo,seekToPercent:er,getNextEpisode:Qd,seekToNextEpisode:yu,getPrevEpisode:Ke,seekToPrevEpisode:si,startLogging:li,stopLogging:Hi,startCameraManualRotation:ji,stopCameraManualRotation:Fi,moveCameraFocusPX:vo,holdCamera:Do,releaseCamera:nt,getVideoEpisodes:fl,getPreviewThumbsData:en,downloadVideo:jn,addLanguage:Pp,setLanguage:Gt,nextMovie:lt,videoRotate:tn,correctSeekTimeToInteractive:qm,replayInteractive:P,setLooped:pt,reportProblem:Ot,setAutoplayNextEnabled:Mi,setTimerNextVideoRunning:Lo,prevVideoClick:st,nextVideoClick:Qt,nextVideoAnnouncementShow:Yi,nextVideoAnnouncementClick:Zi,nextVideoAnnouncementAuto:Li,nextVideoAnnouncementCancel:xi},external:{firstStart:c=>pl(c,!0),play:()=>ul(!0),pause:()=>Kd(!0),stop:()=>$u(!0),seekTime:c=>Ar(c),seekEpisodeStartTime:c=>fr(c),setPlaybackRate:c=>bo(c),setAutoQualityLimits:c=>Mr(c),setMuted:Ci,toggleSubtitle:Vn,setVolume:Mo,returnFocusToEpisodes:H1,updateAdditionalSettingsItem:Ps,addAdditionalSettingsItem:dl,removeAdditionalSettingsItem:ya,updateAdditionalContextItem:$t,addAdditionalContextItem:_t,removeAdditionalContextItem:so,updateAdditionalButton:Es,addAdditionalButton:al,removeAdditionalButton:$a,setLiveLowLatency:ll}},callbacks:l,setUiCallbacks:c=>{Je=q({},c)},getAdmanWrapper:()=>ie,getLogger:()=>Re,getPlayer:()=>N,destroy:F1};return Mt};function ca(t,e,i,o){var $;let n=["interactiveTimeIndicator"],a=($=e[i])==null?void 0:$.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:u,right:v}=Ja(e[i],t||void 0);return{left:s?l:0,right:s?v:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var tl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ca(t,i,n,o))};var Jc=(t,e,i)=>Pt(void 0,null,function*(){yield xo(),e&&i&&(i.focus(),t.set(!1))});var z2=$e('<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 If(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i))),b(t,o)}function kf(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Ce(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,v=d.ui.contextMenu.showContextMenuBtn$,$=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,_=ee(void 0);ze(()=>{r(_)&&yt(()=>{p.set(r(_))})});let w=E=>{let P=ys(E),A=Vh(r(_));$.set(A),u.set(P),l.set(!n())},y=()=>{v.set(!0)},C=()=>{v.set(!1)},T=m(()=>n()?"opened":"");Vt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(_)},set ref(E){B(_,fe(E))},children:(E,P)=>{If(E,{})},$$slots:{default:!0}}),z(),o()}var q2=t=>{t.stopPropagation()},W2=L("<div><!> <div></div> <div></div></div>"),K2={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 _f(t,e){U(e,!0),Q(t,e2);let i=f(e,"isMobile",3,!1),o=v(()=>e.iconState===Kh.CONNECTED),n=v(()=>e.iconState===Kh.CONNECTING);var a=He(),s=pe(a);{var d=u=>{var m=X$(),y=h(m),p=h(y),$=h(p);ye(),g(p);var w=A(p);ye(),g(y);var b=A(y),C=h(b),T=h(C);g(C),ye(),g(b),g(m),E(()=>{Ne($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),_(u,m)},l=u=>{var m=J$();let y;var p=h(m),$=A(h(p),5);let w;g(p),g(m),E((b,C)=>{y=ee(m,0,"svelte-8z1bf5",null,y,b),w=ee($,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),_(u,m)};B(s,u=>{i()?u(d):u(l,!1)})}_(t,a),z()}import{noop as i2}from"@vkontakte/videoplayer-shared/es2015";function ad(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,i2),s=Te().ui.t,d=v(()=>e.state===t2.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Rt(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)=>{_f(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var o2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),n2={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 bf(t,e){Q(t,n2);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),n=f(e,"translateXPx",3,0),a=f(e,"translateYPx",3,0),s=f(e,"leftOffset",3,0),d=f(e,"rightOffset",3,0),l=J(void 0),u=J(void 0);function m(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(()=>m(n()));var p=o2(),$=h(p);let w;var b=h($);ge(b,()=>{var C;return(C=e.children)!=null?C:oe}),g($),gt($,C=>D(u,C),()=>r(u)),g(p),gt(p,C=>D(l,C),()=>r(l)),E(C=>{st(p,`transform: translate(${r(y)}px, ${a()}px);`),w=ee($,1,"tooltip svelte-5ygsa2",null,w,C),st($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,p)}var qc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Qh=t=>!!(Math.round(Math.abs(t)/90)%2),Gh=t=>Math.abs(t)/90%4===1;var r2=L('<div class="preview svelte-1wqg760"></div>'),s2=L('<div class="time svelte-1wqg760"> </div>'),a2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),l2={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 $f(t,e){U(e,!0),Q(t,l2);let[i,o]=De(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=f(e,"time",3,""),l=f(e,"isMobile",3,!1),u=f(e,"videoEpisodes",19,()=>[]),m=f(e,"progress",3,0),y=f(e,"duration",3,0),p=f(e,"isInteractive",3,!1),$=Te(),w=$.ui.rotateAlpha,b=$.ui.playerSize,C=J(0),T=J(0),I=J(""),M=J(0),P=J(0),k=J(0),R=J(0),W=v(()=>qc(m(),y(),u())),j=v(()=>Qh(n())),F=v(()=>Gh(n())),G=v(se),ne=v(()=>(r(F)?1:-1)*(r(C)/2-r(T)/2)),X=v(()=>r(ne)*-1);Ue(()=>{(de=>(D(C,fe(de.width)),D(T,fe(de.height))))(Me())}),Ue(()=>{(de=>(D(I,fe(de.imgSrc)),D(M,fe(de.imgWidth)),D(P,fe(de.imgHeight)),D(k,fe(de.imgOffsetX)),D(R,fe(de.imgOffsetY))))(Le(m()))});function se(){var Oe;let de=l()?s.MOBILE:s.DESKTOP,{isVertical:_e}=ce(),te=30;return(Oe=r(W))!=null&&Oe.text&&(te+=16),(_e||r(j))&&(te+=18,te+=50),Math.min(Math.max(a().height-te,0),de)}function ce(){let de=e.previewThumbsData.frameWidth,_e=e.previewThumbsData.frameHeight,te=_e>de;return{width:de,height:_e,isHorizontal:!te,isVertical:te}}function Me(){let{height:de,isHorizontal:_e,isVertical:te,width:Oe}=ce();return _e&&(de=de/Oe*r(G),Oe=r(G)),te&&(Oe=Oe/de*r(G),de=r(G)),{width:Oe,height:de}}function Le(de){let _e;e.previewThumbsData.isUV?_e=Math.floor(y()*de/e.previewThumbsData.frequency):_e=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*de)));let te=Math.floor(_e/e.previewThumbsData.countPerImage),Oe=Math.floor(_e%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Ze=_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=-Ze*r(C),ut=-Oe*r(T);return{imgSrc:e.previewThumbsData.links[te],imgWidth:ke,imgHeight:ze,imgOffsetX:ct,imgOffsetY:ut}}var he=a2();let ae;var Pe=h(he);{var re=de=>{var _e=r2();E(()=>st(_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(R)}px;
229
+ transform: rotate(${n()}deg) ${r(j)?`translate(${r(ne)}px, ${r(X)}px)`:""};
230
+ `)),_(de,_e)};B(Pe,de=>{r(I)&&de(re)})}var V=A(Pe,2),we=h(V);{var be=de=>{var _e=He(),te=pe(_e);{var Oe=Se=>{var Re=Dr();E(ke=>ve(Re,ke),[()=>q("tooltip_episode_unfinished")]),_(Se,Re)},Ze=Se=>{var Re=Dr();E(()=>ve(Re,r(W).text||"")),_(Se,Re)};B(te,Se=>{p()&&r(W).completed===!1?Se(Oe):Se(Ze,!1)})}_(de,_e)};B(we,de=>{r(W)&&de(be)})}g(V);var qe=A(V,2);{var H=de=>{var _e=s2(),te=h(_e,!0);g(_e),E(()=>ve(te,d())),_(de,_e)};B(qe,de=>{p()||de(H)})}g(he),E(de=>{ae=ee(he,1,"timeline-preview svelte-1wqg760",null,ae,de),st(he,`width: ${r(j)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),_(t,he),z(),o()}var d2=L('<span class="time svelte-1jr6obn"> </span>'),c2=L("<!> <!>",1),u2={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 yf(t,e){var Qe,Ve,rt,et,_t;U(e,!0),Q(t,u2);let[i,o]=De(),n=()=>S(ne,"$interactiveEpisodes$",i),a=()=>S(k,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(ce,"$isInteractiveExpectation$",i),l=()=>S(se,"$isInteractiveTime$",i),u=()=>S(R,"$isLive$",i),m=()=>S(j,"$isMobile",i),y=()=>S(W,"$isActiveLive$",i),p=()=>S(M,"$bufferedProgress$",i),$=()=>S(he,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),b=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Te(),I=qt(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,k=T.state.duration$,R=T.state.isLive$,W=T.state.isActiveLive$,j=T.ui.isMobile,F=I.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,G=T.actions.internal.getPreviewThumbsData(),ne=T.state.interactiveEpisodes$,X=T.state.isInteractive,se=T.state.isInteractiveTime$,ce=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Le=(Qe=T.callbacks)==null?void 0:Qe.onDisabledTimelineClick,he=T.ui.controls.disabledControls$,ae=(rt=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:rt.onTimelineMouseEnter,Pe=(_t=(et=T.callbacks)==null?void 0:et.uiInfo)==null?void 0:_t.onTimelineMouseLeave,re=T.ui.t,V=I.features.interactiveResponsiveUi,we=v(()=>X?n():F),be=v(()=>pn(a())),qe=v(()=>pn(s())),H=v(()=>s()/a()),de=v(()=>d()||l()),_e=J(!1),te=J(""),Oe=J(0),Ze=J(0),Se=J(0),Re=v(()=>({containerWidth:r(Ze),translateXPx:r(Oe),translateYPx:X&&G?-36:-16,active:r(_e)&&w()&&!r(de)&&!V,pointer:!I.features.timelinePreview||!G||u()})),ke=re("aria_timeline"),ze=v(()=>re("aria_timeline_value",{position:r(qe),duration:r(be)}));function ct(it){return!Me||!X?it:Me(it*a())/a()}function ut(it){T.actions.internal.startScrubbing(ct(it))}function nt(it){l()||T.actions.internal.progressScrubbing(ct(it))}function St(it){T.actions.internal.completeScrubbing(ct(it)),D(_e,!1)}function mt(it,Xe,Qt){Mt(it,Xe,Qt),D(_e,!0)}function Kt(it,Xe,Qt){Mt(it,Xe,Qt),D(_e,!0)}function ni(){D(_e,!1)}function Mt(it,Xe,Qt){D(Se,fe(ct(it))),D(Oe,fe(Xe)),Qt&&D(Ze,fe(Qt)),D(te,fe(Bt(it)))}function Bt(it){let Xe=pn((u()?1-it:it)*a());return u()?`-${Xe}`:Xe}var O=c2(),$e=pe(O);bf($e,is(()=>r(Re),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(it,Xe)=>{var Qt=He(),bt=pe(Qt);{var Si=Ge=>{$f(Ge,{get time(){return r(te)},get isMobile(){return m()},get videoEpisodes(){return r(we)},previewThumbsData:G,get progress(){return r(Se)},get duration(){return a()},isInteractive:X})},ii=Ge=>{var Xt=d2(),Ri=h(Xt,!0);g(Xt),E(()=>ve(Ri,r(te))),_(Ge,Xt)};B(bt,Ge=>{I.features.timelinePreview&&G&&!u()?Ge(Si):Ge(ii,!1)})}_(it,Qt)},$$slots:{default:!0}}));var ie=A($e,2);let Be=v(()=>Math.round(r(H)*100)),je=v(()=>$().has("TIMELINE"));sa(ie,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return m()},ariaLabel:ke,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Be)},get ariaValueText(){return r(ze)},get loadedProgress(){return p()},get filledProgress(){return r(H)},get handleProgress(){return r(H)},get videoEpisodes(){return r(we)},onPointerDown:ut,onHandleMove:nt,onPointerMove:Kt,onPointerUp:St,onPointerEnter:mt,onPointerLeave:ni,onMouseEnter:ae,onMouseLeave:Pe,onDisabledClick:Le,isInteractive:X,get disabled(){return r(je)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(it){C(it)}}),_(t,O),z(),o()}var p2={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 ld(t,e){U(e,!0),Q(t,p2);let[i,o]=De(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Te(),l=d.ui.isMobile,u=d.ui.t,m=v(()=>pn(s())),y=v(()=>pn(a())),p=v(()=>a()/s()),$=v(()=>u("aria_timeline_value",{position:r(y),duration:r(m)})),w=v(()=>Math.round(r(p)*100));sa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var f2=L("<div><!></div>"),m2=L("<div></div>"),v2={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 aa(t,e){U(e,!0),Q(t,v2);let[i,o]=De(),n=()=>S($,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(b,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),u=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),y=f(e,"ref",15,void 0),p=Te(),$=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=He(),M=pe(I);{var P=R=>{var W=f2();let j;var F=h(W);{var G=X=>{ld(X,{get position(){return s()},get duration(){return d()}})},ne=X=>{yf(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(se){y(se)}})};B(F,X=>{l()?X(G):X(ne,!1)})}g(W),E(X=>j=ee(W,1,"timeline svelte-41cp6d",null,j,X),[()=>({withoutPadding:!m(),mobile:a()})]),_(R,W)},k=R=>{var W=m2();let j;E(F=>j=ee(W,1,"timeline-stub svelte-41cp6d",null,j,F),[()=>({mobile:a()})]),_(R,W)};B(M,R=>{r(T)?R(P):R(k,!1)})}_(t,I),z(),o()}import{noop as _2}from"@vkontakte/videoplayer-shared/es2015";var g2=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 xf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=g2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(3),g(o),E(()=>n=Ie(o,n,K({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 h2=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 wf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=h2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 b2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),$2=L('<span class="text svelte-1yhs2ga"> </span>'),y2=L('<span class="text count svelte-1yhs2ga"> </span>'),x2=L("<!> <!>",1),w2={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 dd(t,e){var ce,Me,Le;U(e,!0),Q(t,w2);let[i,o]=De(),n=()=>S(w,"$currentGridType$",i),a=()=>S(b,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),u=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),y=Te(),p=(Me=(ce=y.callbacks)==null?void 0:ce.onEpisodeChanged)!=null?Me:_2,$=!!((Le=y.callbacks)!=null&&Le.onEpisodeClicked),w=y.ui.currentGridType$,b=y.ui.episodes.openedByKeyboard$,C=y.ui.episodes.panelOpened$,T=y.ui.isMobile,I=y.ui.t,M=J(void 0),P=he=>{var Pe,re,V;if(!!((Pe=y.callbacks)!=null&&Pe.onEpisodeClicked)){let we=ys(he);b.set(we),C.set(!0),(V=(re=y.callbacks)==null?void 0:re.onEpisodeClicked)==null||V.call(re,we)}},k=J(null),R=v(()=>l()/u());Ue(()=>{var ae;let he=qc(r(R),u(),m());he?((ae=r(k))==null?void 0:ae.time)!==he.time&&(p(he),D(k,fe(he))):D(k,null)});let W=v(()=>{var he;return((he=r(k))==null?void 0:he.text)||""}),j=v(()=>Qi(n(),"xl")?"FULL":Qi(n(),"m")&&qh(n(),"xl")?"COUNT":"SHORT"),F=v(()=>`${I("tooltip_episodes")}: ${r(W)}`),G=(he,ae,Pe)=>Et(this,null,function*(){yield yo(),(he==null?void 0:he.getAttribute("aria-expanded"))==="false"&&ae&&!Pe&&wt(()=>{b.set(!1),he.focus()})});Ue(()=>{G(r(M),a(),s())});var ne=He(),X=pe(ne);{var se=he=>{let ae=v(()=>d()?"px-0":"");Rt(he,{get className(){var Pe;return`w-max btn-full-opacity btn-jc-l ${(Pe=r(ae))!=null?Pe:""}`},testId:"btn-episodes",click:P,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(M)},set ref(Pe){D(M,fe(Pe))},children:(Pe,re)=>{var V=He(),we=pe(V);{var be=H=>{var de=b2(),_e=pe(de),te=h(_e,!0);g(_e);var Oe=A(_e,2),Ze=h(Oe);wf(Ze,{}),g(Oe),E(()=>ve(te,r(W))),_(H,de)},qe=H=>{var de=x2(),_e=pe(de);xf(_e,{});var te=A(_e,2);{var Oe=Se=>{var Re=$2(),ke=h(Re,!0);g(Re),E(()=>ve(ke,r(W))),_(Se,Re)},Ze=(Se,Re)=>{{var ke=ze=>{var ct=y2(),ut=h(ct,!0);g(ct),E(()=>ve(ut,m().length)),_(ze,ct)};B(Se,ze=>{r(j)==="COUNT"&&ze(ke)},Re)}};B(te,Se=>{r(j)==="FULL"?Se(Oe):Se(Ze,!1)})}_(H,de)};B(we,H=>{d()?H(be):H(qe,!1)})}_(Pe,V)},$$slots:{default:!0}})};B(X,he=>{r(k)&&he(se)})}_(t,ne),z(),o()}import{debounceFn as wy}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as A2,PlaybackState as cd,Player as M2,PredefinedQualityLimits as zr,VideoFormat as ud,clientChecker as L2}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as zn,getHighestQuality as V2,InterfaceLanguage as R2,isInvariantQuality as B2,isNonNullable as N2,loadVKLangPack as D2,Logger as O2,map as t1,merge as H2,Observable as F2,Subject as Jc,Subscription as Ef,TracerFactory as U2,ValueSubject as z2,VideoQuality as q2,devNull as W2,now as K2}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as rs}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as S2,devNull as jt,now as Zt}from"@vkontakte/videoplayer-shared/es2015";import{addScript as C2,Subject as Ho,clearVideoElement as T2}from"@vkontakte/videoplayer-shared/es2015";var Yh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var I2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Wc=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 Ho,loadStarted$:new Ho,loadEnded$:new Ho,loadError$:new Ho,ready$:new Ho,slotRequested$:new Ho,started$:new Ho,timeRemained$:new Ho,paused$:new Ho,resumed$:new Ho,ended$:new Ho,empty$:new Ho,skipped$:new Ho,clicked$:new Ho,closed$:new Ho,error$:new Ho};this.loadAdman=e=>(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Zt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Zt()]}),o())};C2(I2,e,this.loadTimeout).then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Zt()]}),window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Zt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Zt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Zt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Zt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Zt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Zt()]}),!d&&(window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Zt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Zt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Zt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Ce(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Zt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Zt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Zt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Zt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:u={},duration:m,previewParam:y}=e,p,$=this.playerState&&Ce(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:w,immediateOrigin:b}=S2(),C=(M=w?b:window.location.href)!=null?M:window.location.href,T=Nt(K(Nt(K({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:y}),p?{request_id:p}:{}),{duration:m,puid10:Yh(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){jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[Zt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Zt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adsState){this.log({message:"toggle play"});let i=Ce(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Zt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,m,y,p;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Zt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(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),(m=this.adman)==null||m.onCompleted(void 0),(y=this.adman)==null||y.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&T2(this.videoElement),this.isDestroyed=!0}};var jh=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 Sf=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 Kc,{startTime:m,endTime:y}=u.parse(l);s.startTime=m,s.endTime=y}else if(l.trim()!==""){let u=new Cf,{texts:m}=u.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Kc=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}},Cf=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((m,y)=>{let p=s.indexOf(y,d);return m===-1||m>p?p:m},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new Kc;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}},Zh=Sf;import{isNonNullable as Tf}from"@vkontakte/videoplayer-shared/es2015";var la,Pi,If=0,kf=!1,Xh="",Jh=(t,e=0,i=0)=>t<e&&t<i,Qc=(t,e=0,i=0)=>t>=e&&t<=i,k2=(t,e=0,i=0)=>t>e&&t>i,e1=(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:m})=>Qc(t,u,m));let a=t>=If,s=t<If;if(If=t,s&&(kf=!1),Tf(la)&&Qc(t,la.startTime,la.endTime)&&Xh===e.value)return la;if(!Tf(Pi)&&(n!=null&&n.length)&&!kf){Pi=n.find(({startTime:u,endTime:m})=>Qc(t,u,m)||a&&Jh(t,u,m)),la=void 0,!Tf(Pi)&&n[n.length-1].endTime<t&&(kf=!0);return}else{if(Qc(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return la=Pi,Pi=void 0,Xh=e.value,la;(a&&k2(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||s&&Jh(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var Gc={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"},E2={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"},Yc=t=>{var e,i;return(i=(e=Gc[t])!=null?e:Gc[E2[t]])!=null?i:void 0};import{Subscription as P2}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var jc=class{constructor(e,i,o=new P2){this.oneStat=e;this.mediascopePixel=i;this.statSubscription=o}destroy(){var e;this.oneStat.destroy(),(e=this.mediascopePixel)==null||e.destroy(),this.statSubscription.unsubscribe()}};var Zc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Zc||{});var Ur=t=>t!=null?t:0,il=(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(Ur(i==null?void 0:i.top)-Ur(o==null?void 0:o.top)),left:Math.round(Ur(i==null?void 0:i.left)-Ur(o==null?void 0:o.left)),bottom:Math.round(Ur(i==null?void 0:i.bottom)-Ur(o==null?void 0:o.top)),right:Math.round(Ur(i==null?void 0:i.right)-Ur(o==null?void 0:o.left))}},ol=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Ur(e==null?void 0:e.width),height:Ur(e==null?void 0:e.height)}};var Xc="off";var i1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:m,previewThumbsData:y,uiConfig:p,coreConfig:$,player:w,disabledControls:b,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:R,additionalButtons:W,additionalSettingsMenuItems:j,additionalContextMenuItems:F,playPrevVideo:G,playNextVideo:ne,looped:X=!1,statistics:se,saveRate:ce,internalsExposure:Me,playerView:Le})=>{var Gm,Ym,jm;let he=Nt(K({},$),{configName:[...(Gm=$.configName)!=null?Gm:[],"ui"],isAudioDisabled:s,live:Nt(K({},(Ym=$.live)!=null?Ym:{}),{isLiveCatchUpMode:!!n})}),ae=p,Pe=U2.createRootTracer(ae.features.tracer),re=Pe.createComponentTracer("Store"),V=w||new M2(he,Pe);Me==null||Me.expose({corePlayer:V});let we=new O2,be=new Wc(we,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),qe=Zs.getInstance(),H=u==null?void 0:u.pictureInPictureApi,de=u==null?void 0:u.annotationsApi,_e=u==null?void 0:u.slotsApi,te=we.createComponentLog("Store"),Oe,Ze,Se={},Re=new xc,ke=se?ti(se.oneStat.vsid$):dr(void 0),ze=ue(_s()),ct=ue(!1),ut=(jm=H==null?void 0:H.info.isActive$)!=null?jm:new z2(!1),nt=ue(0),St=ue([]),mt=H2(V.events.fatalError$,V.events.managedError$).subscribe(c=>St.update(x=>[...x,c])),Kt=dr(!1,c=>{let x=V.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ni=c=>Et(void 0,null,function*(){var le;let x=Object.values(R2).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!Vp(c))){let Ke;try{Ke=yield D2(c,Hg,Fg)}catch(Tt){(le=se==null?void 0:se.oneStat)==null||le.logError({errorType:"VKLangPack",fatal:!1}),qe==null||qe.report(Tt,{errorType:"VKLangPack",fatal:!1})}Ke&&(Lp({language:c,pack:Ke,fallback:ae.defaultLanguage}),Mt.set(c))}Vp(c)&&Mt.set(c)}),Mt=ue(t),Bt=ue(e);ni(t);let O=(c,x)=>{let N=Ce(Mt);return Rp(N,c,x,ae.defaultLanguage)},$e=ue("thumb"),ie=(()=>{let c=wi([Kt,$e],([x,N])=>x?"crashed":N);return Nt(K({},c),{is:x=>Ce(c)===x})})(),Be=(()=>{let c=ue(new Set(b));return Nt(K({},c),{add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let le=[...N];return new Set(Array.isArray(x)?le.filter(Ke=>!x.includes(Ke)):le.filter(Ke=>Ke!==x))})},includes:x=>{let N=Ce(c);return Array.isArray(x)?x.every(le=>N.has(le)):N.has(x)}})})();re.log("create store"),te({message:"create store"});let je=c=>{let x=c.container;x.append(V.experimental.element$.getValue()),Xe=new MutationObserver(N=>{let{removedNodes:le}=N[0];le.length&&x.append(V.experimental.element$.getValue())}),Xe.observe(x,{childList:!0})},Qe=c=>{te({message:`init video, config: ${JSON.stringify(c)}`}),C?je(c):(W2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[K2()]}),V.initVideo(c)),re.log("init video",{isInteractive:C}),c.subtitles&&V.setExternalTextTracks(c.subtitles),Oe=c},Ve=new Jc,rt=c=>Ve.next(c),et=new Jc,_t=new Jc,it=new Jc,Xe=null,Qt={actionRewind$:et,actionSeek$:_t,inPiP$:ut,inFullscreen$:new F2(c=>ze.subscribe(x=>c.next(x))),actionSetSubtitle$:it,nextMovie$:Ve};if(se){let{oneStat:c,mediascopePixel:x,statSubscription:N}=se;C||N.add(c.attachTo(V)),N.add(c.attachToUi(Qt)),N.add(c.attachToAds(be.events)),c.authorize(a).catch(le=>{te({message:`onestat auth error ${String(le)}`})}),x&&x.attachTo(V)}if(qe){let c=new Ef,x=(N,le)=>c.add(N.subscribe(le));if(x(V.events.managedError$,N=>{qe.logIError(N)}),x(V.events.fatalError$,N=>{qe.logIError(N,!0)}),se){let{oneStat:N}=se;x(N.experimental.error$,le=>{qe.logIError(le)})}qe.sentrySubscription.add(c)}let bt=()=>{L2.device.isIOS&&Ze&&Sh(Ze).catch(c=>{te({message:`exitIosSafariFullscreen failed: ${c}`})})},Si=new Ef().add(V.experimental.element$.subscribe(c=>{c&&(Ze=c,c.classList.add("player-media"),Js(H)&&(H.updateVideoElement(),H.registryEventHandlers()),C&&c.setAttribute("pip","false"),Le==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(V.events.ended$.subscribe(()=>{var c;bt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(V.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(V.events.started$.subscribe(()=>Et(void 0,null,function*(){var x,N;Js(H)&&(yield H==null?void 0:H.revealPictureInPicture());let c=V.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=Se.onStarted)==null||N.call(Se,c)}))).add(V.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(V.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(V.info.position$.subscribe(c=>{var N;let x=V.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),be.setPosition(c,x))})).add(V.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(V.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(V.events.loadedMetadata$.subscribe(()=>{Pt.state.loadedMetadata$.set(!0)})).add(V.info.is3DVideo$.subscribe(c=>{Pt.ui.is3DVideo.set(c)})).add(V.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Be.add(Dl),Be.add("PLAY_BUTTON")):Be.remove("PLAY_BUTTON"))})).add(V.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(V.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(V.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,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(be.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(be.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(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,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(be.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(be.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(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)})),ii=new Ef,Ge=()=>{var Tt,Ht,Wt;let{debugLog:c}=ae,x,N="#9df7b7",le="#efd169";if(c&&c!==!0){let{colors:Ft}=c;x=c.tag,N=(Tt=Ft==null?void 0:Ft[0])!=null?Tt:N,le=(Wt=(Ht=Ft==null?void 0:Ft[1])!=null?Ht:Ft==null?void 0:Ft[0])!=null?Wt:le}let Ke=x?`: ${x}`:"";ii.add(V.events.log$.subscribe(Ft=>{console.debug(`%c sdk${Ke} `,`background:${N};`,`sdk component: ${Ft.component}`,Ft.message)})).add(we.log$.subscribe(Ft=>{console.debug(`%c ui${Ke} `,`background:${le};`,`ui component: ${Ft.component}.`,Ft.message)}))},Xt=()=>{ii.unsubscribe()},Ri=(c,x)=>{re.log("start camera manual rotation",{mx:c,my:x}),V.startCameraManualRotation(c,x)},Fi=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),V.stopCameraManualRotation(c)},lo=(c,x,N)=>{re.log("move camera focus px",{xpx:c,ypx:x,dt:N}),V.moveCameraFocusPX(c,x,N)},Gi=()=>{V.holdCamera()},ot=()=>{V.releaseCamera()},$t=dr(V.info.position$.getValue(),c=>{let x,N,le=()=>{let Ke=V.info.playbackState$.getValue(),Tt=V.info.isLive$.getValue(),Ht=V.info.duration$.getValue(),Wt=V.info.position$.getValue();if(Ke&&[cd.PLAYING,cd.PAUSED].includes(Ke)){let Ft=Tt?Wt-Ht:V.getExactTime();Ft!==N&&c(Ft),N=Ft}x=requestAnimationFrame(le)};return le(),()=>cancelAnimationFrame(x)}),Ai=ti(V.info.playbackState$),Zi=ti(V.info.currentBuffer$),Co=ti(V.info.isEnded$),Z=ti(V.info.isLive$),Jt=ae.features.playbackRate?ti(V.info.canChangePlaybackSpeed$):dr(!1),bi=ti(V.info.liveBufferTime$),Bi=ti(V.info.volume$),ci=ti(V.info.muted$),pt=wc(V.info.predefinedQualityLimitType$.pipe(t1(c=>c===zr.TRAFFIC_SAVING)),V.info.predefinedQualityLimitType$.getValue()===zr.TRAFFIC_SAVING),hi=wc(V.info.predefinedQualityLimitType$.pipe(t1(c=>c===zr.HIGH_QUALITY)),V.info.predefinedQualityLimitType$.getValue()===zr.HIGH_QUALITY),Je=ti(V.info.autoQualityLimitingAvailable$),Lt=ti(V.info.availableQualities$),co=ti(V.info.availableQualitiesFps$),ei=ti(V.info.chromecastState$),qn=ti(V.info.chromecastDeviceName$),Xi=ti(V.info.currentFormat$),Mo=ti(V.info.throughputEstimation$),mi=ti(V.info.videoBitrate$),Ct=ti(V.info.intrinsicVideoSize$),Ni=ti(V.info.duration$),Uo=ti(V.info.isAudioAvailable$),vi=null,zo=V.info.isBuffering$,Ui=dr(zo.getValue(),c=>{let x=zo.subscribe(N=>{N&&vi===null?vi=window.setTimeout(()=>{c(zo.getValue()),vi=null},ae.loaderDelay):c(N)});return()=>{x.unsubscribe(),vi&&clearTimeout(vi)}}),To=()=>{vi&&clearTimeout(vi),vi=null},zi=wi([Ni,Z],([c,x])=>x?-c:c),Wn=wi([Ai],([c])=>c===cd.PLAYING),uo=ti(V.info.atLiveEdge$),En=ti(V.info.atLiveDurationEdge$),Lo=ti(V.info.position$),Vo=wi([Lo,Ni],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Pn=wi([ei],([c])=>c===A2.CONNECTED),kr=ti(V.info.availableVideoStreams$),ur=ae.features.audioLanguages?ti(V.info.availableAudioStreams$):dr([]),An=ti(V.info.currentVideoStream$),fn=ti(V.info.currentAudioStream$),Kn=c=>{c.language&&Mp(c.language),V.setVideoStream(c)},ft=c=>{c.language&&Mp(c.language),V.setAudioStream(c)},po=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(le=>"isDefault"in le&&le.isDefault)),x)return x;let N=ch();return N&&(x=c.find(({language:le})=>N===le)),x!=null||(x=c.at(0)),x},qo=!1;Si.add(V.info.availableAudioStreams$.subscribe(c=>{if(!qo&&c.length){let x=po(c);x&&(V.setAudioStream(x),qo=!0)}}));let Mn=!1;Si.add(V.info.availableVideoStreams$.subscribe(c=>{if(!Mn&&c.length){let x=po(c);x&&(V.setVideoStream(x),Mn=!0)}}));let Ro=ue(void 0),Wo=ti(V.info.isAutoQualityEnabled$,c=>c&&Ro.set(void 0)),Qn=ti(V.info.currentQuality$,()=>Ro.set(void 0)),Bo=wi([Ro,Qn],([c,x])=>c!=null?c:x),Gn=wi(Xi,c=>c!==ud.MPEG),mn=wi([Lt,co,Wo,Bo,Gn],([c,x,N,le,Ke])=>{let Tt=[];Ke&&Tt.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Ht=c.filter(Wt=>!B2(Wt));for(let Wt of Ht){let Ft=x[Wt];Tt.push({value:Wt,displayValue:`${Wt}${Ft?jh(Ft):""}`,selected:N?!1:Wt===le})}return Tt}),Yn=ti(V.info.currentPlaybackRate$),Ko=wi([Yn,uo,En],([c,x,N])=>{let le=N||C?1:ae.controls.playbackRateMin,Ke=x?1:ae.controls.playbackRateMax,Tt=ae.controls.playbackRateStep,Ht=[];for(let Wt=le;Wt<=Ke;Wt+=Tt)Ht.push({value:Wt,displayValue:Wt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Ht}),fo={displayValue:O("subtitles_off"),value:Xc},Ii=ue(K({},fo)),vn=ae.features.subtitles?ti(V.info.availableTextTracks$):dr([]),gn=th(),Qo=wi([vn,Ii],([c,x],N)=>{var Tt;let le=[],Ke=c.find(({id:Ht})=>Ht===x.value);if(Ke!=null&&Ke.url){let[,Ht]=(Tt=gn.find(Ke.url))!=null?Tt:[];if(Ht){N(Ht);return}Re.download(Ke.url).then(Wt=>{if(!Wt||Re.isDestroyed())return;let Ft=new Zh,ds=Ke.language;if(ds){let W1=!!Ke.isAuto,K1=Ft.parse(Wt,ds);le.push({lang:ds,subtitles:K1,isAuto:W1,id:Ke.id})}gn.add(Ke.url,le),Ce(Ii).value===x.value&&N(le)}).catch(Wt=>{var Ft;(Ft=se==null?void 0:se.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),qe==null||qe.report(Wt,{errorType:"Subtitles download",fatal:!1})})}N(le)}),mo=wi([Yn,Wn,Ii],([c,x,N],le)=>{let Ht;if(V.info.isLive$.getValue()&&x&&N.value!==fo.value){let Ft=()=>{let ds=1e3/(3*c);Ht=setTimeout(Ft,ds),le(Date.now())};return Ft(),()=>clearTimeout(Ht)}}),Ln=wi([vn,Ii],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:le,isAuto:Ke,id:Tt}of c){let Ht=le&&Yc(le);le&&Ht&&N.push({displayValue:Ke?O("subtitles_auto",{language:Ht}):Ht,value:Tt,selected:(x==null?void 0:x.value)===Tt,isAuto:Ke})}return N.length?(N.unshift(Nt(K({},fo),{selected:(x==null?void 0:x.value)===fo.value})),N):[]}),Io={available:[],prev:[]},qi=()=>{var x,N;let c=V.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ze==null?void 0:Ze.currentTime)!=null?N:0},pr=wi([$t,Ii,Qo,mo],([c,x,N,le])=>{var Tt;let Ke=V.info.isLive$.getValue();if(Ke&&Io.prev!==N){let Ht=N.find(({id:Ft})=>Ft===x.value),Wt=Io.prev.find(({id:Ft})=>Ft===x.value);if(Ht){let Ft=Nt(K({},Ht),{subtitles:[...(Tt=Wt==null?void 0:Wt.subtitles)!=null?Tt:[],...Ht.subtitles]});Io.available=[Ft],Io.prev=N}}if(x&&x.value!==fo.value){let Ht=Ke?qi():c,Wt=Ke?Io.available:N;return e1(Ht,x,Wt,Ke)}}),No=wi([pr],([c])=>c!=null&&c.texts?c.texts:[]);Si.add(Ii.subscribe(c=>{var x,N;if(c.value===fo.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let le=Object.entries(Gc).find(([Ke,Tt])=>Tt===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,le?le[0]:"")}}));let jn=ue(!0),Vn=wi([Zi,zi,Lo,bi],([c,x,N,le])=>{var Wt;let Ke=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!le)return Ke/x;let Ht=-N+le-x;return(Ke-Ht)/x}),Zn=ti(V.info.availableSources$),fr=wi([Zn],([c])=>Object.keys((c==null?void 0:c[ud.MPEG])||{}).length>0),hn=()=>{var N,le,Ke;let c=Object.keys(((le=(N=V.info.availableSources$)==null?void 0:N.getValue())==null?void 0:le[ud.MPEG])||{}),x=V2(c)||q2.Q_144P;return(Ke=Oe.sources[ud.MPEG])==null?void 0:Ke[x]},Er=()=>{var x;let c=hn();if(c)re.log("download video",{url:c}),Xg(c,((x=Oe==null?void 0:Oe.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";re.log("download video",{message:N}),te({message:N})}},mr=()=>{te({message:"toggle muted"});let c=V.info.muted$.getValue();V.info.volume$.getValue()===0&&!c?vt(Yt()):Dt(!c)},Xn=()=>{var c;if(Pt.ui.settingsMenu.visible$.set(!1),!Ce(Pt.ui.settingsSubMenu.visible$)){let x=Ce(Pt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let le=ol(x),Ke={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:le,position:Ke,name:"settings"})}}re.log("close settings menu")},Pr=(c,x=()=>Promise.resolve())=>Et(void 0,null,function*(){var Ke;Pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Pt.ui.settingsMenu.visible$.set(!0),yield x();let N=Ce(Pt.ui.settingsMenu.ref$),le=As();if((Ke=l==null?void 0:l.uiInfo)!=null&&Ke.onSettingsMenu&&N&&le){let Ht=ol(N),Wt=il(N,le);l.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Wt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})}),Ar=(c,x=!1)=>{var Tt;Pt.ui.settingsSubMenu.visible$.set(!1);let N=Ce(Pt.ui.settingsMenu.ref$),le=As(),Ke=Ce(Pt.ui.settingsMenu.visible$);if((Tt=l==null?void 0:l.uiInfo)!=null&&Tt.onSettingsMenu&&N&&le)if(Ke&&!x){let Wt=ol(N),Ft=il(N,le);l.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Ft,name:"settings"})}else{let Wt=ol(c),Ft={top:0,left:0,bottom:0,right:0},ds=Ce(Pt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Ft,name:ds})}re.log("close settings sub menu")},_n=(c,x)=>{var le;Pt.ui.settingsSubMenu.visible$.set(!0),Pt.ui.settingsSubMenu.ref$.set(x),Pt.ui.settingsSubMenu.name$.set(c);let N=As();if((le=l==null?void 0:l.uiInfo)!=null&&le.onSettingsMenu&&x&&N){let Tt=ol(x),Ht=il(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Tt,position:Ht})}re.log("open settings sub menu",{name:c})},Yt=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=Sc())!=null?x:0);return c===0?ae.volumeDefault:c},vt=c=>{let x=c===0?Yt():c,N=V.info.muted$.getValue();te({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let le=!s||ie.is("ads");N&&c>0&&le&&(N=!1,Pp(!1)),V.setVolume(c,N),be.setVolume(c),Cp(x)},Dt=c=>{let x=V.info.volume$.getValue();if(te({message:`set muted, currentVolume: ${x}, mute: ${c}`}),V.setMuted(c,ie.is("ads")),be.setVolume(c?0:x),Pp(c),!c&&x===0){let N=Yt();V.setVolume(N),Cp(N),be.setVolume(N)}},ui=ue(!1),ai=c=>{var x,N;re.log("set looped",{isLooped:c}),ui.set(c),V.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};ai(X);let vo=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ko=(c,x=!1)=>{var N;te({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),Pt.ui.autoplayNextEnabled$.set(c),fh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Eo=c=>{te({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),Pt.ui.timerNextVideoRunning$.set(c)},Go=(c=!0)=>{var le;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(le=l==null?void 0:l.onPrevVideoClick)==null?void 0:le.call(l)}catch(Ke){te({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&tt("prev")||G()},Yo=(c=!0)=>{var le;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(le=l==null?void 0:l.onNextVideoClick)==null?void 0:le.call(l)}catch(Ke){te({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&tt("next")||ne()},tt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:le}}=ae;return N&&le&&!x?(Pt.ui.aboutToGoNextVideo.set(c),Pt.ui.userActionsDisabled.set(!0),!0):!1},Ot=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},_i=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Ji=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Di=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Jn=()=>{V.prepare()},Do=()=>{zn(Pt);let c=Ce(Pt.ui.controls.disabledControls$),x=Ce(Pt.playerPhase),N={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(te({message:"toggle play"}),x==="ads"){N.action="play",re.log("toggle adman play",N),be.togglePlay();return}let le=()=>{var Tt;te({message:"toggle play, call player.play"}),N.action="play",V.play(),(Tt=l==null?void 0:l.onPlay)==null||Tt.call(l)},Ke=()=>{var Tt;te({message:"toggle play, call player.pause"}),N.action="pause",V.pause(),(Tt=l==null?void 0:l.onPause)==null||Tt.call(l)};if(V.info.isEnded$.getValue()){if(te({message:"toggle play, video ended, seek to 0"}),et.next(),_t.next(rs.REWIND),C){M==null||M();return}V.seekTime(0),le()}else V.info.playbackState$.getValue()!==cd.PLAYING?le():Ke();re.log("toggle play",N)},jo=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{te({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),V.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(Cc({type:"exact_quality",quality:c,videoId:i},N),Hl(),V.setPredefinedQualityLimits(zr.UNKNOWN)):Tp(i,c),Ro.set(c),V.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(Mr("auto_quality",N),Ce(pt)&&li(!1),Ce(hi)&&Zo(!1)):Hl()},li=(c,x="as-default")=>{te({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?zr.TRAFFIC_SAVING:zr.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(bn(N,x),Ol(!1)):(V.setPredefinedQualityLimits(N),Ol(c))},Zo=(c,x="as-default")=>{te({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),bn(c?zr.HIGH_QUALITY:zr.UNKNOWN,x)},bn=(c,x)=>{c!==zr.UNKNOWN&&(Ce(Je)&&!Ce(Wo)&&jo("auto",{appliesTo:x,changeReason:"limit-changed"}),Mr(c,x)),V.setPredefinedQualityLimits(c)},Mr=(c,x)=>{Cc({type:c,videoId:i},x),x==="as-default"&&Cc({type:c,videoId:i},"to-video")},Xo=c=>{re.log("set playback rate",{playbackRate:c}),V.setPlaybackRate(c),ae.features.saveRate&&ce&&!V.info.isLive$.getValue()&&uh(c)},vr=()=>{let c=Ce(Ko),x=c.findIndex(({selected:le})=>le);if(x===c.length-1)return;let N=c[x+1];Xo(N.value)},er=()=>{let c=Ce(Ko),x=c.findIndex(({selected:le})=>le);if(x===0)return;let N=c[x-1];Xo(N.value)},gr=(c=Nt(K({},fo),{selected:!1}))=>{re.log("set subtitles",K({},c)),c&&c.value!==fo.value&&it.next(c.isAuto?c.value+"_auto":c.value),Ii.set(c)},tr=()=>{re.log("toggle subtitles");let c=Ce(Ln),x=Ce(Ii),N=Ce(Mt);if((x==null?void 0:x.value)===fo.value){let le=c.filter(Ke=>Ke.value!==fo.value).find(Ke=>Ke.value===N)||c[1];gr(le)}else gr()},Lr=ue(!0),ir=c=>{Lr.set(c)},Jo=(c,x,N=!0)=>{var le;if(te({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:x,forcePrecise:N}),_t.next(x),V.info.isLive$.getValue()){let Ke=V.info.duration$.getValue(),Tt=Math.min(0,Ke+c);V.seekTime(Tt,N)}else{if(I!=null&&I.getValue())return;V.info.isEnded$.getValue()&&(te({message:"seek after ended, call callbacks.onPlay"}),(le=l==null?void 0:l.onPlay)==null||le.call(l)),V.seekTime(Qm(c),N)}},Vr=c=>{te({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),Jo(c,rs.EPISODE,!0)},en=(c,x)=>{te({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:x});let N=Ce(zi)*c;Jo(N,x,!1)},hr=c=>{te({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),_t.next(rs.UNKNOWN),V.seekTime(V.info.isLive$.getValue()?-c:c)},qr=c=>{var le,Ke;let x=(le=c.max)!=null?le:"none",N=(Ke=c.min)!=null?Ke:"none";te({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),re.log("set auto quality limits",{max:x,min:N}),V.setAutoQualityLimits(c)},lt=c=>{te({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),Jo(c,rs.EPISODE,!0)},Gt=c=>{te({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),V.setPlaybackRate(c)},ri=ue(void 0),go=ue(!1),$n=c=>{te({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),go.set(!0),or(c)},or=c=>{ri.set(c)},yn,Rn,Ci=()=>{ri.set(void 0),go.set(!1)},me=()=>{clearTimeout(Rn),clearTimeout(yn),yn=window.setTimeout(()=>{Ci()},500),Ze==null||Ze.removeEventListener("seeked",me)},xt=c=>{te({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),en(c,rs.SLIDER),Ce(Pt.ui.isMobile)&&Ce(Pt.state.currentFormat$)===ud.HLS?(Ze==null||Ze.addEventListener("seeked",me),Rn=window.setTimeout(()=>{me()},300)):Ci()},pi=wi([$t,zi,ri],([c,x,N],le)=>{le(N2(N)?N*x:c)}),gi=ue(!1),Ti=()=>{gi.set(!0)},Fe=()=>{gi.set(!1)},Vt=ue({width:0,height:0}),si=wi([Vt],([{width:c}],x)=>{let N=Wh(c);x(N)}),eo=ue(!1),ho=W.filter(c=>Jg(c)),Wr=wi([si,eo],([c,x])=>x?ho.filter(N=>!N.hideOnMobile):ho.filter(N=>{var le;return!((le=N.hideOnDesktopGridTypes)!=null&&le.includes(c))})),Oi=ue(W.filter(c=>eh(c))),nr=wi([Oi,si],([c,x])=>c.filter(N=>{var le;return!((le=N.hideOnDesktopGridTypes)!=null&&le.includes(x))})),ks=wi([nr,Wr],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((N,le)=>{var Ke;return{id:le,weight:le,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Ke=N.ariaLabel)!=null?Ke:N.tooltip,tooltipText:N.tooltip}}):[]]),rr=ue(j),_a=wi([rr],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Nt(K({},x),{onClick:x.onChangeEnabled}):x):[]),cl=(c,x)=>{let N=Ce(Oi).map(le=>le.id!==c?le:K(K({},le),x));Oi.set(N)},ba=c=>{let x=Ce(Oi);if(x.some(N=>N.id===c.id)){te({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Oi.set(x)},$a=c=>{let x=Ce(Oi);if(!x.some(N=>N.id===c)){te({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Oi.set(x)},ya=c=>{_t.next(rs.LIVE),te({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),V.setLiveLowLatency(c)},ul=(c,x)=>{let N=Ce(rr).map(le=>le.id!==c?le:K(K({},le),x));rr.set(N)},Es=c=>{let x=Ce(rr);if(x.some(N=>N.id===c.id)){te({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),rr.set(x)},xa=c=>{let x=Ce(rr);if(!x.some(N=>N.id===c)){te({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),rr.set(x)},dt=ue(F),yt=wi([dt],([c])=>ae.features.additionalContextMenuItems?c:[]),Yi=(c,x)=>{let N=Ce(dt).map(le=>le.id!==c?le:K(K({},le),x));dt.set(N)},tn=c=>{let x=Ce(dt);if(x.some(N=>N.id===c.id)){te({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),dt.set(x)},ji=c=>{let x=Ce(dt);if(!x.some(N=>N.id===c)){te({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),dt.set(x)},fi=wi([eo,Kt],([c,x],N)=>{N(c&&x)}),Mi=()=>{_t.next(rs.LIVE),te({message:"switch to active live"}),re.log("switch to active live"),V.seekTime(0),V.info.playbackState$.getValue()!==cd.PLAYING&&Pt.actions.internal.togglePlay()},Ps=()=>{re.log("skip adman"),be.skip()},wa=(c=!0)=>{zn(Pt),te({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),$e.set("video"),c&&V.play(),s&&Dt(!0)},$u=()=>{zn(Pt),te({message:"switch from video to ads"}),re.log("switch from video to ads"),Pt.actions.internal.pause(),bt(),$e.set("ads")},Hd=c=>{zn(Pt);let x=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:x}),$e.set(x)},yu=c=>{zn(Pt);let x=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:x}),$e.set(x)},Fd=c=>{zn(Pt);let x=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:x}),$e.set(x)},xu=()=>(zn(Pt),re.log("get debug text data"),jg(V,Oe,Pt,Pe.getTraceId())),Ud=()=>(zn(Pt),JSON.stringify(Pe.getFinishedSpans())),wu=()=>(zn(Pt),Zg(V,Oe,Pt)),As=()=>Ze,zd=()=>{te({message:"toggle chromecast"}),re.log("toggle chromecast"),V.toggleChromecast()},pl=c=>{var N;if(zn(Pt),V.info.isEnded$.getValue())return;let x=!c;if(Ce(Pt.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&&((N=l==null?void 0:l.onPause)==null||N.call(l)),V.pause()},qd=c=>{var N;zn(Pt);let x=!c;if(Ce(Pt.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&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),V.play()},Wd=c=>{zn(Pt);let x=!c;if(Ce(Pt.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()},Kd=(c,x)=>{zn(Pt),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?V.play():Pt.actions.internal.togglePlay())},Sa=()=>(te({message:"getting time codes"}),m),Qd=()=>{let c=Sa();if(!c||[0,1].includes(c.length))return;let x=V.info.position$.getValue();return c.find(N=>N.time>x)},Su=c=>{let x=c;x||(x=Qd());let N=V.info.position$.getValue();re.log("seek to next episode",K({currentTime:N},x)),x&&(te({message:"seek to next episode"}),Jo(x.time,rs.EPISODE,!0))},Gd=()=>{let c=Sa();if(!c||[0,1].includes(c.length))return;let x=V.info.position$.getValue(),N=c.findIndex(Ke=>Ke.time>x),le=N===-1?c.length-2:N-2;if(!(le<0))return c[le]},We=c=>{let x=c;x||(x=Gd());let N=V.info.position$.getValue();re.log("seek to prev episode",K({currentTime:N},x)),x&&(te({message:"seek to prev episode"}),Jo(x.time,rs.EPISODE,!0))},di=()=>(te({message:"getting preview thumbs data"}),re.log("get preview thumbs data",K({},y)),y),on=()=>Et(void 0,null,function*(){let c=H==null?void 0:H.isActive(),x="none";H!=null&&H.isActive()?(x="remove",yield H==null?void 0:H.remove()):(x="request",yield H==null?void 0:H.request()),re.log("toggle picture in picture",{isActive:c,action:x})}),Ms=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),nt.update(x=>x+c)},_o=ue([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[le,Ke],subjects:Tt}=c[N];N===0&&le!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:le/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!Tt.length||Tt.every(Ht=>Ht.isRemoved):!Tt.length}),Ke!==1/0&&x.push({time:Ke/1e3,text:"",interactive:!1,completed:!0})}_o.set(x)});let U1=ue(!1);I==null||I.subscribe(c=>{c&&Ce(go)&&Ci()});let Qm=c=>{if(!C)return c;let x=Ce(_o),N=Ce(zi),Ke=Ce(Lo)/N,Tt=x.find(Ht=>Ht.interactive&&!Ht.completed&&Ht.time>Ke);return typeof(Tt==null?void 0:Tt.time)=="number"?Math.min(c,Tt.time-.05):c},z1=()=>{Pt.ui.episodes.panelOpened$.set(!1)},q1=()=>{re.log("destroy store"),clearTimeout(Rn),clearTimeout(yn),Si.unsubscribe(),ii.unsubscribe(),V.destroy(),be.destroy(),se==null||se.destroy(),qe==null||qe.destroy(),mt.unsubscribe(),Xe==null||Xe.disconnect(),Xe=null,Re.destroy()},Pt={interfaceLanguage$:Mt,isCyrillicRelatedInterface$:Bt,initVideo:Qe,videoId:i,isClip:o,playerPhase:ie,vsid:ke,state:{positionExact$:$t,positionWithScrubbing$:pi,duration$:zi,playbackState$:Ai,isPlaying$:Wn,isLoaderVisible:Ui,bufferedProgress$:Vn,isLive$:Z,canChangePlaybackSpeed$:Jt,isActiveLive$:uo,isOldestAvailableLive$:En,isRewindableLive$:Vo,isEnded$:Co,muted$:ci,volume$:Bi,trafficSavingEnabled$:pt,highQualityEnabled$:hi,autoQualityLimitingAvailable$:Je,availableVideoStreams$:kr,availableAudioStreams$:ur,videoStream$:An,audioStream$:fn,currentQuality$:Bo,isAutoQualityEnabled$:Wo,availableQualities$:mn,currentPlaybackRate$:Yn,availablePlaybackRates$:Ko,currentSubtitle$:Ii,availableTextTracks$:vn,availableSubtitlesList$:Ln,currentSubtitleCaptions$:No,isAutoSubtitleCaptionVisible$:jn,chromecastState$:ei,chromecastDeviceName$:qn,chromecastConnected$:Pn,currentFormat$:Xi,throughputEstimation$:Mo,videoBitrate$:mi,videoSize$:Ct,errorLog$:St,crashed$:Kt,isAudioAvailable$:Uo,isAudioDisabled:!!s,canDownload:ae.features.download&&!!d,availableSources$:Zn,hasMpegSources$:fr,isInteractive:C,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!Ce(_o).length,interactiveEpisodes$:_o,isInteractiveTime$:I?ti(I):ue(!1),isInteractiveExpectation$:U1,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:R,looped$:ui,loadedMetadata$:ue(!1),isAutoQualityAvailable$:Gn},ui:{t:O,controlsVisible:ue(!1),touched:ue(!1),controls:{prevButton:ue(void 0),playButton:ue(void 0),replayButton:ue(void 0),nextButton:ue(void 0),playPrevChapterButton:ue(void 0),seekToInteractiveButton:ue(void 0),interactiveGraphButton:ue(void 0),liveButton:ue(void 0),time:ue(void 0),episodes:ue(void 0),volume:ue(void 0),subtitles:ue(void 0),settings:ue(void 0),context:ue(void 0),chromecast:ue(void 0),pip:ue(void 0),fullscreen:ue(void 0),vkLogo:ue(void 0),interactiveTimeIndicator:ue(void 0),timeline:ue(void 0),autoplayNextToggle:ue(void 0),additionalButtons:W.length?W.reduce(c=>[...c,ue(void 0)],[]):[],disabledControls$:Be},modals:{hotKeyMap:{show:ue(!1),data:ue({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ze,isFullscreenOpenedByKeyboard:ct,rotateAlpha:nt,isAutoplay:ue(!1),debugPanelVisible:ue(!1),episodes:{panelOpened$:ue(!1),openedByKeyboard$:ue(!1)},contextMenu:{visible$:ue(!1),btnRef$:ue(void 0),openedByBtnKeyboard$:ue(!1),openedByHotKey$:ue(!1),lastActiveElem$:ue(void 0),showContextMenuBtn$:ue(!1),position$:ue({top:0,left:0})},playerSize:Vt,isMobile:eo,mobileNotReportControlHidden$:fi,mobileUnmuteButtonExpanded:ue(!1),mobileUnmuteButtonVisible:ue(!1),icon3DVideoVisible:ue(!1),scrubbingInProgress:go,volumeChangingInProgress:gi,is3DVideo:ue(!1),currentGridType$:si,additionalButtonsDeprecated$:Wr,additionalDesktopControlPanelRightButtons$:ks,additionalSettingsMenuItems$:_a,additionalContextMenuItems$:yt,interactiveHideMobileControls:ue(!1),overlayContainer$:ue(void 0),startedByKeyboard$:ue(!1),autoplayNextEnabled$:ue(!1),timerNextVideoRunning$:ue(!0),settingsMenu:{visible$:ue(!1),ref$:ue(void 0),openedByBtnKeyboard$:ue(!1)},settingsSubMenu:{visible$:ue(!1),ref$:ue(void 0),name$:ue(void 0)},aboutToGoNextVideo:ue(void 0),userActionsDisabled:ue(!1),isControlsAvailable:Lr},ads:{position:ue(0),duration:ue(0),playbackState:ue("inactive"),canSkip:ue(!1),secondsToWatchBeforeSkip:ue(0),postrollPassed:ue(!1)},webApi:{pictureInPictureApi:H,annotationsApi:de,slotsApi:_e},actions:{internal:{preload:Jn,firstStart:c=>Kd(c,!1),play:()=>qd(!1),pause:()=>pl(!1),togglePlay:Do,toggleMuted:mr,openSettingsMenu:Pr,closeSettingsMenu:Xn,openSettingsSubMenu:_n,closeSettingsSubMenu:Ar,setVolume:vt,startVolumeChanging:Ti,stopVolumeChanging:Fe,setVideoStream:Kn,setAudioStream:ft,setQuality:jo,setTrafficSavingEnabled:li,setHighQualityEnabled:Zo,setPlaybackRate:Xo,incrementPlaybackRate:vr,decrementPlaybackRate:er,setSubtitle:gr,toggleSubtitle:tr,togglePictureInPicture:on,startScrubbing:$n,progressScrubbing:or,completeScrubbing:xt,toggleChromecast:zd,switchToActiveLive:Mi,switchFromAdsToVideo:wa,switchFromVideoToAds:$u,skipAd:Ps,setLiveWaitingStart:Hd,setLiveWaitingRecover:yu,setLiveWaitingRecord:Fd,getDebugTextData:xu,getTraceTextData:Ud,getDebugPanelData:wu,getVideoElement:As,seekTime:(c,x,N)=>Jo(c,x,N),clearDelayedBufferingCheckTimeout:To,seekEpisodeStartTime:Vr,seekToPercent:en,getNextEpisode:Qd,seekToNextEpisode:Su,getPrevEpisode:Gd,seekToPrevEpisode:We,startLogging:Ge,stopLogging:Xt,startCameraManualRotation:Ri,stopCameraManualRotation:Fi,moveCameraFocusPX:lo,holdCamera:Gi,releaseCamera:ot,getVideoEpisodes:Sa,getPreviewThumbsData:di,downloadVideo:Er,addLanguage:Lp,setLanguage:ni,nextMovie:rt,videoRotate:Ms,correctSeekTimeToInteractive:Qm,replayInteractive:M,setLooped:ai,reportProblem:vo,setAutoplayNextEnabled:ko,setTimerNextVideoRunning:Eo,prevVideoClick:Go,nextVideoClick:Yo,nextVideoAnnouncementShow:Ot,nextVideoAnnouncementClick:_i,nextVideoAnnouncementAuto:Ji,nextVideoAnnouncementCancel:Di},external:{firstStart:c=>Kd(c,!0),play:()=>qd(!0),pause:()=>pl(!0),stop:()=>Wd(!0),seekTime:c=>hr(c),seekEpisodeStartTime:c=>lt(c),setPlaybackRate:c=>Gt(c),setAutoQualityLimits:c=>qr(c),setMuted:Dt,toggleSubtitle:tr,setVolume:vt,returnFocusToEpisodes:z1,updateAdditionalSettingsItem:ul,addAdditionalSettingsItem:Es,removeAdditionalSettingsItem:xa,updateAdditionalContextItem:Yi,addAdditionalContextItem:tn,removeAdditionalContextItem:ji,updateAdditionalButton:cl,addAdditionalButton:ba,removeAdditionalButton:$a,setLiveLowLatency:ya,hideControls:()=>ir(!1),showControls:()=>ir(!0)}},callbacks:l,setUiCallbacks:c=>{Se=K({},c)},getAdmanWrapper:()=>be,getLogger:()=>we,getPlayer:()=>V,destroy:q1};return Pt};function da(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:m}=il(e[i],t||void 0);return{left:s?l:0,right:s?m:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var nl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(da(t,i,n,o))};var eu=(t,e,i)=>Et(void 0,null,function*(){yield yo(),e&&i&&(i.focus(),t.set(!1))});var Q2=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 Pf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 Af(t,e){U(e,!0);let[i,o]=De(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Te(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,y=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=J(void 0);Ue(()=>{r($)&&wt(()=>{p.set(r($))})});let w=I=>{let M=ys(I),P=Nh(r($));y.set(P),u.set(M),l.set(!n())},b=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Rt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:b,blur:C,get ariaExpanded(){return n()},get ref(){return r($)},set ref(I){D($,fe(I))},children:(I,M)=>{Pf(I,{})},$$slots:{default:!0}}),z(),o()}var G2=t=>{t.stopPropagation()},Y2=L("<div><!> <div></div> <div></div></div>"),j2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
231
231
 
232
232
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
233
233
  }
@@ -252,8 +252,8 @@ Try switching the\xA0quality to\xA0Auto.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
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 md(t,e){var G;U(e,!0),W(t,K2);let[i,o]=Oe(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),v=()=>S(T,"$isFullscreen",i),$=f(e,"ref",15,void 0),p=ee(void 0),_=Ce(),w=mo(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,E=_.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,I=(G=_.callbacks)==null?void 0:G.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,H=m(()=>!n()&&a()),Y=m(()=>Ss(s(),"s")),O=m(()=>!d()||!!l()||r(H)),J=ee(!1);ze(()=>{B(J,fe(r(O)))});let re=()=>{B(J,!0)},Z=()=>{var K;me(),(K=r(p))==null||K.addEventListener("animationiteration",re,{once:!0})},me=()=>{var K;B(J,!1),(K=r(p))==null||K.removeEventListener("animationiteration",re)},de=K=>{P.set(K)},Le=m(()=>u()&&!r(O));ze(()=>{u()?Z():me()});let Me=()=>{r(O)||(P.set(!0),I==null||I())};wn(()=>{P.clearTimeout(),me()});let ve=()=>{P.set(!1)},le=F("tooltip_interactive_interaction_time_indicator");var Ae=W2();let se;Ae.__mousemove=[q2],Ae.__click=Me;var N=h(Ae);Ro(N,{tooltipContent:le,get tooltipActive(){return r(Le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return $()},set ref(K){$(K)},children:(K,Ve)=>{rd(K,{completed:!0})},$$slots:{default:!0}});var Re=M(N,2);let ie;ft(Re,K=>$(K),()=>$());var Ge=M(Re,2);let oe;ft(Ge,K=>B(p,K),()=>r(p)),g(Ae),k((K,Ve,Ne)=>{se=te(Ae,1,"interactive-episode-icon-animated svelte-od3veb",null,se,K),ie=te(Re,1,"ref-block svelte-od3veb",null,ie,Ve),oe=te(Ge,1,"pulse svelte-od3veb",null,oe,Ne)},[()=>({mobile:n(),fullscreen:v(),invisible:r(O),"icon-small":r(Y)}),()=>({hidden:r(O)}),()=>({paused:r(J)})]),wt("mouseleave",Ae,ve),b(t,Ae),z(),o()}at(["mousemove","click"]);function eu(t,e){U(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);Ro(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=Ue();let u=m(()=>e.buttonComponent);var v=pe(l);Ei(v,()=>r(u),($,p)=>{p($,ts(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),b(s,l)},$$slots:{default:!0}}),z()}var rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var G2=$e('<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 Ef(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=G2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}function Cs(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");Ef(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 j2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Y2=L("<!> <!>",1),Z2={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 ua(t,e){U(e,!0),W(t,Z2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Ce().ui.t,d=m(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=m(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return r(u)},get testId(){var v;return`btn-${(v=e.type)!=null?v:""}`},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(v){i(v)},children:(v,$)=>{var p=Y2(),_=pe(p);{var w=T=>{var E=j2();b(T,E)};R(_,T=>{o()&&T(w)})}var y=M(_,2);let C=m(()=>e.type==="prev");Cs(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),b(v,p)},$$slots:{default:!0}}),z()}var X2=$e('<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 vd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=X2();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i))),b(t,o)}import{noop as J2}from"@vkontakte/videoplayer-shared/es2015";var ey=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ty=L("<!> <div><!></div>",1),iy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function il(t,e){U(e,!0),W(t,iy);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,J2),d=F("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);Vt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,v)=>{var $=ty(),p=pe($);{var _=T=>{var E=ey();b(T,E)};R(p,T=>{o()&&T(_)})}var w=M(p,2);let y;var C=h(w);vd(C,{}),g(w),k(T=>y=te(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(u,$)},$$slots:{default:!0}}),z()}var oy=$e('<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 xr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=oy(),d=h(s);g(s),k(()=>{Fe(s,"width",i()),Fe(s,"height",o()),Fe(s,"viewBox",n()),Fe(d,"fill",a())}),b(t,s)}var ny=$e('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function ss(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=ny(),d=h(s);g(s),k(()=>{Fe(s,"width",i()),Fe(s,"height",o()),Fe(s,"viewBox",n()),Fe(d,"fill",a())}),b(t,s)}import{noop as ry}from"@vkontakte/videoplayer-shared/es2015";var sy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ay=L("<!> <div><!></div>",1),ly={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 ol(t,e){U(e,!0),W(t,ly);let[i,o]=Oe(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=mo(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),u=f(e,"disabled",3,!1),v=f(e,"className",3,""),$=f(e,"click",3,ry),_=Ce().ui.t,{toggle:w}=a,y=m(()=>w),C=m(()=>n()!==null),T=m(()=>r(C)?n():l()),E=m(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),P=m(()=>r(T)?ss:xr),A=m(()=>`${d()?"btn-m--play":""} ${v()}`),I=m(()=>r(C)?r(y):$());Vt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,H)=>{var Y=ay();let O=m(()=>r(P));var J=pe(Y);{var re=Le=>{var Me=sy();b(Le,Me)};R(J,Le=>{d()&&Le(re)})}var Z=M(J,2);let me;var de=h(Z);Ei(de,()=>r(O),(Le,Me)=>{Me(Le,{})}),g(Z),k(Le=>me=te(Z,1,"svelte-1ot3duq",null,me,Le),[()=>({mobile:d()})]),b(V,Y)},$$slots:{default:!0}}),z(),o()}var dy=$e('<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 Pf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=dy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i))),b(t,o)}function gd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");Vt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Pf(d,{})},$$slots:{default:!0}}),z()}var cy=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),uy={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 hd(t,e){U(e,!0),W(t,uy);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Vt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(v){a(v)},children:(v,$)=>{var p=cy(),_=h(p);let w;var y=h(_);{var C=E=>{xr(E,{width:"14",height:"14",fill:"#000"})},T=E=>{ss(E,{width:"14",height:"14",fill:"#000"})};R(y,E=>{n()?E(C):E(T,!1)})}g(_),g(p),k(E=>w=te(_,1,"toggler svelte-et3q1q",null,w,E),[()=>({enabled:n()})]),b(v,p)},$$slots:{default:!0}}),z(),o()}var py=$e('<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 Af(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({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))),b(t,o)}function _d(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");Vt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Af(d,{})},$$slots:{default:!0}}),z()}var fy=$e('<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 Mf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=fy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}var my={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Lf(t,e){W(t,my);let i=f(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Mf(t,{get"data-testid"(){return r(o)}})}function bd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Ce().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Vt(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(v){i(v)},children:(v,$)=>{let p=m(()=>!!a());Lf(v,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}import{PlaybackState as e1}from"@vkontakte/videoplayer-core/es2015";function $d(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(u,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Ce(),u=l.state.playbackState$,v=l.actions.internal.switchToActiveLive,$=l.actions.internal.togglePlay,p=m(()=>()=>{if(!s()){v();return}n()===e1.PAUSED&&$()}),_=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===e1.PLAYING);Vt(t,{get className(){return r(_)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,T)=>{Wl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as t1}from"@vkontakte/videoplayer-shared/es2015";var vy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),gy=L('<img class="icon" aria-hidden="true">');function pa(t,e){"use strict";let i=ee(!1),o=()=>{B(i,!0)};var n=Ue(),a=pe(n);{var s=l=>{var u=vy();b(l,u)},d=l=>{var u=gy();k(()=>Fe(u,"src",e.icon)),wt("error",u,o),Ws(u),b(l,u)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Vf(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,t1),n=f(e,"ref",15),a=m(()=>o()===t1),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Ro(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 v=m(()=>{var $;return($=e.testId)!=null?$:e.id});Vt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(v)},children:($,p)=>{pa($,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var i1=t=>!!t.buttonComponent;var as={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var $y=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),yy={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function Df(t,e){var ir,As;U(e,!0),W(t,yy);let[i,o]=Oe(),n=()=>S(di,"$disabledControls$",i),a=()=>S(qt,"$adPlaybackState",i),s=()=>S(bt,"$playbackState$",i),d=()=>S(ti,"$currentSubtitle$",i),l=()=>S(ai,"$isEnded$",i),u=()=>S(Wn,"$currentGridType$",i),v=()=>S(ei,"$isLive$",i),$=()=>S(Si,"$chromecastState$",i),p=()=>S(ji,"$isPictureInPictureActive",i),_=()=>S(Fi,"$pictureInPictureType$",i),w=()=>S(X,"$availableSubtitlesList$",i),y=()=>S(gi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ni,"$showContextMenuBtn$",i),T=()=>S(eo,"$playerSize",i),E=()=>S(Hi,"$isRewindableLive$",i),P=()=>S(li,"$isActiveLive$",i),A=()=>S(io,"$graphIsOpened$",i),I=()=>S(Ui,"$contextMenuVisible$",i),V=()=>S(ii,"$isFullscreen",i),H=()=>S(To,"$autoplayNextEnabled",i),Y=()=>S(r(Mo),"$prevButton",i),O=()=>S(r(Ci),"$replayButton",i),J=()=>S(r(Zn),"$playButton",i),re=()=>S(r(pt),"$nextButton",i),Z=()=>S(r(Ot),"$playPrevChapterButton",i),me=()=>S(r(Mi),"$seekToInteractiveButton",i),de=()=>S(r(Lo),"$interactiveGraphButton",i),Le=()=>S(r(st),"$liveButton",i),Me=()=>S(r(Qt),"$time",i),ve=()=>S(r(mi),"$episodes",i),le=()=>S(r(Yi),"$vkLogo",i),Ae=()=>S(r(Zi),"$volume",i),se=()=>S(r(Li),"$subtitles",i),N=()=>S(r(xi),"$settings",i),Re=()=>S(r(Xi),"$context",i),ie=()=>S(r(Ti),"$fullscreen",i),Ge=()=>S(r(no),"$chromecast",i),oe=()=>S(zi,"$additionalDesktopControlPanelRightButtons$",i),G=()=>S(Io,"$isInteractiveTime$",i),K=()=>S(vo,"$settingsMenuVisible",i),Ve=()=>S(Pr,"$settingButtonRef$",i),Ne=()=>S(ci,"$startedByKeyboard$",i),Je=()=>S(We,"$isAudioAvailable$",i),xe=()=>S(ge,"$fakeIsPlaying$",i),we=()=>S(In,"$seekToInteractiveDisabledTooltip$",i),Be=()=>S(St,"$adPosition",i),Ze=()=>S(De,"$position$",i),ot=()=>S(go,"$adDuration",i),gt=()=>S(dt,"$duration$",i),et=f(e,"playerControlsWrapperRef",15,void 0),mt=f(e,"playerControlsRef",15,void 0),kt=f(e,"isAds",3,!1),Gt=f(e,"logoTargetUrl",3,""),zt=f(e,"isOneVideoPlaylist",3,!1),Kt=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:ge}=mo(),j=Ce(),Ie=mo(),ae=Ut(),He=j.actions.internal.toggleMuted,qe=j.actions.internal.togglePlay,tt=j.actions.internal.pause,lt=j.actions.internal.toggleSubtitle,Ye=(ir=j.callbacks)==null?void 0:ir.onAudioDoesNotExistHint,Xe=(As=j.callbacks)==null?void 0:As.onAudioDisabledHint,dt=j.state.duration$,De=j.state.positionWithScrubbing$,bt=j.state.playbackState$,We=j.state.isAudioAvailable$,Et=j.state.isAudioDisabled,ai=j.state.isEnded$,ei=j.state.isLive$,li=j.state.isActiveLive$,Hi=j.state.isRewindableLive$,{isActive$:ji,type$:Fi}=Ie.pictureInPicture$,vo=j.ui.settingsMenu.visible$,Do=j.ui.settingsMenu.openedByBtnKeyboard$,nt=j.ui.controls,ht=j.actions.internal.getVideoEpisodes(),Si=j.state.chromecastState$,X=j.state.availableSubtitlesList$,ti=j.state.currentSubtitle$,di=nt.disabledControls$,Ui=j.ui.contextMenu.visible$,ni=j.ui.contextMenu.showContextMenuBtn$,gi=j.ui.contextMenu.openedByBtnKeyboard$,ci=j.ui.startedByKeyboard$,ut=j.ui.t,go=j.ads.duration,St=j.ads.position,qt=j.ads.playbackState,ii=j.ui.isFullscreen,eo=j.ui.playerSize,Wn=j.ui.currentGridType$,zi=j.ui.additionalDesktopControlPanelRightButtons$,To=j.ui.autoplayNextEnabled$,ui=j.actions.internal.getVideoElement,Ct=j.actions.internal.replayInteractive,ho=j.actions.internal.prevVideoClick,No=j.actions.internal.nextVideoClick,pi=j.state.isInteractive,Io=j.state.isInteractiveTime$,to=j.state.showInteractiveGraph,ko=j.state.showSeekToInteractive,Bo=j.state.showPlayPrevChapter,Tn=j.state.showInteractiveTimeIndicator,Ni=j.state.playPrevChapterDisabledTooltip,In=Ie.seekToInteractiveDisabledTooltip$,io=Ie.graphIsOpened$,Eo=ae.features.interactiveResponsiveUi,Sr=m(()=>n().has("EPISODE_BUTTON")),lr=m(()=>n().has("GRAPH_BUTTON")),kn=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Kn=m(()=>n().has("PLAY_BUTTON")),Qn=m(()=>n().has("REPLAY_BUTTON")),_o=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),pn=()=>j.actions.internal.toggleChromecast(),En=m(()=>kt()?a()==="playing":s()===Rf.PLAYING),rt=m(()=>d().value!=="off"),Pn=m(()=>l()&&!kt()||pi),Wo=m(()=>Eo?r(Pn)&&Gi(u(),"m"):r(Pn)),Ko=m(()=>!l()||pi||kt()),Cr=m(()=>Gi(u(),"m")),Qo=m(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!kt()&&e.nextButtonActive),An=m(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!kt()&&e.prevButtonActive),Gn=m(()=>!kt()&&!!v()),Mn=m(()=>$()!==o1.NOT_AVAILABLE&&!(p()&&_()===1)&&Gi(u(),"m")&&!pi),Go=m(()=>e.showAutoplayNext&&!zt()&&Gi(u(),"s")),qi=m(()=>w().length>0&&Gi(u(),"m")),oo=m(()=>y()||C()),Po=m(()=>Gi(u(),"s")&&!kt()),fn=m(()=>!e.logoHidden&&!kt()),jo=m(()=>ae.features.fullscreen&&(e.logoHidden||Gi(u(),Eo?"xs":"s"))&&!(p()&&_()===1)&&(pi?Kt():!0)),Yo=m(()=>(!v()||kt())&&!(ae.features.interactiveHideTime&&pi)),Ai=m(()=>T().width>100),Oo=m(()=>to&&Gi(u(),"m")),Ao=m(()=>Eo?ko&&Gi(u(),"s"):ko),dr=m(()=>Eo?Bo&&Gi(u(),"s"):Bo),mn=m(()=>!kt()&&!v()&&!!(ht!=null&&ht.length)&&r(Cr)&&!r(Sr)),vn=m(()=>!E()||!!P()),Tr=m(()=>A()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Ho=m(()=>I()?ut("aria_label_context_menu_close"):ut("aria_label_context_menu_open")),Ir=($t,_t)=>$t?_t&&_t===Rf.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),Ln=m(()=>Ir(r(vn),s())),jn=m(()=>ae.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),cr=m(()=>r(rt)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),kr=m(()=>V()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),Yn=m(()=>$()===o1.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),gn=m(()=>H()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),Er=ee(0),fi=fe({}),Mo=m(()=>nt.prevButton),Ci=m(()=>nt.replayButton),Zn=m(()=>nt.playButton),pt=m(()=>nt.nextButton),Ot=m(()=>nt.playPrevChapterButton),Mi=m(()=>nt.seekToInteractiveButton),Lo=m(()=>nt.interactiveGraphButton),st=m(()=>nt.liveButton),Qt=m(()=>nt.time),mi=m(()=>nt.episodes),Yi=m(()=>nt.vkLogo),Zi=m(()=>nt.volume),Li=m(()=>nt.subtitles),xi=m(()=>nt.settings),Xi=m(()=>nt.context),Ti=m(()=>nt.fullscreen),no=m(()=>nt.chromecast),Wi=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:O()?O().right-O().left:0,playButton:J()?J().right-J().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:me()?me().right-me().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:Le()?Le().right-Le().left:0,time:Me()?Me().right-Me().left:0,episodes:ve()?ve().right-ve().left:0,vkLogo:le()?le().right-le().left:0,volume:Ae()?Ae().right-Ae().left:0,subtitles:se()?se().right-se().left:0,settings:N()?N().right-N().left:0,context:Re()?Re().right-Re().left:0,fullscreen:ie()?ie().right-ie().left:0,chromecast:Ge()?Ge().right-Ge().left:0,additionalButtons:oe().length?oe().reduce($t=>[...$t,40],[]):[]})),hn=ee(0);ze(()=>{(!r(hn)||r(hn)<r(Wi).time)&&yt(()=>B(hn,fe(r(Wi).time)))});let Xn=ee(!1);ze(()=>{let $t=0;r(mn)&&(Gi(u(),"xl")?$t=r(Wi).time:$t=60);let _t=r(Wi).prevButton+r(Wi).playButton+r(Wi).nextButton+r(Wi).seekToInteractiveButton+r(Wi).interactiveGraphButton+r(Wi).liveButton+r(hn)+$t;B(Xn,fe(r(Yo)&&r(Er)>=_t))});let ur=m(()=>r(Xn)&&Gi(u(),"m")),Jn=by(tl,260);ze(()=>{T(),G(),Jn(ui(),nt,fi,e.showControls)});let Pr=ue();ze(()=>{K(),Ve()&&yt(()=>Qa(Ve(),K(),Do))});let pr;ze(()=>{Ne(),yt(()=>Jc(ci,Ne(),pr))});function _n(){xs({isAudioDisabled:Et,audioDisabledHintCallback:Xe,isAudioAvailable:Je(),audioIsNotExistHintCallback:Ye})&&He()}let Vn=pi?Ct:qe,Zo=m(()=>xe()!==null),Xo=m(()=>r(Zo)?xe():r(En)),er=m(()=>r(Xo)?ut("tooltip_pause"):ut("tooltip_play")),Ar=ut("tooltip_episodes"),Mr=m(()=>{var $t,_t,so,Fo;return r(An)?{id:"prevButton",type:"desktop-control-panel-left",weight:rs.prevButton,buttonComponent:ua,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ho.bind(null,!0)},tooltipEnabled:!((_t=($t=j.callbacks)==null?void 0:$t.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((Fo=(so=j.callbacks)==null?void 0:so.uiInfo)!=null&&Fo.onPrevButtonMouseLeave),mouseEnter:()=>{var ao,ri,Bi;(Bi=(ri=(ao=j.callbacks)==null?void 0:ao.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Bi.call(ri,ca(ui(),fi,"prevButton",e.showControls))},mouseLeave:()=>{var ao,ri,Bi;(Bi=(ri=(ao=j.callbacks)==null?void 0:ao.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Bi.call(ri,ca(ui(),fi,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),fr=m(()=>r(Wo)?{id:"replayButton",type:"desktop-control-panel-left",weight:rs.replayButton,buttonComponent:il,buttonComponentProps:{disabled:r(Qn),click:Vn},tooltipText:ut("tooltip_restart"),disabled:r(Qn)}:void 0),bo=m(()=>r(Ko)?{id:"playButton",type:"desktop-control-panel-left",weight:rs.playButton,buttonComponent:ol,buttonComponentProps:{disabled:r(Kn),isPlaying:r(En),click:qe},tooltipText:r(er),disabled:r(Kn)}:void 0),Rn=m(()=>{var $t,_t,so,Fo;return r(Qo)?{id:"nextButton",type:"desktop-control-panel-left",weight:rs.nextButton,buttonComponent:ua,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:No.bind(null,!0)},tooltipEnabled:!((_t=($t=j.callbacks)==null?void 0:$t.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((Fo=(so=j.callbacks)==null?void 0:so.uiInfo)!=null&&Fo.onNextButtonMouseLeave),mouseEnter:()=>{var ao,ri,Bi;(Bi=(ri=(ao=j.callbacks)==null?void 0:ao.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Bi.call(ri,ca(ui(),fi,"nextButton",e.showControls))},mouseLeave:()=>{var ao,ri,Bi;(Bi=(ri=(ao=j.callbacks)==null?void 0:ao.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Bi.call(ri,ca(ui(),fi,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),tr=m(()=>pi&&r(dr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:rs.playPrevChapterButton,buttonComponent:gd,buttonComponentProps:{disabled:r(_o),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(Ni),disabled:r(_o)}:void 0),Lr=m(()=>pi&&r(Ao)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:rs.seekToInteractiveButton,buttonComponent:_d,buttonComponentProps:{disabled:r(kn),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:r(kn),disabledTooltipContent:ut(we())}:void 0),ct=m(()=>pi&&r(Oo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:rs.interactiveGraphButton,buttonComponent:bd,buttonComponentProps:{disabled:r(lr),click:io.toggle,graphIsOpened:A()},tooltipText:r(Tr)}:void 0),Ht=m(()=>r(Gn)?{id:"liveButton",type:"desktop-control-panel-left",weight:rs.liveButton,buttonComponent:$d,buttonComponentProps:{isLiveActive:r(vn),ariaLabel:r(Ln)},tooltipText:r(Ln),disabled:r(vn)&&s()===Rf.PLAYING}:void 0),Vi=m(()=>[r(Mr),r(fr),r(bo),r(Rn),r(tr),r(Lr),r(ct),r(Ht)].filter($t=>!!$t).sort(ia)),ye=m(()=>r(fn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:as.vkLogo,buttonComponent:ad,buttonComponentProps:{targetUrl:Gt(),logoClickable:e.logoClickable,click:tt},tooltipText:r(jn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Tt=m(()=>r(Go)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:as.autoplayNext,buttonComponent:hd,tooltipText:r(gn)}:void 0),hi=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:as.volume,buttonComponent:df,buttonComponentProps:{click:_n}})),Ii=m(()=>r(qi)?{id:"subtitles",type:"desktop-control-panel-right",weight:as.subtitles,buttonComponent:nf,buttonComponentProps:{isSubtitlesEnabled:r(rt),click:lt},tooltipText:r(cr)}:void 0),ro=m(()=>r(Po)?{id:"settings",type:"desktop-control-panel-right",weight:as.settings,buttonComponent:Xa,buttonComponentProps:{ref$:Pr},tooltipText:K()?void 0:ut("tooltip_settings_off")}:void 0),vi=m(()=>ae.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:as.context,buttonComponent:kf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Ho)},className:r(oo)?"":"out-of-view",tooltipText:r(Ho)}:void 0),ke=m(()=>r(jo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:as.fullscreen,buttonComponent:sd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(kr)}:void 0),At=m(()=>r(Mn)?{id:"chromecast",type:"desktop-control-panel-right",weight:as.chromecast,buttonComponent:ld,buttonComponentProps:{state:$(),click:pn},tooltipText:r(Yn)}:void 0),Xt=m(()=>[r(ye),r(Tt),r(hi),r(Ii),r(ro),r(vi),r(ke),r(At),...oe()].filter($t=>!!$t).sort(ia));var wi=$y(),oi=pe(wi);let Vr;var Ji=h(oi);let Rr=m(()=>!r(Ai));la(Ji,{get isHidden(){return r(Rr)},get isAds(){return kt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return fi.timeline},set ref($t){fi.timeline=$t}});var ks=M(Ji,2),Jo=h(ks),ba=h(Jo);ki(ba,17,()=>r(Vi),$t=>$t.id,($t,_t)=>{eu($t,{get buttonComponent(){return r(_t).buttonComponent},get buttonComponentProps(){return r(_t).buttonComponentProps},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(_t).disabled},get className(){return r(_t).className},get tooltipEnabled(){return r(_t).tooltipEnabled},get mouseEnter(){return r(_t).mouseEnter},get mouseLeave(){return r(_t).mouseLeave},get ref(){return fi[r(_t).id]},set ref(so){fi[r(_t).id]=so}})});var Es=M(ba,2);{var al=$t=>{let _t=m(()=>kt()?Be():Ze()),so=m(()=>kt()?ot():gt());nd($t,{isMobile:!1,get showDuration(){return r(ur)},get position(){return r(_t)},get duration(){return r(so)},get ref(){return fi.time},set ref(Fo){fi.time=Fo}})};R(Es,$t=>{r(Yo)&&$t(al)})}var $a=M(Es,2);let ll=m(()=>!r(mn));Ro($a,{className:"w-max",get disabled(){return r(ll)},tooltipContent:Ar,get ref(){return fi.episodes},set ref($t){fi.episodes=$t},children:($t,_t)=>{var so=Ue(),Fo=pe(so);{var ao=ri=>{cd(ri,{get position(){return Ze()},get duration(){return gt()},timeCodes:ht})};R(Fo,ri=>{r(mn)&&ri(ao)})}b($t,so)},$$slots:{default:!0}}),g(Jo);var Ps=M(Jo,2);ki(Ps,21,()=>r(Xt),$t=>$t.id,($t,_t)=>{var so=Ue(),Fo=pe(so);{var ao=Bi=>{eu(Bi,{get buttonComponent(){return r(_t).buttonComponent},get buttonComponentProps(){return r(_t).buttonComponentProps},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(_t).disabled},get className(){return r(_t).className},get ref(){return fi[r(_t).id]},set ref(ls){fi[r(_t).id]=ls}})},ri=Bi=>{let ls=m(()=>!!r(_t).disabled);Vf(Bi,{get id(){return r(_t).id},get testId(){return r(_t).testId},get icon(){return r(_t).icon},get ariaLabel(){return r(_t).ariaLabel},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(ls)},get onClick(){return r(_t).onClick},get ref(){return fi[r(_t).id]},set ref(cl){fi[r(_t).id]=cl}})};R(Fo,Bi=>{i1(r(_t))?Bi(ao):Bi(ri,!1)})}b($t,so)}),g(Ps),g(ks),ft(ks,$t=>mt($t),()=>mt()),g(oi),ft(oi,$t=>et($t),()=>et());var dl=M(oi,2);{var ya=$t=>{md($t,{get ref(){return fi.interactiveTimeIndicator},set ref(_t){fi.interactiveTimeIndicator=_t}})};R(dl,$t=>{Tn&&$t(ya)})}k($t=>Vr=te(oi,1,"wrapper-bottom svelte-1iedtj3",null,Vr,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Hr(Jo,"clientWidth",$t=>B(Er,$t)),b(t,wi),z(),o()}import{ChromecastState as r1,PlaybackState as s1}from"@vkontakte/videoplayer-core/es2015";import{noop as n1}from"@vkontakte/videoplayer-shared/es2015";var xy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),wy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),Sy={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 Nf(t,e){W(t,Sy);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,n1),n=m(()=>o()===n1),a=m(()=>r(n)||i()),s=ee(!1),d=()=>{B(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");Vt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(u,v)=>{var $=Ue(),p=pe($);{var _=y=>{var C=xy();b(y,C)},w=y=>{var C=wy();k(()=>Fe(C,"src",e.iconUrl)),wt("error",C,d),Ws(C),b(y,C)};R(p,y=>{r(s)?y(_):y(w,!1)})}b(u,$)},$$slots:{default:!0}})}var Cy=$e('<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 Bf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),b(t,o)}import{noop as Ty}from"@vkontakte/videoplayer-shared/es2015";var Iy=L('<span class="text svelte-6gmlbk"> </span>'),ky=L('<div aria-hidden="true"><!> <!></div>'),Ey={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 tu(t,e){U(e,!0),W(t,Ey);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,Ty),a=f(e,"ref",15,void 0),d=Ce().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=m(()=>o()?ws:Bf),v=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(t,{get testId(){return r(v)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref($){a($)},children:($,p)=>{var _=ky();let w=m(()=>r(u)),y;var C=h(_);Ei(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var E=P=>{var A=Iy(),I=h(A,!0);g(A),k(V=>he(I,V),[()=>d("mobile_unmute")]),b(P,A)};R(T,P=>{o()&&P(E)})}g(_),k(P=>y=te(_,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b($,_)},$$slots:{default:!0}}),z()}var Py=$e('<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 Of(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Py();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(3),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),b(t,o)}var Ay={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 Hf(t,e){W(t,Ay);let i=f(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");Of(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as My}from"@vkontakte/videoplayer-shared/es2015";function Ff(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,My),a=F("menu_pip");Vt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Hf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as Ly}from"@vkontakte/videoplayer-shared/es2015";var Vy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Ry=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Dy=L("<div><!></div>"),Ny=L("<div><!></div>"),By=L("<div><!></div>"),Oy=L("<!> <!> <!>",1),Hy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Fy=L("<div><!></div>"),Uy=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),zy=L("<!> <!> <div><!></div>",1),qy=L('<div aria-hidden="true">\xB7</div> <!>',1),Wy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ky={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,
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 fd(t,e){var de;U(e,!0),Q(t,j2);let[i,o]=De(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),s=()=>S(R,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(b,"$interactiveControlsOpacity$",i),u=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),y=f(e,"ref",15,void 0),p=J(void 0),$=Te(),w=so(),{interactiveControlsOpacity$:b}=w,C=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=$.ui.controlsVisible,k=(de=$.callbacks)==null?void 0:de.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,W=v(()=>!n()&&a()),j=v(()=>Ss(s(),"s")),F=v(()=>!d()||!!l()||r(W)),G=J(!1);Ue(()=>{D(G,fe(r(F)))});let ne=()=>{D(G,!0)},X=()=>{var _e;se(),(_e=r(p))==null||_e.addEventListener("animationiteration",ne,{once:!0})},se=()=>{var _e;D(G,!1),(_e=r(p))==null||_e.removeEventListener("animationiteration",ne)},ce=_e=>{M.set(_e)},Me=v(()=>u()&&!r(F));Ue(()=>{u()?X():se()});let Le=()=>{r(F)||(M.set(!0),k==null||k())};Tn(()=>{M.clearTimeout(),se()});let he=()=>{M.set(!1)},ae=q("tooltip_interactive_interaction_time_indicator");var Pe=Y2();let re;Pe.__mousemove=[G2],Pe.__click=Le;var V=h(Pe);Ao(V,{tooltipContent:ae,get tooltipActive(){return r(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ce,get ref(){return y()},set ref(_e){y(_e)},children:(_e,te)=>{nd(_e,{completed:!0})},$$slots:{default:!0}});var we=A(V,2);let be;gt(we,_e=>y(_e),()=>y());var qe=A(we,2);let H;gt(qe,_e=>D(p,_e),()=>r(p)),g(Pe),E((_e,te,Oe)=>{re=ee(Pe,1,"interactive-episode-icon-animated svelte-od3veb",null,re,_e),be=ee(we,1,"ref-block svelte-od3veb",null,be,te),H=ee(qe,1,"pulse svelte-od3veb",null,H,Oe)},[()=>({mobile:n(),fullscreen:m(),invisible:r(F),"icon-small":r(j)}),()=>({hidden:r(F)}),()=>({paused:r(G)})]),It("mouseleave",Pe,he),_(t,Pe),z(),o()}at(["mousemove","click"]);function tu(t,e){U(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);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 m=pe(l);Ei(m,()=>r(u),(y,p)=>{p(y,is(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),_(s,l)},$$slots:{default:!0}}),z()}var ss={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var X2=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 Mf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=X2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),_(t,o)}function Cs(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Mf(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 J2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),ey=L("<!> <!>",1),ty={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function ca(t,e){U(e,!0),Q(t,ty);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Te().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Rt(t,{get className(){return r(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(m){i(m)},children:(m,y)=>{var p=ey(),$=pe(p);{var w=T=>{var I=J2();_(T,I)};B($,T=>{o()&&T(w)})}var b=A($,2);let C=v(()=>e.type==="prev");Cs(b,{get isMobile(){return o()},get isPrev(){return r(C)}}),_(m,p)},$$slots:{default:!0}}),z()}var iy=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=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=iy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i))),_(t,o)}import{noop as oy}from"@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 rl(t,e){U(e,!0),Q(t,sy);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,oy),d=q("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Rt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Hr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var y=ry(),p=pe(y);{var $=T=>{var I=ny();_(T,I)};B(p,T=>{o()&&T($)})}var w=A(p,2);let b;var C=h(w);md(C,{}),g(w),E(T=>b=ee(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),_(u,y)},$$slots:{default:!0}}),z()}var ay=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 Tr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=ay(),d=h(s);g(s),E(()=>{Ne(s,"width",i()),Ne(s,"height",o()),Ne(s,"viewBox",n()),Ne(d,"fill",a())}),_(t,s)}var ly=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 as(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=ly(),d=h(s);g(s),E(()=>{Ne(s,"width",i()),Ne(s,"height",o()),Ne(s,"viewBox",n()),Ne(d,"fill",a())}),_(t,s)}import{noop as dy}from"@vkontakte/videoplayer-shared/es2015";var cy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),uy=L("<!> <div><!></div>",1),py={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 sl(t,e){U(e,!0),Q(t,py);let[i,o]=De(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=so(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),u=f(e,"disabled",3,!1),m=f(e,"className",3,""),y=f(e,"click",3,dy),$=Te().ui.t,{toggle:w}=a,b=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),I=v(()=>r(T)?$("tooltip_pause"):$("tooltip_play")),M=v(()=>r(T)?as:Tr),P=v(()=>`${d()?"btn-m--play":""} ${m()}`),k=v(()=>r(C)?r(b):y());Rt(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 Hr.KeyK},get ref(){return s()},set ref(R){s(R)},children:(R,W)=>{var j=uy();let F=v(()=>r(M));var G=pe(j);{var ne=Me=>{var Le=cy();_(Me,Le)};B(G,Me=>{d()&&Me(ne)})}var X=A(G,2);let se;var ce=h(X);Ei(ce,()=>r(F),(Me,Le)=>{Le(Me,{})}),g(X),E(Me=>se=ee(X,1,"svelte-1ot3duq",null,se,Me),[()=>({mobile:d()})]),_(R,j)},$$slots:{default:!0}}),z(),o()}var fy=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 Lf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=fy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 vd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=q("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Rt(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)=>{Lf(d,{})},$$slots:{default:!0}}),z()}var my=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),vy={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 gd(t,e){U(e,!0),Q(t,vy);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Rt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,y)=>{var p=my(),$=h(p);let w;var b=h($);{var C=I=>{Tr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{as(I,{width:"14",height:"14",fill:"#000"})};B(b,I=>{n()?I(C):I(T,!1)})}g($),g(p),E(I=>w=ee($,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),_(m,p)},$$slots:{default:!0}}),z(),o()}var gy=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 Vf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({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 hd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=q("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Rt(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)=>{Vf(d,{})},$$slots:{default:!0}}),z()}var hy=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 Rf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=hy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),_(t,o)}var _y={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Bf(t,e){Q(t,_y);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Rf(t,{get"data-testid"(){return r(o)}})}function _d(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Te().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Rt(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(m){i(m)},children:(m,y)=>{let p=v(()=>!!a());Bf(m,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}import{PlaybackState as o1}from"@vkontakte/videoplayer-core/es2015";function bd(t,e){U(e,!0);let[i,o]=De(),n=()=>S(u,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Te(),u=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,y=l.actions.internal.togglePlay,p=v(()=>()=>{if(!s()){m();return}n()===o1.PAUSED&&y()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),b=v(()=>s()&&n()===o1.PLAYING);Rt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(b)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,T)=>{ql(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as n1}from"@vkontakte/videoplayer-shared/es2015";var by=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),$y=L('<img class="icon" aria-hidden="true">');function ua(t,e){"use strict";let i=J(!1),o=()=>{D(i,!0)};var n=He(),a=pe(n);{var s=l=>{var u=by();_(l,u)},d=l=>{var u=$y();E(()=>Ne(u,"src",e.icon)),It("error",u,o),qs(u),_(l,u)};B(a,l=>{r(i)?l(s):l(d,!1)})}_(t,n)}function Nf(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,n1),n=f(e,"ref",15),a=v(()=>o()===n1),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 m=v(()=>{var y;return(y=e.testId)!=null?y:e.id});Rt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(m)},children:(y,p)=>{ua(y,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var r1=t=>!!t.buttonComponent;var ls={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Sy=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),Cy={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 Of(t,e){var Es,xa;U(e,!0),Q(t,Cy);let[i,o]=De(),n=()=>S(Z,"$disabledControls$",i),a=()=>S(Lt,"$adPlaybackState",i),s=()=>S(Xe,"$playbackState$",i),d=()=>S(Co,"$currentSubtitle$",i),l=()=>S(Si,"$isEnded$",i),u=()=>S(qn,"$currentGridType$",i),m=()=>S(ii,"$isLive$",i),y=()=>S(Ai,"$chromecastState$",i),p=()=>S(Ri,"$isPictureInPictureActive",i),$=()=>S(Fi,"$pictureInPictureType$",i),w=()=>S(Zi,"$availableSubtitlesList$",i),b=()=>S(Bi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(bi,"$showContextMenuBtn$",i),T=()=>S(ei,"$playerSize",i),I=()=>S(Xt,"$isRewindableLive$",i),M=()=>S(Ge,"$isActiveLive$",i),P=()=>S(Lo,"$graphIsOpened$",i),k=()=>S(Jt,"$contextMenuVisible$",i),R=()=>S(co,"$isFullscreen",i),W=()=>S(Mo,"$autoplayNextEnabled",i),j=()=>S(r(vt),"$prevButton",i),F=()=>S(r(Dt),"$replayButton",i),G=()=>S(r(ui),"$playButton",i),ne=()=>S(r(ai),"$nextButton",i),X=()=>S(r(vo),"$playPrevChapterButton",i),se=()=>S(r(ko),"$seekToInteractiveButton",i),ce=()=>S(r(Eo),"$interactiveGraphButton",i),Me=()=>S(r(Go),"$liveButton",i),Le=()=>S(r(Yo),"$time",i),he=()=>S(r(tt),"$episodes",i),ae=()=>S(r(Ot),"$vkLogo",i),Pe=()=>S(r(_i),"$volume",i),re=()=>S(r(Ji),"$subtitles",i),V=()=>S(r(Di),"$settings",i),we=()=>S(r(Jn),"$context",i),be=()=>S(r(Do),"$fullscreen",i),qe=()=>S(r(jo),"$chromecast",i),H=()=>S(Xi,"$additionalDesktopControlPanelRightButtons$",i),de=()=>S(zo,"$isInteractiveTime$",i),_e=()=>S(lo,"$settingsMenuVisible",i),te=()=>S(vr,"$settingButtonRef$",i),Oe=()=>S(ci,"$startedByKeyboard$",i),Ze=()=>S(Qt,"$isAudioAvailable$",i),Se=()=>S(Bt,"$fakeIsPlaying$",i),Re=()=>S(En,"$seekToInteractiveDisabledTooltip$",i),ke=()=>S(Je,"$adPosition",i),ze=()=>S(it,"$position$",i),ct=()=>S(hi,"$adDuration",i),ut=()=>S(_t,"$duration$",i),nt=f(e,"playerControlsWrapperRef",15,void 0),St=f(e,"playerControlsRef",15,void 0),mt=f(e,"isAds",3,!1),Kt=f(e,"logoTargetUrl",3,""),ni=f(e,"isOneVideoPlaylist",3,!1),Mt=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Bt}=so(),O=Te(),$e=so(),ie=qt(),Be=O.actions.internal.toggleMuted,je=O.actions.internal.togglePlay,Qe=O.actions.internal.pause,Ve=O.actions.internal.toggleSubtitle,rt=(Es=O.callbacks)==null?void 0:Es.onAudioDoesNotExistHint,et=(xa=O.callbacks)==null?void 0:xa.onAudioDisabledHint,_t=O.state.duration$,it=O.state.positionWithScrubbing$,Xe=O.state.playbackState$,Qt=O.state.isAudioAvailable$,bt=O.state.isAudioDisabled,Si=O.state.isEnded$,ii=O.state.isLive$,Ge=O.state.isActiveLive$,Xt=O.state.isRewindableLive$,{isActive$:Ri,type$:Fi}=$e.pictureInPicture$,lo=O.ui.settingsMenu.visible$,Gi=O.ui.settingsMenu.openedByBtnKeyboard$,ot=O.ui.controls,$t=O.actions.internal.getVideoEpisodes(),Ai=O.state.chromecastState$,Zi=O.state.availableSubtitlesList$,Co=O.state.currentSubtitle$,Z=ot.disabledControls$,Jt=O.ui.contextMenu.visible$,bi=O.ui.contextMenu.showContextMenuBtn$,Bi=O.ui.contextMenu.openedByBtnKeyboard$,ci=O.ui.startedByKeyboard$,pt=O.ui.t,hi=O.ads.duration,Je=O.ads.position,Lt=O.ads.playbackState,co=O.ui.isFullscreen,ei=O.ui.playerSize,qn=O.ui.currentGridType$,Xi=O.ui.additionalDesktopControlPanelRightButtons$,Mo=O.ui.autoplayNextEnabled$,mi=O.actions.internal.getVideoElement,Ct=O.actions.internal.replayInteractive,Ni=O.actions.internal.prevVideoClick,Uo=O.actions.internal.nextVideoClick,vi=O.state.isInteractive,zo=O.state.isInteractiveTime$,Ui=O.state.showInteractiveGraph,To=O.state.showSeekToInteractive,zi=O.state.showPlayPrevChapter,Wn=O.state.showInteractiveTimeIndicator,uo=O.state.playPrevChapterDisabledTooltip,En=$e.seekToInteractiveDisabledTooltip$,Lo=$e.graphIsOpened$,Vo=ie.features.interactiveResponsiveUi,Pn=v(()=>n().has("EPISODE_BUTTON")),kr=v(()=>n().has("GRAPH_BUTTON")),ur=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),An=v(()=>n().has("PLAY_BUTTON")),fn=v(()=>n().has("REPLAY_BUTTON")),Kn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ft=()=>O.actions.internal.toggleChromecast(),po=v(()=>mt()?a()==="playing":s()===Df.PLAYING),qo=v(()=>d().value!=="off"),Mn=v(()=>l()&&!mt()||vi),Ro=v(()=>Vo?r(Mn)&&Qi(u(),"m"):r(Mn)),Wo=v(()=>!l()||vi||mt()),Qn=v(()=>Qi(u(),"m")),Bo=v(()=>e.showNextPrevButtons&&Qi(u(),"m")&&!mt()&&e.nextButtonActive),Gn=v(()=>e.showNextPrevButtons&&Qi(u(),"m")&&!mt()&&e.prevButtonActive),mn=v(()=>!mt()&&!!m()),Yn=v(()=>y()!==s1.NOT_AVAILABLE&&!(p()&&$()===1)&&Qi(u(),"m")&&!vi),Ko=v(()=>e.showAutoplayNext&&!ni()&&Qi(u(),"s")),fo=v(()=>w().length>0&&Qi(u(),"m")),Ii=v(()=>b()||C()),vn=v(()=>Qi(u(),"s")&&!mt()),gn=v(()=>!e.logoHidden&&!mt()),Qo=v(()=>ie.features.fullscreen&&(e.logoHidden||Qi(u(),Vo?"xs":"s"))&&!(p()&&$()===1)&&(vi?Mt():!0)),mo=v(()=>(!m()||mt())&&!(ie.features.interactiveHideTime&&vi)),Ln=v(()=>T().width>100),Io=v(()=>Ui&&Qi(u(),"m")),qi=v(()=>Vo?To&&Qi(u(),"s"):To),pr=v(()=>Vo?zi&&Qi(u(),"s"):zi),No=v(()=>!mt()&&!m()&&!!($t!=null&&$t.length)&&r(Qn)&&!r(Pn)),jn=v(()=>!I()||!!M()),Vn=v(()=>P()?pt("tooltip_interactive_graph_on"):pt("tooltip_interactive_graph_off")),Zn=v(()=>k()?pt("tooltip_context_menu_close"):pt("tooltip_context_menu_open")),fr=(dt,yt)=>dt?yt&&yt===Df.PAUSED?pt("tooltip_play"):"":pt("tooltip_live"),hn=v(()=>fr(r(jn),s())),Er=v(()=>ie.logoType==="vk_video"?pt("tooltip_vk_video_logo"):pt("tooltip_vk_logo")),mr=v(()=>r(qo)?pt("tooltip_subtitles_on"):pt("tooltip_subtitles_off")),Xn=v(()=>R()?pt("tooltip_fullscreen_on"):pt("tooltip_fullscreen_off")),Pr=v(()=>y()===s1.CONNECTED?pt("tooltip_chromecast_on"):pt("tooltip_chromecast_off")),Ar=v(()=>W()?pt("tooltip_autoplay_on"):pt("tooltip_autoplay_off")),_n=J(0),Yt=fe({}),vt=v(()=>ot.prevButton),Dt=v(()=>ot.replayButton),ui=v(()=>ot.playButton),ai=v(()=>ot.nextButton),vo=v(()=>ot.playPrevChapterButton),ko=v(()=>ot.seekToInteractiveButton),Eo=v(()=>ot.interactiveGraphButton),Go=v(()=>ot.liveButton),Yo=v(()=>ot.time),tt=v(()=>ot.episodes),Ot=v(()=>ot.vkLogo),_i=v(()=>ot.volume),Ji=v(()=>ot.subtitles),Di=v(()=>ot.settings),Jn=v(()=>ot.context),Do=v(()=>ot.fullscreen),jo=v(()=>ot.chromecast),li=v(()=>({prevButton:j()?j().right-j().left:0,replayButton:F()?F().right-F().left:0,playButton:G()?G().right-G().left:0,nextButton:ne()?ne().right-ne().left:0,playPrevChapterButton:X()?X().right-X().left:0,seekToInteractiveButton:se()?se().right-se().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:Me()?Me().right-Me().left:0,time:Le()?Le().right-Le().left:0,episodes:he()?he().right-he().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Pe()?Pe().right-Pe().left:0,subtitles:re()?re().right-re().left:0,settings:V()?V().right-V().left:0,context:we()?we().right-we().left:0,fullscreen:be()?be().right-be().left:0,chromecast:qe()?qe().right-qe().left:0,additionalButtons:H().length?H().reduce(dt=>[...dt,40],[]):[]})),Zo=J(0);Ue(()=>{(!r(Zo)||r(Zo)<r(li).time)&&wt(()=>D(Zo,fe(r(li).time)))});let bn=J(!1);Ue(()=>{let dt=0;r(No)&&(Qi(u(),"xl")?dt=r(li).time:dt=60);let yt=r(li).prevButton+r(li).playButton+r(li).nextButton+r(li).seekToInteractiveButton+r(li).interactiveGraphButton+r(li).liveButton+r(Zo)+dt;D(bn,fe(r(mo)&&r(_n)>=yt))});let Mr=v(()=>r(bn)&&Qi(u(),"m")),Xo=wy(nl,260);Ue(()=>{T(),de(),Xo(mi(),ot,Yt,e.showControls)});let vr=ue();Ue(()=>{_e(),te()&&wt(()=>ja(te(),_e(),Gi))});let er;Ue(()=>{Oe(),wt(()=>eu(ci,Oe(),er))});function gr(){xs({isAudioDisabled:bt,isAudioAvailable:Ze(),isAds:mt(),audioIsNotExistHintCallback:rt,audioDisabledHintCallback:et})&&Be()}let tr=vi?Ct:je,Lr=v(()=>Se()!==null),ir=v(()=>r(Lr)?Se():r(po)),Jo=v(()=>r(ir)?pt("tooltip_pause"):pt("tooltip_play")),Vr=pt("tooltip_episodes"),en=v(()=>{var dt,yt,Yi,tn;return r(Gn)?{id:"prevButton",type:"desktop-control-panel-left",weight:ss.prevButton,buttonComponent:ca,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ni.bind(null,!0)},tooltipEnabled:!((yt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((tn=(Yi=O.callbacks)==null?void 0:Yi.uiInfo)!=null&&tn.onPrevButtonMouseLeave),mouseEnter:()=>{var ji,fi,Mi;(Mi=(fi=(ji=O.callbacks)==null?void 0:ji.uiInfo)==null?void 0:fi.onPrevButtonMouseEnter)==null||Mi.call(fi,da(mi(),Yt,"prevButton",e.showControls))},mouseLeave:()=>{var ji,fi,Mi;(Mi=(fi=(ji=O.callbacks)==null?void 0:ji.uiInfo)==null?void 0:fi.onPrevButtonMouseLeave)==null||Mi.call(fi,da(mi(),Yt,"prevButton",e.showControls))},tooltipText:pt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),hr=v(()=>r(Ro)?{id:"replayButton",type:"desktop-control-panel-left",weight:ss.replayButton,buttonComponent:rl,buttonComponentProps:{disabled:r(fn),click:tr},tooltipText:pt("tooltip_restart"),disabled:r(fn)}:void 0),qr=v(()=>r(Wo)?{id:"playButton",type:"desktop-control-panel-left",weight:ss.playButton,buttonComponent:sl,buttonComponentProps:{disabled:r(An),isPlaying:r(po),click:je},tooltipText:r(Jo),disabled:r(An)}:void 0),lt=v(()=>{var dt,yt,Yi,tn;return r(Bo)?{id:"nextButton",type:"desktop-control-panel-left",weight:ss.nextButton,buttonComponent:ca,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Uo.bind(null,!0)},tooltipEnabled:!((yt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((tn=(Yi=O.callbacks)==null?void 0:Yi.uiInfo)!=null&&tn.onNextButtonMouseLeave),mouseEnter:()=>{var ji,fi,Mi;(Mi=(fi=(ji=O.callbacks)==null?void 0:ji.uiInfo)==null?void 0:fi.onNextButtonMouseEnter)==null||Mi.call(fi,da(mi(),Yt,"nextButton",e.showControls))},mouseLeave:()=>{var ji,fi,Mi;(Mi=(fi=(ji=O.callbacks)==null?void 0:ji.uiInfo)==null?void 0:fi.onNextButtonMouseLeave)==null||Mi.call(fi,da(mi(),Yt,"nextButton",e.showControls))},tooltipText:pt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Gt=v(()=>vi&&r(pr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ss.playPrevChapterButton,buttonComponent:vd,buttonComponentProps:{disabled:r(Kn),click:e.playPrevChapter},tooltipText:pt("tooltip_interactive_go_back"),disabledTooltipContent:pt(uo),disabled:r(Kn)}:void 0),ri=v(()=>vi&&r(qi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ss.seekToInteractiveButton,buttonComponent:hd,buttonComponentProps:{disabled:r(ur),click:e.seekToInteractive},tooltipText:pt("tooltip_interactive_seek"),disabled:r(ur),disabledTooltipContent:pt(Re())}:void 0),go=v(()=>vi&&r(Io)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ss.interactiveGraphButton,buttonComponent:_d,buttonComponentProps:{disabled:r(kr),click:Lo.toggle,graphIsOpened:P()},tooltipText:r(Vn)}:void 0),$n=v(()=>r(mn)?{id:"liveButton",type:"desktop-control-panel-left",weight:ss.liveButton,buttonComponent:bd,buttonComponentProps:{isLiveActive:r(jn),ariaLabel:r(hn)},tooltipText:r(hn),disabled:r(jn)&&s()===Df.PLAYING}:void 0),or=v(()=>[r(en),r(hr),r(qr),r(lt),r(Gt),r(ri),r(go),r($n)].filter(dt=>!!dt).sort(ta)),yn=v(()=>r(gn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ls.vkLogo,buttonComponent:sd,buttonComponentProps:{targetUrl:Kt(),logoClickable:e.logoClickable,click:Qe},tooltipText:r(Er),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Rn=v(()=>r(Ko)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ls.autoplayNext,buttonComponent:gd,tooltipText:r(Ar)}:void 0),Ci=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ls.volume,buttonComponent:pf,buttonComponentProps:{click:gr,isAds:mt()}})),me=v(()=>r(fo)?{id:"subtitles",type:"desktop-control-panel-right",weight:ls.subtitles,buttonComponent:af,buttonComponentProps:{isSubtitlesEnabled:r(qo),click:Ve},tooltipText:r(mr)}:void 0),xt=v(()=>r(vn)?{id:"settings",type:"desktop-control-panel-right",weight:ls.settings,buttonComponent:tl,buttonComponentProps:{ref$:vr},tooltipText:_e()?void 0:pt("tooltip_settings_off")}:void 0),pi=v(()=>ie.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ls.context,buttonComponent:Af,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:pt("aria_label_context_menu")},className:r(Ii)?"":"out-of-view",tooltipText:r(Zn)}:void 0),gi=v(()=>r(Qo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ls.fullscreen,buttonComponent:rd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Xn)}:void 0),Ti=v(()=>r(Yn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ls.chromecast,buttonComponent:ad,buttonComponentProps:{state:y(),click:ft},tooltipText:r(Pr)}:void 0),Fe=v(()=>[r(yn),r(Rn),r(Ci),r(me),r(xt),r(pi),r(gi),r(Ti),...H()].filter(dt=>!!dt).sort(ta));var Vt=Sy(),si=pe(Vt);let eo;var ho=h(si);let Wr=v(()=>!r(Ln));aa(ho,{get isHidden(){return r(Wr)},get isAds(){return mt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Yt.timeline},set ref(dt){Yt.timeline=dt}});var Oi=A(ho,2),nr=h(Oi),ks=h(nr);ki(ks,17,()=>r(or),dt=>dt.id,(dt,yt)=>{tu(dt,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get tooltipEnabled(){return r(yt).tooltipEnabled},get mouseEnter(){return r(yt).mouseEnter},get mouseLeave(){return r(yt).mouseLeave},get ref(){return Yt[r(yt).id]},set ref(Yi){Yt[r(yt).id]=Yi}})});var rr=A(ks,2);{var _a=dt=>{let yt=v(()=>mt()?ke():ze()),Yi=v(()=>mt()?ct():ut());od(dt,{isMobile:!1,get showDuration(){return r(Mr)},get position(){return r(yt)},get duration(){return r(Yi)},get ref(){return Yt.time},set ref(tn){Yt.time=tn}})};B(rr,dt=>{r(mo)&&dt(_a)})}var cl=A(rr,2);let ba=v(()=>!r(No));Ao(cl,{className:"w-max",get disabled(){return r(ba)},tooltipContent:Vr,get ref(){return Yt.episodes},set ref(dt){Yt.episodes=dt},children:(dt,yt)=>{var Yi=He(),tn=pe(Yi);{var ji=fi=>{dd(fi,{get position(){return ze()},get duration(){return ut()},timeCodes:$t})};B(tn,fi=>{r(No)&&fi(ji)})}_(dt,Yi)},$$slots:{default:!0}}),g(nr);var $a=A(nr,2);ki($a,21,()=>r(Fe),dt=>dt.id,(dt,yt)=>{var Yi=He(),tn=pe(Yi);{var ji=Mi=>{tu(Mi,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get ref(){return Yt[r(yt).id]},set ref(Ps){Yt[r(yt).id]=Ps}})},fi=Mi=>{let Ps=v(()=>!!r(yt).disabled);Nf(Mi,{get id(){return r(yt).id},get testId(){return r(yt).testId},get icon(){return r(yt).icon},get ariaLabel(){return r(yt).ariaLabel},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(Ps)},get onClick(){return r(yt).onClick},get ref(){return Yt[r(yt).id]},set ref(wa){Yt[r(yt).id]=wa}})};B(tn,Mi=>{r1(r(yt))?Mi(ji):Mi(fi,!1)})}_(dt,Yi)}),g($a),g(Oi),gt(Oi,dt=>St(dt),()=>St()),g(si),gt(si,dt=>nt(dt),()=>nt());var ya=A(si,2);{var ul=dt=>{fd(dt,{get ref(){return Yt.interactiveTimeIndicator},set ref(yt){Yt.interactiveTimeIndicator=yt}})};B(ya,dt=>{Wn&&dt(ul)})}E(dt=>eo=ee(si,1,"wrapper-bottom svelte-f6e8ix",null,eo,dt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Or(nr,"clientWidth",dt=>D(_n,dt)),_(t,Vt),z(),o()}import{ChromecastState as l1,PlaybackState as d1}from"@vkontakte/videoplayer-core/es2015";import{noop as a1}from"@vkontakte/videoplayer-shared/es2015";var Ty=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Iy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ky={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 Hf(t,e){Q(t,ky);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,a1),n=v(()=>o()===a1),a=v(()=>r(n)||i()),s=J(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Rt(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,m)=>{var y=He(),p=pe(y);{var $=b=>{var C=Ty();_(b,C)},w=b=>{var C=Iy();E(()=>Ne(C,"src",e.iconUrl)),It("error",C,d),qs(C),_(b,C)};B(p,b=>{r(s)?b($):b(w,!1)})}_(u,y)},$$slots:{default:!0}})}var Ey=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 Ff(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),_(t,o)}import{noop as Py}from"@vkontakte/videoplayer-shared/es2015";var Ay=L('<span class="text svelte-6gmlbk"> </span>'),My=L('<div aria-hidden="true"><!> <!></div>'),Ly={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 iu(t,e){U(e,!0),Q(t,Ly);let i=f(e,"expanded",3,!1),o=f(e,"click",3,Py),n=f(e,"ref",15,void 0),s=Te().ui.t,d=s("aria_label_volume"),l=v(()=>i()?ws:Ff),u=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");Rt(t,{get testId(){return r(u)},get click(){return o()},ariaLabel:d,role:"switch",get ref(){return n()},set ref(m){n(m)},children:(m,y)=>{var p=My();let $=v(()=>r(l)),w;var b=h(p);Ei(b,()=>r($),(I,M)=>{M(I,{})});var C=A(b,2);{var T=I=>{var M=Ay(),P=h(M,!0);g(M),E(k=>ve(P,k),[()=>s("mobile_unmute")]),_(I,M)};B(C,I=>{i()&&I(T)})}g(p),E(I=>w=ee(p,1,"container svelte-6gmlbk",null,w,I),[()=>({expanded:i()})]),_(m,p)},$$slots:{default:!0}}),z()}var Vy=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 Uf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(3),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),_(t,o)}var Ry={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 zf(t,e){Q(t,Ry);let i=f(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Uf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as By}from"@vkontakte/videoplayer-shared/es2015";function qf(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,By),a=q("menu_pip");Rt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{zf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as Ny}from"@vkontakte/videoplayer-shared/es2015";var Dy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Oy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Hy=L("<div><!></div>"),Fy=L("<div><!></div>"),Uy=L("<div><!></div>"),zy=L("<!> <!> <!>",1),qy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Wy=L("<div><!></div>"),Ky=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Qy=L("<!> <!> <div><!></div>",1),Gy=L('<div aria-hidden="true">\xB7</div> <!>',1),Yy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),jy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
257
257
  .wrapper-middle-left-second.svelte-1afsgkw,
258
258
  .wrapper-middle-right.svelte-1afsgkw {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
259
259
 
@@ -261,7 +261,7 @@ Try switching the\xA0quality to\xA0Auto.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
261
261
  }
262
262
 
263
263
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
264
- }`};function Uf(t,e){var Ci,Zn;U(e,!0),W(t,Ky);let[i,o]=Oe(),n=()=>S(go,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(li,"$disabledControls$",i),s=()=>S(kt,"$playbackState$",i),d=()=>S(Do,"$adPlaybackState",i),l=()=>S(Kt,"$isEnded$",i),u=()=>S(ht,"$playerSize",i),v=()=>S(He,"$scrubbingInProgress",i),$=()=>S(ai,"$chromecastState$",i),p=()=>S(tt,"$isPictureInPictureActive",i),_=()=>S(lt,"$pictureInPictureType$",i),w=()=>S(qe,"$mobileNotReportControlHidden$",i),y=()=>S(gt,"$playerPhase",i),C=()=>S(ji,"$currentGridType$",i),T=()=>S(ge,"$isLive$",i),E=()=>S(dt,"$settingsMenuVisible",i),P=()=>S(ae,"$isRewindableLive$",i),A=()=>S(Ie,"$isActiveLive$",i),I=()=>S(Ui,"$isInteractiveTime$",i),V=()=>S(Gt,"$isAudioAvailable$",i),H=()=>S(Mn,"$settingButtonRef$",i),Y=()=>S(Hi,"$startedByKeyboard$",i),O=()=>S(nt,"$isFullscreen",i),J=()=>S(Xe,"$mobileUnmuteButtonVisible",i),re=()=>S(j,"$muted$",i),Z=()=>S(Ye,"$mobileUnmuteButtonExpanded",i),me=()=>S(Si,"$additionalButtons$",i),de=()=>S(ei,"$crashed$",i),Le=()=>S(St,"$graphIsOpened$",i),Me=()=>S(vo,"$adPosition",i),ve=()=>S(Fi,"$adDuration",i),le=()=>S(mt,"$position$",i),Ae=()=>S(et,"$duration$",i),se=f(e,"playerControlsWrapperRef",15,void 0),N=f(e,"playerControlsRef",15,void 0),Re=f(e,"isAds",3,!1),ie=f(e,"logoTargetUrl",3,""),Ge=f(e,"isOneVideoPlaylist",3,!1),oe=f(e,"customFullscreenSupported",3,!0),G=Ce(),K=mo(),Ve=Ut(),Ne=G.actions.internal.toggleMuted,Je=G.actions.internal.togglePlay,xe=G.actions.internal.pause,we=G.actions.internal.prevVideoClick,Be=G.actions.internal.nextVideoClick,Ze=(Ci=G.callbacks)==null?void 0:Ci.onAudioDoesNotExistHint,ot=(Zn=G.callbacks)==null?void 0:Zn.onAudioDisabledHint,gt=G.playerPhase,et=G.state.duration$,mt=G.state.positionWithScrubbing$,kt=G.state.playbackState$,Gt=G.state.isAudioAvailable$,zt=G.state.isAudioDisabled,Kt=G.state.isEnded$,ge=G.state.isLive$,j=G.state.muted$,Ie=G.state.isActiveLive$,ae=G.state.isRewindableLive$,He=G.ui.scrubbingInProgress,qe=G.ui.mobileNotReportControlHidden$,{isActive$:tt,type$:lt}=K.pictureInPicture$,Ye=G.ui.mobileUnmuteButtonExpanded,Xe=G.ui.mobileUnmuteButtonVisible,dt=G.ui.settingsMenu.visible$,De=G.ui.settingsMenu.openedByBtnKeyboard$,bt=G.ui.controls,We=G.actions.internal.getVideoEpisodes(),Et=G.webApi.pictureInPictureApi,ai=G.state.chromecastState$,ei=G.state.crashed$,li=bt.disabledControls$,Hi=G.ui.startedByKeyboard$,ji=G.ui.currentGridType$,Fi=G.ads.duration,vo=G.ads.position,Do=G.ads.playbackState,nt=G.ui.isFullscreen,ht=G.ui.playerSize,Si=G.ui.additionalButtonsDeprecated$,X=G.actions.internal.getVideoElement,ti=G.actions.internal.replayInteractive,di=G.state.isInteractive,Ui=G.state.isInteractiveTime$,ni=G.state.showInteractiveGraph,gi=G.state.showSeekToInteractive,ci=G.state.showPlayPrevChapter,ut=G.state.showInteractiveTimeIndicator,go=K.seekToInteractiveDisabledTooltip$,St=K.graphIsOpened$,qt=m(()=>F(G.state.playPrevChapterDisabledTooltip)),ii=m(()=>F(n())),eo=m(()=>a().has("EPISODE_BUTTON")),Wn=m(()=>a().has("GRAPH_BUTTON")),zi=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),To=m(()=>a().has("PLAY_BUTTON")),ui=m(()=>a().has("REPLAY_BUTTON")),Ct=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),ho=m(()=>s()===s1.PLAYING),No=m(()=>d()==="paused"),pi=m(()=>l()&&!Re()&&!di),Io=m(()=>!l()||Re()),to=m(()=>e.showNextPrevButtons&&!Re()&&e.prevButtonActive),ko=m(()=>e.showNextPrevButtons&&!Re()&&e.nextButtonActive),Bo=m(()=>u().width>300),Tn=m(()=>u().width>400),Ni=m(v),In=m(()=>$()!==r1.NOT_AVAILABLE&&!(p()&&_()===1)&&!w()&&!di),io=m(()=>y()==="LiveWaitingStart"),Eo=m(()=>!!Et&&$()!==r1.CONNECTED&&!w()&&(_()===1&&r(io)||!r(io))&&!r(Ni)&&!di),Sr=m(()=>!r(Ni)&&Gi(C(),"s")),lr=m(()=>!e.logoHidden&&u().width>350),kn=m(()=>Ve.features.fullscreen&&!(p()&&_()===1)&&(di?oe():!0)&&!r(Ni)),Kn=m(()=>(!T()||Re())&&u().width>260&&!r(Ni)&&!(Ve.features.interactiveHideTime&&di)),Qn=m(()=>E()||e.showControls),_o=m(()=>!Re()&&!T()&&!!(We!=null&&We.length)&&r(Bo)&&!r(eo)&&!r(Ni)),pn=m(()=>!P()||!!A()),En=m(()=>ni&&Gi(C(),"m")),rt=fe({}),Pn=Ly(tl,260);ze(()=>{u(),I(),Pn(X(),bt,rt,e.showControls)});let Wo=()=>G.actions.internal.toggleChromecast();function Ko(){xs({isAudioDisabled:zt,audioDisabledHintCallback:ot,isAudioAvailable:V(),audioIsNotExistHintCallback:Ze})&&Ne()}function Cr(){return Pt(this,null,function*(){Et!=null&&Et.isActive()?yield Et==null?void 0:Et.remove():yield Et==null?void 0:Et.request()})}function Qo(){!zt&&V()&&Xe.set(!1),Ko()}let An=ee(""),Gn=(pt,Ot)=>{if(!pt){B(An,fe(F("tooltip_live")));return}Ot&&Ot===s1.PAUSED&&B(An,fe(F("tooltip_play")))};ze(()=>{Gn(r(pn),s())});let Mn=ue();ze(()=>{H()&&Qa(H(),E(),De)}),ze(()=>{Jc(Hi,Y(),rt.playButton)});var Go=Wy(),qi=pe(Go);{var oo=pt=>{var Ot=Hy(),Mi=pe(Ot);let Lo;var st=M(Mi,2);let Qt;var mi=h(st);{var Yi=ct=>{let Ht=m(()=>V()&&!zt&&Z());tu(ct,{get muted(){return re()},get expanded(){return r(Ht)},click:Qo,get ref(){return rt.volume},set ref(Vi){rt.volume=Vi}})};R(mi,ct=>{(!V()||J())&&ct(Yi)})}g(st);var Zi=M(st,2);let Li;var xi=h(Zi);ki(xi,1,me,({iconUrl:ct,ariaLabel:Ht,testId:Vi,onClick:ye,tooltip:Tt})=>ct,(ct,Ht)=>{let Vi=()=>r(Ht).iconUrl,ye=()=>r(Ht).ariaLabel,Tt=()=>r(Ht).testId,hi=()=>r(Ht).onClick,Ii=()=>r(Ht).tooltip,ro=m(()=>{var vi;return(vi=ye())!=null?vi:Ii()});Nf(ct,{get iconUrl(){return Vi()},get ariaLabel(){return r(ro)},get testId(){return Tt()},get onClick(){return hi()}})});var Xi=M(xi,2);{var Ti=ct=>{hd(ct,{get ref(){return rt.autoplayNextToggle},set ref(Ht){rt.autoplayNextToggle=Ht}})};R(Xi,ct=>{e.showAutoplayNext&&!Ge()&&ct(Ti)})}var no=M(Xi,2);{var Wi=ct=>{ld(ct,{isMobile:!0,click:Wo,get state(){return $()},get ref(){return rt.chromecast},set ref(Ht){rt.chromecast=Ht}})};R(no,ct=>{r(In)&&ct(Wi)})}var hn=M(no,2);{var Xn=ct=>{Ff(ct,{click:Cr,get isPictureInPictureActive(){return p()},get ref(){return rt.pip},set ref(Ht){rt.pip=Ht}})};R(hn,ct=>{r(Eo)&&ct(Xn)})}var ur=M(hn,2);{var Jn=ct=>{Xa(ct,{ref$:Mn})};R(ur,ct=>{de()&&ct(Jn)})}var Pr=M(ur,2);{var pr=ct=>{ad(ct,{click:xe,get targetUrl(){return ie()},get logoClickable(){return e.logoClickable},get ref(){return rt.vkLogo},set ref(Ht){rt.vkLogo=Ht}})};R(Pr,ct=>{r(lr)&&ct(pr)})}g(Zi);var _n=M(Zi,2);let Vn;var Zo=h(_n);{var Xo=ct=>{let Ht=m(()=>we.bind(null,!0));ua(ct,{get click(){return r(Ht)},type:"prev",isMobile:!0,get ref(){return rt.prevButton},set ref(Vi){rt.prevButton=Vi}})};R(Zo,ct=>{r(to)&&ct(Xo)})}var er=M(Zo,2);{var Ar=ct=>{ol(ct,{get disabled(){return r(To)},click:Je,isMobile:!0,get isPlaying(){return r(ho)},get ref(){return rt.playButton},set ref(Ht){rt.playButton=Ht}})};R(er,ct=>{r(Io)&&ct(Ar)})}var Mr=M(er,2);{var fr=ct=>{il(ct,{get disabled(){return r(ui)},click:Je,isMobile:!0,get ref(){return rt.replayButton},set ref(Ht){rt.replayButton=Ht}})};R(Mr,ct=>{r(pi)&&ct(fr)})}var bo=M(Mr,2);{var Rn=ct=>{let Ht=m(()=>Be.bind(null,!0));ua(ct,{get click(){return r(Ht)},type:"next",isMobile:!0,get ref(){return rt.nextButton},set ref(Vi){rt.nextButton=Vi}})};R(bo,ct=>{r(ko)&&ct(Rn)})}g(_n);var tr=M(_n,2);{var Lr=ct=>{var Ht=Oy(),Vi=pe(Ht);{var ye=vi=>{var ke=Dy();let At;ke.__click=[Vy,Ct,e,qt];var Xt=h(ke);let wi=m(()=>!e.showControls);gd(Xt,{get hidden(){return r(wi)},get disabled(){return r(Ct)},get click(){return e.playPrevChapter},get ref(){return rt.playPrevChapterButton},set ref(oi){rt.playPrevChapterButton=oi}}),g(ke),k(oi=>At=te(ke,1,"wrapper-middle-left svelte-1afsgkw",null,At,oi),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(vi,ke)};R(Vi,vi=>{ci&&vi(ye)})}var Tt=M(Vi,2);{var hi=vi=>{var ke=Ny();let At;var Xt=h(ke);let wi=m(()=>!e.showControls&&!Le());bd(Xt,{get hidden(){return r(wi)},get disabled(){return r(Wn)},get click(){return St.toggle},get graphIsOpened(){return Le()},get ref(){return rt.interactiveGraphButton},set ref(oi){rt.interactiveGraphButton=oi}}),g(ke),k(oi=>At=te(ke,1,Vl(ci?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",At,oi),[()=>({fullscreen:O(),hidden:!e.showControls&&!Le()})]),b(vi,ke)};R(Tt,vi=>{r(En)&&vi(hi)})}var Ii=M(Tt,2);{var ro=vi=>{var ke=By();let At;ke.__click=[Ry,zi,e,ii];var Xt=h(ke);let wi=m(()=>!e.showControls);_d(Xt,{get hidden(){return r(wi)},get disabled(){return r(zi)},get click(){return e.seekToInteractive},get ref(){return rt.seekToInteractiveButton},set ref(oi){rt.seekToInteractiveButton=oi}}),g(ke),k(oi=>At=te(ke,1,"wrapper-middle-right svelte-1afsgkw",null,At,oi),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(vi,ke)};R(Ii,vi=>{gi&&vi(ro)})}b(ct,Ht)};R(tr,ct=>{di&&!v()&&ct(Lr)})}k((ct,Ht,Vi,ye)=>{Lo=te(Mi,1,"overlay-mobile svelte-1afsgkw",null,Lo,ct),Qt=te(st,1,"wrapper-top-left svelte-1afsgkw",null,Qt,Ht),Li=te(Zi,1,"wrapper-top-right svelte-1afsgkw",null,Li,Vi),Vn=te(_n,1,"wrapper-middle svelte-1afsgkw",null,Vn,ye)},[()=>({hidden:!r(Qn)}),()=>({hidden:!e.showControls,fullscreen:O()}),()=>({hidden:!e.showControls&&!w(),fullscreen:O()}),()=>({hidden:!e.showControls||v()||e.endScreenShown&&e.showNextPrevButtons})]),b(pt,Ot)};R(qi,pt=>{Re()||pt(oo)})}var Po=M(qi,2);{var fn=pt=>{var Ot=zy(),Mi=pe(Ot);{var Lo=Li=>{var xi=Fy();let Xi;var Ti=h(xi);tu(Ti,{get muted(){return re()},expanded:!1,click:Qo,get ref(){return rt.volume},set ref(no){rt.volume=no}}),g(xi),k(no=>Xi=te(xi,1,"wrapper-top-right svelte-1afsgkw",null,Xi,no),[()=>({fullscreen:O()})]),b(Li,xi)};R(Mi,Li=>{J()&&Li(Lo)})}var st=M(Mi,2);{var Qt=Li=>{var xi=Uy(),Xi=h(xi);let Ti=m(()=>!r(No));ol(Xi,{get disabled(){return r(To)},click:Je,isMobile:!0,get isPlaying(){return r(Ti)},get ref(){return rt.playButton},set ref(no){rt.playButton=no}}),g(xi),b(Li,xi)};R(st,Li=>{r(No)&&Li(Qt)})}var mi=M(st,2);let Yi;var Zi=h(mi);dd(Zi,{get position(){return Me()},get duration(){return ve()}}),g(mi),k(Li=>Yi=te(mi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Yi,Li),[()=>({fullscreen:O()})]),b(pt,Ot)};R(Po,pt=>{Re()&&d()!=="inactive"&&pt(fn)})}var jo=M(Po,2);let Yo;var Ai=h(jo);let Oo;var Ao=h(Ai);te(Ao,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var dr=h(Ao);{var mn=pt=>{Ro(pt,{get disabled(){return r(ui)},get ref(){return rt.replayButton},set ref(Ot){rt.replayButton=Ot},children:(Ot,Mi)=>{il(Ot,{get disabled(){return r(ui)},click:ti})},$$slots:{default:!0}})};R(dr,pt=>{di&&pt(mn)})}var vn=M(dr,2);{var Tr=pt=>{Ro(pt,{get ref(){return rt.liveButton},set ref(Ot){rt.liveButton=Ot},children:(Ot,Mi)=>{$d(Ot,{get isLiveActive(){return r(pn)},isMobile:!0,get ariaLabel(){return r(An)}})},$$slots:{default:!0}})};R(vn,pt=>{!Re()&&T()&&pt(Tr)})}var Ho=M(vn,2);{var Ir=pt=>{let Ot=m(()=>Re()?Me():le()),Mi=m(()=>Re()?ve():Ae());nd(pt,{get showDuration(){return r(Tn)},get position(){return r(Ot)},get duration(){return r(Mi)},isMobile:!0,get ref(){return rt.time},set ref(Lo){rt.time=Lo}})};R(Ho,pt=>{r(Kn)&&pt(Ir)})}var Ln=M(Ho,2);let jn=m(()=>!r(_o));Ro(Ln,{className:"w-max",get disabled(){return r(jn)},get ref(){return rt.episodes},set ref(pt){rt.episodes=pt},children:(pt,Ot)=>{var Mi=Ue(),Lo=pe(Mi);{var st=Qt=>{var mi=qy(),Yi=M(pe(mi),2);cd(Yi,{get position(){return le()},get duration(){return Ae()},timeCodes:We}),b(Qt,mi)};R(Lo,Qt=>{r(_o)&&Qt(st)})}b(pt,Mi)},$$slots:{default:!0}});var cr=M(Ln,2);{var kr=pt=>{Ro(pt,{get ref(){return rt.settings},set ref(Ot){rt.settings=Ot},children:(Ot,Mi)=>{Xa(Ot,{ref$:Mn})},$$slots:{default:!0}})};R(cr,pt=>{r(Sr)&&pt(kr)})}var Yn=M(cr,2);{var gn=pt=>{Ro(pt,{get ref(){return rt.fullscreen},set ref(Ot){rt.fullscreen=Ot},children:(Ot,Mi)=>{sd(Ot,{get click(){return e.toggleFullscreen},get isFullscreen(){return O()}})},$$slots:{default:!0}})};R(Yn,pt=>{r(kn)&&pt(gn)})}g(Ao),ft(Ao,pt=>N(pt),()=>N());var Er=M(Ao,2);la(Er,{get isAds(){return Re()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return rt.timeline},set ref(pt){rt.timeline=pt}}),g(Ai),g(jo),ft(jo,pt=>se(pt),()=>se());var fi=M(jo,2);{var Mo=pt=>{md(pt,{get ref(){return rt.interactiveTimeIndicator},set ref(Ot){rt.interactiveTimeIndicator=Ot}})};R(fi,pt=>{ut&&pt(Mo)})}k((pt,Ot)=>{Yo=te(jo,1,"wrapper-bottom svelte-1afsgkw",null,Yo,pt),Oo=te(Ai,1,"controls-wrapper svelte-1afsgkw",null,Oo,Ot)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:O()})]),b(t,Go),z(),o()}at(["click"]);function xd(t,e){U(e,!0);let[i,o]=Oe(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),u=f(e,"logoTargetUrl",3,""),v=f(e,"showAutoplayNext",3,!1),$=f(e,"isOneVideoPlaylist",3,!1),p=f(e,"customFullscreenSupported",3,!0),_=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,a1),y=f(e,"onDisabledSeekToInteractiveClick",3,a1),T=Ce().ui.isMobile,E=ee(!1);Ft(()=>{let V=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(V)});var P=Ue(),A=pe(P);{var I=V=>{var H=Ue(),Y=pe(H);{var O=re=>{Uf(re,{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 v()},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 y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},J=re=>{Df(re,{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 v()},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(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};R(Y,re=>{n()?re(O):re(J,!1)})}b(V,H)};R(A,V=>{r(E)&&V(I)})}b(t,P),z(),o()}var Qy=$e('<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 zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i))),b(t,o)}function qf(t,e){let i=f(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);zf(t,{get style(){return r(o)}})}var Gy=$e('<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 Wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i))),b(t,o)}var jy=$e('<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 Kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=jy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i))),b(t,o)}function iu(t,e){let i=f(e,"isOff",3,!1);var o=Ue(),n=pe(o);{var a=d=>{Kf(d,{})},s=d=>{Wf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Yy=$e('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Qf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i))),b(t,o)}function Gf(t,e){let i=f(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Qf(t,{get style(){return r(o)}})}var Zy=$e('<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 jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(2),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i))),b(t,o)}function Yf(t,e){let i=f(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);jf(t,{get style(){return r(o)}})}var Xy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Jy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),e4=L("<div><!></div>"),t4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
264
+ }`};function Wf(t,e){var _n,Yt;U(e,!0),Q(t,jy);let[i,o]=De(),n=()=>S(ci,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Si,"$disabledControls$",i),s=()=>S(St,"$playbackState$",i),d=()=>S(Fi,"$adPlaybackState",i),l=()=>S(ni,"$isEnded$",i),u=()=>S(Gi,"$playerSize",i),m=()=>S($e,"$scrubbingInProgress",i),y=()=>S(Qt,"$chromecastState$",i),p=()=>S(Be,"$isPictureInPictureActive",i),$=()=>S(je,"$pictureInPictureType$",i),w=()=>S(ie,"$mobileNotReportControlHidden$",i),b=()=>S(ct,"$playerPhase",i),C=()=>S(Ge,"$currentGridType$",i),T=()=>S(Mt,"$isLive$",i),I=()=>S(rt,"$settingsMenuVisible",i),M=()=>S(O,"$isRewindableLive$",i),P=()=>S(Bt,"$isActiveLive$",i),k=()=>S(Co,"$isInteractiveTime$",i),R=()=>S(mt,"$isAudioAvailable$",i),W=()=>S(Bo,"$settingButtonRef$",i),j=()=>S(ii,"$startedByKeyboard$",i),F=()=>S(lo,"$isFullscreen",i),G=()=>S(Ve,"$mobileUnmuteButtonVisible",i),ne=()=>S(Qe,"$mobileUnmuteButtonExpanded",i),X=()=>S(ot,"$additionalButtons$",i),se=()=>S(bt,"$crashed$",i),ce=()=>S(pt,"$graphIsOpened$",i),Me=()=>S(Ri,"$adPosition",i),Le=()=>S(Xt,"$adDuration",i),he=()=>S(nt,"$position$",i),ae=()=>S(ut,"$duration$",i),Pe=f(e,"playerControlsWrapperRef",15,void 0),re=f(e,"playerControlsRef",15,void 0),V=f(e,"isAds",3,!1),we=f(e,"logoTargetUrl",3,""),be=f(e,"isOneVideoPlaylist",3,!1),qe=f(e,"customFullscreenSupported",3,!0),H=Te(),de=so(),_e=qt(),te=H.actions.internal.toggleMuted,Oe=H.actions.internal.togglePlay,Ze=H.actions.internal.pause,Se=H.actions.internal.prevVideoClick,Re=H.actions.internal.nextVideoClick,ke=(_n=H.callbacks)==null?void 0:_n.onAudioDoesNotExistHint,ze=(Yt=H.callbacks)==null?void 0:Yt.onAudioDisabledHint,ct=H.playerPhase,ut=H.state.duration$,nt=H.state.positionWithScrubbing$,St=H.state.playbackState$,mt=H.state.isAudioAvailable$,Kt=H.state.isAudioDisabled,ni=H.state.isEnded$,Mt=H.state.isLive$,Bt=H.state.isActiveLive$,O=H.state.isRewindableLive$,$e=H.ui.scrubbingInProgress,ie=H.ui.mobileNotReportControlHidden$,{isActive$:Be,type$:je}=de.pictureInPicture$,Qe=H.ui.mobileUnmuteButtonExpanded,Ve=H.ui.mobileUnmuteButtonVisible,rt=H.ui.settingsMenu.visible$,et=H.ui.settingsMenu.openedByBtnKeyboard$,_t=H.ui.controls,it=H.actions.internal.getVideoEpisodes(),Xe=H.webApi.pictureInPictureApi,Qt=H.state.chromecastState$,bt=H.state.crashed$,Si=_t.disabledControls$,ii=H.ui.startedByKeyboard$,Ge=H.ui.currentGridType$,Xt=H.ads.duration,Ri=H.ads.position,Fi=H.ads.playbackState,lo=H.ui.isFullscreen,Gi=H.ui.playerSize,ot=H.ui.additionalButtonsDeprecated$,$t=H.actions.internal.getVideoElement,Ai=H.actions.internal.replayInteractive,Zi=H.state.isInteractive,Co=H.state.isInteractiveTime$,Z=H.state.showInteractiveGraph,Jt=H.state.showSeekToInteractive,bi=H.state.showPlayPrevChapter,Bi=H.state.showInteractiveTimeIndicator,ci=de.seekToInteractiveDisabledTooltip$,pt=de.graphIsOpened$,hi=v(()=>q(H.state.playPrevChapterDisabledTooltip)),Je=v(()=>q(n())),Lt=v(()=>a().has("EPISODE_BUTTON")),co=v(()=>a().has("GRAPH_BUTTON")),ei=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),qn=v(()=>a().has("PLAY_BUTTON")),Xi=v(()=>a().has("REPLAY_BUTTON")),Mo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),mi=v(()=>s()===d1.PLAYING),Ct=v(()=>d()==="paused"),Ni=v(()=>l()&&!V()&&!Zi),Uo=v(()=>!l()||V()),vi=v(()=>e.showNextPrevButtons&&!V()&&e.prevButtonActive),zo=v(()=>e.showNextPrevButtons&&!V()&&e.nextButtonActive),Ui=v(()=>u().width>300),To=v(()=>u().width>400),zi=v(m),Wn=v(()=>y()!==l1.NOT_AVAILABLE&&!(p()&&$()===1)&&!w()&&!Zi),uo=v(()=>b()==="LiveWaitingStart"),En=v(()=>!!Xe&&y()!==l1.CONNECTED&&!w()&&($()===1&&r(uo)||!r(uo))&&!r(zi)&&!Zi),Lo=v(()=>!r(zi)&&Qi(C(),"s")),Vo=v(()=>!e.logoHidden&&u().width>350),Pn=v(()=>_e.features.fullscreen&&!(p()&&$()===1)&&(Zi?qe():!0)&&!r(zi)),kr=v(()=>(!T()||V())&&u().width>260&&!r(zi)&&!(_e.features.interactiveHideTime&&Zi)),ur=v(()=>I()||e.showControls),An=v(()=>!V()&&!T()&&!!(it!=null&&it.length)&&r(Ui)&&!r(Lt)&&!r(zi)),fn=v(()=>!M()||!!P()),Kn=v(()=>Z&&Qi(C(),"m")),ft=fe({}),po=Ny(nl,260);Ue(()=>{u(),k(),po($t(),_t,ft,e.showControls)});let qo=()=>H.actions.internal.toggleChromecast();function Mn(){return Et(this,null,function*(){Xe!=null&&Xe.isActive()?yield Xe==null?void 0:Xe.remove():yield Xe==null?void 0:Xe.request()})}function Ro(){(!Kt&&R()||V())&&Ve.set(!1),xs({isAudioDisabled:Kt,audioDisabledHintCallback:ze,isAudioAvailable:R(),audioIsNotExistHintCallback:ke,isAds:V()})&&te()}let Wo=J(""),Qn=(vt,Dt)=>{if(!vt){D(Wo,fe(q("tooltip_live")));return}Dt&&Dt===d1.PAUSED&&D(Wo,fe(q("tooltip_play")))};Ue(()=>{Qn(r(fn),s())});let Bo=ue();Ue(()=>{W()&&ja(W(),I(),et)}),Ue(()=>{eu(ii,j(),ft.playButton)});var Gn=Yy(),mn=pe(Gn);{var Yn=vt=>{var Dt=qy(),ui=pe(Dt);let ai;var vo=A(ui,2);let ko;var Eo=h(vo);{var Go=lt=>{let Gt=v(()=>R()&&!Kt&&ne());iu(lt,{get expanded(){return r(Gt)},click:Ro,get ref(){return ft.volume},set ref(ri){ft.volume=ri}})};B(Eo,lt=>{(!R()||G())&&lt(Go)})}g(vo);var Yo=A(vo,2);let tt;var Ot=h(Yo);ki(Ot,1,X,({iconUrl:lt,ariaLabel:Gt,testId:ri,onClick:go,tooltip:$n})=>lt,(lt,Gt)=>{let ri=()=>r(Gt).iconUrl,go=()=>r(Gt).ariaLabel,$n=()=>r(Gt).testId,or=()=>r(Gt).onClick,yn=()=>r(Gt).tooltip,Rn=v(()=>{var Ci;return(Ci=go())!=null?Ci:yn()});Hf(lt,{get iconUrl(){return ri()},get ariaLabel(){return r(Rn)},get testId(){return $n()},get onClick(){return or()}})});var _i=A(Ot,2);{var Ji=lt=>{gd(lt,{get ref(){return ft.autoplayNextToggle},set ref(Gt){ft.autoplayNextToggle=Gt}})};B(_i,lt=>{e.showAutoplayNext&&!be()&&lt(Ji)})}var Di=A(_i,2);{var Jn=lt=>{ad(lt,{isMobile:!0,click:qo,get state(){return y()},get ref(){return ft.chromecast},set ref(Gt){ft.chromecast=Gt}})};B(Di,lt=>{r(Wn)&&lt(Jn)})}var Do=A(Di,2);{var jo=lt=>{qf(lt,{click:Mn,get isPictureInPictureActive(){return p()},get ref(){return ft.pip},set ref(Gt){ft.pip=Gt}})};B(Do,lt=>{r(En)&&lt(jo)})}var li=A(Do,2);{var Zo=lt=>{tl(lt,{ref$:Bo})};B(li,lt=>{se()&&lt(Zo)})}var bn=A(li,2);{var Mr=lt=>{sd(lt,{click:Ze,get targetUrl(){return we()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(Gt){ft.vkLogo=Gt}})};B(bn,lt=>{r(Vo)&&lt(Mr)})}g(Yo);var Xo=A(Yo,2);let vr;var er=h(Xo);{var gr=lt=>{let Gt=v(()=>Se.bind(null,!0));ca(lt,{get click(){return r(Gt)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(ri){ft.prevButton=ri}})};B(er,lt=>{r(vi)&&lt(gr)})}var tr=A(er,2);{var Lr=lt=>{sl(lt,{get disabled(){return r(qn)},click:Oe,isMobile:!0,get isPlaying(){return r(mi)},get ref(){return ft.playButton},set ref(Gt){ft.playButton=Gt}})};B(tr,lt=>{r(Uo)&&lt(Lr)})}var ir=A(tr,2);{var Jo=lt=>{rl(lt,{get disabled(){return r(Xi)},click:Oe,isMobile:!0,get ref(){return ft.replayButton},set ref(Gt){ft.replayButton=Gt}})};B(ir,lt=>{r(Ni)&&lt(Jo)})}var Vr=A(ir,2);{var en=lt=>{let Gt=v(()=>Re.bind(null,!0));ca(lt,{get click(){return r(Gt)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(ri){ft.nextButton=ri}})};B(Vr,lt=>{r(zo)&&lt(en)})}g(Xo);var hr=A(Xo,2);{var qr=lt=>{var Gt=zy(),ri=pe(Gt);{var go=Ci=>{var me=Hy();let xt;me.__click=[Dy,Mo,e,hi];var pi=h(me);let gi=v(()=>!e.showControls);vd(pi,{get hidden(){return r(gi)},get disabled(){return r(Mo)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(Ti){ft.playPrevChapterButton=Ti}}),g(me),E(Ti=>xt=ee(me,1,"wrapper-middle-left svelte-1afsgkw",null,xt,Ti),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(Ci,me)};B(ri,Ci=>{bi&&Ci(go)})}var $n=A(ri,2);{var or=Ci=>{var me=Fy();let xt;var pi=h(me);let gi=v(()=>!e.showControls&&!ce());_d(pi,{get hidden(){return r(gi)},get disabled(){return r(co)},get click(){return pt.toggle},get graphIsOpened(){return ce()},get ref(){return ft.interactiveGraphButton},set ref(Ti){ft.interactiveGraphButton=Ti}}),g(me),E(Ti=>xt=ee(me,1,Ll(bi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",xt,Ti),[()=>({fullscreen:F(),hidden:!e.showControls&&!ce()})]),_(Ci,me)};B($n,Ci=>{r(Kn)&&Ci(or)})}var yn=A($n,2);{var Rn=Ci=>{var me=Uy();let xt;me.__click=[Oy,ei,e,Je];var pi=h(me);let gi=v(()=>!e.showControls);hd(pi,{get hidden(){return r(gi)},get disabled(){return r(ei)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(Ti){ft.seekToInteractiveButton=Ti}}),g(me),E(Ti=>xt=ee(me,1,"wrapper-middle-right svelte-1afsgkw",null,xt,Ti),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(Ci,me)};B(yn,Ci=>{Jt&&Ci(Rn)})}_(lt,Gt)};B(hr,lt=>{Zi&&!m()&&lt(qr)})}E((lt,Gt,ri,go)=>{ai=ee(ui,1,"overlay-mobile svelte-1afsgkw",null,ai,lt),ko=ee(vo,1,"wrapper-top-left svelte-1afsgkw",null,ko,Gt),tt=ee(Yo,1,"wrapper-top-right svelte-1afsgkw",null,tt,ri),vr=ee(Xo,1,"wrapper-middle svelte-1afsgkw",null,vr,go)},[()=>({hidden:!r(ur)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),_(vt,Dt)};B(mn,vt=>{V()||vt(Yn)})}var Ko=A(mn,2);{var fo=vt=>{var Dt=Qy(),ui=pe(Dt);{var ai=tt=>{var Ot=Wy();let _i;var Ji=h(Ot);iu(Ji,{expanded:!1,click:Ro,get ref(){return ft.volume},set ref(Di){ft.volume=Di}}),g(Ot),E(Di=>_i=ee(Ot,1,"wrapper-top-right svelte-1afsgkw",null,_i,Di),[()=>({fullscreen:F()})]),_(tt,Ot)};B(ui,tt=>{G()&&tt(ai)})}var vo=A(ui,2);{var ko=tt=>{var Ot=Ky(),_i=h(Ot);let Ji=v(()=>!r(Ct));sl(_i,{get disabled(){return r(qn)},click:Oe,isMobile:!0,get isPlaying(){return r(Ji)},get ref(){return ft.playButton},set ref(Di){ft.playButton=Di}}),g(Ot),_(tt,Ot)};B(vo,tt=>{r(Ct)&&tt(ko)})}var Eo=A(vo,2);let Go;var Yo=h(Eo);ld(Yo,{get position(){return Me()},get duration(){return Le()}}),g(Eo),E(tt=>Go=ee(Eo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Go,tt),[()=>({fullscreen:F()})]),_(vt,Dt)};B(Ko,vt=>{V()&&d()!=="inactive"&&vt(fo)})}var Ii=A(Ko,2);let vn;var gn=h(Ii);let Qo;var mo=h(gn);ee(mo,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Ln=h(mo);{var Io=vt=>{Ao(vt,{get disabled(){return r(Xi)},get ref(){return ft.replayButton},set ref(Dt){ft.replayButton=Dt},children:(Dt,ui)=>{rl(Dt,{get disabled(){return r(Xi)},click:Ai})},$$slots:{default:!0}})};B(Ln,vt=>{Zi&&vt(Io)})}var qi=A(Ln,2);{var pr=vt=>{Ao(vt,{get ref(){return ft.liveButton},set ref(Dt){ft.liveButton=Dt},children:(Dt,ui)=>{bd(Dt,{get isLiveActive(){return r(fn)},isMobile:!0,get ariaLabel(){return r(Wo)}})},$$slots:{default:!0}})};B(qi,vt=>{!V()&&T()&&vt(pr)})}var No=A(qi,2);{var jn=vt=>{let Dt=v(()=>V()?Me():he()),ui=v(()=>V()?Le():ae());od(vt,{get showDuration(){return r(To)},get position(){return r(Dt)},get duration(){return r(ui)},isMobile:!0,get ref(){return ft.time},set ref(ai){ft.time=ai}})};B(No,vt=>{r(kr)&&vt(jn)})}var Vn=A(No,2);let Zn=v(()=>!r(An));Ao(Vn,{className:"w-max",get disabled(){return r(Zn)},get ref(){return ft.episodes},set ref(vt){ft.episodes=vt},children:(vt,Dt)=>{var ui=He(),ai=pe(ui);{var vo=ko=>{var Eo=Gy(),Go=A(pe(Eo),2);dd(Go,{get position(){return he()},get duration(){return ae()},timeCodes:it}),_(ko,Eo)};B(ai,ko=>{r(An)&&ko(vo)})}_(vt,ui)},$$slots:{default:!0}});var fr=A(Vn,2);{var hn=vt=>{Ao(vt,{get ref(){return ft.settings},set ref(Dt){ft.settings=Dt},children:(Dt,ui)=>{tl(Dt,{ref$:Bo})},$$slots:{default:!0}})};B(fr,vt=>{r(Lo)&&vt(hn)})}var Er=A(fr,2);{var mr=vt=>{Ao(vt,{get ref(){return ft.fullscreen},set ref(Dt){ft.fullscreen=Dt},children:(Dt,ui)=>{rd(Dt,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};B(Er,vt=>{r(Pn)&&vt(mr)})}g(mo),gt(mo,vt=>re(vt),()=>re());var Xn=A(mo,2);aa(Xn,{get isAds(){return V()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return ft.timeline},set ref(vt){ft.timeline=vt}}),g(gn),g(Ii),gt(Ii,vt=>Pe(vt),()=>Pe());var Pr=A(Ii,2);{var Ar=vt=>{fd(vt,{get ref(){return ft.interactiveTimeIndicator},set ref(Dt){ft.interactiveTimeIndicator=Dt}})};B(Pr,vt=>{Bi&&vt(Ar)})}E((vt,Dt)=>{vn=ee(Ii,1,"wrapper-bottom svelte-1afsgkw",null,vn,vt),Qo=ee(gn,1,"controls-wrapper svelte-1afsgkw",null,Qo,Dt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),_(t,Gn),z(),o()}at(["click"]);function yd(t,e){U(e,!0);let[i,o]=De(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),u=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),y=f(e,"isOneVideoPlaylist",3,!1),p=f(e,"customFullscreenSupported",3,!0),$=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,c1),b=f(e,"onDisabledSeekToInteractiveClick",3,c1),T=Te().ui.isMobile,I=J(!1);zt(()=>{let R=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(R)});var M=He(),P=pe(M);{var k=R=>{var W=He(),j=pe(W);{var F=ne=>{Wf(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return y()},get customFullscreenSupported(){return 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 s()},set playerControlsWrapperRef(X){s(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},G=ne=>{Of(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return y()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return 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)}})};B(j,ne=>{n()?ne(F):ne(G,!1)})}_(R,W)};B(P,R=>{r(I)&&R(k)})}_(t,M),z(),o()}var Zy=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 Kf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({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 Qf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Kf(t,{get style(){return r(o)}})}var Xy=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 Gf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({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 Jy=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 Yf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({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 ou(t,e){let i=f(e,"isOff",3,!1);var o=He(),n=pe(o);{var a=d=>{Yf(d,{})},s=d=>{Gf(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var e4=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 jf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=e4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({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 Zf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);jf(t,{get style(){return r(o)}})}var t4=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 Xf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=t4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(2),g(o),E(()=>n=Ie(o,n,K({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 Jf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Xf(t,{get style(){return r(o)}})}var i4=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),o4=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),n4=L("<div><!></div>"),r4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
265
265
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
266
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
267
267
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -276,23 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
276
276
  @keyframes svelte-1ad3n06-fadeOut {
277
277
  0% {opacity:1;}
278
278
  100% {opacity:0;}
279
- }`};function Zf(t,e){U(e,!0),W(t,t4);let[i,o]=Oe(),n=()=>S(e.data,"$data",i),s=Ce().ui.t,d=m(()=>!n()),l=m(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=m(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),v=m(()=>{var C;return(C=n())==null?void 0:C.type}),$=m(()=>{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=e4();let _;var w=h(p);{var y=C=>{var T=Jy(),E=pe(T),P=h(E);{var A=oe=>{let G=m(()=>r(v)==="FORWARD_SEEK");qf(oe,{get reversed(){return r(G)}})};R(P,oe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(v))&&oe(A)})}var I=M(P,2);{var V=oe=>{ss(oe,{})};R(I,oe=>{r(v)==="PAUSE"&&oe(V)})}var H=M(I,2);{var Y=oe=>{xr(oe,{})};R(H,oe=>{r(v)==="PLAY"&&oe(Y)})}var O=M(H,2);{var J=oe=>{vd(oe,{})};R(O,oe=>{r(v)==="REPLAY"&&oe(J)})}var re=M(O,2);{var Z=oe=>{iu(oe,{isOff:!0})};R(re,oe=>{r(v)==="SUBTITLES_OFF"&&oe(Z)})}var me=M(re,2);{var de=oe=>{iu(oe,{})};R(me,oe=>{r(v)==="SUBTITLES_ON"&&oe(de)})}var Le=M(me,2);{var Me=oe=>{let G=m(()=>r(v)==="RATE_UP");Gf(oe,{get reversed(){return r(G)}})};R(Le,oe=>{["RATE_DOWN","RATE_UP"].includes(r(v))&&oe(Me)})}var ve=M(Le,2);{var le=oe=>{let G=m(()=>r(v)==="EPISODE_NEXT");Yf(oe,{get reversed(){return r(G)}})};R(ve,oe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(v))&&oe(le)})}var Ae=M(ve,2);{var se=oe=>{ws(oe,{volume:0})};R(Ae,oe=>{r(v)==="MUTE"&&oe(se)})}var N=M(Ae,2);{var Re=oe=>{ws(oe,{volume:1})};R(N,oe=>{r(v)==="VOLUME"&&oe(Re)})}g(E);var ie=M(E,2);{var Ge=oe=>{var G=Xy(),K=h(G,!0);g(G),k(()=>he(K,r($))),b(oe,G)};R(ie,oe=>{r($)&&oe(Ge)})}b(C,T)};R(w,C=>{!r(d)&&r(v)&&C(y)})}g(p),k(C=>_=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(u)})]),b(t,p),z(),o()}var i4=$e('<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 Xf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=i4();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),b(t,o)}var o4=$e('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function Jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=o4();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),b(t,o)}function Ts(t,e){U(e,!0);let i=f(e,"direction",3,"left"),o=f(e,"useBtnColor",3,!1),n=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),s=m(()=>(()=>{let $="";return r(a)&&($+="transform: rotate(180deg);"),o()&&($+="color: var(--btn-color, #fff);"),$.length?$:void 0})());var d=Ue(),l=pe(d);{var u=$=>{let p=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Xf($,{get style(){return r(s)},get"data-testid"(){return r(p)}})},v=$=>{let p=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Jf($,{get style(){return r(s)},get"data-testid"(){return r(p)}})};R(l,$=>{r(n)?$(u):$(v,!1)})}b(t,d),z()}var n4=(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}},r4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},s4=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>'),a4={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 wd(t,e){U(e,!0),W(t,a4);let i=f(e,"isShifted",3,!1),o=Ce(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),v=F("aria_label_spherical_control");var $=s4();let p;$.__keydown=[n4,n,a,s,l,d],$.__keyup=[r4,n,u],Fe($,"aria-label",v);var _=h($),w=h(_),y=h(w);y.__mousedown=a,y.__mouseup=u;var C=h(y);Ts(C,{direction:"up",useBtnColor:!0}),g(y);var T=M(y,2);T.__mousedown=d,T.__mouseup=u;var E=h(T);Ts(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var P=M(w,2),A=h(P);A.__mousedown=l,A.__mouseup=u;var I=h(A);Ts(I,{direction:"up",useBtnColor:!0}),g(A);var V=M(A,2);V.__mousedown=s,V.__mouseup=u;var H=h(V);Ts(H,{direction:"up",useBtnColor:!0}),g(V),g(P),g(_),g($),k(Y=>p=te($,1,"immersive-controls svelte-1yzc86r",null,p,Y),[()=>({"m-shifted":i()})]),wt("mouseleave",y,u),wt("mouseleave",T,u),wt("mouseleave",A,u),wt("mouseleave",V,u),b(t,$),z()}at(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as d1,Subscription as l4,filterChanged as d4,filter as c4}from"@vkontakte/videoplayer-shared/es2015";var l1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var ou=class{constructor(){this.flickeringTimeout=l1(1e3);this.subscriptions=new l4;this.isAuto=!1;this.isLive=!1;this.captions$=new d1([]);this.captionsPrepared$=new d1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(c4(()=>this.isEnabled()),d4()).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 u4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),p4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),f4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),m4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),v4=L("<div><!></div>"),g4={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 fa(t,e){U(e,!0),W(t,g4);let[i,o]=Oe(),n=()=>S($,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),l=f(e,"isMobile",3,!1),u=Ce(),v=Ut(),$=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,_=u.state.isLive$,w=u.ui.isFullscreen,y=m(()=>!!n().isAuto),C=m(()=>!!a()),T=m(()=>e.playerSize.width*.02),E=m(()=>l()&&!s()||r(T)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:r(T)),P=ee(null);ze(()=>{var J,re,Z;(J=r(P))==null||J.setIsAuto(r(y)),(re=r(P))==null||re.setIsLive(r(C)),(Z=r(P))==null||Z.setCaptions(e.captions)});let A=ee(fe([[]]));Ft(()=>{B(P,fe(new ou().subscribe()));let J=r(P).captionsPrepared$.subscribe(re=>{B(A,fe(re))});return()=>{var re;(re=r(P))==null||re.destroy(),J.unsubscribe()}}),Ft(()=>{if(r(y)){let J=window.setTimeout(()=>{p.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(J)}}else p.set(!1)});let I=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=v4();let H;var Y=h(V);{var O=J=>{var re=m4();let Z;var me=h(re),de=h(me);{var Le=ve=>{var le=u4(),Ae=h(le),se=h(Ae,!0);g(Ae),g(le),k(N=>{var Re;it(Ae,`font-size: ${(Re=r(E))!=null?Re:""}px`),he(se,N)},[()=>F("subtitles_auto_caption")]),b(ve,le)},Me=(ve,le)=>{{var Ae=N=>{var Re=Ue(),ie=pe(Re);ki(ie,17,()=>r(A),Ml,(Ge,oe)=>{var G=p4(),K=h(G);ki(K,21,()=>r(oe),({value:Ve,timeAppeared:Ne})=>Ne,(Ve,Ne)=>{let Je=()=>r(Ne).value,xe=()=>r(Ne).timeAppeared;var we=Ue(),Be=pe(we);{var Ze=ot=>{var gt=Or();k(()=>he(gt,Je())),b(ot,gt)};R(Be,ot=>{(!xe()||xe()<=e.position)&&ot(Ze)})}b(Ve,we)}),g(K),g(G),k(()=>{var Ve;return it(K,`font-size: ${(Ve=r(E))!=null?Ve:""}px`)}),b(Ge,G)}),b(N,Re)},se=N=>{var Re=Ue(),ie=pe(Re);ki(ie,17,()=>e.captions,({value:Ge})=>Ge,(Ge,oe)=>{let G=()=>r(oe).value;var K=f4(),Ve=h(K),Ne=h(Ve,!0);g(Ve),g(K),k(()=>{var Je;it(Ve,`font-size: ${(Je=r(E))!=null?Je:""}px`),he(Ne,G())}),b(Ge,K)}),b(N,Re)};R(ve,N=>{var Re;r(y)&&((Re=r(A))!=null&&Re.length)?N(Ae):N(se,!1)},le)}};R(de,ve=>{r(y)&&d()?ve(Le):ve(Me,!1)})}g(me),g(re),k(ve=>{var le;Z=te(re,1,"subtitles-caption svelte-c2x749",null,Z,ve),it(re,`--subtitles-caption-margin: ${(le=r(I))!=null?le:""}%`)},[()=>({mobile:l()})]),b(J,re)};R(Y,J=>{var re;(e.captions.length||(re=r(A))!=null&&re.length)&&J(O)})}g(V),k(J=>H=te(V,1,"subtitles-container svelte-c2x749",null,H,J),[()=>({shifted:e.shifted,auto:r(y)&&!r(C)&&!d()})]),b(t,V),z(),o()}var h4=L('<div class="text svelte-raurnb"> </div>'),_4=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>'),b4={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 Sd(t,e){U(e,!0),W(t,b4);let i=Ut();var o=_4();let n;var a=M(h(o),2);{var s=d=>{var l=h4(),u=h(l);g(l),k(()=>{var v;return he(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(v=e.chromecastDeviceName)!=null?v:""}`)}),b(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),it(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),z()}var $4=$e('<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 em(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$4();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({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))),b(t,o)}var y4=L('<div class="container svelte-13zpvm8"><!></div>'),x4={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 Cd(t){W(t,x4);var e=y4(),i=h(e);em(i,{}),g(e),b(t,e)}var w4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),S4=L("<div><!></div>"),C4={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,
279
+ }`};function em(t,e){U(e,!0),Q(t,r4);let[i,o]=De(),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"}),m=v(()=>{var C;return(C=n())==null?void 0:C.type}),y=v(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=n4();let $;var w=h(p);{var b=C=>{var T=o4(),I=pe(T),M=h(I);{var P=H=>{let de=v(()=>r(m)==="FORWARD_SEEK");Qf(H,{get reversed(){return r(de)}})};B(M,H=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&H(P)})}var k=A(M,2);{var R=H=>{as(H,{})};B(k,H=>{r(m)==="PAUSE"&&H(R)})}var W=A(k,2);{var j=H=>{Tr(H,{})};B(W,H=>{r(m)==="PLAY"&&H(j)})}var F=A(W,2);{var G=H=>{md(H,{})};B(F,H=>{r(m)==="REPLAY"&&H(G)})}var ne=A(F,2);{var X=H=>{ou(H,{isOff:!0})};B(ne,H=>{r(m)==="SUBTITLES_OFF"&&H(X)})}var se=A(ne,2);{var ce=H=>{ou(H,{})};B(se,H=>{r(m)==="SUBTITLES_ON"&&H(ce)})}var Me=A(se,2);{var Le=H=>{let de=v(()=>r(m)==="RATE_UP");Zf(H,{get reversed(){return r(de)}})};B(Me,H=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&H(Le)})}var he=A(Me,2);{var ae=H=>{let de=v(()=>r(m)==="EPISODE_NEXT");Jf(H,{get reversed(){return r(de)}})};B(he,H=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&H(ae)})}var Pe=A(he,2);{var re=H=>{ws(H,{volume:0})};B(Pe,H=>{r(m)==="MUTE"&&H(re)})}var V=A(Pe,2);{var we=H=>{ws(H,{volume:1})};B(V,H=>{r(m)==="VOLUME"&&H(we)})}g(I);var be=A(I,2);{var qe=H=>{var de=i4(),_e=h(de,!0);g(de),E(()=>ve(_e,r(y))),_(H,de)};B(be,H=>{r(y)&&H(qe)})}_(C,T)};B(w,C=>{!r(d)&&r(m)&&C(b)})}g(p),E(C=>$=ee(p,1,"hot-key-helpers-container svelte-1ad3n06",null,$,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(u)})]),_(t,p),z(),o()}var s4=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 tm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=s4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),_(t,o)}var a4=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 im(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=a4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),_(t,o)}function Ts(t,e){U(e,!0);let i=f(e,"direction",3,"left"),o=f(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let y="";return r(a)&&(y+="transform: rotate(180deg);"),o()&&(y+="color: var(--btn-color, #fff);"),y.length?y:void 0})());var d=He(),l=pe(d);{var u=y=>{let p=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");tm(y,{get style(){return r(s)},get"data-testid"(){return r(p)}})},m=y=>{let p=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");im(y,{get style(){return r(s)},get"data-testid"(){return r(p)}})};B(l,y=>{r(n)?y(u):y(m,!1)})}_(t,d),z()}var l4=(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}},d4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},c4=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>'),u4={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function xd(t,e){U(e,!0),Q(t,u4);let i=f(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),m=q("aria_label_spherical_control");var y=c4();let p;y.__keydown=[l4,n,a,s,l,d],y.__keyup=[d4,n,u],Ne(y,"aria-label",m);var $=h(y),w=h($),b=h(w);b.__mousedown=a,b.__mouseup=u;var C=h(b);Ts(C,{direction:"up",useBtnColor:!0}),g(b);var T=A(b,2);T.__mousedown=d,T.__mouseup=u;var I=h(T);Ts(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);Ts(k,{direction:"up",useBtnColor:!0}),g(P);var R=A(P,2);R.__mousedown=s,R.__mouseup=u;var W=h(R);Ts(W,{direction:"up",useBtnColor:!0}),g(R),g(M),g($),g(y),E(j=>p=ee(y,1,"immersive-controls svelte-1yzc86r",null,p,j),[()=>({"m-shifted":i()})]),It("mouseleave",b,u),It("mouseleave",T,u),It("mouseleave",P,u),It("mouseleave",R,u),_(t,y),z()}at(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as p1,Subscription as p4,filterChanged as f4,filter as m4}from"@vkontakte/videoplayer-shared/es2015";var u1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var nu=class{constructor(){this.flickeringTimeout=u1(1e3);this.subscriptions=new p4;this.isAuto=!1;this.isLive=!1;this.captions$=new p1([]);this.captionsPrepared$=new p1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(m4(()=>this.isEnabled()),f4()).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 v4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),g4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),h4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),_4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),b4=L("<div><!></div>"),$4={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 pa(t,e){U(e,!0),Q(t,$4);let[i,o]=De(),n=()=>S(y,"$currentSubtitle$",i),a=()=>S($,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),l=f(e,"isMobile",3,!1),u=Te(),m=qt(),y=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()&&!s()||r(T)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:r(T)),M=J(null);Ue(()=>{var G,ne,X;(G=r(M))==null||G.setIsAuto(r(b)),(ne=r(M))==null||ne.setIsLive(r(C)),(X=r(M))==null||X.setCaptions(e.captions)});let P=J(fe([[]]));zt(()=>{D(M,fe(new nu().subscribe()));let G=r(M).captionsPrepared$.subscribe(ne=>{D(P,fe(ne))});return()=>{var ne;(ne=r(M))==null||ne.destroy(),G.unsubscribe()}}),zt(()=>{if(r(b)){let G=window.setTimeout(()=>{p.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(G)}}else p.set(!1)});let k=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=b4();let W;var j=h(R);{var F=G=>{var ne=_4();let X;var se=h(ne),ce=h(se);{var Me=he=>{var ae=v4(),Pe=h(ae),re=h(Pe,!0);g(Pe),g(ae),E(V=>{var we;st(Pe,`font-size: ${(we=r(I))!=null?we:""}px`),ve(re,V)},[()=>q("subtitles_auto_caption")]),_(he,ae)},Le=(he,ae)=>{{var Pe=V=>{var we=He(),be=pe(we);ki(be,17,()=>r(P),Al,(qe,H)=>{var de=g4(),_e=h(de);ki(_e,21,()=>r(H),({value:te,timeAppeared:Oe})=>Oe,(te,Oe)=>{let Ze=()=>r(Oe).value,Se=()=>r(Oe).timeAppeared;var Re=He(),ke=pe(Re);{var ze=ct=>{var ut=Dr();E(()=>ve(ut,Ze())),_(ct,ut)};B(ke,ct=>{(!Se()||Se()<=e.position)&&ct(ze)})}_(te,Re)}),g(_e),g(de),E(()=>{var te;return st(_e,`font-size: ${(te=r(I))!=null?te:""}px`)}),_(qe,de)}),_(V,we)},re=V=>{var we=He(),be=pe(we);ki(be,17,()=>e.captions,({value:qe})=>qe,(qe,H)=>{let de=()=>r(H).value;var _e=h4(),te=h(_e),Oe=h(te,!0);g(te),g(_e),E(()=>{var Ze;st(te,`font-size: ${(Ze=r(I))!=null?Ze:""}px`),ve(Oe,de())}),_(qe,_e)}),_(V,we)};B(he,V=>{var we;r(b)&&((we=r(P))!=null&&we.length)?V(Pe):V(re,!1)},ae)}};B(ce,he=>{r(b)&&d()?he(Me):he(Le,!1)})}g(se),g(ne),E(he=>{var ae;X=ee(ne,1,"subtitles-caption svelte-c2x749",null,X,he),st(ne,`--subtitles-caption-margin: ${(ae=r(k))!=null?ae:""}%`)},[()=>({mobile:l()})]),_(G,ne)};B(j,G=>{var ne;(e.captions.length||(ne=r(P))!=null&&ne.length)&&G(F)})}g(R),E(G=>W=ee(R,1,"subtitles-container svelte-c2x749",null,W,G),[()=>({shifted:e.shifted,auto:r(b)&&!r(C)&&!d()})]),_(t,R),z(),o()}var y4=L('<div class="text svelte-raurnb"> </div>'),x4=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>'),w4={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 wd(t,e){U(e,!0),Q(t,w4);let i=qt();var o=x4();let n;var a=A(h(o),2);{var s=d=>{var l=y4(),u=h(l);g(l),E(()=>{var m;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 ${(m=e.chromecastDeviceName)!=null?m:""}`)}),_(d,l)};B(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),E(d=>{n=ee(o,1,"wrapper svelte-raurnb",null,n,d),st(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),_(t,o),z()}var S4=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 om(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=S4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 C4=L('<div class="container svelte-13zpvm8"><!></div>'),T4={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 Sd(t){Q(t,T4);var e=C4(),i=h(e);om(i,{}),g(e),_(t,e)}var I4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),k4=L("<div><!></div>"),E4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
281
281
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
282
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function ma(t,e){U(e,!0),W(t,C4);let i=f(e,"iconVisible",3,!0),o=Ce(),n=Ut(),a=o.ui.startedByKeyboard$,s=F("tooltip_play"),d=_=>{var y;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(y=e.startVideo)==null||y.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=S4();let v;u.__click=l;var $=h(u);{var p=_=>{var w=w4();w.__keydown=d,Fe(w,"aria-label",s);var y=M(h(w),2);xr(y,{}),g(w),b(_,w)};R($,_=>{i()&&_(p)})}return g(u),k(_=>{v=te(u,1,"container svelte-1ciju45",null,v,_),it(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,u),z({handlePressKey:d,handleClick:l})}at(["click","keydown"]);var T4=L("<div> </div>"),I4={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(
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 fa(t,e){U(e,!0),Q(t,E4);let i=f(e,"iconVisible",3,!0),o=Te(),n=qt(),a=o.ui.startedByKeyboard$,s=q("tooltip_play"),d=$=>{var b;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},l=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=k4();let m;u.__click=l;var y=h(u);{var p=$=>{var w=I4();w.__keydown=d,Ne(w,"aria-label",s);var b=A(h(w),2);Tr(b,{}),g(w),_($,w)};B(y,$=>{i()&&$(p)})}return g(u),E($=>{m=ee(u,1,"container svelte-1ciju45",null,m,$),st(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),_(t,u),z({handlePressKey:d,handleClick:l})}at(["click","keydown"]);var P4=L('<div data-testid="video_title"> </div>'),A4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
283
283
  0deg,
284
284
  rgba(0, 0, 0, 0) 0%,
285
285
  rgba(0, 0, 0, 0.02) 19%,
286
286
  rgba(0, 0, 0, 0.10) 34%,
287
287
  rgba(0, 0, 0, 0.40) 60%,
288
288
  rgba(0, 0, 0, 0.60) 100%
289
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function tm(t,e){W(t,I4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=T4();let a;var s=h(n,!0);g(n),k(d=>{a=te(n,1,"title svelte-1bcvcf2",null,a,d),he(s,i())},[()=>({hidden:o()})]),b(t,n)}var k4=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),E4=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),P4=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),A4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),M4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),L4={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 im(t,e){U(e,!0),W(t,L4);let i=ee(""),o=ee(""),n=ee(""),a=ee(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let A=Math.floor(P/86400);A&&(P-=A*86400,B(i,fe(d(A))));let I=Math.floor(P/3600);B(o,fe(d(I)));let V=Math.floor(P/60)%60;B(n,fe(d(V)));let H=P%60;B(a,fe(d(H)))},u=()=>{let P=Math.floor(Date.now()/1e3),A=e.startTime-P;l(A),A>=1?s=requestAnimationFrame(u):e.onTimerOver()};Ft(()=>{s=requestAnimationFrame(u)}),wn(()=>{cancelAnimationFrame(s)});var v=M4(),$=h(v);{var p=P=>{var A=k4(),I=pe(A),V=h(I),H=h(V,!0);g(V);var Y=M(V,2),O=h(Y,!0);g(Y),g(I);var J=M(I,2),re=h(J,!0);g(J),k((Z,me)=>{he(H,r(i)),he(O,Z),he(re,me)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(P,A)};R($,P=>{r(i)&&P(p)})}var _=M($,2);{var w=P=>{var A=E4(),I=pe(A),V=h(I),H=h(V,!0);g(V);var Y=M(V,2),O=h(Y,!0);g(Y),g(I);var J=M(I,2),re=h(J,!0);g(J),k((Z,me)=>{he(H,r(o)),he(O,Z),he(re,me)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(P,A)};R(_,P=>{r(o)&&P(w)})}var y=M(_,2);{var C=P=>{var A=P4(),I=pe(A),V=h(I),H=h(V,!0);g(V);var Y=M(V,2),O=h(Y,!0);g(Y),g(I);var J=M(I,2),re=h(J,!0);g(J),k((Z,me)=>{he(H,r(n)),he(O,Z),he(re,me)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(P,A)};R(y,P=>{r(n)&&P(C)})}var T=M(y,2);{var E=P=>{var A=A4(),I=h(A),V=h(I,!0);g(I);var H=M(I,2),Y=h(H,!0);g(H),g(A),k(O=>{he(V,r(a)),he(Y,O)},[()=>F("waiting_live_second_value")]),b(P,A)};R(T,P=>{r(a)&&P(E)})}g(v),b(t,v),z()}var V4=$e('<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 om(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=V4();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(4),g(o),k(()=>n=Te(o,n,q({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))),b(t,o)}var R4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),D4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),N4=L('<div class="waiting-container svelte-15pewff"><!></div>'),B4={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 Td(t,e){U(e,!0),W(t,B4);let i=ee(!1);ze(()=>{B(i,fe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=N4(),n=h(o);{var a=d=>{var l=R4(),u=h(l),v=h(u);om(v,{}),g(u);var $=M(u,2),p=h($,!0);g($),g(l),k(_=>he(p,_),[()=>F("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=D4(),u=h(l),v=h(u,!0);g(u);var $=M(u,2);let p=m(()=>e.startTime||0);im($,{get startTime(){return r(p)},onTimerOver:()=>B(i,!0)}),g(l),k(_=>he(v,_),[()=>F("waiting_live_timer_title")]),b(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>it(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),z()}var O4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),H4={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 va(t,e){U(e,!0),W(t,H4);let i=f(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=O4(),s=h(a),d=h(s);ra(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),u=h(l,!0);g(l),g(s),g(a),k(()=>{it(a,`background-image: url('${i()}')`),he(u,r(n))}),b(t,a),z()}var F4=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function nm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=F4();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i))),b(t,o)}var U4=L('<div class="select-icon svelte-124aexk"><!></div>'),z4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Id(t){W(t,z4);var e=U4(),i=h(e);nm(i,{}),g(e),b(t,e)}var q4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},W4=(t,e)=>{ja(t,()=>e.item.selectItem(e.item.value))},K4=L("<p> </p>"),Q4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),G4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),j4={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;
289
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function nm(t,e){Q(t,A4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=P4();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 M4=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),L4=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),V4=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),R4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),B4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),N4={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 rm(t,e){U(e,!0),Q(t,N4);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,fe(d(P))));let k=Math.floor(M/3600);D(o,fe(d(k)));let R=Math.floor(M/60)%60;D(n,fe(d(R)));let W=M%60;D(a,fe(d(W)))},u=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?s=requestAnimationFrame(u):e.onTimerOver()};zt(()=>{s=requestAnimationFrame(u)}),Tn(()=>{cancelAnimationFrame(s)});var m=B4(),y=h(m);{var p=M=>{var P=M4(),k=pe(P),R=h(k),W=h(R,!0);g(R);var j=A(R,2),F=h(j,!0);g(j),g(k);var G=A(k,2),ne=h(G,!0);g(G),E((X,se)=>{ve(W,r(i)),ve(F,X),ve(ne,se)},[()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),_(M,P)};B(y,M=>{r(i)&&M(p)})}var $=A(y,2);{var w=M=>{var P=L4(),k=pe(P),R=h(k),W=h(R,!0);g(R);var j=A(R,2),F=h(j,!0);g(j),g(k);var G=A(k,2),ne=h(G,!0);g(G),E((X,se)=>{ve(W,r(o)),ve(F,X),ve(ne,se)},[()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),_(M,P)};B($,M=>{r(o)&&M(w)})}var b=A($,2);{var C=M=>{var P=V4(),k=pe(P),R=h(k),W=h(R,!0);g(R);var j=A(R,2),F=h(j,!0);g(j),g(k);var G=A(k,2),ne=h(G,!0);g(G),E((X,se)=>{ve(W,r(n)),ve(F,X),ve(ne,se)},[()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),_(M,P)};B(b,M=>{r(n)&&M(C)})}var T=A(b,2);{var I=M=>{var P=R4(),k=h(P),R=h(k,!0);g(k);var W=A(k,2),j=h(W,!0);g(W),g(P),E(F=>{ve(R,r(a)),ve(j,F)},[()=>q("waiting_live_second_value")]),_(M,P)};B(T,M=>{r(a)&&M(I)})}g(m),_(t,m),z()}var D4=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 sm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=D4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(4),g(o),E(()=>n=Ie(o,n,K({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 O4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),H4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),F4=L('<div class="waiting-container svelte-15pewff"><!></div>'),U4={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 Cd(t,e){U(e,!0),Q(t,U4);let i=J(!1);Ue(()=>{D(i,fe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=F4(),n=h(o);{var a=d=>{var l=O4(),u=h(l),m=h(u);sm(m,{}),g(u);var y=A(u,2),p=h(y,!0);g(y),g(l),E($=>ve(p,$),[()=>q("waiting_live_upcoming_title")]),_(d,l)},s=d=>{var l=H4(),u=h(l),m=h(u,!0);g(u);var y=A(u,2);let p=v(()=>e.startTime||0);rm(y,{get startTime(){return r(p)},onTimerOver:()=>D(i,!0)}),g(l),E($=>ve(m,$),[()=>q("waiting_live_timer_title")]),_(d,l)};B(n,d=>{r(i)?d(a):d(s,!1)})}g(o),E(()=>st(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),_(t,o),z()}var z4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),q4={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function ma(t,e){U(e,!0),Q(t,q4);let i=f(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=z4(),s=h(a),d=h(s);na(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),u=h(l,!0);g(l),g(s),g(a),E(()=>{st(a,`background-image: url('${i()}')`),ve(u,r(n))}),_(t,a),z()}var W4=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 am(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=W4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 K4=L('<div class="select-icon svelte-124aexk"><!></div>'),Q4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Td(t){Q(t,Q4);var e=K4(),i=h(e);am(i,{}),g(e),_(t,e)}var G4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Y4=(t,e)=>{Xa(t,()=>e.item.selectItem(e.item.value))},j4=L("<p> </p>"),Z4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),X4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),J4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
290
290
 
291
291
  /**
292
292
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
293
293
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
294
294
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
295
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function rm(t,e){U(e,!0),W(t,j4);let i=f(e,"isMobile",3,!1);var o=G4();let n;o.__click=[q4,e],o.__keydown=[W4,e];var a=h(o);{var s=w=>{Id(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var u=h(d);{var v=w=>{var y=Ue(),C=pe(y);Ei(C,()=>e.item.valueComponent,(T,E)=>{E(T,ts(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},$=w=>{var y=K4();let C;var T=h(y,!0);g(y),k(E=>{var P;C=te(y,1,"label svelte-1t7rx2m",null,C,E),he(T,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(u,w=>{e.item.valueComponent?w(v):w($,!1)})}var p=M(u,2);{var _=w=>{var y=Q4(),C=h(y,!0);g(y),k(()=>he(C,e.item.sublabel)),b(w,y)};R(p,w=>{e.item.sublabel&&w(_)})}g(d),g(o),k((w,y,C)=>{n=te(o,1,"item",null,n,w),Fe(o,"data-value",e.item.value),Fe(o,"aria-label",y),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Fe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),z()}at(["click","keydown"]);var Y4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function sm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>y=>Nc(y,r(n)));var s=Y4();let d;s.__click=function(...y){var C;(C=r(n))==null||C.apply(this,y)},s.__keydown=function(...y){var C;(C=r(a))==null||C.apply(this,y)};var l=h(s);{var u=y=>{Id(y,{})};R(l,y=>{e.item.selected&&y(u)})}var v=M(l,2);let $;var p=h(v);{var _=y=>{var C=Ue();let T=m(()=>e.item.valueComponent);var E=pe(C);Ei(E,()=>r(T),(P,A)=>{A(P,ts(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(y,C)},w=y=>{var C=Or();k(()=>he(C,e.item.label)),b(y,C)};R(p,y=>{e.item.valueComponent?y(_):y(w,!1)})}g(v),g(s),ft(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,C)=>{var T;d=te(s,1,"item",null,d,y),Fe(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Fe(s,"data-testid",e.item.id),$=te(v,1,"menu-item-value",null,$,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),z()}at(["click","keydown"]);var wr={"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 X4=(t,e)=>{Mh(t,e.returnFromSubMenu,e.closeSettingsMenu)},J4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},e3=(t,e)=>{Gl(t)&&(ar(t),e.returnFromSubMenu())},t3=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>'),i3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
295
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function lm(t,e){U(e,!0),Q(t,J4);let i=f(e,"isMobile",3,!1);var o=X4();let n;o.__click=[G4,e],o.__keydown=[Y4,e];var a=h(o);{var s=w=>{Td(w,{})};B(a,w=>{e.item.selected&&w(s)})}var d=A(a,2);let l;var u=h(d);{var m=w=>{var b=He(),C=pe(b);Ei(C,()=>e.item.valueComponent,(T,I)=>{I(T,is(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),_(w,b)},y=w=>{var b=j4();let C;var T=h(b,!0);g(b),E(I=>{var M;C=ee(b,1,"label svelte-1t7rx2m",null,C,I),ve(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),_(w,b)};B(u,w=>{e.item.valueComponent?w(m):w(y,!1)})}var p=A(u,2);{var $=w=>{var b=Z4(),C=h(b,!0);g(b),E(()=>ve(C,e.item.sublabel)),_(w,b)};B(p,w=>{e.item.sublabel&&w($)})}g(d),g(o),E((w,b,C)=>{n=ee(o,1,"item",null,n,w),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",b),Ne(o,"data-testid",e.item.dataTestid),l=ee(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Ne(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,b;return(b=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),_(t,o),z()}at(["click","keydown"]);var e3=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function dm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>b=>Nc(b,r(n)));var s=e3();let d;s.__click=function(...b){var C;(C=r(n))==null||C.apply(this,b)},s.__keydown=function(...b){var C;(C=r(a))==null||C.apply(this,b)};var l=h(s);{var u=b=>{Td(b,{})};B(l,b=>{e.item.selected&&b(u)})}var m=A(l,2);let y;var p=h(m);{var $=b=>{var C=He();let T=v(()=>e.item.valueComponent);var I=pe(C);Ei(I,()=>r(T),(M,P)=>{P(M,is(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),_(b,C)},w=b=>{var C=Dr();E(()=>ve(C,e.item.label)),_(b,C)};B(p,b=>{e.item.valueComponent?b($):b(w,!1)})}g(m),g(s),gt(s,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),E((b,C)=>{var T;d=ee(s,1,"item",null,d,b),Ne(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ne(s,"data-testid",e.item.id),y=ee(m,1,"menu-item-value",null,y,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,s),z()}at(["click","keydown"]);var Ir={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var i3=(t,e)=>{Rh(t,e.returnFromSubMenu,e.closeSettingsMenu)},o3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},n3=(t,e)=>{Ql(t)&&(cr(t),e.returnFromSubMenu())},r3=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>'),s3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
296
296
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
297
297
  /**
298
298
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -302,14 +302,14 @@ Try switching the\xA0quality to\xA0Auto.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
302
302
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
303
303
  1px
304
304
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
305
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function lm(t,e){U(e,!0),W(t,i3);let[i,o]=Oe(),n=()=>S($,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=f(e,"listRef",15);Ft(()=>{let Z=e.items.findIndex(me=>me.selected);u().children[Z+1].focus()});let v=Ce(),$=v.ui.isFullscreen,p=v.ui.playerSize,_=ee(void 0),w=ee(0),y=ee(0),C=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,r(w)));var E=t3();let P;var A=h(E);let I;A.__keydown=[X4,e];var V=h(A);let H;V.__click=[J4,e],V.__keydown=[e3,e];var Y=h(V);Ts(Y,{direction:"left"});var O=M(Y,2),J=h(O,!0);g(O),g(V),ft(V,Z=>B(_,Z),()=>r(_));var re=M(V,2);ki(re,17,()=>e.items,Ml,(Z,me)=>{var de=Ue(),Le=pe(de);{var Me=le=>{rm(le,{get item(){return r(me)},get isMobile(){return s()}})},ve=(le,Ae)=>{{var se=N=>{sm(N,{get isMobile(){return s()},get item(){return r(me)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(le,N=>{r(me).type==="OPEN_SUB_MENU"&&N(se)},Ae)}};R(Le,le=>{r(me).type==="SELECT_VALUE"?le(Me):le(ve,!1)})}b(Z,de)}),g(A),ft(A,Z=>u(Z),()=>u()),g(E),k((Z,me,de)=>{P=te(E,1,"sub-menu menu svelte-7dfsuh",null,P,Z),Fe(E,"data-testid",`sub-menu-${e.id}`),it(E,`min-width: ${r(T)}px`),I=te(A,1,"items svelte-7dfsuh",null,I,me),it(A,r(C)),H=te(V,1,"item header back svelte-7dfsuh",null,H,de),Fe(V,"aria-label",l()),he(J,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Hr(V,"clientWidth",Z=>B(w,Z)),Hr(V,"clientHeight",Z=>B(y,Z)),b(t,E),z(),o()}at(["keydown","click"]);import{noop as o3}from"@vkontakte/videoplayer-shared/es2015";var n3=(t,e)=>Nc(t,e()),r3=(t,e)=>{t.stopPropagation(),e()()},s3=L('<div class="value svelte-1ikfjte"> </div>'),a3=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),l3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function dm(t,e){U(e,!0),W(t,l3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,o3),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=a3();let d;s.__click=[r3,o],s.__keydown=[n3,o];var l=h(s),u=h(l);{var v=T=>{pa(T,{get icon(){return e.icon}})},$=T=>{var E=Ue();let P=m(()=>e.icon);var A=pe(E);Ei(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)};R(u,T=>{typeof e.icon=="string"?T(v):T($,!1)})}g(l);var p=M(l,2),_=h(p,!0);g(p);var w=M(p,2);{var y=T=>{var E=Ue();let P=m(n);var A=pe(E);Ei(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)},C=T=>{var E=s3(),P=h(E,!0);g(E),k(()=>he(P,e.value)),b(T,E)};R(w,T=>{n()?T(y):T(C,!1)})}g(s),ft(s,T=>a(T),()=>a()),k(T=>{d=te(s,1,"item",null,d,T),Fe(s,"aria-label",e.ariaLabel),Fe(s,"data-testid",e.id),he(_,e.label)},[()=>({mobile:i()})]),b(t,s),z()}at(["click","keydown"]);import{noop as u1}from"@vkontakte/videoplayer-shared/es2015";var d3=(t,e)=>{ja(t,()=>e())},c3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),u3=L('<img class="icon" aria-hidden="true">'),p3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),f3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function cm(t,e){U(e,!0),W(t,f3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,u1),n=f(e,"closeSettings",3,u1),a=ee(!1),s=()=>{B(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=p3();let u;l.__click=d,l.__keydown=[d3,d];var v=h(l),$=h(v);{var p=C=>{var T=Ue(),E=pe(T);{var P=I=>{var V=c3();b(I,V)},A=I=>{var V=u3();k(()=>Fe(V,"src",e.icon)),wt("error",V,s),Ws(V),b(I,V)};R(E,I=>{r(a)?I(P):I(A,!1)})}b(C,T)},_=C=>{var T=Ue();let E=m(()=>e.icon);var P=pe(T);Ei(P,()=>r(E),(A,I)=>{I(A,{})}),b(C,T)};R($,C=>{typeof e.icon=="string"?C(p):C(_,!1)})}g(v);var w=M(v,2),y=h(w,!0);g(w),g(l),k(C=>{var T;u=te(l,1,"item",null,u,C),Fe(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Fe(l,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),b(t,l),z()}at(["click","keydown"]);import{noop as g3}from"@vkontakte/videoplayer-shared/es2015";var m3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),v3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function um(t,e){W(t,v3);let i=f(e,"enabled",3,!1);var o=m3(),n=h(o);let a;be(2),g(o),k(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var h3=(t,e,i)=>{Lh(t,e(),o=>i()(o))},_3=(t,e,i)=>{t.stopPropagation(),e()(!i())},b3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),$3=L('<li role="menuitem" tabindex="0"><!></li>');function pm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,g3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=$3();let l;d.__click=[_3,o,n],d.__keydown=[h3,n,o];var u=h(d);sa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(v,$)=>{var p=b3();let _;var w=h(p),y=h(w);{var C=I=>{pa(I,{get icon(){return e.icon}})},T=I=>{var V=Ue();let H=m(()=>e.icon);var Y=pe(V);Ei(Y,()=>r(H),(O,J)=>{J(O,{})}),b(I,V)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=M(w,2),P=h(E,!0);g(E);var A=M(E,2);um(A,{get enabled(){return n()}}),g(p),k(I=>{_=te(p,1,"switch-wrapper",null,_,I),he(P,e.label)},[()=>({mobile:i()})]),b(v,p)},$$slots:{default:!0}}),g(d),k(v=>{var $;l=te(d,1,"item switch-item",null,l,v),Fe(d,"aria-label",($=e.ariaLabel)!=null?$:e.label),Fe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),z()}at(["click","keydown"]);import{isValidURL as q3,VideoQuality as x1}from"@vkontakte/videoplayer-shared/es2015";var p1=()=>{let t=ee(fe([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,fe(r(t).slice(0,-1)))},popAllSubMenus:()=>{B(t,fe([]))}}};var y3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),x3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),w3={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 ga(t,e){U(e,!0),W(t,w3);let i=f(e,"isSubCase",3,!1),o=m(()=>Uc(e.quality));var n=x3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=v=>{var $=y3();let p=m(()=>r(o));var _=h($);Ei(_,()=>r(p),(w,y)=>{y(w,{})}),g($),b(v,$)};R(l,v=>{r(o)&&!e.isMobile&&v(u)})}g(n),k(v=>{s=te(a,1,"svelte-t2qk8t",null,s,v),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),z()}import{VideoQuality as S3}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as f1}from"@vkontakte/videoplayer-core/es2015";var m1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},v1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=m1({quality:t,availableQualities:e});return i?t===f1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},g1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===f1.INVARIANT?i:`${i}${m1({quality:t,availableQualities:e})}`:"...";var C3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),T3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function nl(t,e){U(e,!0),W(t,T3);let[i,o]=Oe(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),s=()=>S(v,"$isMobile$",i),d=Ce(),l=d.state.currentQuality$,u=d.state.availableQualities$,v=d.ui.isMobile,$=" \xB7 ",p=m(()=>e.prefix+(e.selected&&n()!==S3.INVARIANT?$:"")),_=m(()=>g1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=C3(),y=h(w);let C=m(()=>e.selected?n():void 0);ga(y,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),z(),o()}var I3=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")},k3={br:!0,span:!0},fm=(t,e={})=>{var d,l,u,v,$,p,_;if(!t)return t;let i=q(q({},k3),e),o=Object.keys(i);if(!o.length)return t;let n=I3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((v=w.groups)==null?void 0:v.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+y.length;continue}let E=($=w.groups)!=null&&$.childrenhtml?fm(w.groups.childrenhtml,i):"",P=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>E||""):y;a.push(t.slice(s,T),P),s=T+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function kd(t,e){U(e,!1);let i=f(e,"message",8),o=fm(i());$r();var n=Ue(),a=pe(n);{var s=d=>{var l=Ue(),u=pe(l);Ll(u,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),z()}var E3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),P3={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 mm(t,e){U(e,!1),W(t,P3),$r();var i=E3(),o=h(i);let n=hr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));kd(o,{get message(){return r(n)}}),g(i),b(t,i),z()}var _1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:nl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},vm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?nl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),b1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:mm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),gm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?nl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),hm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?nl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var nu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),ru=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=jc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=nu(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=nu(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=nu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=nu(t,e);return F("audio_stream_display_unknown",{index:a})};var A3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:vm,selected:e&&!o&&!n||!1}),a.push({handler:hm,selected:o},{handler:gm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[b1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),_1(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:ga,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:vm,selected:((i=Tc())==null?void 0:i.type)==="auto_quality"},{handler:hm,selected:((o=Tc())==null?void 0:o.type)==="traffic_saving"},{handler:gm,selected:((n=Tc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:ru(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},$1=({subMenuId:t,context:e})=>t?[A3[t](e)]:[];var M3=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function _m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=M3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i))),b(t,o)}var L3=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function bm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=L3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img"},i))),b(t,o)}var V3=$e('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function $m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=V3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i))),b(t,o)}var R3=$e('<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=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=R3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i))),b(t,o)}var D3=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function xm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=D3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i))),b(t,o)}var N3=$e('<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 su(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=N3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i))),b(t,o)}var B3=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function wm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=B3();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i))),b(t,o)}var O3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),H3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Sm(t,e){U(e,!0),W(t,H3);let[i,o]=Oe(),n=()=>S(u,"$currentQuality$",i),a=()=>S(v,"$availableQualities$",i),s=()=>S($,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Ce(),u=l.state.currentQuality$,v=l.state.availableQualities$,$=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,_=m(()=>v1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=O3(),y=h(w);ga(y,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),b(t,w),z(),o()}var U3={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:Sm,weight:wr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:wr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?F("aria_label_submenu_traffic_saving_off"):`${F("aria_label_submenu_traffic_saving_on")}. ${F("traffic_saving_helper_text")}`,icon:_m,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=ru(t,e);return{id:"AUDIO_LANGUAGES",weight:wr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:bm,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:wr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:$m,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:wr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:od,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:wr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:ym}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:wr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:xm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:wr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:su,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:wr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:su,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:wr["debug-info"],type:"CLICK",onClick:t,label:e?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),ariaLabel:F("menu_debug_overlay"),icon:wm,isHiddenFor:["desktop"]})},y1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>U3[n](e)),...i.map(n=>Rt(q({},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(ia)};var W3=(t,e)=>{Dc(t,e)},K3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Q3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),G3=L("<div><!> <!></div>"),j3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
305
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function um(t,e){U(e,!0),Q(t,s3);let[i,o]=De(),n=()=>S(y,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),u=f(e,"listRef",15);zt(()=>{let X=e.items.findIndex(se=>se.selected);u().children[X+1].focus()});let m=Te(),y=m.ui.isFullscreen,p=m.ui.playerSize,$=J(void 0),w=J(0),b=J(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(b)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var I=r3();let M;var P=h(I);let k;P.__keydown=[i3,e];var R=h(P);let W;R.__click=[o3,e],R.__keydown=[n3,e];var j=h(R);Ts(j,{direction:"left"});var F=A(j,2),G=h(F,!0);g(F),g(R),gt(R,X=>D($,X),()=>r($));var ne=A(R,2);ki(ne,17,()=>e.items,Al,(X,se)=>{var ce=He(),Me=pe(ce);{var Le=ae=>{lm(ae,{get item(){return r(se)},get isMobile(){return s()}})},he=(ae,Pe)=>{{var re=V=>{dm(V,{get isMobile(){return s()},get item(){return r(se)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};B(ae,V=>{r(se).type==="OPEN_SUB_MENU"&&V(re)},Pe)}};B(Me,ae=>{r(se).type==="SELECT_VALUE"?ae(Le):ae(he,!1)})}_(X,ce)}),g(P),gt(P,X=>u(X),()=>u()),g(I),E((X,se,ce)=>{M=ee(I,1,"sub-menu menu svelte-7dfsuh",null,M,X),Ne(I,"data-testid",`sub-menu-${e.id}`),st(I,`min-width: ${r(T)}px`),k=ee(P,1,"items svelte-7dfsuh",null,k,se),st(P,r(C)),W=ee(R,1,"item header back svelte-7dfsuh",null,W,ce),Ne(R,"aria-label",l()),ve(G,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Or(R,"clientWidth",X=>D(w,X)),Or(R,"clientHeight",X=>D(b,X)),_(t,I),z(),o()}at(["keydown","click"]);import{noop as a3}from"@vkontakte/videoplayer-shared/es2015";var l3=(t,e)=>Nc(t,e()),d3=(t,e)=>{t.stopPropagation(),e()()},c3=L('<div class="value svelte-1ikfjte"> </div>'),u3=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),p3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function pm(t,e){U(e,!0),Q(t,p3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,a3),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=u3();let d;s.__click=[d3,o],s.__keydown=[l3,o];var l=h(s),u=h(l);{var m=T=>{ua(T,{get icon(){return e.icon}})},y=T=>{var I=He();let M=v(()=>e.icon);var P=pe(I);Ei(P,()=>r(M),(k,R)=>{R(k,{})}),_(T,I)};B(u,T=>{typeof e.icon=="string"?T(m):T(y,!1)})}g(l);var p=A(l,2),$=h(p,!0);g(p);var w=A(p,2);{var b=T=>{var I=He();let M=v(n);var P=pe(I);Ei(P,()=>r(M),(k,R)=>{R(k,{})}),_(T,I)},C=T=>{var I=c3(),M=h(I,!0);g(I),E(()=>ve(M,e.value)),_(T,I)};B(w,T=>{n()?T(b):T(C,!1)})}g(s),gt(s,T=>a(T),()=>a()),E(T=>{d=ee(s,1,"item",null,d,T),Ne(s,"aria-label",e.ariaLabel),Ne(s,"data-testid",e.id),ve($,e.label)},[()=>({mobile:i()})]),_(t,s),z()}at(["click","keydown"]);import{noop as m1}from"@vkontakte/videoplayer-shared/es2015";var f3=(t,e)=>{Xa(t,()=>e())},m3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),v3=L('<img class="icon" aria-hidden="true">'),g3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),h3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function fm(t,e){U(e,!0),Q(t,h3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,m1),n=f(e,"closeSettings",3,m1),a=J(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=g3();let u;l.__click=d,l.__keydown=[f3,d];var m=h(l),y=h(m);{var p=C=>{var T=He(),I=pe(T);{var M=k=>{var R=m3();_(k,R)},P=k=>{var R=v3();E(()=>Ne(R,"src",e.icon)),It("error",R,s),qs(R),_(k,R)};B(I,k=>{r(a)?k(M):k(P,!1)})}_(C,T)},$=C=>{var T=He();let I=v(()=>e.icon);var M=pe(T);Ei(M,()=>r(I),(P,k)=>{k(P,{})}),_(C,T)};B(y,C=>{typeof e.icon=="string"?C(p):C($,!1)})}g(m);var w=A(m,2),b=h(w,!0);g(w),g(l),E(C=>{var T;u=ee(l,1,"item",null,u,C),Ne(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ne(l,"data-testid",e.id),ve(b,e.label)},[()=>({mobile:i()})]),_(t,l),z()}at(["click","keydown"]);import{noop as $3}from"@vkontakte/videoplayer-shared/es2015";var _3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),b3={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 mm(t,e){Q(t,b3);let i=f(e,"enabled",3,!1);var o=_3(),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 y3=(t,e,i)=>{Bh(t,e(),o=>i()(o))},x3=(t,e,i)=>{t.stopPropagation(),e()(!i())},w3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),S3=L('<li role="menuitem" tabindex="0"><!></li>');function vm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,$3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=S3();let l;d.__click=[x3,o,n],d.__keydown=[y3,n,o];var u=h(d);ra(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,y)=>{var p=w3();let $;var w=h(p),b=h(w);{var C=k=>{ua(k,{get icon(){return e.icon}})},T=k=>{var R=He();let W=v(()=>e.icon);var j=pe(R);Ei(j,()=>r(W),(F,G)=>{G(F,{})}),_(k,R)};B(b,k=>{typeof e.icon=="string"?k(C):k(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);mm(P,{get enabled(){return n()}}),g(p),E(k=>{$=ee(p,1,"switch-wrapper",null,$,k),ve(M,e.label)},[()=>({mobile:i()})]),_(m,p)},$$slots:{default:!0}}),g(d),E(m=>{var y;l=ee(d,1,"item switch-item",null,l,m),Ne(d,"aria-label",(y=e.ariaLabel)!=null?y:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),z()}at(["click","keydown"]);import{isValidURL as G3,VideoQuality as C1}from"@vkontakte/videoplayer-shared/es2015";var v1=()=>{let t=J(fe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,fe(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,fe([]))}}};var C3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),T3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),I3={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){U(e,!0),Q(t,I3);let i=f(e,"isSubCase",3,!1),o=v(()=>Uc(e.quality));var n=T3(),a=h(n);let s;var d=h(a,!0);g(a);var l=A(a,2);{var u=m=>{var y=C3();let p=v(()=>r(o));var $=h(y);Ei($,()=>r(p),(w,b)=>{b(w,{})}),g(y),_(m,y)};B(l,m=>{r(o)&&!e.isMobile&&m(u)})}g(n),E(m=>{s=ee(a,1,"svelte-t2qk8t",null,s,m),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,n),z()}import{VideoQuality as k3}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as g1}from"@vkontakte/videoplayer-core/es2015";var h1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},_1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=h1({quality:t,availableQualities:e});return i?t===g1.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},b1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===g1.INVARIANT?i:`${i}${h1({quality:t,availableQualities:e})}`:"...";var E3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),P3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function al(t,e){U(e,!0),Q(t,P3);let[i,o]=De(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Te(),l=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,y=" \xB7 ",p=v(()=>e.prefix+(e.selected&&n()!==k3.INVARIANT?y:"")),$=v(()=>b1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=E3(),b=h(w);let C=v(()=>e.selected?n():void 0);va(b,{get quality(){return r(C)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),_(t,w),z(),o()}var A3=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")},M3={br:!0,span:!0},gm=(t,e={})=>{var d,l,u,m,y,p,$;if(!t)return t;let i=K(K({},M3),e),o=Object.keys(i);if(!o.length)return t;let n=A3(o),a=[],s=0;for(let w of t.matchAll(n)){let b=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((m=w.groups)==null?void 0:m.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+b.length;continue}let I=(y=w.groups)!=null&&y.childrenhtml?gm(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(s,T),M),s=T+b.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Id(t,e){U(e,!1);let i=f(e,"message",8),o=gm(i());Sr();var n=He(),a=pe(n);{var s=d=>{var l=He(),u=pe(l);Ml(u,()=>o,!1,!1),_(d,l)};B(a,d=>{o&&d(s)})}_(t,n),z()}var L3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),V3={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 hm(t,e){U(e,!1),Q(t,V3),Sr();var i=L3(),o=h(i);let n=yr(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));Id(o,{get message(){return r(n)}}),g(i),_(t,i),z()}var y1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:al,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},_m=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?al:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),x1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:hm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),bm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:q("high_quality"),valueComponent:t?al:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),$m=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:q("traffic_saving_quality"),valueComponent:t?al:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var ru=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),su=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Yc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let l=ru(t,d);return q("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=ru(t,d);return q("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=ru(t,d);return q("audio_stream_display_language_index",{language:n,index:l})}}let a=ru(t,e);return q("audio_stream_display_unknown",{index:a})};var R3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:_m,selected:e&&!o&&!n||!1}),a.push({handler:$m,selected:o},{handler:bm,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[x1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),y1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent: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:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:_m,selected:((i=Tc())==null?void 0:i.type)==="auto_quality"},{handler:$m,selected:((o=Tc())==null?void 0:o.type)==="traffic_saving"},{handler:bm,selected:((n=Tc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:su(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Xc?"sub_off":void 0}))})},w1=({subMenuId:t,context:e})=>t?[R3[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 ym(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=B3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 N3=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 xm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=N3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 D3=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 wm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=D3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 O3=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 Sm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=O3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 H3=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 Cm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=H3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 F3=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 au(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=F3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 U3=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 Tm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=U3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 z3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),q3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Im(t,e){U(e,!0),Q(t,q3);let[i,o]=De(),n=()=>S(u,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S(y,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Te(),u=l.state.currentQuality$,m=l.state.availableQualities$,y=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=v(()=>_1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=z3(),b=h(w);va(b,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),_(t,w),z(),o()}var K3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_quality",{actual:o}),icon:td,label:q("menu_quality"),value:e,valueComponent:Im,weight:Ir["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Ir["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:ym,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=su(t,e);return{id:"AUDIO_LANGUAGES",weight:Ir["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:xm,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Ir["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:wm,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Ir["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:id,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Ir.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:Sm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Ir.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:Cm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Ir["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:au,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Ir["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:au,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Ir["debug-info"],type:"CLICK",onClick:t,label:q("aria_label_menu_debug_overlay"),ariaLabel:q("menu_debug_overlay"),icon:Tm,isHiddenFor:["desktop"]})},S1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>K3[n](e)),...i.map(n=>Nt(K({},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(ta)};var Y3=(t,e)=>{Bc(t,e)},j3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Z3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),X3=L("<div><!> <!></div>"),J3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
306
306
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
307
307
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
308
308
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
309
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Ed(t,e){U(e,!0),W(t,j3);let[i,o]=Oe(),n=()=>S(Ne,"$settingsMenuVisible",i),a=()=>S(Je,"$settingsMenuOpenedByKeyboard",i),s=()=>S(mt,"$debugPanelVisible",i),d=()=>S(we,"$isMobile",i),l=()=>S(et,"$playerSize",i),u=()=>S(Ve,"$hasMpegSources$",i),v=()=>S(Be,"$mobileNotReportControlHidden$",i),$=()=>S(se,"$autoQualityLimitingAvailable$",i),p=()=>S(G,"$availableSubtitlesList$",i),_=()=>S(Ze,"$isLiveWithPlaybackSpeed",i),w=()=>S(ve,"$availableAudioStreams$",i),y=()=>S(Ge,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentAudioStream$",i),T=()=>S(ie,"$currentPlaybackRate$",i),E=()=>S(ot,"$trafficSavingEnabled",i),P=()=>S(le,"$currentQuality$",i),A=()=>S(N,"$isAutoQualityEnabled$",i),I=()=>S(oe,"$currentSubtitle$",i),V=()=>S(Gt,"$additionalSettingsMenuItems$",i),H=()=>S(Re,"$isAutoQualityAvailable$",i),Y=()=>S(Ae,"$availableQualities$",i),O=()=>S(gt,"$highQualityEnabled",i),J=f(e,"ref",15,void 0),re=f(e,"playerControlsHeight",3,0),Z=fe({}),me=fe({}),de=Ce(),Le=Ut(),Me=de.state.audioStream$,ve=de.state.availableAudioStreams$,le=de.state.currentQuality$,Ae=de.state.availableQualities$,se=de.state.autoQualityLimitingAvailable$,N=de.state.isAutoQualityEnabled$,Re=de.state.isAutoQualityAvailable$,ie=de.state.currentPlaybackRate$,Ge=de.state.availablePlaybackRates$,oe=de.state.currentSubtitle$,G=de.state.availableSubtitlesList$,K=de.state.canDownload,Ve=de.state.hasMpegSources$,Ne=de.ui.settingsMenu.visible$,Je=de.ui.settingsMenu.openedByBtnKeyboard$,xe=de.ui.settingsMenu.ref$,we=de.ui.isMobile,Be=de.ui.mobileNotReportControlHidden$,Ze=de.state.canChangePlaybackSpeed$,ot=de.state.trafficSavingEnabled$,gt=de.state.highQualityEnabled$,et=de.ui.playerSize,mt=de.ui.debugPanelVisible,kt=de.state.isInteractiveTime$,Gt=de.ui.additionalSettingsMenuItems$,zt=de.ui.t,Kt=de.actions.internal.downloadVideo,ge=de.actions.internal.closeSettingsMenu,j=de.actions.internal.openSettingsSubMenu,Ie=de.actions.internal.closeSettingsSubMenu,ae=ee(!1),He=ee(void 0),qe=p1();ze(()=>{!n()&&qe.current&&(Ie(me[qe.current]),qe.popAllSubMenus())}),ze(()=>{n()||B(He,void 0)}),ze(()=>{!qe.current&&r(He)&&Ah(Z,r(He))}),ze(()=>{J()&&xe.set(J())});function tt(St){return Pt(this,null,function*(){qe.pushSubMenu(St),yield xo(),j(St,me[St])})}function lt(St){var qt;St==null||St.stopPropagation(),a()||(qt=e.returnFocus)==null||qt.call(e),ge(),B(ae,!1)}function Ye(St,qt){de.actions.internal.setQuality(St,{appliesTo:qt}),lt()}function Xe(St){de.actions.internal.setAudioStream(St),lt()}function dt(St,qt){de.actions.internal.setTrafficSavingEnabled(St,qt),Le.features.qualityDetailsSubMenuEnabled&&lt()}function De(St,qt){de.actions.internal.setHighQualityEnabled(St,qt),lt()}function bt(St){de.actions.internal.setPlaybackRate(St),lt()}function We(St){de.actions.internal.setSubtitle(St),lt()}function Et(){Kt()}function ai(){q3(e.supportLink)&&window.open(e.supportLink,"_blank"),de.actions.internal.reportProblem(),de.actions.internal.pause()}function ei(){Ka(de.actions.internal.getDebugTextData())}let li=()=>{let St=de.actions.internal.getTraceTextData(),qt=new Blob([...St],{type:"application/json"}),ii=window.URL.createObjectURL(qt);Zs(ii,"vk_player_trace_info","json")};function Hi(){mt.set(!s())}function ji(){B(ae,!0)}function Fi(){B(ae,!1)}function vo(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-re()}px; overflow: auto;`}let Do=m(()=>K&&u()&&!v()),nt=m(()=>Le.features.trafficSaving&&!v()&&$()&&!Le.features.qualityDetailsSubMenuEnabled),ht=m(()=>p().length>0&&!v()),Si=m(()=>!!_()&&!v()),X=m(()=>Le.features.audioLanguages&&w().length>=2&&!v()),ti=m(()=>!v());Ft(()=>kt.subscribe(St=>{St&&!d()&&!r(ae)&&!a()&&lt()}));let di=m(()=>{let St=[r(ti)&&"QUALITY_SETTINGS",r(X)&&"AUDIO_LANGUAGES",r(Si)&&"PLAYBACK_RATE",r(ht)&&"SUBTITLES",r(nt)&&"TRAFFIC_SAVING_SWITCH",r(Do)&&"DOWNLOAD",Le.showSupport&&"SHOW_SUPPORT","COPY_DATA",Le.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(qt=>!!qt);return y1({items:St,context:{qualityDetailsSubMenuEnabled:Le.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:bt,trafficSavingEnabled:E(),toggleTrafficSaving:dt,currentQuality:P()||x1.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:Et,debugPanelVisible:s(),onCopyDataClick:ei,onReportProblemClick:ai,onSaveTraceDataClick:li,toggleShowDebugInfo:Hi},additionalSettingsMenuItems:V()})}),Ui=m(()=>$1({subMenuId:qe.current,context:{availablePlaybackRates:y(),selectPlaybackRate:bt,trafficSavingEnabled:E(),toggleTrafficSaving:dt,currentQuality:P()||x1.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:Y(),highQualityEnabled:O(),toggleHighQuality:De,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:ge,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Xe,selectQuality:Ye,selectSubtitle:We}}));var ni=G3();let gi;var ci=h(ni);{var ut=St=>{var qt=Q3();let ii;qt.__keydown=[W3,ge];var eo=h(qt);{var Wn=ui=>{var Ct=K3();let ho;var No=h(Ct),pi=h(No,!0);g(No);var Io=M(No,2);Io.__click=lt,g(Ct),k((to,ko)=>{ho=te(Ct,1,"item header svelte-17or3al",null,ho,to),he(pi,ko)},[()=>({mobile:d()}),()=>zt("submenu_settings")]),b(ui,Ct)};R(eo,ui=>{d()&&ui(Wn)})}var zi=M(eo,2);let To;ki(zi,21,()=>r(di),ui=>ui.id,(ui,Ct)=>{var ho=Ue(),No=pe(ho);{var pi=to=>{dm(to,{get isMobile(){return d()},get id(){return r(Ct).id},get icon(){return r(Ct).icon},get label(){return r(Ct).label},get ariaLabel(){return r(Ct).ariaLabel},get value(){return r(Ct).value},get valueComponent(){return r(Ct).valueComponent},onClick:()=>{tt(r(Ct).children),B(He,fe(r(Ct).id))},get ref(){return Z[r(Ct).id]},set ref(ko){Z[r(Ct).id]=ko}})},Io=(to,ko)=>{{var Bo=Ni=>{cm(Ni,{get isMobile(){return d()},get id(){return r(Ct).id},get onClick(){return r(Ct).onClick},get icon(){return r(Ct).icon},get label(){return r(Ct).label},get ariaLabel(){return r(Ct).ariaLabel},closeSettings:lt})},Tn=(Ni,In)=>{{var io=Eo=>{pm(Eo,{get isMobile(){return d()},get id(){return r(Ct).id},get onClick(){return r(Ct).onClick},get icon(){return r(Ct).icon},get label(){return r(Ct).label},get ariaLabel(){return r(Ct).ariaLabel},get enabled(){return r(Ct).enabled},get tooltipText(){return r(Ct).tooltipText},get maxTooltipWidth(){return r(Ct).maxTooltipWidth}})};R(Ni,Eo=>{r(Ct).type==="SWITCH"&&Eo(io)},In)}};R(to,Ni=>{r(Ct).type==="CLICK"?Ni(Bo):Ni(Tn,!1)},ko)}};R(No,to=>{r(Ct).type==="OPEN_SUB_MENU"?to(pi):to(Io,!1)})}b(ui,ho)}),g(zi),ft(zi,ui=>J(ui),()=>J()),g(qt),k((ui,Ct,ho)=>{ii=te(qt,1,"settings-menu menu svelte-17or3al",null,ii,ui),To=te(zi,1,"items",null,To,Ct),it(zi,ho)},[()=>({desktop:!d(),mobile:d(),hidden:!!qe.current}),()=>({mobile:d()}),vo]),wt("mouseenter",qt,ji),wt("mouseleave",qt,Fi),b(St,qt)};R(ci,St=>{n()&&St(ut)})}var go=M(ci,2);ki(go,17,()=>r(Ui),St=>St.id,(St,qt)=>{let ii=m(()=>{var eo;return(eo=r(qt).minWidth)!=null?eo:137});lm(St,{get isMobile(){return d()},get playerControlsHeight(){return re()},get returnFromSubMenu(){return qe.popSubMenu},get id(){return r(qt).id},get title(){return r(qt).title},closeSettingsMenu:ge,openSubMenuList:tt,get items(){return r(qt).items},get minWidth(){return r(ii)},get refMenuItems(){return Z},get listRef(){return me[r(qt).id]},set listRef(eo){me[r(qt).id]=eo}})}),g(ni),k(St=>gi=te(ni,1,"settings-menu-container svelte-17or3al",null,gi,St),[()=>({mobile:d(),hidden:!n()})]),b(t,ni),z(),o()}at(["keydown","click"]);var Y3=t=>t;function w1(t,{delay:e=0,duration:i=400,easing:o=Y3}={}){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>'),X3={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 Cm(t,e){W(t,X3);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(()=>he(o,e.label)),b(t,i)}at(["click"]);var J3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),ex={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
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 kd(t,e){U(e,!0),Q(t,J3);let[i,o]=De(),n=()=>S(Oe,"$settingsMenuVisible",i),a=()=>S(Ze,"$settingsMenuOpenedByKeyboard",i),s=()=>S(St,"$debugPanelVisible",i),d=()=>S(Re,"$isMobile",i),l=()=>S(nt,"$playerSize",i),u=()=>S(te,"$hasMpegSources$",i),m=()=>S(ke,"$mobileNotReportControlHidden$",i),y=()=>S(re,"$autoQualityLimitingAvailable$",i),p=()=>S(de,"$availableSubtitlesList$",i),$=()=>S(ze,"$isLiveWithPlaybackSpeed",i),w=()=>S(he,"$availableAudioStreams$",i),b=()=>S(qe,"$availablePlaybackRates$",i),C=()=>S(Le,"$currentAudioStream$",i),T=()=>S(be,"$currentPlaybackRate$",i),I=()=>S(ct,"$trafficSavingEnabled",i),M=()=>S(ae,"$currentQuality$",i),P=()=>S(V,"$isAutoQualityEnabled$",i),k=()=>S(H,"$currentSubtitle$",i),R=()=>S(Kt,"$additionalSettingsMenuItems$",i),W=()=>S(we,"$isAutoQualityAvailable$",i),j=()=>S(Pe,"$availableQualities$",i),F=()=>S(ut,"$highQualityEnabled",i),G=f(e,"ref",15,void 0),ne=f(e,"playerControlsHeight",3,0),X=fe({}),se=fe({}),ce=Te(),Me=qt(),Le=ce.state.audioStream$,he=ce.state.availableAudioStreams$,ae=ce.state.currentQuality$,Pe=ce.state.availableQualities$,re=ce.state.autoQualityLimitingAvailable$,V=ce.state.isAutoQualityEnabled$,we=ce.state.isAutoQualityAvailable$,be=ce.state.currentPlaybackRate$,qe=ce.state.availablePlaybackRates$,H=ce.state.currentSubtitle$,de=ce.state.availableSubtitlesList$,_e=ce.state.canDownload,te=ce.state.hasMpegSources$,Oe=ce.ui.settingsMenu.visible$,Ze=ce.ui.settingsMenu.openedByBtnKeyboard$,Se=ce.ui.settingsMenu.ref$,Re=ce.ui.isMobile,ke=ce.ui.mobileNotReportControlHidden$,ze=ce.state.canChangePlaybackSpeed$,ct=ce.state.trafficSavingEnabled$,ut=ce.state.highQualityEnabled$,nt=ce.ui.playerSize,St=ce.ui.debugPanelVisible,mt=ce.state.isInteractiveTime$,Kt=ce.ui.additionalSettingsMenuItems$,ni=ce.ui.t,Mt=ce.actions.internal.downloadVideo,Bt=ce.actions.internal.closeSettingsMenu,O=ce.actions.internal.openSettingsSubMenu,$e=ce.actions.internal.closeSettingsSubMenu,ie=J(!1),Be=J(void 0),je=v1();Ue(()=>{!n()&&je.current&&($e(se[je.current]),je.popAllSubMenus())}),Ue(()=>{n()||D(Be,void 0)}),Ue(()=>{!je.current&&r(Be)&&Vh(X,r(Be))}),Ue(()=>{G()&&Se.set(G())});function Qe(Je){return Et(this,null,function*(){je.pushSubMenu(Je),yield yo(),O(Je,se[Je])})}function Ve(Je){var Lt;Je==null||Je.stopPropagation(),a()||(Lt=e.returnFocus)==null||Lt.call(e),Bt(),D(ie,!1)}function rt(Je,Lt){ce.actions.internal.setQuality(Je,{appliesTo:Lt}),Ve()}function et(Je){ce.actions.internal.setAudioStream(Je),Ve()}function _t(Je,Lt){ce.actions.internal.setTrafficSavingEnabled(Je,Lt),Me.features.qualityDetailsSubMenuEnabled&&Ve()}function it(Je,Lt){ce.actions.internal.setHighQualityEnabled(Je,Lt),Ve()}function Xe(Je){ce.actions.internal.setPlaybackRate(Je),Ve()}function Qt(Je){ce.actions.internal.setSubtitle(Je),Ve()}function bt(){Mt()}function Si(){G3(e.supportLink)&&window.open(e.supportLink,"_blank"),ce.actions.internal.reportProblem(),ce.actions.internal.pause()}function ii(){Ya(ce.actions.internal.getDebugTextData())}let Ge=()=>{let Je=ce.actions.internal.getTraceTextData(),Lt=new Blob([...Je],{type:"application/json"}),co=window.URL.createObjectURL(Lt);js(co,"vk_player_trace_info","json")};function Xt(){St.set(!s())}function Ri(){D(ie,!0)}function Fi(){D(ie,!1)}function lo(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ne()}px; overflow: auto;`}let Gi=v(()=>_e&&u()&&!m()),ot=v(()=>Me.features.trafficSaving&&!m()&&y()&&!Me.features.qualityDetailsSubMenuEnabled),$t=v(()=>p().length>0&&!m()),Ai=v(()=>!!$()&&!m()),Zi=v(()=>Me.features.audioLanguages&&w().length>=2&&!m()),Co=v(()=>!m());zt(()=>mt.subscribe(Je=>{Je&&!d()&&!r(ie)&&!a()&&Ve()}));let Z=v(()=>{let Je=[r(Co)&&"QUALITY_SETTINGS",r(Zi)&&"AUDIO_LANGUAGES",r(Ai)&&"PLAYBACK_RATE",r($t)&&"SUBTITLES",r(ot)&&"TRAFFIC_SAVING_SWITCH",r(Gi)&&"DOWNLOAD",Me.showSupport&&"SHOW_SUPPORT","COPY_DATA",Me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Lt=>!!Lt);return S1({items:Je,context:{qualityDetailsSubMenuEnabled:Me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Xe,trafficSavingEnabled:I(),toggleTrafficSaving:_t,currentQuality:M()||C1.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:bt,onCopyDataClick:ii,onReportProblemClick:Si,onSaveTraceDataClick:Ge,toggleShowDebugInfo:Xt},additionalSettingsMenuItems:R()})}),Jt=v(()=>w1({subMenuId:je.current,context:{availablePlaybackRates:b(),selectPlaybackRate:Xe,trafficSavingEnabled:I(),toggleTrafficSaving:_t,currentQuality:M()||C1.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:W()||!1,availableQualities:j(),highQualityEnabled:F(),toggleHighQuality:it,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Bt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:et,selectQuality:rt,selectSubtitle:Qt}}));var bi=X3();let Bi;var ci=h(bi);{var pt=Je=>{var Lt=Z3();let co;Lt.__keydown=[Y3,Bt];var ei=h(Lt);{var qn=mi=>{var Ct=j3();let Ni;var Uo=h(Ct),vi=h(Uo,!0);g(Uo);var zo=A(Uo,2);zo.__click=Ve,g(Ct),E((Ui,To)=>{Ni=ee(Ct,1,"item header svelte-17or3al",null,Ni,Ui),ve(vi,To)},[()=>({mobile:d()}),()=>ni("submenu_settings")]),_(mi,Ct)};B(ei,mi=>{d()&&mi(qn)})}var Xi=A(ei,2);let Mo;ki(Xi,21,()=>r(Z),mi=>mi.id,(mi,Ct)=>{var Ni=He(),Uo=pe(Ni);{var vi=Ui=>{pm(Ui,{get isMobile(){return d()},get id(){return r(Ct).id},get icon(){return r(Ct).icon},get label(){return r(Ct).label},get ariaLabel(){return r(Ct).ariaLabel},get value(){return r(Ct).value},get valueComponent(){return r(Ct).valueComponent},onClick:()=>{Qe(r(Ct).children),D(Be,fe(r(Ct).id))},get ref(){return X[r(Ct).id]},set ref(To){X[r(Ct).id]=To}})},zo=(Ui,To)=>{{var zi=uo=>{fm(uo,{get isMobile(){return d()},get id(){return r(Ct).id},get onClick(){return r(Ct).onClick},get icon(){return r(Ct).icon},get label(){return r(Ct).label},get ariaLabel(){return r(Ct).ariaLabel},closeSettings:Ve})},Wn=(uo,En)=>{{var Lo=Vo=>{vm(Vo,{get isMobile(){return d()},get id(){return r(Ct).id},get onClick(){return r(Ct).onClick},get icon(){return r(Ct).icon},get label(){return r(Ct).label},get ariaLabel(){return r(Ct).ariaLabel},get enabled(){return r(Ct).enabled},get tooltipText(){return r(Ct).tooltipText},get maxTooltipWidth(){return r(Ct).maxTooltipWidth}})};B(uo,Vo=>{r(Ct).type==="SWITCH"&&Vo(Lo)},En)}};B(Ui,uo=>{r(Ct).type==="CLICK"?uo(zi):uo(Wn,!1)},To)}};B(Uo,Ui=>{r(Ct).type==="OPEN_SUB_MENU"?Ui(vi):Ui(zo,!1)})}_(mi,Ni)}),g(Xi),gt(Xi,mi=>G(mi),()=>G()),g(Lt),E((mi,Ct,Ni)=>{co=ee(Lt,1,"settings-menu menu svelte-17or3al",null,co,mi),Mo=ee(Xi,1,"items",null,Mo,Ct),st(Xi,Ni)},[()=>({desktop:!d(),mobile:d(),hidden:!!je.current}),()=>({mobile:d()}),lo]),It("mouseenter",Lt,Ri),It("mouseleave",Lt,Fi),_(Je,Lt)};B(ci,Je=>{n()&&Je(pt)})}var hi=A(ci,2);ki(hi,17,()=>r(Jt),Je=>Je.id,(Je,Lt)=>{let co=v(()=>{var ei;return(ei=r(Lt).minWidth)!=null?ei:137});um(Je,{get isMobile(){return d()},get playerControlsHeight(){return ne()},get returnFromSubMenu(){return je.popSubMenu},get id(){return r(Lt).id},get title(){return r(Lt).title},closeSettingsMenu:Bt,openSubMenuList:Qe,get items(){return r(Lt).items},get minWidth(){return r(co)},get refMenuItems(){return X},get listRef(){return se[r(Lt).id]},set listRef(ei){se[r(Lt).id]=ei}})}),g(bi),E(Je=>Bi=ee(bi,1,"settings-menu-container svelte-17or3al",null,Bi,Je),[()=>({mobile:d(),hidden:!n()})]),_(t,bi),z(),o()}at(["keydown","click"]);var ex=t=>t;function T1(t,{delay:e=0,duration:i=400,easing:o=ex}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var tx=L('<button class="button svelte-1sbbskl"> </button>'),ix={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 km(t,e){Q(t,ix);var i=tx();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)}at(["click"]);var ox=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),nx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
310
310
  /**
311
311
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
312
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Pd(t,e){U(e,!0),W(t,ex);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ut(),{ui:{t:n}}=Ce(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=J3(),d=h(s),l=h(d),u=h(l),v=h(u);kd(v,{message:a}),g(u);var $=M(u,2);{var p=w=>{let y=m(()=>n("slow_video_notification_button"));Cm(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R($,w=>{o||w(p)})}g(l);var _=M(l,2);oa(_,{get onClick(){return e.onClose}}),g(d),g(s),pp(3,d,()=>w1,()=>({duration:i})),b(t,s),z()}var ha="annotation",au=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",ha),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var tx=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),ix={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;
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 Ed(t,e){U(e,!0),Q(t,nx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=qt(),{ui:{t:n}}=Te(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=ox(),d=h(s),l=h(d),u=h(l),m=h(u);Id(m,{message:a}),g(u);var y=A(u,2);{var p=w=>{let b=v(()=>n("slow_video_notification_button"));km(w,{get label(){return r(b)},get onClick(){return e.onSelectAutoQuality}})};B(y,w=>{o||w(p)})}g(l);var $=A(l,2);ia($,{get onClick(){return e.onClose}}),g(d),g(s),vp(3,d,()=>T1,()=>({duration:i})),_(t,s),z()}var ga="annotation",lu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",ga),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var rx=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),sx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
313
313
 
314
314
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
315
315
 
@@ -340,8 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
340
340
  opacity: 0;
341
341
  scale: 0;
342
342
  }
343
- }`};function Tm(t,e){U(e,!0),W(t,ix);let[i,o]=Oe(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Ce(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:v,playbackStatusNextVideoAnimationDuration:$}}=Ut(),p=0,_=ee(null),w=ee(!1);ze(()=>{B(_,fe(n()?xr:ss))}),ze(()=>{B(_,fe(a()?Cs:null))}),ze(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&r(_)===Cs&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),B(_,null)},r(_)!==Cs?v:$),()=>{p&&(window.clearTimeout(p),p=0)}}),ze(()=>{n()&&!r(w)&&(B(w,!0),B(_,null))});var y=Ue(),C=pe(y);{var T=E=>{var P=Ue(),A=pe(P);Qs(A,()=>r(_),I=>{var V=tx(),H=h(V),Y=h(H);let O=m(()=>a()==="prev");Ei(Y,()=>r(_),(J,re)=>{re(J,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(O)}})}),g(H),g(V),k(()=>it(H,`animation-duration: ${r(_)!==Cs?v:$}ms`)),b(I,V)}),b(E,P)};R(C,E=>{r(_)&&u&&E(T)})}b(t,y),z(),o()}var ox=L('<div><div data-testid="video-container"></div></div>'),nx={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 _a(t,e){U(e,!0),W(t,nx);let[i,o]=Oe(),n=()=>S(v,"$rotateAlpha",i),a=()=>S($,"$playerSize",i),s=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:v,playerSize:$},state:{isPlaying$:p}}=Ce(),{isSmoothVideoRotate:_}=Ut(),w=m(()=>l()&&n()%180?a().height/a().width:1);var y=ox();let C;y.__contextmenu=function(...E){var P;(P=e.onContextMenu)==null||P.apply(this,E)},y.__mousedown=function(...E){var P;(P=e.onMouseDown)==null||P.apply(this,E)},y.__mouseup=function(...E){var P;(P=e.onMouseUp)==null||P.apply(this,E)},y.__click=function(...E){var P;(P=e.onClick)==null||P.apply(this,E)};var T=h(y);te(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),ft(T,E=>l(E),()=>l()),g(y),k(E=>{C=te(y,1,"video-wrapper svelte-1czns9r",null,C,E),it(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Fe(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),b(t,y),z(),o()}at(["contextmenu","mousedown","mouseup","click"]);var rx=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},sx=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},ax=L("<div><!></div>"),lx=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),dx=L("<div><!></div>"),cx=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),ux=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),px=L("<!> <!> <!>",1),fx=L('<div class="blocked svelte-jtgjmv"></div>'),mx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),vx={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 Im(t,e){U(e,!0),W(t,vx);let[i,o]=Oe(),n=()=>S(Qo,"$notificationsToShow$",i),a=()=>S(Hi,"$playerPhase",i),s=()=>S(di,"$isLoaderVisible",i),d=()=>S(ai,"$adPlaybackState",i),l=()=>S(St,"$crashed",i),u=()=>S(ho,"$isInteractiveTime$",i),v=()=>S(Do,"$settingsMenuVisible",i),$=()=>S(No,"$isInteractiveExpectation$",i),p=()=>S(vo,"$controlsVisible",i),_=()=>S(Io,"$touched",i),w=()=>S(Qn,"$graphIsOpened$",i),y=()=>S(ji,"$isFullscreen",i),C=()=>S(Sr,"$autoplayNextEnabled$",i),T=()=>S(ci,"$postrollPassed",i),E=()=>S(Ui,"$isEnded$",i),P=()=>S(jo,"$cursorInside",i),A=()=>S(kn,"$fakeIsPlaying$",i),I=()=>S(qi,"$bottomNoSmooth",i),V=()=>S(Tn,"$interactiveTimeIndicator",i),H=()=>S(zi,"$playerSize",i),Y=()=>S(To,"$is3DVideo",i),O=()=>S(X,"$contextMenuVisible$",i),J=()=>S(Et,"$playbackState$",i),re=()=>S(to,"$hotKeyMapData",i),Z=()=>S(ht,"$scrubbingInProgress",i),me=()=>S(Si,"$volumeChangingInProgress",i),de=()=>S(ni,"$chromecastConnected$",i),Le=()=>S(Po,"$controlsTimeoutActive",i),Me=()=>S(nt,"$settingsMenuOpenedByKeyboard",i),ve=()=>S(Vn,"$contextMenuOpenedByKeyboard$",i),le=()=>S(Zo,"$contextMenuButtonRef$",i),Ae=()=>S(er,"$contextMenuOpenedByHotKey$",i),se=()=>S(Ar,"$contextMenuLastActiveElem$",i),N=()=>S(Fi,"$isFullscreenOpenedByKeyboard",i),Re=()=>S(We,"$language$",i),ie=()=>S(ui,"$icon3DVideoVisible",i),Ge=()=>S(gi,"$chromecastDeviceName$",i),oe=()=>S(eo,"$currentSubtitle$",i),G=()=>S(Wn,"$currentSubtitleCaptions$",i),K=()=>S(ei,"$position$",i),Ve=()=>S(li,"$duration$",i),Ne=()=>S(ut,"$isLive$",i),Je=()=>S(go,"$isPlaying$",i),xe=()=>S(In,"$contextMenuPosition$",i),we=()=>S(ko,"$showHotKeyMap",i),Be=()=>S(ti,"$debugPanelVisible",i),Ze=()=>S(lr,"$userActionsDisabled$",i),ot=f(e,"videoContainer",15),gt=f(e,"adsSlotId",3,void 0),et=f(e,"adsParams",3,void 0),mt=f(e,"adsPreviewParam",3,void 0),kt=f(e,"adsAutoplayParam",3,void 0),Gt=f(e,"duration",3,void 0),zt=f(e,"logoTargetUrl",3,""),Kt=f(e,"showNextPrevButtons",3,!1),ge=f(e,"nextButtonActive",3,!1),j=f(e,"prevButtonActive",3,!1),Ie=f(e,"endScreenVideoTitle",3,void 0),ae=f(e,"endScreenVideoThumb",3,void 0),He=f(e,"isOneVideoPlaylist",3,!1),qe=f(e,"shadowRootContainer",3,void 0),tt=f(e,"outerContainerRef",3,void 0),lt=f(e,"playerStarted",3,!1),Ye=f(e,"fullScreenTarget",3,void 0),Xe=f(e,"showMiniTimer",3,!1),dt=f(e,"showEndScreen",3,!0),De=f(e,"keyboardControls",15),bt=e.store.getLogger().createComponentLog("Root component"),We=e.store.interfaceLanguage$,Et=e.store.state.playbackState$,ai=e.store.ads.playbackState,ei=e.store.state.positionWithScrubbing$,li=e.store.state.duration$,Hi=e.store.playerPhase,ji=e.store.ui.isFullscreen,Fi=e.store.ui.isFullscreenOpenedByKeyboard,vo=e.store.ui.controlsVisible,Do=e.store.ui.settingsMenu.visible$,nt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ht=e.store.ui.scrubbingInProgress,Si=e.store.ui.volumeChangingInProgress,X=e.store.ui.contextMenu.visible$,ti=e.store.ui.debugPanelVisible,di=e.store.state.isLoaderVisible,Ui=e.store.state.isEnded$,ni=e.store.state.chromecastConnected$,gi=e.store.state.chromecastDeviceName$,ci=e.store.ads.postrollPassed,ut=e.store.state.isLive$,go=e.store.state.isPlaying$,St=e.store.state.crashed$,qt=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,eo=e.store.state.currentSubtitle$,Wn=e.store.state.currentSubtitleCaptions$,zi=e.store.ui.playerSize,To=e.store.ui.is3DVideo,ui=e.store.ui.icon3DVideoVisible,Ct=e.store.state.isInteractive,ho=e.store.state.isInteractiveTime$,No=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,Io=e.store.ui.touched,to=e.store.ui.modals.hotKeyMap.data,ko=e.store.ui.modals.hotKeyMap.show,Bo=e.store.ui.overlayContainer$,Tn=e.store.ui.controls.interactiveTimeIndicator,Ni=e.store.state.showInteractiveTimeIndicator,In=e.store.ui.contextMenu.position$,io=e.store.actions.internal.setQuality,Eo=e.store.actions.internal.closeSettingsMenu,Sr=e.store.ui.autoplayNextEnabled$,lr=e.store.ui.userActionsDisabled,{fakeIsPlaying$:kn,notifications$:Kn,graphIsOpened$:Qn}=mo(),_o=ee(void 0),pn=ee(void 0),En=ee(void 0),rt=ee(void 0),Pn,Wo,Ko;to.set(Sh());let{closeNotification:Cr,notificationsToShow$:Qo}=Kn,An=m(()=>!!n().slow_video),Gn=()=>Cr("slow_video"),Mn=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Go=ee(void 0),qi=ue(!1),oo,Po=ue(!1),fn=ue(),jo=ue(!1),Yo=ee(!1),Ai=ee(!1),Oo=ee(!1),Ao=ee(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),dr=m(()=>u()&&!v()&&!(r(Yo)||r(Ai))&&!(r(Oo)&&!$())),mn=!0,vn=m(()=>e.uiConfig.features.thumbTimer&&Xe()&&a()==="video"&&!p()&&!l()&&!Ct&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Tr=m(()=>a()==="video"&&!w()&&y()),Ho=ee(!1),Ir=m(()=>(dt()||e.showAutoplayNext&&C())&&!!Ie()&&!!ae()&&(e.showAds&&T()||!e.showAds)&&E()&&!l()&&!r(Ho)),Ln=m(()=>P()&&!(p()||r(Ir))&&!u()),jn=ee(!1),cr=m(()=>A()!==null),{toggle:kr}=kn,Yn=!1,gn=null;ii==null||ii.setContext(El());let Er=()=>{e.autoplay&&!Ct&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ci(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Er});let fi=()=>{window.clearTimeout(Pn),Po.set(!1)},Mo=()=>{window.clearTimeout(Wo),fn.set(null)},Ci=ye=>{fi(),Po.set(!0),Pn=window.setTimeout(()=>Po.set(!1),ye);let Tt=ye-100;oo=window.setTimeout(()=>{I()&&qi.set(!1)},Tt>0?Tt:ye)},Zn=(ye,Tt)=>{Mo(),fn.set(Tt),Wo=window.setTimeout(()=>fn.set(null),ye)},pt=To.subscribe(ye=>{ui.set(ye),ye&&(window.clearTimeout(Ko),Ko=window.setTimeout(()=>ui.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ot=()=>Pt(this,null,function*(){var Tt,hi,Ii,ro;let ye=_s();if(ye){let vi=zl(),ke=st();ye=vi===ke||vi===qe()}if(ye){Ci(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ii==null?void 0:ii.remove()}catch(vi){bt({message:String(vi)})}}ji.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),y()?(hi=(Tt=e.store.callbacks)==null?void 0:Tt.onFullscreenEnter)==null||hi.call(Tt):(ro=(Ii=e.store.callbacks)==null?void 0:Ii.onFullscreenExit)==null||ro.call(Ii)}),Mi=ye=>{let{width:Tt,height:hi}=ye.target;zi.set({width:Tt,height:hi})},Lo=()=>{let{width:ye,height:Tt}=r(_o).getBoundingClientRect();zi.set({width:ye,height:Tt})};Ft(()=>{var Tt;return Vc(Ot),e.uiConfig.features.annotationsInside&&(qt==null||qt.init(r(_o))),ea(ii)&&(ii==null||ii.assignPlayerContainer(r(_o)),ii==null||ii.registryExternalEventHandlers({resize:Mi,leavepictureinpicture:Lo})),e.interactiveContainer&&((Tt=ot().parentElement)==null||Tt.insertBefore(e.interactiveContainer,ot().nextSibling)),()=>{window.clearTimeout(Pn),window.clearTimeout(oo),window.clearTimeout(Wo),window.clearTimeout(Ko),pt(),ii==null||ii.dispose().catch(hi=>{bt({message:String(hi)})}),Rc(Ot)}});let st=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!tt()?r(_o):tt(),Tt=ye.getRootNode(),hi=Tt instanceof ShadowRoot?Tt.host:Tt,Ii=Ye()instanceof HTMLElement&&Ye().contains(hi);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&Ii?Ye():ye},Qt=()=>Pt(this,null,function*(){_s()?(yield Lc(document),bt({message:"exit fullscreen"})):(bt({message:"request fullscreen"}),yield Mc(st()))}),mi=()=>{Eo(),X.set(!1)},Yi=ye=>{w()||(ye.preventDefault(),X.set(!0),In.set({left:ye.clientX,top:ye.clientY}))};function Zi(){jo.set(!0),Ct||Ci(e.uiConfig.controls.hideTimeoutCursor)}function Li(){Ct||(qi.set(!0),Ci(e.uiConfig.controls.hideTimeoutCursor))}function xi(){jo.set(!1),B(Ai,!1),B(Yo,!1),Yn=!1,e.store.actions.internal.releaseCamera(),Ci(e.uiConfig.controls.hideTimeout)}function Xi(ye){return ye?ye.offsetTop+Xi(ye.offsetParent):0}function Ti(ye){return ye?ye.offsetLeft+Ti(ye.offsetParent):0}function no(ye){if(V()&&Ni){let Tt=ye.currentTarget,hi=Xi(Tt),Ii=Ti(Tt),ro=ye.pageX-Ii,vi=ye.pageY-hi,{left:ke,bottom:At,right:Xt}=V(),wi=Xt-ke;return ro>=ke-wi&&vi<=At+wi}}function Wi(ye){if(r(_o)){let Tt=Xi(ye.currentTarget),hi=H().height,Ii=ye.pageY-Tt;if(no(ye)){B(Ai,!1);return}Ii<40?B(Ai,!0):Ii>hi-40?B(Yo,!0):(B(Ai,!1),v()||B(Yo,!1))}}function hn(ye){Wi(ye),r(dr)||Ci(e.uiConfig.controls.hideTimeoutCursor),Y()&&Yn&&gn&&e.store.actions.internal.moveCameraFocusPX(gn.clientX-ye.clientX,gn.clientY-ye.clientY,ye.timeStamp-gn.timeStamp),gn=ye}let Xn=ye=>{ye.preventDefault(),ye.button===0&&(Yn=!0,e.store.actions.internal.holdCamera()),Ci(e.uiConfig.controls.hideTimeoutCursor)},ur=ye=>{ye.preventDefault(),ye.button===0&&(gn=ye,Yn=!1,e.store.actions.internal.releaseCamera()),Ci(e.uiConfig.controls.hideTimeoutCursor)},Jn=ye=>{var Tt;if(ye.preventDefault(),O()||v()){mi();return}if(!(E()&&!pi)){if(r(cr))return kr();if((Tt=De())==null||Tt.focus(),!lt()){e.firstStart(),Ci(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==C1.PLAYING)&&e.store.actions.internal.togglePlay(),Ci(e.uiConfig.controls.hideTimeoutCursor)}},Pr=ye=>{mi(),Io.set(!0),Ci(e.uiConfig.controls.hideTimeout),ye&&Zn(e.uiConfig.controls.hideHotKeyHelpers,ye)},pr=()=>{var ye,Tt;mi(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(Tt=e.store.callbacks)==null||Tt.onOpenHotKeyMap(re()):ko.update(hi=>!hi)},_n=()=>{Io.set(!0)},Vn=e.store.ui.contextMenu.openedByBtnKeyboard$,Zo=e.store.ui.contextMenu.btnRef$,Xo=ee(void 0),er=e.store.ui.contextMenu.openedByHotKey$,Ar=e.store.ui.contextMenu.lastActiveElem$;ze(()=>{Bo.set(r(Go))}),ze(()=>{B(Oo,fe(r(Ao)&&J()!==C1.PLAYING)),r(Ao)||yt(()=>B(Ao,!0))}),ze(()=>{vo.set((r(Oo)||E()||v()||Z()||me()||de()||Le())&&!r(dr)&&(a()==="video"||a()==="ads")&&!l())}),ze(()=>{!Z()&&r(jn)&&!u()&&Ci(e.uiConfig.controls.hideTimeoutCursor),yt(()=>B(jn,fe(Z())))}),ze(()=>{r(rt),v(),Me(),yt(()=>Ga(r(rt),v(),Me()))}),ze(()=>{r(Xo),O(),ve(),yt(()=>Ga(r(Xo),O(),ve()))}),ze(()=>{let ye=le();ye&&(O(),yt(()=>Qa(ye,O(),Vn)))}),ze(()=>{r(Xo),O(),Ae(),yt(()=>Ga(r(Xo),O(),Ae()))}),ze(()=>{let ye=se();ye&&(O(),yt(()=>Ph(ye,O(),er)))}),ze(()=>{var ye;!N()&&y()&&(yt(()=>Fi.set(!1)),(ye=De())==null||ye.focus())}),ze(()=>{w()&&mi()});let Mr=F("video360");var fr=mx();wt("blur",Us,mi);var bo=pe(fr);bo.__mousemove=hn,bo.__dblclick=[rx,mn,bt,Qt,Ci,e];var Rn=h(bo);let tr=m(()=>a()==="ads"),Lr=m(()=>r(cr)?kr:void 0);ft(Kp(Rn,{toggleFullscreen:Qt,hideContextMenu:mi,showHotKeyHelpers:Pr,showKeyMap:pr,get isAds(){return r(tr)},get fakePlayButtonHandler(){return r(Lr)},get nextButtonActive(){return ge()},get prevButtonActive(){return j()},children:(ye,Tt)=>{var hi=px(),Ii=pe(hi);_a(Ii,{get hideCursor(){return r(Ln)},onClick:Jn,onContextMenu:Yi,onMouseDown:Xn,onMouseUp:ur,get videoContainer(){return ot()},set videoContainer(ke){ot(ke)}});var ro=M(Ii,2);Gs(ro,()=>"slot",!1,(ke,At)=>{Te(ke,null,{name:ha})});var vi=M(ro,2);Qs(vi,Re,ke=>{var At=ux(),Xt=pe(At);let wi=m(()=>a()!=="thumb"||l()||Ct&&e.autoplay);ma(Xt,{get hidden(){return r(wi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var oi=M(Xt,2);Tm(oi,{});var Vr=M(oi,2);{var Ji=Ke=>{let si=m(()=>{var en;return(en=e.live)==null?void 0:en.startTime});Td(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)}})};R(Vr,Ke=>{a()==="LiveWaitingStart"&&Ke(Ji)})}var Rr=M(Vr,2);{var ks=Ke=>{va(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Rr,Ke=>{a()==="LiveWaitingRecover"&&Ke(ks)})}var Jo=M(Rr,2);{var ba=Ke=>{va(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Jo,Ke=>{a()==="LiveWaitingRecord"&&Ke(ba)})}var Es=M(Jo,2);{var al=Ke=>{var si=ax();let en;var Ls=h(si);ql(Ls,{get adsSlotId(){return gt()},get adsParams(){return et()},get adsPreviewParam(){return mt()},get adsAutoplayParam(){return kt()},get duration(){return Gt()}}),g(si),k(tn=>en=te(si,1,"ads-container svelte-jtgjmv",null,en,tn),[()=>({hidden:a()!=="ads"})]),b(Ke,si)};R(Es,Ke=>{e.showAds&&lt()&&Ke(al)})}var $a=M(Es,2);{var ll=Ke=>{let si=m(()=>!dt()&&e.showAutoplayNext&&C());zp(Ke,{get title(){return Ie()},get thumb(){return ae()},get isHide(){return r(si)},clickCloseIcon:()=>B(Ho,!0)})};R($a,Ke=>{r(Ir)&&Ie()&&ae()&&Ke(ll)})}var Ps=M($a,2);{var dl=Ke=>{let si=m(()=>!p());tm(Ke,{get title(){return e.title},get isHidden(){return r(si)}})};R(Ps,Ke=>{r(Tr)&&Ke(dl)})}var ya=M(Ps,2);{var ir=Ke=>{let si=m(()=>a()==="video"&&p());wd(Ke,{get isShifted(){return r(si)}})};R(ya,Ke=>{Y()&&Ke(ir)})}var As=M(ya,2);{var $t=Ke=>{var si=lx(),en=h(si);Ul(en,{"aria-label":Mr}),g(si),b(Ke,si)};R(As,Ke=>{ie()&&Ke($t)})}var _t=M(As,2);{var so=Ke=>{Sd(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ge()}})};R(_t,Ke=>{de()&&Ke(so)})}var Fo=M(_t,2);{var ao=Ke=>{fa(Ke,{get shifted(){return p()},get captions(){return G()},get position(){return K()},get playerSize(){return H()}})};R(Fo,Ke=>{oe().value!=="off"&&Ke(ao)})}var ri=M(Fo,2);{var Bi=Ke=>{var si=dx();si.__contextmenu=Yi,si.__click=[sx,O,X,v,Do,mi];var en=h(si);Cd(en,{}),g(si),b(Ke,si)};R(ri,Ke=>{l()&&Ke(Bi)})}var ls=M(ri,2);{var cl=Ke=>{let si=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),en=m(()=>a()==="ads"),Ls=m(()=>e.canRewindLive&&Ve()!==0);xd(Ke,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return I()},get showControls(){return p()},get isAds(){return r(en)},get canRewindLive(){return r(Ls)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return zt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Kt()},get nextButtonActive(){return ge()},get prevButtonActive(){return j()},get isOneVideoPlaylist(){return He()},customFullscreenSupported:mn,toggleFullscreen:Qt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(pn)},set playerControlsWrapperRef(tn){B(pn,fe(tn))},get playerControlsRef(){return r(En)},set playerControlsRef(tn){B(En,fe(tn))}})};R(ls,Ke=>{lt()&&Ke(cl)})}var Ud=M(ls,2);{var _u=Ke=>{var si=cx(),en=h(si);let Ls=m(()=>{var tn;return(tn=r(En))==null?void 0:tn.clientHeight});Ed(en,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ls)},returnFocus:()=>{var tn;return(tn=De())==null?void 0:tn.focus()},get ref(){return r(rt)},set ref(tn){B(rt,fe(tn))}}),g(si),b(Ke,si)};R(Ud,Ke=>{!de()&&a()!=="ads"&&Ke(_u)})}var zd=M(Ud,2);let bu=m(()=>!r(vn));Ql(zd,{get isLive(){return Ne()},get isHidden(){return r(bu)},get isPlaying(){return Je()},get position(){return K()},get duration(){return Ve()}});var qd=M(zd,2);Zf(qd,{data:fn});var Ms=M(qd,2);Up(Ms,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ke;return(Ke=De())==null?void 0:Ke.focus()},get visible(){return O()},get playerContainerRef(){return r(_o)},get controlsContainerRef(){return r(pn)},get position(){return xe()},get menuElementRef(){return r(Xo)},set menuElementRef(Ke){B(Xo,fe(Ke))}});var Wd=M(Ms,2);{var Kd=Ke=>{Pd(Ke,{onClose:Gn,onSelectAutoQuality:()=>{io("auto"),Gn()}})};R(Wd,Ke=>{r(An)&&Ke(Kd)})}var ul=M(Wd,2);{var $u=Ke=>{ra(Ke,{})};R(ul,Ke=>{r(Mn)&&Ke($u)})}var pl=M(ul,2);{var fl=Ke=>{jp(Ke,{})};R(pl,Ke=>{we()&&Ke(fl)})}var Qd=M(pl,2);{var yu=Ke=>{Zl(Ke,{})};R(Qd,Ke=>{Be()&&Ke(yu)})}b(ke,At)}),b(ye,hi)},$$slots:{default:!0}}),ye=>De(ye),()=>De());var ct=M(Rn,2);ft(ct,ye=>B(Go,ye),()=>r(Go)),g(bo),ft(bo,ye=>B(_o,ye),()=>r(_o));var Ht=M(bo,2);{var Vi=ye=>{var Tt=fx();b(ye,Tt)};R(Ht,ye=>{Ze()&&ye(Vi)})}wt("mouseenter",bo,Zi),wt("mouseleave",bo,xi),wt("click",bo,_n,!0),wt("focusin",bo,Li,!0),b(t,fr),z(),o()}at(["mousemove","dblclick","contextmenu","click"]);import{clientChecker as Ad,PlaybackState as Cx}from"@vkontakte/videoplayer-core/es2015";import{noop as Tx}from"@vkontakte/videoplayer-shared/es2015";var gx=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),hx=L("<div><!></div>"),_x={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
343
+ }`};function Em(t,e){U(e,!0),Q(t,sx);let[i,o]=De(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Te(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:y}}=qt(),p=0,$=J(null),w=J(!1);Ue(()=>{D($,fe(n()?Tr:as))}),Ue(()=>{D($,fe(a()?Cs:null))}),Ue(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&r($)===Cs&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D($,null)},r($)!==Cs?m:y),()=>{p&&(window.clearTimeout(p),p=0)}}),Ue(()=>{n()&&!r(w)&&(D(w,!0),D($,null))});var b=He(),C=pe(b);{var T=I=>{var M=He(),P=pe(M);Ks(P,()=>r($),k=>{var R=rx(),W=h(R),j=h(W);let F=v(()=>a()==="prev");Ei(j,()=>r($),(G,ne)=>{ne(G,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(W),g(R),E(()=>st(W,`animation-duration: ${r($)!==Cs?m:y}ms`)),_(k,R)}),_(I,M)};B(C,I=>{r($)&&u&&I(T)})}_(t,b),z(),o()}var ax=L('<div><div data-testid="video-container"></div></div>'),lx={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 ha(t,e){U(e,!0),Q(t,lx);let[i,o]=De(),n=()=>S(m,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:m,playerSize:y},state:{isPlaying$:p}}=Te(),{isSmoothVideoRotate:$}=qt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=ax();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":!$}),gt(T,I=>l(I),()=>l()),g(b),E(I=>{C=ee(b,1,"video-wrapper svelte-1czns9r",null,C,I),st(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),_(t,b),z(),o()}at(["contextmenu","mousedown","mouseup","click","dblclick"]);var dx=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},cx=L("<div><!></div>"),ux=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),px=L("<div><!></div>"),fx=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),mx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),vx=L("<!> <!> <!>",1),gx=L('<div class="blocked svelte-jtgjmv"></div>'),hx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),_x={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 Pm(t,e){U(e,!0),Q(t,_x);let[i,o]=De(),n=()=>S(mn,"$notificationsToShow$",i),a=()=>S(Ri,"$playerPhase",i),s=()=>S(Jt,"$isLoaderVisible",i),d=()=>S(ii,"$adPlaybackState",i),l=()=>S(Lt,"$crashed",i),u=()=>S(Uo,"$isInteractiveTime$",i),m=()=>S(ot,"$settingsMenuVisible",i),y=()=>S(vi,"$isInteractiveExpectation$",i),p=()=>S(Gi,"$controlsVisible",i),$=()=>S(Ui,"$touched",i),w=()=>S(ft,"$graphIsOpened$",i),b=()=>S(Fi,"$isFullscreen",i),C=()=>S(kr,"$autoplayNextEnabled$",i),T=()=>S(pt,"$postrollPassed",i),I=()=>S(bi,"$isEnded$",i),M=()=>S(Ln,"$cursorInside",i),P=()=>S(An,"$isControlsAvailable",i),k=()=>S(fn,"$fakeIsPlaying$",i),R=()=>S(vn,"$bottomNoSmooth",i),W=()=>S(uo,"$interactiveTimeIndicator",i),j=()=>S(Mo,"$playerSize",i),F=()=>S(mi,"$is3DVideo",i),G=()=>S(Co,"$contextMenuVisible$",i),ne=()=>S(Si,"$playbackState$",i),X=()=>S(To,"$hotKeyMapData",i),se=()=>S(Ai,"$scrubbingInProgress",i),ce=()=>S(Zi,"$volumeChangingInProgress",i),Me=()=>S(Bi,"$chromecastConnected$",i),Le=()=>S(Qo,"$controlsTimeoutActive",i),he=()=>S($t,"$settingsMenuOpenedByKeyboard",i),ae=()=>S(Jo,"$contextMenuOpenedByKeyboard$",i),Pe=()=>S(Vr,"$contextMenuButtonRef$",i),re=()=>S(hr,"$contextMenuOpenedByHotKey$",i),V=()=>S(qr,"$contextMenuLastActiveElem$",i),we=()=>S(lo,"$isFullscreenOpenedByKeyboard",i),be=()=>S(bt,"$language$",i),qe=()=>S(Ct,"$icon3DVideoVisible",i),H=()=>S(ci,"$chromecastDeviceName$",i),de=()=>S(qn,"$currentSubtitle$",i),_e=()=>S(Xi,"$currentSubtitleCaptions$",i),te=()=>S(Ge,"$position$",i),Oe=()=>S(Xt,"$duration$",i),Ze=()=>S(hi,"$isLive$",i),Se=()=>S(Je,"$isPlaying$",i),Re=()=>S(Lo,"$contextMenuPosition$",i),ke=()=>S(zi,"$showHotKeyMap",i),ze=()=>S(Z,"$debugPanelVisible",i),ct=()=>S(ur,"$userActionsDisabled$",i),ut=f(e,"videoContainer",15),nt=f(e,"adsSlotId",3,void 0),St=f(e,"adsParams",3,void 0),mt=f(e,"adsPreviewParam",3,void 0),Kt=f(e,"adsAutoplayParam",3,void 0),ni=f(e,"duration",3,void 0),Mt=f(e,"logoTargetUrl",3,""),Bt=f(e,"showNextPrevButtons",3,!1),O=f(e,"nextButtonActive",3,!1),$e=f(e,"prevButtonActive",3,!1),ie=f(e,"endScreenVideoTitle",3,void 0),Be=f(e,"endScreenVideoThumb",3,void 0),je=f(e,"isOneVideoPlaylist",3,!1),Qe=f(e,"shadowRootContainer",3,void 0),Ve=f(e,"outerContainerRef",3,void 0),rt=f(e,"playerStarted",3,!1),et=f(e,"fullScreenTarget",3,void 0),_t=f(e,"showMiniTimer",3,!1),it=f(e,"showEndScreen",3,!0),Xe=f(e,"keyboardControls",15),Qt=e.store.getLogger().createComponentLog("Root component"),bt=e.store.interfaceLanguage$,Si=e.store.state.playbackState$,ii=e.store.ads.playbackState,Ge=e.store.state.positionWithScrubbing$,Xt=e.store.state.duration$,Ri=e.store.playerPhase,Fi=e.store.ui.isFullscreen,lo=e.store.ui.isFullscreenOpenedByKeyboard,Gi=e.store.ui.controlsVisible,ot=e.store.ui.settingsMenu.visible$,$t=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ai=e.store.ui.scrubbingInProgress,Zi=e.store.ui.volumeChangingInProgress,Co=e.store.ui.contextMenu.visible$,Z=e.store.ui.debugPanelVisible,Jt=e.store.state.isLoaderVisible,bi=e.store.state.isEnded$,Bi=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,pt=e.store.ads.postrollPassed,hi=e.store.state.isLive$,Je=e.store.state.isPlaying$,Lt=e.store.state.crashed$,co=e.store.webApi.annotationsApi,ei=e.store.webApi.pictureInPictureApi,qn=e.store.state.currentSubtitle$,Xi=e.store.state.currentSubtitleCaptions$,Mo=e.store.ui.playerSize,mi=e.store.ui.is3DVideo,Ct=e.store.ui.icon3DVideoVisible,Ni=e.store.state.isInteractive,Uo=e.store.state.isInteractiveTime$,vi=e.store.state.isInteractiveExpectation$,zo=e.store.state.hasInteractiveBranches,Ui=e.store.ui.touched,To=e.store.ui.modals.hotKeyMap.data,zi=e.store.ui.modals.hotKeyMap.show,Wn=e.store.ui.overlayContainer$,uo=e.store.ui.controls.interactiveTimeIndicator,En=e.store.state.showInteractiveTimeIndicator,Lo=e.store.ui.contextMenu.position$,Vo=e.store.actions.internal.setQuality,Pn=e.store.actions.internal.closeSettingsMenu,kr=e.store.ui.autoplayNextEnabled$,ur=e.store.ui.userActionsDisabled,An=e.store.ui.isControlsAvailable,{fakeIsPlaying$:fn,notifications$:Kn,graphIsOpened$:ft}=so(),po=J(void 0),qo=J(void 0),Mn=J(void 0),Ro=J(void 0),Wo,Qn,Bo;To.set(Ih());let{closeNotification:Gn,notificationsToShow$:mn}=Kn,Yn=v(()=>!!n().slow_video),Ko=()=>Gn("slow_video"),fo=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Ii=J(void 0),vn=ue(!1),gn,Qo=ue(!1),mo=ue(),Ln=ue(!1),Io=J(!1),qi=J(!1),pr=J(!1),No=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),jn=v(()=>u()&&!m()&&!(r(Io)||r(qi))&&!(r(pr)&&!y())),Vn=!0,Zn=v(()=>e.uiConfig.features.thumbTimer&&_t()&&a()==="video"&&!p()&&!l()&&!Ni&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),fr=v(()=>a()==="video"&&!w()&&b()),hn=J(!1),Er=v(()=>(it()||e.showAutoplayNext&&C())&&!!ie()&&!!Be()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(hn)),mr=v(()=>M()&&!(p()||r(Er))&&!u()&&P()),Xn=J(!1),Pr=v(()=>k()!==null),{toggle:Ar}=fn,_n=!1,Yt=null;ei==null||ei.setContext(kl());let vt=()=>{e.autoplay&&!Ni&&e.uiConfig.controls.showOnStartupAtAutoplay&&ai(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:vt});let Dt=()=>{window.clearTimeout(Wo),Qo.set(!1)},ui=()=>{window.clearTimeout(Qn),mo.set(null)},ai=me=>{Dt(),Qo.set(!0),Wo=window.setTimeout(()=>Qo.set(!1),me);let xt=me-100;gn=window.setTimeout(()=>{R()&&vn.set(!1)},xt>0?xt:me)},vo=(me,xt)=>{ui(),mo.set(xt),Qn=window.setTimeout(()=>mo.set(null),me)},ko=mi.subscribe(me=>{Ct.set(me),me&&(window.clearTimeout(Bo),Bo=window.setTimeout(()=>Ct.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Eo=()=>Et(this,null,function*(){var xt,pi,gi,Ti;let me=_s();if(me){let Fe=Ul(),Vt=tt();me=Fe===Vt||Fe===Qe()}if(me){ai(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ei==null?void 0:ei.remove()}catch(Fe){Qt({message:String(Fe)})}}Fi.set(me),e.store.getAdmanWrapper().setFullscreen(me),b()?(pi=(xt=e.store.callbacks)==null?void 0:xt.onFullscreenEnter)==null||pi.call(xt):(Ti=(gi=e.store.callbacks)==null?void 0:gi.onFullscreenExit)==null||Ti.call(gi)}),Go=me=>{let{width:xt,height:pi}=me.target;Mo.set({width:xt,height:pi})},Yo=()=>{let{width:me,height:xt}=r(po).getBoundingClientRect();Mo.set({width:me,height:xt})};zt(()=>{var xt;return Vc(Eo),e.uiConfig.features.annotationsInside&&(co==null||co.init(r(po))),Js(ei)&&(ei==null||ei.assignPlayerContainer(r(po)),ei==null||ei.registryExternalEventHandlers({resize:Go,leavepictureinpicture:Yo})),e.interactiveContainer&&((xt=ut().parentElement)==null||xt.insertBefore(e.interactiveContainer,ut().nextSibling)),()=>{window.clearTimeout(Wo),window.clearTimeout(gn),window.clearTimeout(Qn),window.clearTimeout(Bo),ko(),ei==null||ei.dispose().catch(pi=>{Qt({message:String(pi)})}),Rc(Eo)}});let tt=()=>{let me=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ve()?r(po):Ve(),xt=me.getRootNode(),pi=xt instanceof ShadowRoot?xt.host:xt,gi=et()instanceof HTMLElement&&et().contains(pi);return e.uiConfig.allowChangingFullscreenTarget&&et()&&gi?et():me},Ot=()=>Et(this,null,function*(){_s()?(yield Lc(document),Qt({message:"exit fullscreen"})):(Qt({message:"request fullscreen"}),yield Mc(tt()))}),_i=()=>{Pn(),Co.set(!1)},Ji=me=>{w()||(me.preventDefault(),Co.set(!0),Lo.set({left:me.clientX,top:me.clientY}))};function Di(){Ln.set(!0),Ni||ai(e.uiConfig.controls.hideTimeoutCursor)}function Jn(){Ni||(vn.set(!0),ai(e.uiConfig.controls.hideTimeoutCursor))}function Do(){Ln.set(!1),D(qi,!1),D(Io,!1),_n=!1,e.store.actions.internal.releaseCamera(),ai(e.uiConfig.controls.hideTimeout)}function jo(me){return me?me.offsetTop+jo(me.offsetParent):0}function li(me){return me?me.offsetLeft+li(me.offsetParent):0}function Zo(me){if(W()&&En){let xt=me.currentTarget,pi=jo(xt),gi=li(xt),Ti=me.pageX-gi,Fe=me.pageY-pi,{left:Vt,bottom:si,right:eo}=W(),ho=eo-Vt;return Ti>=Vt-ho&&Fe<=si+ho}}function bn(me){if(r(po)){let xt=jo(me.currentTarget),pi=j().height,gi=me.pageY-xt;if(Zo(me)){D(qi,!1);return}gi<40?D(qi,!0):gi>pi-40?D(Io,!0):(D(qi,!1),m()||D(Io,!1))}}function Mr(me){bn(me),r(jn)||ai(e.uiConfig.controls.hideTimeoutCursor),F()&&_n&&Yt&&e.store.actions.internal.moveCameraFocusPX(Yt.clientX-me.clientX,Yt.clientY-me.clientY,me.timeStamp-Yt.timeStamp),Yt=me}let Xo=me=>{me.preventDefault(),me.button===0&&(_n=!0,e.store.actions.internal.holdCamera()),ai(e.uiConfig.controls.hideTimeoutCursor)},vr=me=>{me.preventDefault(),me.button===0&&(Yt=me,_n=!1,e.store.actions.internal.releaseCamera()),ai(e.uiConfig.controls.hideTimeoutCursor)},er=me=>{me.preventDefault(),Vn&&(Qt({message:"double click on video"}),Ot(),ai(e.uiConfig.controls.hideTimeoutCursor))},gr=me=>{var xt;if(me.preventDefault(),G()||m()){_i();return}if(!(I()&&!zo)){if(r(Pr))return Ar();if((xt=Xe())==null||xt.focus(),!rt()){e.firstStart(),ai(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==k1.PLAYING)&&e.store.actions.internal.togglePlay(),ai(e.uiConfig.controls.hideTimeoutCursor)}},tr=me=>{_i(),Ui.set(!0),ai(e.uiConfig.controls.hideTimeout),me&&vo(e.uiConfig.controls.hideHotKeyHelpers,me)},Lr=()=>{var me,xt;_i(),(me=e.store.callbacks)!=null&&me.onOpenHotKeyMap?(xt=e.store.callbacks)==null||xt.onOpenHotKeyMap(X()):zi.update(pi=>!pi)},ir=()=>{Ui.set(!0)},Jo=e.store.ui.contextMenu.openedByBtnKeyboard$,Vr=e.store.ui.contextMenu.btnRef$,en=J(void 0),hr=e.store.ui.contextMenu.openedByHotKey$,qr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{Wn.set(r(Ii))}),Ue(()=>{D(pr,fe(r(No)&&ne()!==k1.PLAYING)),r(No)||wt(()=>D(No,!0))}),Ue(()=>{Gi.set((r(pr)||I()||m()||se()||ce()||Me()||Le())&&!r(jn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Ue(()=>{!se()&&r(Xn)&&!u()&&ai(e.uiConfig.controls.hideTimeoutCursor),wt(()=>D(Xn,fe(se())))}),Ue(()=>{r(Ro),m(),he(),wt(()=>Za(r(Ro),m(),he()))}),Ue(()=>{r(en),G(),ae(),wt(()=>Za(r(en),G(),ae()))}),Ue(()=>{let me=Pe();me&&(G(),wt(()=>ja(me,G(),Jo)))}),Ue(()=>{r(en),G(),re(),wt(()=>Za(r(en),G(),re()))}),Ue(()=>{let me=V();me&&(G(),wt(()=>Lh(me,G(),hr)))}),Ue(()=>{var me;!we()&&b()&&(wt(()=>lo.set(!1)),(me=Xe())==null||me.focus())}),Ue(()=>{w()&&_i()});let lt=q("video360");var Gt=hx();It("blur",Fs,_i);var ri=pe(Gt);ri.__mousemove=Mr;var go=h(ri);let $n=v(()=>a()==="ads"),or=v(()=>r(Pr)?Ar:void 0);gt(Yp(go,{toggleFullscreen:Ot,hideContextMenu:_i,showHotKeyHelpers:tr,showKeyMap:Lr,get isAds(){return r($n)},get fakePlayButtonHandler(){return r(or)},get nextButtonActive(){return O()},get prevButtonActive(){return $e()},children:(me,xt)=>{var pi=vx(),gi=pe(pi);ha(gi,{get hideCursor(){return r(mr)},onClick:gr,onContextMenu:Ji,onMouseDown:Xo,onMouseUp:vr,onDblClick:er,get videoContainer(){return ut()},set videoContainer(Vt){ut(Vt)}});var Ti=A(gi,2);Qs(Ti,()=>"slot",!1,(Vt,si)=>{Ie(Vt,null,{name:ga})});var Fe=A(Ti,2);Ks(Fe,be,Vt=>{var si=mx(),eo=pe(si);let ho=v(()=>a()!=="thumb"||l()||Ni&&e.autoplay);fa(eo,{get hidden(){return r(ho)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Wr=A(eo,2);Em(Wr,{});var Oi=A(Wr,2);{var nr=We=>{let di=v(()=>{var on;return(on=e.live)==null?void 0:on.startTime});Cd(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(di)}})};B(Oi,We=>{a()==="LiveWaitingStart"&&We(nr)})}var ks=A(Oi,2);{var rr=We=>{ma(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(ks,We=>{a()==="LiveWaitingRecover"&&We(rr)})}var _a=A(ks,2);{var cl=We=>{ma(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(_a,We=>{a()==="LiveWaitingRecord"&&We(cl)})}var ba=A(_a,2);{var $a=We=>{var di=cx();let on;var Ms=h(di);zl(Ms,{get adsSlotId(){return nt()},get adsParams(){return St()},get adsPreviewParam(){return mt()},get adsAutoplayParam(){return Kt()},get duration(){return ni()}}),g(di),E(_o=>on=ee(di,1,"ads-container svelte-jtgjmv",null,on,_o),[()=>({hidden:a()!=="ads"})]),_(We,di)};B(ba,We=>{e.showAds&&rt()&&We($a)})}var ya=A(ba,2);{var ul=We=>{let di=v(()=>!it()&&e.showAutoplayNext&&C());Kp(We,{get title(){return ie()},get thumb(){return Be()},get isHide(){return r(di)},clickCloseIcon:()=>D(hn,!0)})};B(ya,We=>{r(Er)&&ie()&&Be()&&We(ul)})}var Es=A(ya,2);{var xa=We=>{let di=v(()=>!p());nm(We,{get title(){return e.title},get isHidden(){return r(di)}})};B(Es,We=>{r(fr)&&We(xa)})}var dt=A(Es,2);{var yt=We=>{let di=v(()=>a()==="video"&&p());xd(We,{get isShifted(){return r(di)}})};B(dt,We=>{F()&&We(yt)})}var Yi=A(dt,2);{var tn=We=>{var di=ux(),on=h(di);Fl(on,{"aria-label":lt}),g(di),_(We,di)};B(Yi,We=>{qe()&&We(tn)})}var ji=A(Yi,2);{var fi=We=>{wd(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return H()}})};B(ji,We=>{Me()&&We(fi)})}var Mi=A(ji,2);{var Ps=We=>{pa(We,{get shifted(){return p()},get captions(){return _e()},get position(){return te()},get playerSize(){return j()}})};B(Mi,We=>{de().value!=="off"&&We(Ps)})}var wa=A(Mi,2);{var $u=We=>{var di=px();di.__contextmenu=Ji,di.__click=[dx,G,Co,m,ot,_i];var on=h(di);Sd(on,{}),g(di),_(We,di)};B(wa,We=>{l()&&We($u)})}var Hd=A(wa,2);{var yu=We=>{let di=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),on=v(()=>a()==="ads"),Ms=v(()=>e.canRewindLive&&Oe()!==0);yd(We,{get bottomHidden(){return r(di)},get bottomNoSmooth(){return R()},get showControls(){return p()},get isAds(){return r(on)},get canRewindLive(){return r(Ms)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Mt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Bt()},get nextButtonActive(){return O()},get prevButtonActive(){return $e()},get isOneVideoPlaylist(){return je()},customFullscreenSupported:Vn,toggleFullscreen:Ot,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(qo)},set playerControlsWrapperRef(_o){D(qo,fe(_o))},get playerControlsRef(){return r(Mn)},set playerControlsRef(_o){D(Mn,fe(_o))}})};B(Hd,We=>{rt()&&We(yu)})}var Fd=A(Hd,2);{var xu=We=>{var di=fx(),on=h(di);let Ms=v(()=>{var _o;return(_o=r(Mn))==null?void 0:_o.clientHeight});kd(on,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ms)},returnFocus:()=>{var _o;return(_o=Xe())==null?void 0:_o.focus()},get ref(){return r(Ro)},set ref(_o){D(Ro,fe(_o))}}),g(di),_(We,di)};B(Fd,We=>{!Me()&&a()!=="ads"&&We(xu)})}var Ud=A(Fd,2);let wu=v(()=>!r(Zn));Kl(Ud,{get isLive(){return Ze()},get isHidden(){return r(wu)},get isPlaying(){return Se()},get position(){return te()},get duration(){return Oe()}});var As=A(Ud,2);em(As,{data:mo});var zd=A(As,2);Wp(zd,{get supportLink(){return e.supportLink},returnFocus:()=>{var We;return(We=Xe())==null?void 0:We.focus()},get visible(){return G()},get playerContainerRef(){return r(po)},get controlsContainerRef(){return r(qo)},get position(){return Re()},get menuElementRef(){return r(en)},set menuElementRef(We){D(en,fe(We))}});var pl=A(zd,2);{var qd=We=>{Ed(We,{onClose:Ko,onSelectAutoQuality:()=>{Vo("auto"),Ko()}})};B(pl,We=>{r(Yn)&&We(qd)})}var Wd=A(pl,2);{var Kd=We=>{na(We,{})};B(Wd,We=>{r(fo)&&We(Kd)})}var Sa=A(Wd,2);{var Qd=We=>{Xp(We,{})};B(Sa,We=>{ke()&&We(Qd)})}var Su=A(Sa,2);{var Gd=We=>{jl(We,{})};B(Su,We=>{ze()&&We(Gd)})}_(Vt,si)}),_(me,pi)},$$slots:{default:!0}}),me=>Xe(me),()=>Xe());var yn=A(go,2);gt(yn,me=>D(Ii,me),()=>r(Ii)),g(ri),gt(ri,me=>D(po,me),()=>r(po));var Rn=A(ri,2);{var Ci=me=>{var xt=gx();_(me,xt)};B(Rn,me=>{ct()&&me(Ci)})}It("mouseenter",ri,Di),It("mouseleave",ri,Do),It("click",ri,ir,!0),It("focusin",ri,Jn,!0),_(t,Gt),z(),o()}at(["mousemove","contextmenu","click"]);import{clientChecker as Pd,PlaybackState as kx}from"@vkontakte/videoplayer-core/es2015";import{noop as Ex}from"@vkontakte/videoplayer-shared/es2015";var bx=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),$x=L("<div><!></div>"),yx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
345
345
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
346
346
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
347
347
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -357,8 +357,7 @@ Try switching the\xA0quality to\xA0Auto.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
357
357
  100% {
358
358
  opacity: 0;
359
359
  }
360
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function lu(t,e){U(e,!0),W(t,_x);let i=f(e,"seekStep",3,0),o=ee(!1),n=0,a=0,s=ee(fe(i())),d=$=>{$.stopPropagation(),a+=1,B(s,i()*(a-1)),a===1?e.handleSingleFirstClick($):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,B(o,!1)},300)};wn(()=>{window.clearTimeout(n)});var l=hx();l.__click=d;var u=h(l);{var v=$=>{var p=gx(),_=pe(p),w=M(_,2),y=h(w),C=h(y),T=M(C,2),E=M(T,2);g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),k(I=>{var V,H,Y,O;te(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),te(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),te(E,1,`triangle ${(O=e.side)!=null?O:""}`,"svelte-nhq2ld"),he(A,I)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b($,p)};R(u,$=>{r(o)&&$(v)})}g(l),k(()=>{var $;return te(l,1,`double-click-area ${($=e.side)!=null?$:""}`,"svelte-nhq2ld")}),b(t,l),z()}at(["click"]);var bx=(t,e,i)=>{e(!1),i()},$x=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),yx={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 km(t,e){U(e,!0),W(t,yx);let[i,o]=Oe(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,v=s.actions.internal.nextVideoAnnouncementShow,$=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),_()};Ft(()=>{e.isHide||v(),e.isHide&&n()&&(u(!1),p())});var C=Ue(),T=pe(C);{var E=P=>{var A=$x(),I=M(pe(A),2),V=h(I),H=h(V),Y=h(H,!0);g(H);var O=M(H,2);oa(O,{onClick:y}),g(V);var J=M(V,2);J.__click=[bx,u,$];var re=h(J),Z=h(re),me=h(Z);let de;var Le=M(me,2);{var Me=se=>{Xl(se,{get isRunning(){return a()},onTimerEnded:w})};R(Le,se=>{n()&&se(Me)})}g(Z),g(re);var ve=M(re,2),le=h(ve),Ae=h(le,!0);g(le),g(ve),g(J),g(I),k((se,N)=>{he(Y,se),it(Z,`background-image: url('${e.thumb}')`),de=te(me,1,"thumb-overlay svelte-1qdxi6t",null,de,N),he(Ae,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}at(["click"]);import{clientChecker as xx}from"@vkontakte/videoplayer-core/es2015";var T1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ft(()=>{xx.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),wn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as wx}from"@vkontakte/videoplayer-core/es2015";var du=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Sx}from"@vkontakte/videoplayer-core/es2015";var I1=({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"),v=()=>Sx.device.isIOS&&Se(s)===wx.DASH_LIVE_CMAF,$=()=>{l==null||l(),l=null},p=_=>{if($(),!v()||!_)return;let w=u();if(!w)return;let y=new du(w),C=Se(d),T=Se(a),E=Se(n);for(let I of C)T.some(H=>H.value===I.id)&&y.attach(I,E.value===I.id);let P=d.subscribe(I=>{for(let V of I)y.updateSrc(V)}),A=()=>{let I=y.getCurrentShowingId();o(Se(a).find(V=>V.value===I))};w.textTracks.addEventListener("change",A),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};Ft(()=>i.subscribe(p)),wn($)};var Ix=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},kx=L("<!> <!>",1),Ex=L("<div><!></div>"),Px=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),Ax=L("<div><!></div>"),Mx=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),Lx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Vx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Rx={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}
361
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function Em(t,e){var Mi,Lo;U(e,!0),W(t,Rx);let[i,o]=Oe(),n=()=>S(De,"$playerPhase",i),a=()=>S(Fi,"$isLoaderVisible",i),s=()=>S(Ye,"$adPlaybackState",i),d=()=>S(gi,"$crashed",i),l=()=>S(rt,"$notificationsToShow$",i),u=()=>S(lt,"$playbackState$",i),v=()=>S(He,"$graphIsOpened$",i),$=()=>S(Et,"$interactiveHideMobileControls",i),p=()=>S(vo,"$isEnded$",i),_=()=>S(Ct,"$isInteractiveExpectation$",i),w=()=>S(We,"$controlsVisible",i),y=()=>S(pi,"$touched",i),C=()=>S(to,"$autoplayNextEnabled$",i),T=()=>S(ht,"$postrollPassed",i),E=()=>S(Ko,"$bottomNoSmooth",i),P=()=>S(go,"$videoSize",i),A=()=>S(eo,"$playerSize",i),I=()=>S(bt,"$isFullscreen",i),V=()=>S(Xe,"$position$",i),H=()=>S(dt,"$duration$",i),Y=()=>S(ko,"$loadedMetadata",i),O=()=>S(ai,"$settingsMenuVisible",i),J=()=>S(li,"$scrubbingInProgress",i),re=()=>S(Hi,"$volumeChangingInProgress",i),Z=()=>S(Do,"$chromecastConnected$",i),me=()=>S(ui,"$isInteractiveTime$",i),de=()=>S(Ui,"$isActiveLive",i),Le=()=>S(ei,"$settingsMenuOpenedByKeyboard",i),Me=()=>S(tt,"$language$",i),ve=()=>S(No,"$disabledControls$",i),le=()=>S(Wn,"$is3DVideo",i),Ae=()=>S(zi,"$icon3DVideoVisible",i),se=()=>S(nt,"$chromecastDeviceName$",i),N=()=>S(St,"$currentSubtitle$",i),Re=()=>S(qt,"$currentSubtitleCaptions$",i),ie=()=>S(ii,"$realDuration$",i),Ge=()=>S(ti,"$isLive$",i),oe=()=>S(di,"$isPlaying$",i),G=()=>S(ji,"$debugPanelVisible",i),K=f(e,"videoContainer",15),Ve=f(e,"adsSlotId",3,void 0),Ne=f(e,"adsParams",3,void 0),Je=f(e,"adsPreviewParam",3,void 0),xe=f(e,"adsAutoplayParam",3,void 0),we=f(e,"duration",3,void 0),Be=f(e,"logoTargetUrl",3,""),Ze=f(e,"showNextPrevButtons",3,!1),ot=f(e,"nextButtonActive",3,!1),gt=f(e,"prevButtonActive",3,!1),et=f(e,"endScreenVideoTitle",3,void 0),mt=f(e,"endScreenVideoThumb",3,void 0),kt=f(e,"isOneVideoPlaylist",3,!1),Gt=f(e,"shadowRootContainer",3,void 0),zt=f(e,"outerContainerRef",3,void 0),Kt=f(e,"showMiniTimer",3,!1),ge=f(e,"fullScreenTarget",3,void 0),j=f(e,"playerStarted",3,!1),Ie=f(e,"showEndScreen",3,!0),{notifications$:ae,graphIsOpened$:He}=mo(),qe=e.store.getLogger().createComponentLog("Root component"),tt=e.store.interfaceLanguage$,lt=e.store.state.playbackState$,Ye=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,dt=e.store.state.duration$,De=e.store.playerPhase,bt=e.store.ui.isFullscreen,We=e.store.ui.controlsVisible,Et=e.store.ui.interactiveHideMobileControls,ai=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,li=e.store.ui.scrubbingInProgress,Hi=e.store.ui.volumeChangingInProgress,ji=e.store.ui.debugPanelVisible,Fi=e.store.state.isLoaderVisible,vo=e.store.state.isEnded$,Do=e.store.state.chromecastConnected$,nt=e.store.state.chromecastDeviceName$,ht=e.store.ads.postrollPassed,Si=e.store.ui.mobileUnmuteButtonExpanded,X=e.store.ui.mobileUnmuteButtonVisible,ti=e.store.state.isLive$,di=e.store.state.isPlaying$,Ui=e.store.state.isActiveLive$,ni=e.store.state.isRewindableLive$,gi=e.store.state.crashed$,ci=e.store.webApi.annotationsApi,ut=e.store.webApi.pictureInPictureApi,go=e.store.state.videoSize$,St=e.store.state.currentSubtitle$,qt=e.store.state.currentSubtitleCaptions$,ii=e.store.state.duration$,eo=e.store.ui.playerSize,Wn=e.store.ui.is3DVideo,zi=e.store.ui.icon3DVideoVisible,To=e.store.state.isInteractive,ui=e.store.state.isInteractiveTime$,Ct=e.store.state.isInteractiveExpectation$,ho=e.store.state.hasInteractiveBranches,No=e.store.ui.controls.disabledControls$,pi=e.store.ui.touched,Io=e.store.ui.overlayContainer$,to=e.store.ui.autoplayNextEnabled$,ko=e.store.state.loadedMetadata$,Bo=e.store.actions.internal.closeSettingsMenu,Tn=(Mi=e.store.callbacks)==null?void 0:Mi.onDisabledPlayPrevChapterClick,Ni=(Lo=e.store.callbacks)==null?void 0:Lo.onDisabledSeekToInteractiveClick,In=e.store.actions.internal.setQuality,io=ee(void 0),Eo=ee(void 0),Sr=ee(void 0),lr=ee(void 0),kn,Kn,Qn,_o=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),pn=ee(void 0),{closeNotification:En,notificationsToShow$:rt}=ae,Pn=m(()=>!!l().slow_video),Wo=()=>En("slow_video"),Ko=ue(!1),Cr,Qo=ee(!1),An=m(()=>u()!==Cx.PLAYING),Gn=ee(!1),Mn=m(()=>v()||$()||!r(Qo)&&(p()&&!!ho||r(An)&&_())),Go=ee(!0),qi=m(()=>e.uiConfig.features.thumbTimer&&Kt()&&n()==="video"&&!w()&&!d()&&!To&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),oo=ee(!1),Po=m(()=>(Ie()||e.showAutoplayNext&&C())&&!!et()&&!!mt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(oo)),fn=ee(!1);ut==null||ut.setContext(El());let jo=st=>{clearTimeout(Kn),st&&(X.set(!0),Si.set(!0),Kn=setTimeout(()=>{Si.set(!1)},e.uiConfig.controls.collapseMobileUnmute),To||Ai(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:jo});let Yo=()=>{clearTimeout(kn),B(Qo,!1),$()&&Et.set(!1)},Ai=st=>{Yo(),B(Qo,!0),kn=setTimeout(()=>B(Qo,!1),st);let Qt=st-100;Cr=setTimeout(()=>{E()&&Ko.set(!1)},Qt>0?Qt:st)},Oo=Wn.subscribe(st=>{zi.set(st),st&&(clearTimeout(Qn),Qn=setTimeout(()=>zi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ao=(...Qt)=>Pt(this,[...Qt],function*(st=_s()){var mi,Yi,Zi,Li,xi,Xi;if(st&&!Ad.device.isIOS){let Ti=zl(),no=Ho(),Wi=Ad.browser.isSamsungBrowser&&Ti===Gt();st=Ti===no||Wi}if(st){Ai(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ut==null?void 0:ut.remove()}catch(Ti){qe({message:String(Ti)})}try{let Ti=(mi=P())!=null&&mi.width&&((Yi=P())!=null&&Yi.height)?P():A();yield xh(Ti)}catch(Ti){qe({message:String(Ti)})}}bt.set(st),e.store.getAdmanWrapper().setFullscreen(st),I()?(Li=(Zi=e.store.callbacks)==null?void 0:Zi.onFullscreenEnter)==null||Li.call(Zi):(Xi=(xi=e.store.callbacks)==null?void 0:xi.onFullscreenExit)==null||Xi.call(xi)}),dr=st=>{let Qt=st;eo.set({width:Qt.target.width,height:Qt.target.height})};Ft(()=>{var st;return Vc(Ao),e.uiConfig.features.annotationsInside&&(ci==null||ci.init(r(io))),ea(ut)&&(ut==null||ut.assignPlayerContainer(r(io)),ut==null||ut.registryExternalEventHandlers({resize:dr})),B(Go,!Ad.device.isIphoneOrOldIpad),e.interactiveContainer&&((st=K().parentElement)==null||st.insertBefore(e.interactiveContainer,K().nextSibling)),()=>{clearTimeout(kn),clearTimeout(Cr),clearTimeout(Kn),clearTimeout(Qn),Oo(),ut==null||ut.dispose().catch(Qt=>{qe({message:String(Qt)})}),Rc(Ao)}});let mn=ee(!0),vn=ee(!0),Tr=st=>{let Qt=V()+(st==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Qt<0?(B(mn,!1),Qt=0):Qt>=H()&&(B(vn,!1),Qt=H()),B(Gn,!0),e.seekTime(Qt)},Ho=()=>{let st=Ad.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!zt()?r(io):zt(),Qt=st.getRootNode(),mi=Qt instanceof ShadowRoot?Qt.host:Qt,Yi=ge()instanceof HTMLElement&&ge().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&ge()&&Yi?ge():st},Ir=()=>Pt(this,null,function*(){try{if(_s())yield Lc(document),qe({message:"exit fullscreen"});else{if(qe({message:"request fullscreen"}),Ad.device.isIOS&&!Y())return;yield Mc(Ho())}}catch(st){qe({message:String(st)})}}),Ln=()=>{Bo()},jn=st=>{if(st.preventDefault(),O()){Ln();return}if(!j()){e.firstStart(),Ai(e.uiConfig.controls.hideTimeoutCursor);return}B(Gn,!1),w()?Yo():Ai(e.uiConfig.controls.hideTimeoutMobile)},cr=()=>{pi.set(!0)},kr=()=>{To||(Ko.set(!0),Ai(e.uiConfig.controls.hideTimeoutCursor))},Yn=st=>{Tn&&(Tn(st),Ai(e.uiConfig.controls.hideTimeoutMobile))},gn=st=>{Ni&&(Ni(st),Ai(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Io.set(r(pn))}),ze(()=>{We.set((r(An)||O()||J()||re()||Z()||!r(Po)&&(p()||r(Qo)&&!r(Gn)))&&!r(Mn)&&n()==="video"&&!d())}),ze(()=>{!J()&&r(fn)&&!me()&&Ai(e.uiConfig.controls.hideTimeoutMobile),B(fn,fe(J()))}),ze(()=>{B(mn,V()>0),B(vn,fe(!de()&&V()<H()))}),ze(()=>{Ga(r(lr),O(),Le())});let Er=F("aria_label_video_player"),fi=F("video360");T1({fullScreenChangeHandler:Ao,getFullscreenTarget:Ho}),I1({store:e.store,getFullscreenTarget:Ho});var Mo=Vx();wt("blur",Us,Ln),Fe(Mo,"aria-label",Er);var Ci=h(Mo);_a(Ci,{onClick:jn,get videoContainer(){return K()},set videoContainer(st){K(st)}});var Zn=M(Ci,2);Gs(Zn,()=>"slot",!1,(st,Qt)=>{Te(st,null,{name:ha})});var pt=M(Zn,2);Qs(pt,Me,st=>{var Qt=Lx(),mi=pe(Qt);let Yi=m(()=>n()!=="thumb"||d()||To&&e.autoplay);ma(mi,{get hidden(){return r(Yi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Zi=M(mi,2);{var Li=ke=>{var At=kx(),Xt=pe(At);{var wi=Ji=>{let Rr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);lu(Ji,{side:"left",get seekStep(){return r(Rr)},handleSingleFirstClick:jn,handleSecondClick:()=>Tr("backward")})};R(Xt,Ji=>{r(mn)&&Ji(wi)})}var oi=M(Xt,2);{var Vr=Ji=>{let Rr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);lu(Ji,{side:"right",get seekStep(){return r(Rr)},handleSingleFirstClick:jn,handleSecondClick:()=>Tr("forward")})};R(oi,Ji=>{r(vn)&&Ji(Vr)})}b(ke,At)};R(Zi,ke=>{e.canRewindLive&&ni&&!ve().has("TIMELINE")&&ke(Li)})}var xi=M(Zi,2);{var Xi=ke=>{let At=m(()=>{var Xt;return(Xt=e.live)==null?void 0:Xt.startTime});Td(ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(At)}})};R(xi,ke=>{n()==="LiveWaitingStart"&&ke(Xi)})}var Ti=M(xi,2);{var no=ke=>{va(ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ti,ke=>{n()==="LiveWaitingRecover"&&ke(no)})}var Wi=M(Ti,2);{var hn=ke=>{va(ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Wi,ke=>{n()==="LiveWaitingRecord"&&ke(hn)})}var Xn=M(Wi,2);{var ur=ke=>{var At=Ex();let Xt;var wi=h(At);ql(wi,{get adsSlotId(){return Ve()},get adsParams(){return Ne()},get adsPreviewParam(){return Je()},get adsAutoplayParam(){return xe()},get duration(){return we()}}),g(At),k(oi=>Xt=te(At,1,"ads-container svelte-dtyj47",null,Xt,oi),[()=>({hidden:n()!=="ads"})]),b(ke,At)};R(Xn,ke=>{e.showAds&&j()&&ke(ur)})}var Jn=M(Xn,2);{var Pr=ke=>{let At=m(()=>!Ie()&&e.showAutoplayNext&&C());km(ke,{get title(){return et()},get thumb(){return mt()},get isHide(){return r(At)},clickCloseIcon:()=>B(oo,!0)})};R(Jn,ke=>{r(Po)&&et()&&mt()&&ke(Pr)})}var pr=M(Jn,2);{var _n=ke=>{wd(ke,{})};R(pr,ke=>{le()&&ke(_n)})}var Vn=M(pr,2);{var Zo=ke=>{var At=Px(),Xt=h(At);Ul(Xt,{"aria-label":fi}),g(At),b(ke,At)};R(Vn,ke=>{Ae()&&ke(Zo)})}var Xo=M(Vn,2);{var er=ke=>{Sd(ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return se()}})};R(Xo,ke=>{Z()&&ke(er)})}var Ar=M(Xo,2);{var Mr=ke=>{fa(ke,{get shifted(){return w()},get captions(){return Re()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(Ar,ke=>{N().value!=="off"&&ke(Mr)})}var fr=M(Ar,2);{var bo=ke=>{var At=Ax();At.__click=[Ix,O,ai,Ln];var Xt=h(At);Cd(Xt,{}),g(At),b(ke,At)};R(fr,ke=>{d()&&ke(bo)})}var Rn=M(fr,2);{var tr=ke=>{let At=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Xt=m(()=>n()==="ads"),wi=m(()=>e.canRewindLive&&ie()!==0);xd(ke,{get bottomHidden(){return r(At)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(Xt)},get canRewindLive(){return r(wi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Be()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ze()},get nextButtonActive(){return ot()},get prevButtonActive(){return gt()},get isOneVideoPlaylist(){return kt()},get customFullscreenSupported(){return r(Go)},get endScreenShown(){return r(Po)},toggleFullscreen:Ir,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Yn,onDisabledSeekToInteractiveClick:gn,get playerControlsWrapperRef(){return r(Eo)},set playerControlsWrapperRef(oi){B(Eo,fe(oi))},get playerControlsRef(){return r(Sr)},set playerControlsRef(oi){B(Sr,fe(oi))}})};R(Rn,ke=>{j()&&ke(tr)})}var Lr=M(Rn,2);{var ct=ke=>{var At=Mx(),Xt=h(At);Ed(Xt,{get supportLink(){return e.supportLink},returnFocus:Tx,get ref(){return r(lr)},set ref(wi){B(lr,fe(wi))}}),g(At),b(ke,At)};R(Lr,ke=>{O()&&ke(ct)})}var Ht=M(Lr,2);let Vi=m(()=>!r(qi));Ql(Ht,{get isLive(){return Ge()},get isHidden(){return r(Vi)},get isPlaying(){return oe()},get position(){return V()},get duration(){return H()}});var ye=M(Ht,2);{var Tt=ke=>{ra(ke,{})};R(ye,ke=>{r(_o)&&ke(Tt)})}var hi=M(ye,2);{var Ii=ke=>{Zl(ke,{})};R(hi,ke=>{G()&&ke(Ii)})}var ro=M(hi,2);{var vi=ke=>{Pd(ke,{onClose:Wo,onSelectAutoQuality:()=>{In("auto"),Wo()}})};R(ro,ke=>{r(Pn)&&ke(vi)})}b(st,Qt)});var Ot=M(pt,2);ft(Ot,st=>B(pn,st),()=>r(pn)),g(Mo),ft(Mo,st=>B(io,st),()=>r(io)),wt("click",Mo,cr,!0),wt("focusin",Mo,kr,!0),b(t,Mo),z(),o()}at(["click"]);function cu(t){let e="";return qn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),qn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),qn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),qn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),qn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),qn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),qn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),qn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),qn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),qn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),qn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),qn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),qn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function qn(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Dx}from"@vkontakte/videoplayer-shared/es2015";var Nx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Bx={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 Pm(t,e){U(e,!0),W(t,Bx);let[i,o]=Oe(),n=()=>S(re,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(Y,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),u=()=>S(E,"$crashed$",i),v=()=>S(V,"$currentSubtitle$",i),$=()=>S(H,"$currentSubtitleCaptions$",i),p=()=>S(A,"$positionExact$",i),_=()=>S(O,"$isLive$",i),w=()=>S(J,"$isRewindableLive$",i),y=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:H,positionWithScrubbing$:Y,isLive$:O,isRewindableLive$:J},ui:{playerSize:re,controls:Z},actions:{internal:{getVideoElement:me}}}=Ce(),de=8,Le=ee(!1),Me=fe({}),ve=()=>{B(Le,!0)},le=()=>{B(Le,!1)},Ae=Dx(tl,260);ze(()=>{n(),Ae(me(),Z,Me,r(Le))});let se=m(()=>a()?un(s()-d()):un(isFinite(s())?s():y()));var N=Nx(),Re=h(N);_a(Re,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Be){C(Be)}});var ie=M(Re,2);Gs(ie,()=>"slot",!1,(Be,Ze)=>{Te(Be,null,{name:ha})});var Ge=M(ie,2);let oe=m(()=>l()!=="thumb"||u());ma(Ge,{get hidden(){return r(oe)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var G=M(Ge,2);{var K=Be=>{fa(Be,{shifted:!1,get captions(){return $()},get position(){return p()},get playerSize(){return n()}})};R(G,Be=>{v().value!=="off"&&Be(K)})}var Ve=M(G,2),Ne=h(Ve);Kl(Ne,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(se)}}),g(Ve);var Je=M(Ve,2);let xe;var we=h(Je);la(we,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:de,tooltipRightOffset:de,get ref(){return Me.timeline},set ref(Be){Me.timeline=Be}}),g(Je),g(N),k(Be=>xe=te(Je,1,"timeline svelte-1qfjf44",null,xe,Be),[()=>({visible:r(Le)})]),wt("mouseenter",N,ve),wt("mouseleave",N,le),b(t,N),z(),o()}var Ux=L("<div><!></div>"),zx={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
360
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function du(t,e){U(e,!0),Q(t,yx);let i=f(e,"seekStep",3,0),o=J(!1),n=0,a=0,s=J(fe(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)};Tn(()=>{window.clearTimeout(n)});var l=$x();l.__click=d;var u=h(l);{var m=y=>{var p=bx(),$=pe(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),E(k=>{var R,W,j,F;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 ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),ee(I,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),ve(P,k)},[()=>q("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),_(y,p)};B(u,y=>{r(o)&&y(m)})}g(l),E(()=>{var y;return ee(l,1,`double-click-area ${(y=e.side)!=null?y:""}`,"svelte-nhq2ld")}),_(t,l),z()}at(["click"]);var xx=(t,e,i)=>{e(!1),i()},wx=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 Am(t,e){U(e,!0),Q(t,Sx);let[i,o]=De(),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,m=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},b=()=>{e.clickCloseIcon(),$()};zt(()=>{e.isHide||m(),e.isHide&&n()&&(u(!1),p())});var C=He(),T=pe(C);{var I=M=>{var P=wx(),k=A(pe(P),2),R=h(k),W=h(R),j=h(W,!0);g(W);var F=A(W,2);ia(F,{onClick:b}),g(R);var G=A(R,2);G.__click=[xx,u,y];var ne=h(G),X=h(ne),se=h(X);let ce;var Me=A(se,2);{var Le=re=>{Zl(re,{get isRunning(){return a()},onTimerEnded:w})};B(Me,re=>{n()&&re(Le)})}g(X),g(ne);var he=A(ne,2),ae=h(he),Pe=h(ae,!0);g(ae),g(he),g(G),g(k),E((re,V)=>{ve(j,re),st(X,`background-image: url('${e.thumb}')`),ce=ee(se,1,"thumb-overlay svelte-1qdxi6t",null,ce,V),ve(Pe,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}at(["click"]);import{clientChecker as Cx}from"@vkontakte/videoplayer-core/es2015";var E1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;zt(()=>{Cx.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))}),Tn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Tx}from"@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}};import{clientChecker as Ix}from"@vkontakte/videoplayer-core/es2015";var P1=({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"),m=()=>Ix.device.isIOS&&Ce(s)===Tx.DASH_LIVE_CMAF,y=()=>{l==null||l(),l=null},p=$=>{if(y(),!m()||!$)return;let w=u();if(!w)return;let b=new cu(w),C=Ce(d),T=Ce(a),I=Ce(n);for(let k of C)T.some(W=>W.value===k.id)&&b.attach(k,I.value===k.id);let M=d.subscribe(k=>{for(let R of k)b.updateSrc(R)}),P=()=>{let k=b.getCurrentShowingId();o(Ce(a).find(R=>R.value===k))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};zt(()=>i.subscribe(p)),Tn(y)};var Px=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Ax=L("<!> <!>",1),Mx=L("<div><!></div>"),Lx=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Vx=L("<div><!></div>"),Rx=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),Bx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Nx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Dx={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 Mm(t,e){var Go,Yo;U(e,!0),Q(t,Dx);let[i,o]=De(),n=()=>S(Xe,"$playerPhase",i),a=()=>S(Gi,"$isLoaderVisible",i),s=()=>S(et,"$adPlaybackState",i),d=()=>S(pt,"$crashed",i),l=()=>S(Ro,"$notificationsToShow$",i),u=()=>S(rt,"$playbackState$",i),m=()=>S(je,"$graphIsOpened$",i),y=()=>S(ii,"$interactiveHideMobileControls",i),p=()=>S(ot,"$isEnded$",i),$=()=>S(Uo,"$isInteractiveExpectation$",i),w=()=>S(bt,"$controlsVisible",i),b=()=>S(Ui,"$touched",i),C=()=>S(zi,"$autoplayNextEnabled$",i),T=()=>S(Zi,"$postrollPassed",i),I=()=>S(Bo,"$bottomNoSmooth",i),M=()=>S(Lt,"$videoSize",i),P=()=>S(Xi,"$playerSize",i),k=()=>S(Qt,"$isFullscreen",i),R=()=>S(_t,"$position$",i),W=()=>S(it,"$duration$",i),j=()=>S(Wn,"$loadedMetadata",i),F=()=>S(Ge,"$settingsMenuVisible",i),G=()=>S(Ri,"$scrubbingInProgress",i),ne=()=>S(Fi,"$volumeChangingInProgress",i),X=()=>S($t,"$chromecastConnected$",i),se=()=>S(Si,"$isControlsAvailable",i),ce=()=>S(Ni,"$isInteractiveTime$",i),Me=()=>S(Bi,"$isActiveLive",i),Le=()=>S(Xt,"$settingsMenuOpenedByKeyboard",i),he=()=>S(Ve,"$language$",i),ae=()=>S(zo,"$disabledControls$",i),Pe=()=>S(Mo,"$is3DVideo",i),re=()=>S(mi,"$icon3DVideoVisible",i),V=()=>S(Ai,"$chromecastDeviceName$",i),we=()=>S(co,"$currentSubtitle$",i),be=()=>S(ei,"$currentSubtitleCaptions$",i),qe=()=>S(qn,"$realDuration$",i),H=()=>S(Jt,"$isLive$",i),de=()=>S(bi,"$isPlaying$",i),_e=()=>S(lo,"$debugPanelVisible",i),te=f(e,"videoContainer",15),Oe=f(e,"adsSlotId",3,void 0),Ze=f(e,"adsParams",3,void 0),Se=f(e,"adsPreviewParam",3,void 0),Re=f(e,"adsAutoplayParam",3,void 0),ke=f(e,"duration",3,void 0),ze=f(e,"logoTargetUrl",3,""),ct=f(e,"showNextPrevButtons",3,!1),ut=f(e,"nextButtonActive",3,!1),nt=f(e,"prevButtonActive",3,!1),St=f(e,"endScreenVideoTitle",3,void 0),mt=f(e,"endScreenVideoThumb",3,void 0),Kt=f(e,"isOneVideoPlaylist",3,!1),ni=f(e,"shadowRootContainer",3,void 0),Mt=f(e,"outerContainerRef",3,void 0),Bt=f(e,"showMiniTimer",3,!1),O=f(e,"fullScreenTarget",3,void 0),$e=f(e,"playerStarted",3,!1),ie=f(e,"showEndScreen",3,!0),{notifications$:Be,graphIsOpened$:je}=so(),Qe=e.store.getLogger().createComponentLog("Root component"),Ve=e.store.interfaceLanguage$,rt=e.store.state.playbackState$,et=e.store.ads.playbackState,_t=e.store.state.positionWithScrubbing$,it=e.store.state.duration$,Xe=e.store.playerPhase,Qt=e.store.ui.isFullscreen,bt=e.store.ui.controlsVisible,Si=e.store.ui.isControlsAvailable,ii=e.store.ui.interactiveHideMobileControls,Ge=e.store.ui.settingsMenu.visible$,Xt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ri=e.store.ui.scrubbingInProgress,Fi=e.store.ui.volumeChangingInProgress,lo=e.store.ui.debugPanelVisible,Gi=e.store.state.isLoaderVisible,ot=e.store.state.isEnded$,$t=e.store.state.chromecastConnected$,Ai=e.store.state.chromecastDeviceName$,Zi=e.store.ads.postrollPassed,Co=e.store.ui.mobileUnmuteButtonExpanded,Z=e.store.ui.mobileUnmuteButtonVisible,Jt=e.store.state.isLive$,bi=e.store.state.isPlaying$,Bi=e.store.state.isActiveLive$,ci=e.store.state.isRewindableLive$,pt=e.store.state.crashed$,hi=e.store.webApi.annotationsApi,Je=e.store.webApi.pictureInPictureApi,Lt=e.store.state.videoSize$,co=e.store.state.currentSubtitle$,ei=e.store.state.currentSubtitleCaptions$,qn=e.store.state.duration$,Xi=e.store.ui.playerSize,Mo=e.store.ui.is3DVideo,mi=e.store.ui.icon3DVideoVisible,Ct=e.store.state.isInteractive,Ni=e.store.state.isInteractiveTime$,Uo=e.store.state.isInteractiveExpectation$,vi=e.store.state.hasInteractiveBranches,zo=e.store.ui.controls.disabledControls$,Ui=e.store.ui.touched,To=e.store.ui.overlayContainer$,zi=e.store.ui.autoplayNextEnabled$,Wn=e.store.state.loadedMetadata$,uo=e.store.actions.internal.closeSettingsMenu,En=(Go=e.store.callbacks)==null?void 0:Go.onDisabledPlayPrevChapterClick,Lo=(Yo=e.store.callbacks)==null?void 0:Yo.onDisabledSeekToInteractiveClick,Vo=e.store.actions.internal.setQuality,Pn=J(void 0),kr=J(void 0),ur=J(void 0),An=J(void 0),fn,Kn,ft,po=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),qo=J(void 0),{closeNotification:Mn,notificationsToShow$:Ro}=Be,Wo=v(()=>!!l().slow_video),Qn=()=>Mn("slow_video"),Bo=ue(!1),Gn,mn=J(!1),Yn=v(()=>u()!==kx.PLAYING),Ko=J(!1),fo=v(()=>m()||y()||!r(mn)&&(p()&&!!vi||r(Yn)&&$())),Ii=J(!0),vn=v(()=>e.uiConfig.features.thumbTimer&&Bt()&&n()==="video"&&!w()&&!d()&&!Ct&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),gn=J(!1),Qo=v(()=>(ie()||e.showAutoplayNext&&C())&&!!St()&&!!mt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(gn)),mo=J(!1);Je==null||Je.setContext(kl());let Ln=tt=>{clearTimeout(Kn),tt&&(Z.set(!0),Co.set(!0),Kn=setTimeout(()=>{Co.set(!1)},e.uiConfig.controls.collapseMobileUnmute),Ct||qi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Ln});let Io=()=>{clearTimeout(fn),D(mn,!1),y()&&ii.set(!1)},qi=tt=>{Io(),D(mn,!0),fn=setTimeout(()=>D(mn,!1),tt);let Ot=tt-100;Gn=setTimeout(()=>{I()&&Bo.set(!1)},Ot>0?Ot:tt)},pr=Mo.subscribe(tt=>{mi.set(tt),tt&&(clearTimeout(ft),ft=setTimeout(()=>mi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),No=(...Ot)=>Et(this,[...Ot],function*(tt=_s()){var _i,Ji,Di,Jn,Do,jo;if(tt&&!Pd.device.isIOS){let li=Ul(),Zo=hn(),bn=Pd.browser.isSamsungBrowser&&li===ni();tt=li===Zo||bn}if(tt){qi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Je==null?void 0:Je.remove()}catch(li){Qe({message:String(li)})}try{let li=(_i=M())!=null&&_i.width&&((Ji=M())!=null&&Ji.height)?M():P();yield Ch(li)}catch(li){Qe({message:String(li)})}}Qt.set(tt),e.store.getAdmanWrapper().setFullscreen(tt),k()?(Jn=(Di=e.store.callbacks)==null?void 0:Di.onFullscreenEnter)==null||Jn.call(Di):(jo=(Do=e.store.callbacks)==null?void 0:Do.onFullscreenExit)==null||jo.call(Do)}),jn=tt=>{let Ot=tt;Xi.set({width:Ot.target.width,height:Ot.target.height})};zt(()=>{var tt;return Vc(No),e.uiConfig.features.annotationsInside&&(hi==null||hi.init(r(Pn))),Js(Je)&&(Je==null||Je.assignPlayerContainer(r(Pn)),Je==null||Je.registryExternalEventHandlers({resize:jn})),D(Ii,!Pd.device.isIphoneOrOldIpad),e.interactiveContainer&&((tt=te().parentElement)==null||tt.insertBefore(e.interactiveContainer,te().nextSibling)),()=>{clearTimeout(fn),clearTimeout(Gn),clearTimeout(Kn),clearTimeout(ft),pr(),Je==null||Je.dispose().catch(Ot=>{Qe({message:String(Ot)})}),Rc(No)}});let Vn=J(!0),Zn=J(!0),fr=tt=>{let Ot=R()+(tt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Ot<0?(D(Vn,!1),Ot=0):Ot>=W()&&(D(Zn,!1),Ot=W()),D(Ko,!0),e.seekTime(Ot)},hn=()=>{let tt=Pd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Mt()?r(Pn):Mt(),Ot=tt.getRootNode(),_i=Ot instanceof ShadowRoot?Ot.host:Ot,Ji=O()instanceof HTMLElement&&O().contains(_i);return e.uiConfig.allowChangingFullscreenTarget&&O()&&Ji?O():tt},Er=()=>Et(this,null,function*(){try{if(_s())yield Lc(document),Qe({message:"exit fullscreen"});else{if(Qe({message:"request fullscreen"}),Pd.device.isIOS&&!j())return;yield Mc(hn())}}catch(tt){Qe({message:String(tt)})}}),mr=()=>{uo()},Xn=tt=>{if(tt.preventDefault(),F()){mr();return}if(!$e()){e.firstStart(),qi(e.uiConfig.controls.hideTimeoutCursor);return}D(Ko,!1),w()?Io():qi(e.uiConfig.controls.hideTimeoutMobile)},Pr=()=>{Ui.set(!0)},Ar=()=>{Ct||(Bo.set(!0),qi(e.uiConfig.controls.hideTimeoutCursor))},_n=tt=>{En&&(En(tt),qi(e.uiConfig.controls.hideTimeoutMobile))},Yt=tt=>{Lo&&(Lo(tt),qi(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{To.set(r(qo))}),Ue(()=>{bt.set((r(Yn)||F()||G()||ne()||X()||!r(Qo)&&(p()||r(mn)&&!r(Ko)))&&!r(fo)&&n()==="video"&&!d()&&se())}),Ue(()=>{!G()&&r(mo)&&!ce()&&qi(e.uiConfig.controls.hideTimeoutMobile),D(mo,fe(G()))}),Ue(()=>{D(Vn,R()>0),D(Zn,fe(!Me()&&R()<W()))}),Ue(()=>{Za(r(An),F(),Le())});let vt=q("aria_label_video_player"),Dt=q("video360");E1({fullScreenChangeHandler:No,getFullscreenTarget:hn}),P1({store:e.store,getFullscreenTarget:hn});var ui=Nx();It("blur",Fs,mr),Ne(ui,"aria-label",vt);var ai=h(ui);ha(ai,{onClick:Xn,get videoContainer(){return te()},set videoContainer(tt){te(tt)}});var vo=A(ai,2);Qs(vo,()=>"slot",!1,(tt,Ot)=>{Ie(tt,null,{name:ga})});var ko=A(vo,2);Ks(ko,he,tt=>{var Ot=Bx(),_i=pe(Ot);let Ji=v(()=>n()!=="thumb"||d()||Ct&&e.autoplay);fa(_i,{get hidden(){return r(Ji)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Di=A(_i,2);{var Jn=Fe=>{var Vt=Ax(),si=pe(Vt);{var eo=Oi=>{let nr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);du(Oi,{side:"left",get seekStep(){return r(nr)},handleSingleFirstClick:Xn,handleSecondClick:()=>fr("backward")})};B(si,Oi=>{r(Vn)&&Oi(eo)})}var ho=A(si,2);{var Wr=Oi=>{let nr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);du(Oi,{side:"right",get seekStep(){return r(nr)},handleSingleFirstClick:Xn,handleSecondClick:()=>fr("forward")})};B(ho,Oi=>{r(Zn)&&Oi(Wr)})}_(Fe,Vt)};B(Di,Fe=>{e.canRewindLive&&ci&&!ae().has("TIMELINE")&&Fe(Jn)})}var Do=A(Di,2);{var jo=Fe=>{let Vt=v(()=>{var si;return(si=e.live)==null?void 0:si.startTime});Cd(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Vt)}})};B(Do,Fe=>{n()==="LiveWaitingStart"&&Fe(jo)})}var li=A(Do,2);{var Zo=Fe=>{ma(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(li,Fe=>{n()==="LiveWaitingRecover"&&Fe(Zo)})}var bn=A(li,2);{var Mr=Fe=>{ma(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(bn,Fe=>{n()==="LiveWaitingRecord"&&Fe(Mr)})}var Xo=A(bn,2);{var vr=Fe=>{var Vt=Mx();let si;var eo=h(Vt);zl(eo,{get adsSlotId(){return Oe()},get adsParams(){return Ze()},get adsPreviewParam(){return Se()},get adsAutoplayParam(){return Re()},get duration(){return ke()}}),g(Vt),E(ho=>si=ee(Vt,1,"ads-container svelte-7yl31d",null,si,ho),[()=>({hidden:n()!=="ads"})]),_(Fe,Vt)};B(Xo,Fe=>{e.showAds&&$e()&&Fe(vr)})}var er=A(Xo,2);{var gr=Fe=>{let Vt=v(()=>!ie()&&e.showAutoplayNext&&C());Am(Fe,{get title(){return St()},get thumb(){return mt()},get isHide(){return r(Vt)},clickCloseIcon:()=>D(gn,!0)})};B(er,Fe=>{r(Qo)&&St()&&mt()&&Fe(gr)})}var tr=A(er,2);{var Lr=Fe=>{xd(Fe,{})};B(tr,Fe=>{Pe()&&Fe(Lr)})}var ir=A(tr,2);{var Jo=Fe=>{var Vt=Lx(),si=h(Vt);Fl(si,{"aria-label":Dt}),g(Vt),_(Fe,Vt)};B(ir,Fe=>{re()&&Fe(Jo)})}var Vr=A(ir,2);{var en=Fe=>{wd(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return V()}})};B(Vr,Fe=>{X()&&Fe(en)})}var hr=A(Vr,2);{var qr=Fe=>{pa(Fe,{get shifted(){return w()},get captions(){return be()},get position(){return R()},get playerSize(){return P()},isMobile:!0})};B(hr,Fe=>{we().value!=="off"&&Fe(qr)})}var lt=A(hr,2);{var Gt=Fe=>{var Vt=Vx();Vt.__click=[Px,F,Ge,mr];var si=h(Vt);Sd(si,{}),g(Vt),_(Fe,Vt)};B(lt,Fe=>{d()&&Fe(Gt)})}var ri=A(lt,2);{var go=Fe=>{let Vt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),si=v(()=>n()==="ads"),eo=v(()=>e.canRewindLive&&qe()!==0);yd(Fe,{get bottomHidden(){return r(Vt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(si)},get canRewindLive(){return r(eo)},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 Kt()},get customFullscreenSupported(){return r(Ii)},get endScreenShown(){return r(Qo)},toggleFullscreen:Er,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:_n,onDisabledSeekToInteractiveClick:Yt,get playerControlsWrapperRef(){return r(kr)},set playerControlsWrapperRef(ho){D(kr,fe(ho))},get playerControlsRef(){return r(ur)},set playerControlsRef(ho){D(ur,fe(ho))}})};B(ri,Fe=>{$e()&&Fe(go)})}var $n=A(ri,2);{var or=Fe=>{var Vt=Rx(),si=h(Vt);kd(si,{get supportLink(){return e.supportLink},returnFocus:Ex,get ref(){return r(An)},set ref(eo){D(An,fe(eo))}}),g(Vt),_(Fe,Vt)};B($n,Fe=>{F()&&Fe(or)})}var yn=A($n,2);let Rn=v(()=>!r(vn));Kl(yn,{get isLive(){return H()},get isHidden(){return r(Rn)},get isPlaying(){return de()},get position(){return R()},get duration(){return W()}});var Ci=A(yn,2);{var me=Fe=>{na(Fe,{})};B(Ci,Fe=>{r(po)&&Fe(me)})}var xt=A(Ci,2);{var pi=Fe=>{jl(Fe,{})};B(xt,Fe=>{_e()&&Fe(pi)})}var gi=A(xt,2);{var Ti=Fe=>{Ed(Fe,{onClose:Qn,onSelectAutoQuality:()=>{Vo("auto"),Qn()}})};B(gi,Fe=>{r(Wo)&&Fe(Ti)})}_(tt,Ot)});var Eo=A(ko,2);gt(Eo,tt=>D(qo,tt),()=>r(qo)),g(ui),gt(ui,tt=>D(Pn,tt),()=>r(Pn)),It("click",ui,Pr,!0),It("focusin",ui,Ar,!0),_(t,ui),z(),o()}at(["click"]);function uu(t){let e="";return ao(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ao(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ao(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ao(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ao(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ao(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ao(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ao(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ao(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ao(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ao(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ao(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ao(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ao(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ao(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ao(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ao(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ao(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ao(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function ao(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Ox}from"@vkontakte/videoplayer-shared/es2015";var Hx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Fx={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 Lm(t,e){U(e,!0),Q(t,Fx);let[i,o]=De(),n=()=>S(ne,"$playerSize",i),a=()=>S(k,"$isPlaying$",i),s=()=>S(M,"$duration$",i),d=()=>S(j,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),u=()=>S(I,"$crashed$",i),m=()=>S(R,"$currentSubtitle$",i),y=()=>S(W,"$currentSubtitleCaptions$",i),p=()=>S(P,"$positionExact$",i),$=()=>S(F,"$isLive$",i),w=()=>S(G,"$isRewindableLive$",i),b=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:k,currentSubtitle$:R,currentSubtitleCaptions$:W,positionWithScrubbing$:j,isLive$:F,isRewindableLive$:G},ui:{playerSize:ne,controls:X},actions:{internal:{getVideoElement:se}}}=Te(),ce=8,Me=J(!1),Le=fe({}),he=()=>{D(Me,!0)},ae=()=>{D(Me,!1)},Pe=Ox(nl,260);Ue(()=>{n(),Pe(se(),X,Le,r(Me))});let re=v(()=>a()?pn(s()-d()):pn(isFinite(s())?s():b()));var V=Hx(),we=h(V);ha(we,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(ke){C(ke)}});var be=A(we,2);Qs(be,()=>"slot",!1,(ke,ze)=>{Ie(ke,null,{name:ga})});var qe=A(be,2);let H=v(()=>l()!=="thumb"||u());fa(qe,{get hidden(){return r(H)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var de=A(qe,2);{var _e=ke=>{pa(ke,{shifted:!1,get captions(){return y()},get position(){return p()},get playerSize(){return n()}})};B(de,ke=>{m().value!=="off"&&ke(_e)})}var te=A(de,2),Oe=h(te);Wl(Oe,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(re)}}),g(te);var Ze=A(te,2);let Se;var Re=h(Ze);aa(Re,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return Le.timeline},set ref(ke){Le.timeline=ke}}),g(Ze),g(V),E(ke=>Se=ee(Ze,1,"timeline svelte-1qfjf44",null,Se,ke),[()=>({visible:r(Me)})]),It("mouseenter",V,he),It("mouseleave",V,ae),_(t,V),z(),o()}var Wx=L("<div><!></div>"),Kx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
362
361
 
363
362
  /* USER DEFINED COLORS */
364
363
 
@@ -385,12 +384,12 @@ Try switching the\xA0quality to\xA0Auto.`},vh=p_;var is=new Map;is.set(hh.EN,vh)
385
384
  rgba(0, 0, 0, 0.96) 86.67%,
386
385
  rgba(0, 0, 0, 0.99) 93.33%,
387
386
  #000 100%
388
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
389
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-7ed4yj {color-scheme:light dark;}.root.visible-outside.svelte-7ed4yj {overflow:visible;}
387
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
388
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-tw6yp4 {color-scheme:light dark;}.root.visible-outside.svelte-tw6yp4 {overflow:visible;}
390
389
 
391
390
  /* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
392
- /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);}
391
+ /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}
393
392
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
394
393
 
395
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Mm(t,e){U(e,!0),W(t,zx);let[i,o]=Oe(),n=()=>S(Gt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),u=f(e,"uiConfig",7),v=f(e,"title",7),$=f(e,"thumbUrl",7),p=f(e,"interactiveContainer",7),_=f(e,"interactiveController",7),w=f(e,"subtitles",7),y=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),E=f(e,"volume",7,void 0),P=f(e,"muted",7,void 0),A=f(e,"fromTime",7),I=f(e,"canRewindLive",7),V=f(e,"showAds",7),H=f(e,"adsSlotId",7,void 0),Y=f(e,"adsParams",7,void 0),O=f(e,"adsPreviewParam",7,void 0),J=f(e,"adsAutoplayParam",7,void 0),re=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),me=f(e,"logoHidden",7),de=f(e,"isMobile",7),Le=f(e,"showNextPrevButtons",7,!1),Me=f(e,"nextButtonActive",7,!1),ve=f(e,"prevButtonActive",7,!1),le=f(e,"endScreenVideoTitle",7,void 0),Ae=f(e,"endScreenVideoThumb",7,void 0),se=f(e,"isOneVideoPlaylist",7,!1),N=f(e,"supportLink",7),Re=f(e,"shadowRootContainer",7,void 0),ie=f(e,"outerContainerRef",7,void 0),Ge=f(e,"fullScreenTarget",7,void 0),oe=f(e,"failoverHosts",7,void 0),G=f(e,"showMiniTimer",7,!1),K=f(e,"saveRate",7),Ve=f(e,"seekToInteractive",7,k1),Ne=f(e,"playPrevChapter",7,k1),Je=f(e,"volumeMultiplier",7),xe=f(e,"showAutoplayNext",7),we=f(e,"showEndScreen",7,!0),Be=f(e,"keyboardControls",15,void 0),{subscribers:Ze,stores:ot}=d();Dg(u());let gt=Ut(),et=u().logoLink,mt=s().ui.debugPanelVisible,kt=s().ui.playerSize,Gt=s().state.isLive$,Kt=s().state.isInteractive&&Am.device.isAndroid,ge=ee(void 0),j=null,Ie=ee(!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}),Kg(s(),ot),ze(()=>{s().ui.isMobile.set(de())});let ae=(X=!1)=>{B(Ie,!0),X?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},He=()=>{if(gt.features.qualityDetailsSubMenuEnabled){let X=ph(s().videoId);if(X)switch(X.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,X.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,X.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(X.quality);break}}else{fh(s().videoId),kp()&&s().actions.internal.setTrafficSavingEnabled(!0);let ti=Sp(s().videoId);ti&&s().actions.internal.setQuality(ti)}};function qe(X){var gi,ci,ut;let ti=a()||X;ti&&s().initVideo({container:r(ge),sources:ti,failoverHosts:oe(),subtitles:w(),volumeMultiplier:Je()});let di=Ox.get(Nl)==="true";mt.set(di),A()>0&&s().actions.external.seekTime(A());let Ui=de()?gt.volumeDefault:(ci=(gi=E())!=null?gi:Sc())!=null?ci:gt.volumeDefault,ni=(ut=P())!=null?ut:sh();if(s().actions.external.setVolume(Ui),s().actions.external.setMuted(ni),s().getAdmanWrapper().setInitialVolume(ni?0:Ui),He(),gt.features.saveRate&&K()){let go=dh();go&&!n()&&s().actions.internal.setPlaybackRate(go)}if(xe()){let go=uh();go&&s().actions.internal.setAutoplayNextEnabled(go)}s().ui.isAutoplay.set(T()),T()?ae():C()&&gt.features.preload&&s().actions.internal.preload()}let tt=X=>{if(window.ResizeObserver){let ti,di;j=new ResizeObserver(Hx(Ui=>{let ni=Ui[0];if(ni.contentBoxSize){let gi=Array.isArray(ni.contentBoxSize)?ni.contentBoxSize[0]:ni.contentBoxSize;ti=gi.inlineSize,di=gi.blockSize}else ni.contentRect&&(ti=ni.contentRect.width,di=ni.contentRect.height);kt.set({width:ti,height:di})},300)),j.observe(X)}kt.set({width:X.clientWidth,height:X.clientHeight})},lt=()=>{document.hidden&&s().actions.external.stop()};Ft(()=>{var di,Ui,ni,gi;Kt&&document.addEventListener("visibilitychange",lt),gt.debugLog&&s().actions.internal.startLogging(),tt(r(ge));let X=Ze.map(ci=>ci.init({store:s(),microStores:ot,config:l(),interactiveController:_(),uiConfig:u()})),ti=()=>{Kt&&document.removeEventListener("visibilitychange",lt),j==null||j.disconnect(),X.forEach(ci=>ci.unsubscribe()),s().destroy()};return((di=y())==null?void 0:di.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),ti):((Ui=y())==null?void 0:Ui.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),ti):(((ni=y())==null?void 0:ni.status)==="finished"||((gi=y())==null?void 0:gi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),ti):(qe(),ti)});function Ye(){r(Ie)?s().actions.external.play():ae(!0)}function Xe(){s().actions.external.pause()}function dt(X){s().actions.external.setMuted(X)}function De(){s().actions.external.toggleSubtitle()}function bt(X){de()||X>=0&&X<=1&&s().actions.external.setVolume(X)}function We(X){s().actions.internal.seekTime(X,Fx.UNKNOWN)}function Et(X){s().actions.external.seekEpisodeStartTime(X)}function ai(){s().actions.external.returnFocusToEpisodes()}function ei(X){s().actions.external.setPlaybackRate(X)}function li(X){s().actions.external.setAutoQualityLimits(X)}let Hi=cu(gt.view),ji=l().playerView==="preview";var Fi=Ux();let vo;it(Fi,Hi);var Do=h(Fi);{var nt=X=>{Em(X,{get store(){return s()},uiConfig:gt,get thumbUrl(){return $()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return H()},get adsParams(){return Y()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return J()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return me()},logoTargetUrl:et,get nextButtonActive(){return Me()},get prevButtonActive(){return ve()},get endScreenVideoTitle(){return le()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return Re()},get outerContainerRef(){return ie()},get fullScreenTarget(){return Ge()},get showMiniTimer(){return G()},get playerStarted(){return r(Ie)},get seekToInteractive(){return Ve()},get playPrevChapter(){return Ne()},firstStart:ae,seekTime:We,get showEndScreen(){return we()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(ge)},set videoContainer(ti){B(ge,fe(ti))}})},ht=X=>{var ti=Ue(),di=pe(ti);{var Ui=gi=>{Pm(gi,{get thumbUrl(){return $()},get outsideDuration(){return re()},get canRewindLive(){return I()},get videoContainer(){return r(ge)},set videoContainer(ci){B(ge,fe(ci))}})},ni=gi=>{Im(gi,{get store(){return s()},uiConfig:gt,get title(){return v()},get thumbUrl(){return $()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return H()},get adsParams(){return Y()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return J()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return me()},logoTargetUrl:et,get nextButtonActive(){return Me()},get prevButtonActive(){return ve()},get endScreenVideoTitle(){return le()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return Re()},get outerContainerRef(){return ie()},get fullScreenTarget(){return Ge()},get showMiniTimer(){return G()},get playerStarted(){return r(Ie)},get seekToInteractive(){return Ve()},get playPrevChapter(){return Ne()},firstStart:ae,get showEndScreen(){return we()},get showAutoplayNext(){return xe()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(ge)},set videoContainer(ci){B(ge,fe(ci))},get keyboardControls(){return Be()},set keyboardControls(ci){Be(ci)}})};R(di,gi=>{ji?gi(Ui):gi(ni,!1)})}b(X,ti)};R(Do,X=>{de()?X(nt):X(ht,!1)})}g(Fi),k(X=>vo=te(Fi,1,"root svelte-7ed4yj",null,vo,X),[()=>({"root--miui-browser":Am.device.isMobile&&Am.browser.isMiuiBrowser,"visible-outside":ji})]),b(t,Fi);var Si=z({initVideo:qe,play:Ye,pause:Xe,setMuted:dt,toggleSubtitle:De,setVolume:bt,seekTime:We,seekEpisodeStartTime:Et,returnFocusToEpisodes:ai,setPlaybackRate:ei,setAutoQualityLimits:li,get sources(){return a()},set sources(X){a(X)},get store(){return s()},set store(X){s(X)},get microStoresRoot(){return d()},set microStoresRoot(X){d(X)},get videoConfig(){return l()},set videoConfig(X){l(X)},get uiConfig(){return u()},set uiConfig(X){u(X)},get title(){return v()},set title(X){v(X)},get thumbUrl(){return $()},set thumbUrl(X){$(X)},get interactiveContainer(){return p()},set interactiveContainer(X){p(X)},get interactiveController(){return _()},set interactiveController(X){_(X)},get subtitles(){return w()},set subtitles(X){w(X)},get live(){return y()},set live(X){y(X)},get preload(){return C()},set preload(X){C(X)},get autoplay(){return T()},set autoplay(X){T(X)},get volume(){return E()},set volume(X){E(X)},get muted(){return P()},set muted(X){P(X)},get fromTime(){return A()},set fromTime(X){A(X)},get canRewindLive(){return I()},set canRewindLive(X){I(X)},get showAds(){return V()},set showAds(X){V(X)},get adsSlotId(){return H()},set adsSlotId(X){H(X)},get adsParams(){return Y()},set adsParams(X){Y(X)},get adsPreviewParam(){return O()},set adsPreviewParam(X){O(X)},get adsAutoplayParam(){return J()},set adsAutoplayParam(X){J(X)},get duration(){return re()},set duration(X){re(X)},get logoClickable(){return Z()},set logoClickable(X){Z(X)},get logoHidden(){return me()},set logoHidden(X){me(X)},get isMobile(){return de()},set isMobile(X){de(X)},get showNextPrevButtons(){return Le()},set showNextPrevButtons(X){Le(X)},get nextButtonActive(){return Me()},set nextButtonActive(X){Me(X)},get prevButtonActive(){return ve()},set prevButtonActive(X){ve(X)},get endScreenVideoTitle(){return le()},set endScreenVideoTitle(X){le(X)},get endScreenVideoThumb(){return Ae()},set endScreenVideoThumb(X){Ae(X)},get isOneVideoPlaylist(){return se()},set isOneVideoPlaylist(X){se(X)},get supportLink(){return N()},set supportLink(X){N(X)},get shadowRootContainer(){return Re()},set shadowRootContainer(X){Re(X)},get outerContainerRef(){return ie()},set outerContainerRef(X){ie(X)},get fullScreenTarget(){return Ge()},set fullScreenTarget(X){Ge(X)},get failoverHosts(){return oe()},set failoverHosts(X){oe(X)},get showMiniTimer(){return G()},set showMiniTimer(X){G(X)},get saveRate(){return K()},set saveRate(X){K(X)},get showAutoplayNext(){return xe()},set showAutoplayNext(X){xe(X)},get seekToInteractive(){return Ve()},set seekToInteractive(X){Ve(X)},get playPrevChapter(){return Ne()},set playPrevChapter(X){Ne(X)},get volumeMultiplier(){return Je()},set volumeMultiplier(X){Je(X)},get showEndScreen(){return we()},set showEndScreen(X){we(X)},get keyboardControls(){return Be()},set keyboardControls(X){Be(X)}});return o(),Si}var qx=$e('<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 Lm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=qx();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i))),b(t,o)}function Vm(t,e){let i=f(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");Lm(t,{get style(){return r(o)}})}var Wx=L('<div class="title svelte-1y9fytq"> </div>'),Kx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Qx={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 Rm(t,e){W(t,Qx);var i=Kx(),o=h(i);{var n=d=>{var l=Wx(),u=h(l,!0);g(l),k(()=>he(u,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);Vm(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>it(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as w5}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as S5,InterfaceLanguage as C5,isNonNullable as Um,Logger as T5,Observable as I5,Subscription as N1,once as k5,InternalsExposure as E5,skip as P5}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as B1,isMobile as A5}from"@vkontakte/videoplayer-core/es2015";import{OneStat as M5,ThinOneStat as L5}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as Gx,Subscription as jx}from"@vkontakte/videoplayer-shared/es2015";var uu=class{constructor(){this.subscription=new jx,this.logger=new Gx,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=Se(e.state.currentPlaybackRate$),n=Se(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Om,detectEmbed as t5}from"@vkontakte/videoplayer-shared/es2015";var Yx=$e('<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 Dm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Yx();let n;var a=h(o);_e(a,()=>{var s;return(s=e.children)!=null?s:ne}),be(),g(o),k(()=>n=Te(o,n,q({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))),b(t,o)}var Zx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Xx={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 Nm(t,e){U(e,!0),W(t,Xx);let[i,o]=Oe(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(v,"$isMobile$",i),s=Ce(),d=Ut(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,v=s.ui.isMobile,$=s.ui.t,p=m(()=>n()&&$("pip_dummy_title")),_=cu(d.view);var w=Zx();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),it(w,_);var y=h(w);let C;var T=h(y);Dm(T,{}),g(y);var E=M(y,2),P=h(E,!0);g(E),g(w),k(A=>{C=te(y,1,"dummy-image svelte-1pbsod4",null,C,A),he(P,r(p))},[()=>({desktop:!a()})]),b(t,w),z(),o()}var Jx=Object.defineProperty,e5=(t,e,i)=>e in t?Jx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,rl=(t,e,i)=>e5(t,typeof e!="symbol"?e+"":e,i),Bm=(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())}),i5=460,o5=280,Md=class{constructor({enabled:e=!0}={enabled:!0}){rl(this,"playerDomElement"),rl(this,"playerParentShadowRoot"),rl(this,"playerDummyElement"),rl(this,"svelteContext"),rl(this,"pipWindow"),rl(this,"info",{isActive$:new Om(!1),isEnabled$:new Om(!1),type:1}),this.info.isEnabled$=new Om(e)}isSupported(){let{isEmbed:e}=t5();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 Bm(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:i5,height:o5,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(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Jr(Nm,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||(Ks(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return Bm(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return Bm(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 E1(t){return t instanceof Md}var pu=class{static getLatestSupportedVersion(e){let i=new Js(e),o=new Md(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Ld(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 P1="Inner error. Unexpectedly root annotation container null reference exception",A1="Annotation with such name already exists",M1="Annotation with such name does not exist";var sl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as n5,Subscription as r5,throttleFn as s5}from"@vkontakte/videoplayer-shared/es2015";var a5="1",l5=100,fu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new r5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=s5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},l5);this.subscriptions.add(n5(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(P1);if(this.annotations.has(e))throw new sl(A1);i.style.zIndex=(o=i.style.zIndex)!=null?o:a5,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(M1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as mu,Subscription as d5}from"@vkontakte/videoplayer-shared/es2015";var qo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return mu(e),mu(i),mu(n),n.interactiveData&&mu(o),this.subscription=new d5,this.subscription}};var Vd=class extends qo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Rt(q({},ue(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 Rd=class extends qo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Rt(q({},ue(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:v}=a.ui,$=Se(v),p=()=>$&&Se(u);return o.add(u.subscribe(_=>{if(!$)return;let w=Se(s);Se(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||p())})),o.add(s.subscribe(_=>{if(_===null)return;let w=Se(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Dd=class extends qo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ue("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as c5}from"@vkontakte/videoplayer-shared/es2015";var Hm=ue(!1),vu=null,Nd=class extends qo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Rt(q({},Hm),{set:(i,o=!1)=>{i!==Se(Hm)&&(this.clearTimeout(),Hm.set(i),!i&&vu&&(vu=!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($=>{Se(s)&&$&&this.state$.set(!1)}));let v=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(c5({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:$,isInteractiveTime$:p,interactiveTimeIndicator:_})=>{var w,y;if(!(!$||!(_!=null&&_.isDisplayed))){if(!p)return this.state$.set(!1);v.tooltipHelpHintActive&&vu===null&&(vu=!0,v.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as u5,noop as p5}from"@vkontakte/videoplayer-shared/es2015";var Bd=class extends qo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Rt(q({},ue(null)),{toggle:p5});this.checkIfShouldHide=i=>Ss(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=()=>Pt(this,null,function*(){if(this.checkIfShouldHide(Se(s)))return;let l=Se(this.state$),{isEnded$:u,playbackState$:v}=n.state,{disabledControls$:$}=n.ui.controls,p=Se(u),_=Se(v);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),$.remove(hp),!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(hp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(u5({graphIsOpened:this.state$,currentGridType:s}).subscribe(v=>Pt(this,[v],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}};import{ValueSubject as L1}from"@vkontakte/videoplayer-shared/es2015";var Od=class extends qo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ue(!1),isEnabled$:ue(!1),type$:ue(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 L1(!1),isEnabled$:new L1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as v5,filterChanged as g5}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as Fm}from"@vkontakte/videoplayer-shared/es2015";var V1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?f5({maxCount:t}):void 0,e!==0?m5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},f5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Fm.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}}},m5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Fm.get(e)||"{}")}catch(a){return{}}},o=a=>Fm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Rt(q({},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 Hd=class extends qo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ue({}),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=V1({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(g5(),v5(v=>v)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var R1=()=>[Vd,Rd,Dd,Nd,Bd,Od,Hd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Rt(q({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Fd}from"@vkontakte/videoplayer-shared/es2015";var h5=Object.defineProperty,_5=Object.defineProperties,b5=Object.getOwnPropertyDescriptors,D1=Object.getOwnPropertySymbols,$5=Object.prototype.hasOwnProperty,y5=Object.prototype.propertyIsEnumerable,zm=(t,e,i)=>e in t?h5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Is=(t,e)=>{for(var i in e||(e={}))$5.call(e,i)&&zm(t,i,e[i]);if(D1)for(var i of D1(e))y5.call(e,i)&&zm(t,i,e[i]);return t},x5=(t,e)=>_5(t,b5(e)),Jt=(t,e,i)=>zm(t,typeof e!="symbol"?e+"":e,i),gu=(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())}),V5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:C5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:A5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=ee(void 0),hu=class extends HTMLElement{constructor(){super(),Jt(this,"svelteStubComponent"),Jt(this,"svelteRootComponent"),Jt(this,"store"),Jt(this,"microStoresRoot"),Jt(this,"statistics"),Jt(this,"sentry"),Jt(this,"_shadowRoot"),Jt(this,"playerContainer"),Jt(this,"rootContainer"),Jt(this,"shadowRootContainer"),Jt(this,"uiConfig"),Jt(this,"coreConfig"),Jt(this,"statisticsConfig"),Jt(this,"interactiveController"),Jt(this,"interactiveContainer"),Jt(this,"graphMadePause"),Jt(this,"currentPlayingVideoIndex",0),Jt(this,"needToRepeatPlaylist",!1),Jt(this,"videoConfig"),Jt(this,"pictureInPictureApi"),Jt(this,"mediaSessionApi"),Jt(this,"unsubscribePlayerPhaseSubscription"),Jt(this,"logger"),Jt(this,"log"),Jt(this,"subscription"),Jt(this,"interactiveSubscription"),Jt(this,"annotationsApi"),Jt(this,"slotsApi"),Jt(this,"prevIsid"),Jt(this,"isInited",!1),Jt(this,"internalsExposure",null),Jt(this,"shadowDOMCallbacksDisabled",!1),Jt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:v,statVKAppId:$,refreshStatAuthToken:p,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=Ld(this.videoConfig,i),P=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)return new M5(Is({movieId:I,albumId:d,place:l,trackCode:v,vkAppId:$,autoplay:(s=_&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:C,deviceId:T},P&&(!this.isInited||A)&&{projectId:Number(P)}),Is({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),Fd.create("ui"),this.logger=new T5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new N1,this.interactiveSubscription=new N1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=fe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Jr(Rm,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(),Fd.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={}){let{deviceId:o,preload:n,refreshStatAuthToken:a}=Ld(this.videoConfig,i),{unitedVideoId:s}=e;return new L5.ThinOneStat({deviceId:o,movieId:s,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,s,d,l,u,v,$,p;if(!this.videoConfig)return;let{albumId:_,statPlace:w,statAuthToken:y,preload:C,autoplay:T,volume:E,muted:P,fromTime:A,canRewindLive:I,supportLink:V,showAds:H,adsSlotId:Y,adsParams:O={},adsPreviewParam:J,adsAutoplayParam:re,interfaceLanguage:Z,isCyrillicRelatedInterface:me,logoClickable:de,logoHidden:Le,isMobile:Me,isTouch:ve,isAudioDisabled:le,isLiveCatchUpMode:Ae,fullScreenTarget:se,failoverHosts:N,canDownload:Re,callbacks:ie,interactiveData:Ge,showThumbTimer:oe,additionalButtons:G=[],additionalSettingsMenuItems:K=[],additionalContextMenuItems:Ve=[],repeat:Ne,saveRate:Je,volumeMultiplier:xe,showEndScreen:we,showAutoplayNext:Be}=Ld(this.videoConfig,i),{sources:Ze,title:ot,thumbUrl:gt,unitedVideoId:et,isClip:mt=!1,duration:kt,adsParams:Gt={},videoEpisodes:zt,previewThumbsData:Kt,subtitles:ge,live:j}=e,Ie=Is(Is({},O),Gt),ae=this.getNextVideoInfo(),He={sources:Ze,title:ot,thumbUrl:gt,subtitles:ge,unitedVideoId:et,isClip:mt,live:j,albumId:_,statPlace:w,autoplay:T,muted:P,volume:E,fromTime:A,canRewindLive:I,showAds:H,adsSlotId:Y,adsParams:Ie,adsPreviewParam:J,adsAutoplayParam:re,duration:kt,logoClickable:de,logoHidden:Le,isTouch:ve!=null?ve:Me,repeat:Ne,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},qe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(He)}`});let tt=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),lt,Ye=this.createThinOneStat(e,i);(lt||Ye)&&(this.statistics=new Yc(lt,Ye,tt==null?void 0:tt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Xs(this.uiConfig.sentry,{version:qa,env:yc},{movieId:et,albumId:_,place:w,autoplay:(a=T&&!this.interactiveController)!=null?a:!1,mobile:ve!=null?ve:Me,clip:mt}),this.interactiveController&&((l=this.prevIsid)!=null||(this.prevIsid=(d=(s=this.statistics)==null?void 0:s.oneStat)==null?void 0:d.isid$.getValue())),this.sentry=Is(Is({},this.sentry),Xs.getInstance());let dt=!!Ge,De=[],bt="tooltip_interactive_go_back_disabled_first";if(dt&&this.interactiveController){let ei=this.interactiveController.state.isInitialChapter$.getValue(),li=this.interactiveController.getHistoryState();ei&&De.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||De.push("SEEK_TO_INTERACTIVE_BUTTON"),li.hasPrevChapter$.getValue()||(De.push("PLAY_PREV_CHAPTER_BUTTON"),ei||(li.isGoBackLimited$.getValue()?bt="tooltip_interactive_go_back_disabled_limit":bt="tooltip_interactive_go_back_disabled"))}let We=()=>{var ei;this.isInited=!1,this.prevIsid=void 0;let li=(o==null?void 0:o.info.isEnded$.getValue())&&((ei=this.interactiveController)==null?void 0:ei.state.isEndChapter$.getValue());ie.onReplayInteractiveVideo&&!li?ie.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Jh({player:o,interfaceLanguage:Z,isCyrillicRelatedInterface:me,videoId:et,isClip:mt,isLiveCatchUpMode:Ae,isAudioDisabled:le,statAuthToken:y,callbacks:ie,webApi:qe,videoEpisodes:zt,previewThumbsData:Kt,canDownload:Re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:De,isInteractive:dt,saveRate:Je,interactiveRanges$:(u=this.interactiveController)==null?void 0:u.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:We,playPrevChapterDisabledTooltip:bt,hasInteractiveBranches:!!((p=($=this.interactiveController)==null?void 0:$.getChapterBranches())!=null&&p.length),additionalButtons:this.uiConfig.features.additionalButtons?G:[],additionalSettingsMenuItems:K!=null?K:[],additionalContextMenuItems:Ve!=null?Ve:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ne&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:Et}=this.microStoresRoot=R1(),ai=()=>{var ei,li,Hi,ji,Fi,vo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(nt=>{var ht;return(ht=ie==null?void 0:ie.onCurrentFormatChanged)==null?void 0:ht.call(ie,nt)})),this.subscription.add(Et.interactiveControlsOpacity$.subscribe(nt=>{var ht;nt!==null&&((ht=this==null?void 0:this.interactiveController)==null||ht.setDisabledControls(nt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(nt=>{var ht;return(ht=ie==null?void 0:ie.onThroughputEstimationChanged)==null?void 0:ht.call(ie,nt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(nt=>{var ht;return(ht=ie==null?void 0:ie.onTrafficSavingEnabledChanged)==null?void 0:ht.call(ie,nt)})),this.subscription.add(new I5(nt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ht=>nt.next(ht)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?P5(1):nt=>nt).subscribe(nt=>{var ht;return(ht=ie==null?void 0:ie.onCurrentPlaybackRateChanged)==null?void 0:ht.call(ie,nt)})),this.subscription.add(this.store.state.volume$.subscribe(nt=>{var ht;return(ht=ie==null?void 0:ie.onVolumeChange)==null?void 0:ht.call(ie,nt)})),this.subscription.add(this.store.state.muted$.subscribe(nt=>{var ht,Si;return nt?(ht=ie==null?void 0:ie.onMute)==null?void 0:ht.call(ie):(Si=ie==null?void 0:ie.onUnmute)==null?void 0:Si.call(ie)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(nt=>{var ht;return(ht=ie==null?void 0:ie.onVideoBitrateChanged)==null?void 0:ht.call(ie,nt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(nt=>{var ht;let Si=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;Si&&(nt&&!Si.includes(Bl)&&Si.add(Bl),nt||Si.remove(Bl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(nt=>gu(this,null,function*(){var ht;if(!B1.browser.isSamsungBrowser||!nt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((ht=this.videoConfig)==null?void 0:ht.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(nt=>{var ht;return(ht=ie==null?void 0:ie.onVSIDChanged)==null?void 0:ht.call(ie,nt)})),this.initMediaSession(),B(Cn,fe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ze,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ot,thumbUrl:gt,subtitles:ge,live:j,preload:C,autoplay:T,muted:P,volume:E,fromTime:A,canRewindLive:I,supportLink:V,showAds:H,adsSlotId:Y,adsParams:Ie,adsPreviewParam:J,adsAutoplayParam:re,duration:kt,logoClickable:de,logoHidden:Le,isMobile:ve!=null?ve:Me,failoverHosts:N,fullScreenTarget:se,saveRate:Je,shadowRootContainer:this.shadowRootContainer,showMiniTimer:oe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:xe,showEndScreen:we,showAutoplayNext:Be}));let Do={target:this.playerContainer,props:r(Cn)};this.svelteRootComponent=Jr(Mm,Do),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Hi=(li=(ei=this.videoConfig)==null?void 0:ei.callbacks)==null?void 0:li.onInited)==null||Hi.call(li)),(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&&((vo=(Fi=this.videoConfig)==null?void 0:Fi.callbacks)!=null&&vo.onDevNullLog)?Fd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Fd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?B1.isInited$.subscribe(ei=>{ei&&(console.log("UI SDK async start"),ai())}):ai()}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&&Um(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 gu(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?Se(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:v,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:v,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}});let{isInteractiveExpectation$:p,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(y=>{if(!this.isInited)return;let C=this.store;y?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=x5(Is({},y.config),{title:(l==null?void 0:l.title)||y.config.title});let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var T,E,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let H=p.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ol)),y==="action-choice-canceled"){let Y=Se(this.store.state.isPlaying$)||H;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onDisabledInteractiveClick)==null||V.call(I)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:C})=>{this.store&&y==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Ol)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(C=>{var T,E,P;C.length&&((P=(E=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,E;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,s,d,l,u,v,$,p,_,w,y,C,T,E,P,A,I,V,H,Y,O,J,re,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Ld(V5,S5(e,me=>me instanceof HTMLElement?me:void 0)),this.uiConfig=Rg((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 E5("UI"))),Fd.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:[w5()]}),Um(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),Um(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=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(O=this.uiConfig.features.autoplayNext)!=null?O:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(J=this.uiConfig.features.nextPrevButtons)!=null?J:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((re=this.videoConfig.videos)!=null&&re[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let me={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=pu.getLatestSupportedVersion(me):this.pictureInPictureApi=new Js(me)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new uu:void 0,this.slotsApi=this.uiConfig.features.slots?new au:void 0,this.annotationsApi=this.uiConfig.features.annotations?new fu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),E1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Cn)&&(r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive(),r(Cn).endScreenVideoTitle=o.nextVideoTitle,r(Cn).endScreenVideoThumb=o.nextVideoThumb,r(Cn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Is({},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()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Cn)&&(r(Cn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return gu(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,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 gu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Se(this.store.state.positionExact$),s=Se(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(k5()).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&&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)}unmountComponent(e){e&&Ks(e)}};import{InterfaceLanguage as FJ,VKNumericLanguage as UJ,loadVKLangPack as zJ}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as WJ,VideoFormat as KJ}from"@vkontakte/videoplayer-core/es2015";var LJ=()=>{window.customElements.define("vk-video-player",hu)};export{Zc as ControlButtonType,Ur as GridTypes,FJ as InterfaceLanguage,jl as MenuItemType,os as PlayerPhase,qa as VERSION,UJ as VKNumericLanguage,KJ as VideoFormat,WJ as VideoQuality,zJ as loadVKLangPack,LJ as registerPlayerWebComponent};
394
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Rm(t,e){U(e,!0),Q(t,Kx);let[i,o]=De(),n=()=>S(Kt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),u=f(e,"uiConfig",7),m=f(e,"title",7),y=f(e,"thumbUrl",7),p=f(e,"interactiveContainer",7),$=f(e,"interactiveController",7),w=f(e,"subtitles",7),b=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),I=f(e,"volume",7,void 0),M=f(e,"muted",7,void 0),P=f(e,"fromTime",7),k=f(e,"canRewindLive",7),R=f(e,"showAds",7),W=f(e,"adsSlotId",7,void 0),j=f(e,"adsParams",7,void 0),F=f(e,"adsPreviewParam",7,void 0),G=f(e,"adsAutoplayParam",7,void 0),ne=f(e,"duration",7,void 0),X=f(e,"logoClickable",7),se=f(e,"logoHidden",7),ce=f(e,"isMobile",7),Me=f(e,"showNextPrevButtons",7,!1),Le=f(e,"nextButtonActive",7,!1),he=f(e,"prevButtonActive",7,!1),ae=f(e,"endScreenVideoTitle",7,void 0),Pe=f(e,"endScreenVideoThumb",7,void 0),re=f(e,"isOneVideoPlaylist",7,!1),V=f(e,"supportLink",7),we=f(e,"shadowRootContainer",7,void 0),be=f(e,"outerContainerRef",7,void 0),qe=f(e,"fullScreenTarget",7,void 0),H=f(e,"failoverHosts",7,void 0),de=f(e,"showMiniTimer",7,!1),_e=f(e,"saveRate",7),te=f(e,"seekToInteractive",7,A1),Oe=f(e,"playPrevChapter",7,A1),Ze=f(e,"volumeMultiplier",7),Se=f(e,"showAutoplayNext",7),Re=f(e,"showEndScreen",7,!0),ke=f(e,"keyboardControls",15,void 0),{subscribers:ze,stores:ct}=d();Og(u());let ut=qt(),nt=u().logoLink,St=s().ui.debugPanelVisible,mt=s().ui.playerSize,Kt=s().state.isLive$,Mt=s().state.isInteractive&&Vm.device.isAndroid,Bt=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}),Yg(s(),ct),Ue(()=>{var Z,Jt;s().ui.isMobile.set(ce()),(Jt=(Z=l().callbacks)==null?void 0:Z.onDomReady)==null||Jt.call(Z)});let ie=(Z=!1)=>{D($e,!0),Z?s().actions.external.firstStart(R()):s().actions.internal.firstStart(R())},Be=()=>{if(ut.features.qualityDetailsSubMenuEnabled){let Z=vh(s().videoId);if(Z)switch(Z.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,Z.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,Z.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(Z.quality);break}}else{gh(s().videoId),Ap()&&s().actions.internal.setTrafficSavingEnabled(!0);let Jt=Ip(s().videoId);Jt&&s().actions.internal.setQuality(Jt)}};function je(Z){var pt,hi,Je;let Jt=a()||Z;Jt&&s().initVideo({container:r(Bt),sources:Jt,failoverHosts:H(),subtitles:w(),volumeMultiplier:Ze()});let bi=Ux.get(Bl)==="true";St.set(bi),P()>0&&s().actions.external.seekTime(P());let Bi=ce()?ut.volumeDefault:(hi=(pt=I())!=null?pt:Sc())!=null?hi:ut.volumeDefault,ci=(Je=M())!=null?Je:dh();if(s().actions.external.setVolume(Bi),s().actions.external.setMuted(ci),s().getAdmanWrapper().setInitialVolume(ci?0:Bi),Be(),ut.features.saveRate&&_e()){let Lt=ph();Lt&&!n()&&s().actions.internal.setPlaybackRate(Lt)}if(Se()){let Lt=mh();Lt&&s().actions.internal.setAutoplayNextEnabled(Lt)}s().ui.isAutoplay.set(T()),T()?ie():C()&&ut.features.preload&&s().actions.internal.preload()}let Qe=Z=>{if(window.ResizeObserver){let Jt,bi;O=new ResizeObserver(zx(Bi=>{let ci=Bi[0];if(ci.contentBoxSize){let pt=Array.isArray(ci.contentBoxSize)?ci.contentBoxSize[0]:ci.contentBoxSize;Jt=pt.inlineSize,bi=pt.blockSize}else ci.contentRect&&(Jt=ci.contentRect.width,bi=ci.contentRect.height);mt.set({width:Jt,height:bi})},300)),O.observe(Z)}mt.set({width:Z.clientWidth,height:Z.clientHeight})},Ve=()=>{document.hidden&&s().actions.external.stop()};zt(()=>{var bi,Bi,ci,pt;Mt&&document.addEventListener("visibilitychange",Ve),ut.debugLog&&s().actions.internal.startLogging(),Qe(r(Bt));let Z=ze.map(hi=>hi.init({store:s(),microStores:ct,config:l(),interactiveController:$(),uiConfig:u()})),Jt=()=>{Mt&&document.removeEventListener("visibilitychange",Ve),O==null||O.disconnect(),Z.forEach(hi=>hi.unsubscribe()),s().destroy()};return((bi=b())==null?void 0:bi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Jt):((Bi=b())==null?void 0:Bi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Jt):(((ci=b())==null?void 0:ci.status)==="finished"||((pt=b())==null?void 0:pt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Jt):(je(),Jt)});function rt(){r($e)?s().actions.external.play():ie(!0)}function et(){s().actions.external.pause()}function _t(Z){s().actions.external.setMuted(Z)}function it(){s().actions.external.toggleSubtitle()}function Xe(){var Z;(Z=s().webApi.slotsApi)!=null&&Z.haveSlots()&&s().actions.external.hideControls()}function Qt(){var Z;(Z=s().webApi.slotsApi)!=null&&Z.haveSlots()&&s().actions.external.showControls()}function bt(Z){ce()||Z>=0&&Z<=1&&s().actions.external.setVolume(Z)}function Si(Z){s().actions.internal.seekTime(Z,qx.UNKNOWN)}function ii(Z){s().actions.external.seekEpisodeStartTime(Z)}function Ge(){s().actions.external.returnFocusToEpisodes()}function Xt(Z){s().actions.external.setPlaybackRate(Z)}function Ri(Z){s().actions.external.setAutoQualityLimits(Z)}let Fi=uu(ut.view),lo=l().playerView==="preview";var Gi=Wx();let ot;st(Gi,Fi);var $t=h(Gi);{var Ai=Z=>{Mm(Z,{get store(){return s()},uiConfig:ut,get thumbUrl(){return y()},get interactiveContainer(){return p()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return R()},get adsSlotId(){return W()},get adsParams(){return j()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return G()},get duration(){return ne()},get logoClickable(){return X()},get logoHidden(){return se()},logoTargetUrl:nt,get nextButtonActive(){return Le()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return re()},get supportLink(){return V()},get shadowRootContainer(){return we()},get outerContainerRef(){return be()},get fullScreenTarget(){return qe()},get showMiniTimer(){return de()},get playerStarted(){return r($e)},get seekToInteractive(){return te()},get playPrevChapter(){return Oe()},firstStart:ie,seekTime:Si,get showEndScreen(){return Re()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(Bt)},set videoContainer(Jt){D(Bt,fe(Jt))}})},Zi=Z=>{var Jt=He(),bi=pe(Jt);{var Bi=pt=>{Lm(pt,{get thumbUrl(){return y()},get outsideDuration(){return ne()},get canRewindLive(){return k()},get videoContainer(){return r(Bt)},set videoContainer(hi){D(Bt,fe(hi))}})},ci=pt=>{Pm(pt,{get store(){return s()},uiConfig:ut,get title(){return m()},get thumbUrl(){return y()},get interactiveContainer(){return p()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return R()},get adsSlotId(){return W()},get adsParams(){return j()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return G()},get duration(){return ne()},get logoClickable(){return X()},get logoHidden(){return se()},logoTargetUrl:nt,get nextButtonActive(){return Le()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return re()},get supportLink(){return V()},get shadowRootContainer(){return we()},get outerContainerRef(){return be()},get fullScreenTarget(){return qe()},get showMiniTimer(){return de()},get playerStarted(){return r($e)},get seekToInteractive(){return te()},get playPrevChapter(){return Oe()},firstStart:ie,get showEndScreen(){return Re()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(Bt)},set videoContainer(hi){D(Bt,fe(hi))},get keyboardControls(){return ke()},set keyboardControls(hi){ke(hi)}})};B(bi,pt=>{lo?pt(Bi):pt(ci,!1)})}_(Z,Jt)};B($t,Z=>{ce()?Z(Ai):Z(Zi,!1)})}g(Gi),E(Z=>ot=ee(Gi,1,"root svelte-tw6yp4",null,ot,Z),[()=>({"root--miui-browser":Vm.device.isMobile&&Vm.browser.isMiuiBrowser,"visible-outside":lo})]),_(t,Gi);var Co=z({initVideo:je,play:rt,pause:et,setMuted:_t,toggleSubtitle:it,hideControls:Xe,showControls:Qt,setVolume:bt,seekTime:Si,seekEpisodeStartTime:ii,returnFocusToEpisodes:Ge,setPlaybackRate:Xt,setAutoQualityLimits:Ri,get sources(){return a()},set sources(Z){a(Z)},get store(){return s()},set store(Z){s(Z)},get microStoresRoot(){return d()},set microStoresRoot(Z){d(Z)},get videoConfig(){return l()},set videoConfig(Z){l(Z)},get uiConfig(){return u()},set uiConfig(Z){u(Z)},get title(){return m()},set title(Z){m(Z)},get thumbUrl(){return y()},set thumbUrl(Z){y(Z)},get interactiveContainer(){return p()},set interactiveContainer(Z){p(Z)},get interactiveController(){return $()},set interactiveController(Z){$(Z)},get subtitles(){return w()},set subtitles(Z){w(Z)},get live(){return b()},set live(Z){b(Z)},get preload(){return C()},set preload(Z){C(Z)},get autoplay(){return T()},set autoplay(Z){T(Z)},get volume(){return I()},set volume(Z){I(Z)},get muted(){return M()},set muted(Z){M(Z)},get fromTime(){return P()},set fromTime(Z){P(Z)},get canRewindLive(){return k()},set canRewindLive(Z){k(Z)},get showAds(){return R()},set showAds(Z){R(Z)},get adsSlotId(){return W()},set adsSlotId(Z){W(Z)},get adsParams(){return j()},set adsParams(Z){j(Z)},get adsPreviewParam(){return F()},set adsPreviewParam(Z){F(Z)},get adsAutoplayParam(){return G()},set adsAutoplayParam(Z){G(Z)},get duration(){return ne()},set duration(Z){ne(Z)},get logoClickable(){return X()},set logoClickable(Z){X(Z)},get logoHidden(){return se()},set logoHidden(Z){se(Z)},get isMobile(){return ce()},set isMobile(Z){ce(Z)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(Z){Me(Z)},get nextButtonActive(){return Le()},set nextButtonActive(Z){Le(Z)},get prevButtonActive(){return he()},set prevButtonActive(Z){he(Z)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(Z){ae(Z)},get endScreenVideoThumb(){return Pe()},set endScreenVideoThumb(Z){Pe(Z)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(Z){re(Z)},get supportLink(){return V()},set supportLink(Z){V(Z)},get shadowRootContainer(){return we()},set shadowRootContainer(Z){we(Z)},get outerContainerRef(){return be()},set outerContainerRef(Z){be(Z)},get fullScreenTarget(){return qe()},set fullScreenTarget(Z){qe(Z)},get failoverHosts(){return H()},set failoverHosts(Z){H(Z)},get showMiniTimer(){return de()},set showMiniTimer(Z){de(Z)},get saveRate(){return _e()},set saveRate(Z){_e(Z)},get showAutoplayNext(){return Se()},set showAutoplayNext(Z){Se(Z)},get seekToInteractive(){return te()},set seekToInteractive(Z){te(Z)},get playPrevChapter(){return Oe()},set playPrevChapter(Z){Oe(Z)},get volumeMultiplier(){return Ze()},set volumeMultiplier(Z){Ze(Z)},get showEndScreen(){return Re()},set showEndScreen(Z){Re(Z)},get keyboardControls(){return ke()},set keyboardControls(Z){ke(Z)}});return o(),Co}var Qx=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 Bm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Qx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 Nm(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Bm(t,{get style(){return r(o)}})}var Gx=L('<div class="title svelte-1y9fytq"> </div>'),Yx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),jx={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 Dm(t,e){Q(t,jx);var i=Yx(),o=h(i);{var n=d=>{var l=Gx(),u=h(l,!0);g(l),E(()=>ve(u,e.title)),_(d,l)};B(o,d=>{e.title&&d(n)})}var a=A(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);Nm(d,{get isWhite(){return r(l)}})};B(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}import{now as T5}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as I5,InterfaceLanguage as k5,isNonNullable as Wm,Logger as E5,Observable as P5,Subscription as H1,once as A5,InternalsExposure as M5,skip as L5}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as F1,isMobile as V5}from"@vkontakte/videoplayer-core/es2015";import{OneStat as R5,MediascopePixel as B5}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as Zx,Subscription as Xx}from"@vkontakte/videoplayer-shared/es2015";var pu=class{constructor(){this.subscription=new Xx,this.logger=new Zx,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=Ce(e.state.currentPlaybackRate$),n=Ce(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Um,detectEmbed as n5}from"@vkontakte/videoplayer-shared/es2015";var Jx=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 Om(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Jx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:oe}),ye(),g(o),E(()=>n=Ie(o,n,K({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 e5=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),t5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Hm(t,e){U(e,!0),Q(t,t5);let[i,o]=De(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Te(),d=qt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,m=s.ui.isMobile,y=s.ui.t,p=v(()=>n()&&y("pip_dummy_title")),$=uu(d.view);var w=e5();ee(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),st(w,$);var b=h(w);let C;var T=h(b);Om(T,{}),g(b);var I=A(b,2),M=h(I,!0);g(I),g(w),E(P=>{C=ee(b,1,"dummy-image svelte-1pbsod4",null,C,P),ve(M,r(p))},[()=>({desktop:!a()})]),_(t,w),z(),o()}var i5=Object.defineProperty,o5=(t,e,i)=>e in t?i5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ll=(t,e,i)=>o5(t,typeof e!="symbol"?e+"":e,i),Fm=(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())}),r5=460,s5=280,Ad=class{constructor({enabled:e=!0}={enabled:!0}){ll(this,"playerDomElement"),ll(this,"playerParentShadowRoot"),ll(this,"playerDummyElement"),ll(this,"svelteContext"),ll(this,"pipWindow"),ll(this,"info",{isActive$:new Um(!1),isEnabled$:new Um(!1),type:1}),this.info.isEnabled$=new Um(e)}isSupported(){let{isEmbed:e}=n5();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 Fm(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:r5,height:s5,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=es(Hm,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||(Ws(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return Fm(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return Fm(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 M1(t){return t instanceof Ad}var fu=class{static getLatestSupportedVersion(e){let i=new Xs(e),o=new Ad(e);if(o.isSupported())return o;if(i.isSupported())return i}};function mu(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 L1="Inner error. Unexpectedly root annotation container null reference exception",V1="Annotation with such name already exists",R1="Annotation with such name does not exist";var dl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as a5,Subscription as l5,throttleFn as d5}from"@vkontakte/videoplayer-shared/es2015";var c5="1",u5=100,vu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new l5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=d5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},u5);this.subscriptions.add(a5(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 dl(L1);if(this.annotations.has(e))throw new dl(V1);i.style.zIndex=(o=i.style.zIndex)!=null?o:c5,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 dl(R1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as gu,Subscription as p5}from"@vkontakte/videoplayer-shared/es2015";var Fo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return gu(e),gu(i),gu(n),n.interactiveData&&gu(o),this.subscription=new p5,this.subscription}};var Md=class extends Fo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Nt(K({},ue(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 Ld=class extends Fo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Nt(K({},ue(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:m}=a.ui,y=Ce(m),p=()=>y&&Ce(u);return o.add(u.subscribe($=>{if(!y)return;let w=Ce(s);Ce(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let w=Ce(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Vd=class extends Fo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ue("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as f5}from"@vkontakte/videoplayer-shared/es2015";var zm=ue(!1),hu=null,Rd=class extends Fo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Nt(K({},zm),{set:(i,o=!1)=>{i!==Ce(zm)&&(this.clearTimeout(),zm.set(i),!i&&hu&&(hu=!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=>{Ce(s)&&y&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(f5({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:y,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var w,b;if(!(!y||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);m.tooltipHelpHintActive&&hu===null&&(hu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as m5,noop as v5}from"@vkontakte/videoplayer-shared/es2015";var Bd=class extends Fo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Nt(K({},ue(null)),{toggle:v5});this.checkIfShouldHide=i=>Ss(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=()=>Et(this,null,function*(){if(this.checkIfShouldHide(Ce(s)))return;let l=Ce(this.state$),{isEnded$:u,playbackState$:m}=n.state,{disabledControls$:y}=n.ui.controls,p=Ce(u),$=Ce(m);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),y.remove($p),!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),y.add($p),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(m5({graphIsOpened:this.state$,currentGridType:s}).subscribe(m=>Et(this,[m],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}};import{ValueSubject as B1}from"@vkontakte/videoplayer-shared/es2015";var Nd=class extends Fo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ue(!1),isEnabled$:ue(!1),type$:ue(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 B1(!1),isEnabled$:new B1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as _5,filterChanged as b5}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as qm}from"@vkontakte/videoplayer-shared/es2015";var N1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?g5({maxCount:t}):void 0,e!==0?h5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},g5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,qm.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}}},h5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(qm.get(e)||"{}")}catch(a){return{}}},o=a=>qm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Nt(K({},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 Dd=class extends Fo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ue({}),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=N1({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(b5(),_5(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var D1=()=>[Md,Ld,Vd,Rd,Bd,Nd,Dd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Nt(K({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Od}from"@vkontakte/videoplayer-shared/es2015";var $5=Object.defineProperty,y5=Object.defineProperties,x5=Object.getOwnPropertyDescriptors,O1=Object.getOwnPropertySymbols,w5=Object.prototype.hasOwnProperty,S5=Object.prototype.propertyIsEnumerable,Km=(t,e,i)=>e in t?$5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Is=(t,e)=>{for(var i in e||(e={}))w5.call(e,i)&&Km(t,i,e[i]);if(O1)for(var i of O1(e))S5.call(e,i)&&Km(t,i,e[i]);return t},C5=(t,e)=>y5(t,x5(e)),oi=(t,e,i)=>Km(t,typeof e!="symbol"?e+"":e,i),_u=(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())}),N5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:k5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:V5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},kn=J(void 0),bu=class extends HTMLElement{constructor(){super(),oi(this,"svelteStubComponent"),oi(this,"svelteRootComponent"),oi(this,"store"),oi(this,"microStoresRoot"),oi(this,"statistics"),oi(this,"sentry"),oi(this,"_shadowRoot"),oi(this,"playerContainer"),oi(this,"rootContainer"),oi(this,"shadowRootContainer"),oi(this,"uiConfig"),oi(this,"coreConfig"),oi(this,"statisticsConfig"),oi(this,"interactiveController"),oi(this,"interactiveContainer"),oi(this,"graphMadePause"),oi(this,"currentPlayingVideoIndex",0),oi(this,"needToRepeatPlaylist",!1),oi(this,"videoConfig"),oi(this,"pictureInPictureApi"),oi(this,"mediaSessionApi"),oi(this,"unsubscribePlayerPhaseSubscription"),oi(this,"logger"),oi(this,"log"),oi(this,"subscription"),oi(this,"interactiveSubscription"),oi(this,"annotationsApi"),oi(this,"slotsApi"),oi(this,"prevIsid"),oi(this,"isInited",!1),oi(this,"internalsExposure",null),oi(this,"shadowDOMCallbacksDisabled",!1),oi(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:m,statVKAppId:y,refreshStatAuthToken:p,autoplay:$,isMobile:w,isTouch:b,refDomain:C,deviceId:T,interactiveData:I}=mu(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:R=!1}=e;if(this.uiConfig.features.statistics&&k)return new R5(Is({movieId:k,albumId:d,place:l,trackCode:m,vkAppId:y,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:b!=null?b:w,clip:R,refDomain:C,deviceId:T},M&&(!this.isInited||P)&&{projectId:Number(M)}),Is({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),Od.create("ui"),this.logger=new E5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new H1,this.interactiveSubscription=new H1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=fe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=es(Dm,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(),Od.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,m,y;if(!this.videoConfig)return;let{albumId:p,statPlace:$,statAuthToken:w,preload:b,autoplay:C,volume:T,muted:I,fromTime:M,canRewindLive:P,supportLink:k,showAds:R,adsSlotId:W,adsParams:j={},adsPreviewParam:F,adsAutoplayParam:G,interfaceLanguage:ne,isCyrillicRelatedInterface:X,logoClickable:se,logoHidden:ce,isMobile:Me,isTouch:Le,isAudioDisabled:he,isLiveCatchUpMode:ae,fullScreenTarget:Pe,failoverHosts:re,canDownload:V,callbacks:we,interactiveData:be,showThumbTimer:qe,additionalButtons:H=[],additionalSettingsMenuItems:de=[],additionalContextMenuItems:_e=[],repeat:te,saveRate:Oe,volumeMultiplier:Ze,showEndScreen:Se,showAutoplayNext:Re,mediascopePixels:ke}=mu(this.videoConfig,i),{sources:ze,title:ct,thumbUrl:ut,unitedVideoId:nt,isClip:St=!1,duration:mt,adsParams:Kt={},videoEpisodes:ni,previewThumbsData:Mt,subtitles:Bt,live:O}=e,$e=Is(Is({},j),Kt),ie=this.getNextVideoInfo(),Be={sources:ze,title:ct,thumbUrl:ut,subtitles:Bt,unitedVideoId:nt,isClip:St,live:O,albumId:p,statPlace:$,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:R,adsSlotId:W,adsParams:$e,adsPreviewParam:F,adsAutoplayParam:G,duration:mt,logoClickable:se,logoHidden:ce,isTouch:Le!=null?Le:Me,repeat:te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ie.nextVideoTitle,endScreenVideoThumb:ie.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},je={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Be)}`});let Qe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ve=(Qe==null?void 0:Qe.oneStat)||this.createOneStat(e,i),rt;ke&&(rt=new B5({pixels:ke})),Ve&&(this.statistics=new jc(Ve,rt,Qe==null?void 0:Qe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Zs(this.uiConfig.sentry,{version:Qa,env:yc},{movieId:nt,albumId:p,place:$,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Le!=null?Le:Me,clip:St}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry=Is(Is({},this.sentry),Zs.getInstance());let _t=!!be,it=[],Xe="tooltip_interactive_go_back_disabled_first";if(_t&&this.interactiveController){let ii=this.interactiveController.state.isInitialChapter$.getValue(),Ge=this.interactiveController.getHistoryState();ii&&it.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||it.push("SEEK_TO_INTERACTIVE_BUTTON"),Ge.hasPrevChapter$.getValue()||(it.push("PLAY_PREV_CHAPTER_BUTTON"),ii||(Ge.isGoBackLimited$.getValue()?Xe="tooltip_interactive_go_back_disabled_limit":Xe="tooltip_interactive_go_back_disabled"))}let Qt=()=>{var ii;this.isInited=!1,this.prevIsid=void 0;let Ge=(o==null?void 0:o.info.isEnded$.getValue())&&((ii=this.interactiveController)==null?void 0:ii.state.isEndChapter$.getValue());we.onReplayInteractiveVideo&&!Ge?we.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=i1({player:o,interfaceLanguage:ne,isCyrillicRelatedInterface:X,videoId:nt,isClip:St,isLiveCatchUpMode:ae,isAudioDisabled:he,statAuthToken:w,callbacks:we,webApi:je,videoEpisodes:ni,previewThumbsData:Mt,canDownload:V,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:it,isInteractive:_t,saveRate:Oe,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Qt,playPrevChapterDisabledTooltip:Xe,hasInteractiveBranches:!!((y=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?H:[],additionalSettingsMenuItems:de!=null?de:[],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:bt}=this.microStoresRoot=D1(),Si=()=>{var ii,Ge,Xt,Ri,Fi,lo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(ot=>{var $t;return($t=we==null?void 0:we.onCurrentFormatChanged)==null?void 0:$t.call(we,ot)})),this.subscription.add(bt.interactiveControlsOpacity$.subscribe(ot=>{var $t;ot!==null&&(($t=this==null?void 0:this.interactiveController)==null||$t.setDisabledControls(ot))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ot=>{var $t;return($t=we==null?void 0:we.onThroughputEstimationChanged)==null?void 0:$t.call(we,ot)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ot=>{var $t;return($t=we==null?void 0:we.onTrafficSavingEnabledChanged)==null?void 0:$t.call(we,ot)})),this.subscription.add(new P5(ot=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe($t=>ot.next($t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?L5(1):ot=>ot).subscribe(ot=>{var $t;return($t=we==null?void 0:we.onCurrentPlaybackRateChanged)==null?void 0:$t.call(we,ot)})),this.subscription.add(this.store.state.volume$.subscribe(ot=>{var $t;return($t=we==null?void 0:we.onVolumeChange)==null?void 0:$t.call(we,ot)})),this.subscription.add(this.store.state.muted$.subscribe(ot=>{var $t,Ai;return ot?($t=we==null?void 0:we.onMute)==null?void 0:$t.call(we):(Ai=we==null?void 0:we.onUnmute)==null?void 0:Ai.call(we)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ot=>{var $t;return($t=we==null?void 0:we.onVideoBitrateChanged)==null?void 0:$t.call(we,ot)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ot=>{var $t;let Ai=($t=this.store)==null?void 0:$t.ui.controls.disabledControls$;Ai&&(ot&&!Ai.includes(Nl)&&Ai.add(Nl),ot||Ai.remove(Nl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(ot=>_u(this,null,function*(){var $t;if(!F1.browser.isSamsungBrowser||!ot||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter(($t=this.videoConfig)==null?void 0:$t.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ot=>{var $t;return($t=we==null?void 0:we.onVSIDChanged)==null?void 0:$t.call(we,ot)})),this.initMediaSession(),D(kn,fe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ze,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ct,thumbUrl:ut,subtitles:Bt,live:O,preload:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:k,showAds:R,adsSlotId:W,adsParams:$e,adsPreviewParam:F,adsAutoplayParam:G,duration:mt,logoClickable:se,logoHidden:ce,isMobile:Le!=null?Le:Me,failoverHosts:re,fullScreenTarget:Pe,saveRate:Oe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:qe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ie.nextVideoTitle,endScreenVideoThumb:ie.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ze,showEndScreen:Se,showAutoplayNext:Re}));let Gi={target:this.playerContainer,props:r(kn)};this.svelteRootComponent=es(Rm,Gi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Xt=(Ge=(ii=this.videoConfig)==null?void 0:ii.callbacks)==null?void 0:Ge.onInited)==null||Xt.call(Ge)),(Ri=this.internalsExposure)==null||Ri.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((lo=(Fi=this.videoConfig)==null?void 0:Fi.callbacks)!=null&&lo.onDevNullLog)?Od.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Od.destroy("ui")};this.coreConfig.asyncResolveClientChecker?F1.isInited$.subscribe(ii=>{ii&&(console.log("UI SDK async start"),Si())}):Si()}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&&Wm(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 _u(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?Ce(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:m,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:m,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$: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]=C5(Is({},b.config),{title:(l==null?void 0:l.title)||b.config.title});let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:C})=>{var T,I,M,P,k,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(Dl)),b==="action-choice-canceled"){let j=Ce(this.store.state.isPlaying$)||W;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(P=this.videoConfig)==null?void 0:(k=P.callbacks).onDisabledInteractiveClick)==null||R.call(k)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:C})=>{this.store&&b==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Dl)})),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,s,d,l,u,m,y,p,$,w,b,C,T,I,M,P,k,R,W,j,F,G,ne,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=mu(N5,I5(e,se=>se instanceof HTMLElement?se:void 0)),this.uiConfig=Dg((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 M5("UI"))),Od.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:[T5()]}),Wm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),Wm(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=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((k=this.uiConfig.showLogo)!=null?k:!this.videoConfig.logoHidden),(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=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(F=this.uiConfig.features.autoplayNext)!=null?F:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ne=this.videoConfig.videos)!=null&&ne[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let se={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=fu.getLatestSupportedVersion(se):this.pictureInPictureApi=new Xs(se)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new pu:void 0,this.slotsApi=this.uiConfig.features.slots?new lu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new vu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(X=this.slotsApi)==null||X.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),M1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(kn)&&(r(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(kn).nextButtonActive=this.isNextButtonActive(),r(kn).prevButtonActive=this.isPrevButtonActive(),r(kn).endScreenVideoTitle=o.nextVideoTitle,r(kn).endScreenVideoThumb=o.nextVideoThumb,r(kn).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}=Is({},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(kn)&&(r(kn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(kn).nextButtonActive=this.isNextButtonActive(),r(kn).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 _u(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 _u(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Ce(this.store.state.positionExact$),s=Ce(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(A5()).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&&Ws(e)}};import{InterfaceLanguage as QJ,VKNumericLanguage as GJ,loadVKLangPack as YJ}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as ZJ,VideoFormat as XJ}from"@vkontakte/videoplayer-core/es2015";var OJ=()=>{window.customElements.define("vk-video-player",bu)};export{Zc as ControlButtonType,Fr as GridTypes,QJ as InterfaceLanguage,Gl as MenuItemType,ns as PlayerPhase,Qa as VERSION,GJ as VKNumericLanguage,XJ as VideoFormat,ZJ as VideoQuality,YJ as loadVKLangPack,OJ as registerPlayerWebComponent};