@vkontakte/videoplayer 1.1.19 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.19
3
- * Fri, 31 Mar 2023 10:10:28 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-19/doc/
2
+ * @vkontakte/videoplayer v1.1.21
3
+ * Tue, 25 Apr 2023 14:37:54 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-21/doc/
5
5
  */
6
- "use strict";var Ce=require("@vkontakte/videoplayer-core/es2015.cjs.js"),_l=require("lodash/debounce.js"),re=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),Oi=require("@vkontakte/videoplayer-statistics/es2015.cjs.js"),io=require("lodash/cloneDeepWith.js");function I(){}function no(t,e){for(const i in e)t[i]=e[i];return t}function yl(t){return t()}function Ui(){return Object.create(null)}function Ze(t){t.forEach(yl)}function He(t){return typeof t=="function"}function ve(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let ci;function Se(t,e){return ci||(ci=document.createElement("a")),ci.href=e,t===ci.href}function lo(t){return Object.keys(t).length===0}function Bi(t,...e){if(t==null)return I;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Re(t){let e;return Bi(t,i=>e=i)(),e}function Q(t,e,i){t.$$.on_destroy.push(Bi(e,i))}function oo(t,e,i,n){if(t){const l=kl(t,e,i,n);return t[0](l)}}function kl(t,e,i,n){return t[1]&&n?no(i.ctx.slice(),t[1](n(e))):i.ctx}function so(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const o=[],s=Math.max(e.dirty.length,l.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|l[a];return o}return e.dirty|l}return e.dirty}function ao(t,e,i,n,l,o){if(l){const s=kl(e,i,n,o);t.p(s,l)}}function ro(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function yt(t){return t==null?"":t}function m(t,e){t.appendChild(e)}function _e(t,e,i){const n=co(t);if(!n.getElementById(e)){const l=p("style");l.id=e,l.textContent=i,uo(n,l)}}function co(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function uo(t,e){return m(t.head||t,e),e.sheet}function E(t,e,i){t.insertBefore(e,i||null)}function C(t){t.parentNode&&t.parentNode.removeChild(t)}function Qi(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function p(t){return document.createElement(t)}function Me(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function de(t){return document.createTextNode(t)}function T(){return de(" ")}function $e(){return de("")}function oe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function zt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function fo(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function mo(t){return Array.from(t.childNodes)}function Ee(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ut(t,e,i,n){i===null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}function A(t,e,i){t.classList[i?"add":"remove"](e)}let ti;function $t(t){ti=t}function vi(){if(!ti)throw new Error("Function called outside component initialization");return ti}function Lt(t){vi().$$.on_mount.push(t)}function Pl(t){vi().$$.on_destroy.push(t)}function vo(t,e){return vi().$$.context.set(t,e),e}function go(t){return vi().$$.context.get(t)}function it(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const Ot=[],Je=[],ui=[],Mi=[],ho=Promise.resolve();let Ei=!1;function po(){Ei||(Ei=!0,ho.then(Vl))}function zi(t){ui.push(t)}function bo(t){Mi.push(t)}const ki=new Set;let Dt=0;function Vl(){if(Dt!==0)return;const t=ti;do{try{for(;Dt<Ot.length;){const e=Ot[Dt];Dt++,$t(e),wo(e.$$)}}catch(e){throw Ot.length=0,Dt=0,e}for($t(null),Ot.length=0,Dt=0;Je.length;)Je.pop()();for(let e=0;e<ui.length;e+=1){const i=ui[e];ki.has(i)||(ki.add(i),i())}ui.length=0}while(Ot.length);for(;Mi.length;)Mi.pop()();Ei=!1,ki.clear(),$t(t)}function wo(t){if(t.fragment!==null){t.update(),Ze(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(zi)}}const di=new Set;let Tt;function se(){Tt={r:0,c:[],p:Tt}}function ae(){Tt.r||Ze(Tt.c),Tt=Tt.p}function g(t,e){t&&t.i&&(di.delete(t),t.i(e))}function k(t,e,i,n){if(t&&t.o){if(di.has(t))return;di.add(t),Tt.c.push(()=>{di.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}const _o=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function yo(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function te(t){t&&t.c()}function $(t,e,i,n){const{fragment:l,after_update:o}=t.$$;l&&l.m(e,i),n||zi(()=>{const s=t.$$.on_mount.map(yl).filter(He);t.$$.on_destroy?t.$$.on_destroy.push(...s):Ze(s),t.$$.on_mount=[]}),o.forEach(zi)}function ee(t,e){const i=t.$$;i.fragment!==null&&(Ze(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function ko(t,e){t.$$.dirty[0]===-1&&(Ot.push(t),po(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function be(t,e,i,n,l,o,s,a=[-1]){const r=ti;$t(t);const u=t.$$={fragment:null,ctx:[],props:o,update:I,not_equal:l,bound:Ui(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(r?r.$$.context:[])),callbacks:Ui(),dirty:a,skip_bound:!1,root:e.target||r.$$.root};s&&s(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(d,w,...v)=>{const b=v.length?v[0]:w;return u.ctx&&l(u.ctx[d],u.ctx[d]=b)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](b),f&&ko(t,d)),w}):[],u.update(),f=!0,Ze(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const d=mo(e.target);u.fragment&&u.fragment.l(d),d.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&g(t.$$.fragment),$(t,e.target,e.anchor,e.customElement),Vl()}$t(r)}class we{$destroy(){ee(this,1),this.$destroy=I}$on(e,i){if(!He(i))return I;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!lo(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const jt=[];function Qt(t,e){return{subscribe:Le(t,e).subscribe}}function Le(t,e=I){let i;const n=new Set;function l(a){if(ve(t,a)&&(t=a,i)){const r=!jt.length;for(const u of n)u[1](),jt.push(u,t);if(r){for(let u=0;u<jt.length;u+=2)jt[u][0](jt[u+1]);jt.length=0}}}function o(a){l(a(t))}function s(a,r=I){const u=[a,r];return n.add(u),n.size===1&&(i=e(l)||I),a(t),()=>{n.delete(u),n.size===0&&(i(),i=null)}}return{set:l,update:o,subscribe:s}}function ut(t,e,i){const n=!Array.isArray(t),l=n?[t]:t,o=e.length<2;return Qt(i,s=>{let a=!1;const r=[];let u=0,f=I;const d=()=>{if(u)return;f();const v=e(n?r[0]:r,s);o?s(v):f=He(v)?v:I},w=l.map((v,b)=>Bi(v,h=>{r[b]=h,u&=~(1<<b),a&&d()},()=>{u|=1<<b}));return a=!0,d(),function(){Ze(w),f()}})}const Sl="1.1.19",Po="@vkontakte/videoplayer",Al=Symbol("storeContext"),Vo=t=>{vo(Al,t)},Oe=()=>{const t=go(Al);return re.assertNonNullable(t,"Store context is empty!"),t},Be=(t,e)=>Qt(t.getValue(),i=>{const n=t.subscribe(l=>{i(l),e==null||e(l)});return()=>n.unsubscribe()}),So=(t,e,i)=>{var n,l,o,s;const a=t.info,{width:r,height:u}=Re(i.ui.playerSize),f=(l=(n=a.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,d=(s=(o=a.rttEstimation$.getValue())===null||o===void 0?void 0:o.toFixed(0))!==null&&s!==void 0?s:0,w=a.isAutoQualityEnabled$.getValue()?"auto":"manual",v={Version:`${Po}@${Sl}`,Browser:navigator.userAgent,"United video id":i.videoId,"Content host":a.hostname$.getValue(),"Connection type":a.httpConnectionType$.getValue()+(a.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${f}Kbps @ ${d}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${w} ${a.currentQuality$.getValue()}`,"Available qualities":a.availableQualities$.getValue().join(", "),Position:`${Re(i.state.positionExact$)}s`,State:`${Re(i.playerPhase)} ${a.playbackState$.getValue()}`,"Player size":`${r}x${u}`,URL:window.location.href,Errors:Re(i.state.errorLog$).map(({id:b})=>b).join(", ")};return Object.entries(v).map(([b,h])=>`${b}: ${h}`).join(`
7
- `)},Ao=(t,e,i)=>{const n=t.info,{width:l,height:o}=Re(i.ui.playerSize),s={version:Sl,viewport:`${l}x${o}`,volume:Math.round(Re(i.state.volume$)*100)},a=i.videoId;a&&(s.id=a),n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());const f=n.intrinsicVideoSize$.getValue();f&&(s.videoSize=`${f.width}x${f.height}`);const d=n.currentBuffer$.getValue();d&&(s.buffer=Math.max(d.end-Re(i.state.positionExact$),0));const w=n.throughputEstimation$.getValue();w&&(s.speed=w);const v=n.videoBitrate$.getValue();return v&&(s.bitrate=v),s},Co=500,Wi=3e3,Yi=2e3,Mo=3e3,Eo=6e3,zo=300,fi="\u0410\u0432\u0442\u043E",Cl="vk_player_preferred_volume",Ml="vk_player_prefer_volume_mute",Ti="vk_player_debug_panel_opened",gi=1,To=.05,Ki=1,Xi=.05,Gi=10,El=300,No="https://vk.com/support?act=new&from=v",Lo=500;var Xe;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ"})(Xe||(Xe={}));var Ni="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z' fill='white'/%3e%3c/svg%3e",Io="data:image/svg+xml,%3csvg height='24' width='24' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath d='M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 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 12zM10.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-.686z' fill='white' fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",Bo="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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.54zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468zM.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 5z' fill='%2370C1FF'/%3e%3c/svg%3e",Ro="data:image/svg+xml,%3csvg width='15' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.516 5h1.107C14.103 5 15 4.065 15 2.5S14.103 0 12.623 0h-1.107C11.191 0 11 .2 11 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM6.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S10 4.802 10 4.464V.54C10 .198 9.809 0 9.484 0s-.516.198-.516.54v1.531H7.032V.54c0-.342-.191-.54-.516-.54S6 .198 6 .54v3.989c0 .338.191.471.516.471z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.338 4.909A3.9 3.9 0 0 1 2.5 5C1.037 5 0 4.135 0 2.553 0 .983 1.037 0 2.5 0 3.96 0 5 .984 5 2.553c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037C3.947 1.517 3.307.9 2.5.9c-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z' fill='%2370C1FF'/%3e%3c/svg%3e",Fo="data:image/svg+xml,%3csvg width='15' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 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.536z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='m2.551 1.052-1.51 2.052h1.51V1.052zM3.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-.9H3.5z' fill='%2370C1FF'/%3e%3c/svg%3e",qo="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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.537z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524z' fill='%2370C1FF'/%3e%3c/svg%3e",Ho="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM4.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.471zm-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 5z' fill='%2370C1FF'/%3e%3c/svg%3e",zl="data:image/svg+xml,%3csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e",Ji="data:image/svg+xml,%3csvg width='12' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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.272L5.773 8z' fill='white'/%3e%3c/svg%3e",Do="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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-.697zm-.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.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z' fill='white'/%3e%3c/svg%3e",jo="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 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 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-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.057 17.057 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-.492z' fill='white'/%3e%3c/svg%3e",Oo="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z' fill='white'/%3e%3c/svg%3e";const Tl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const 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)}}};function Uo(t){_e(t,"v-1f29v8g","ul.v-1f29v8g.v-1f29v8g{margin:0;padding:0}.menu.v-1f29v8g.v-1f29v8g{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.container-mobile.v-1f29v8g.v-1f29v8g{width:100%}.menu-desktop.v-1f29v8g.v-1f29v8g{position:absolute;right:0;bottom:0}.menu-mobile.v-1f29v8g.v-1f29v8g{width:100%;background:var(--videplayer-mobile-settings-bg);font-size:15px;line-height:50px}.hidden.v-1f29v8g.v-1f29v8g{visibility:hidden;opacity:0}.menu-mobile.hidden.v-1f29v8g.v-1f29v8g{display:none}.menu-subList.v-1f29v8g.v-1f29v8g{min-width:134px;padding-bottom:0}.item.v-1f29v8g.v-1f29v8g{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.v-1f29v8g.v-1f29v8g{padding:0 14px}.item-quality.item-mobile.v-1f29v8g.v-1f29v8g{flex-direction:row-reverse}.quality-title-mobile.v-1f29v8g.v-1f29v8g{flex-grow:1}.item.v-1f29v8g.v-1f29v8g:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-1f29v8g.v-1f29v8g:hover{background:var(--videplayer-mobile-settings-bg)}.menu-subList.v-1f29v8g .item.v-1f29v8g{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-1f29v8g .item.v-1f29v8g:last-child{margin-bottom:4px}.menu-icon.v-1f29v8g.v-1f29v8g{margin-right:16px}.menu-title.v-1f29v8g.v-1f29v8g{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-1f29v8g.v-1f29v8g{position:relative;opacity:0.7}.menu-valueIcon.v-1f29v8g.v-1f29v8g{position:absolute;top:10px;margin-left:4px;width:15px}.menu-valueIcon-list.v-1f29v8g.v-1f29v8g{position:absolute;top:12px;width:15px;right:6px}.menu-divider.v-1f29v8g.v-1f29v8g{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-1f29v8g.v-1f29v8g{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.menu-header-back-icon.v-1f29v8g.v-1f29v8g{width:16px;height:24px}.menu-header.v-1f29v8g:hover .menu-header-back-icon.v-1f29v8g{opacity:0.8;transition:opacity 0.2s}.itemIcon.v-1f29v8g.v-1f29v8g{margin-right:auto;opacity:0.9}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar{width:8px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-1f29v8g.v-1f29v8g{overflow-y:auto;max-height:160px;text-align:left}.close.v-1f29v8g.v-1f29v8g{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-1f29v8g.v-1f29v8g:before,.close.v-1f29v8g.v-1f29v8g:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.v-1f29v8g.v-1f29v8g:before{transform:rotate(45deg)}.close.v-1f29v8g.v-1f29v8g:after{transform:rotate(-45deg)}")}function Zi(t,e,i){const n=t.slice();return n[42]=e[i],n}function xi(t,e,i){const n=t.slice();return n[45]=e[i],n}function $i(t){let e,i,n,l,o,s,a,r;return{c(){e=p("div"),i=p("div"),i.textContent="\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",n=T(),l=p("div"),o=T(),s=p("div"),c(l,"class","close v-1f29v8g"),c(e,"class","item menu-header v-1f29v8g"),A(e,"item-mobile",t[0]),c(s,"class","menu-divider v-1f29v8g")},m(u,f){E(u,e,f),m(e,i),m(e,n),m(e,l),E(u,o,f),E(u,s,f),a||(r=oe(l,"click",t[22]),a=!0)},p(u,f){f[0]&1&&A(e,"item-mobile",u[0])},d(u){u&&C(e),u&&C(o),u&&C(s),a=!1,r()}}}function en(t){let e,i;return{c(){e=p("img"),c(e,"class","menu-valueIcon v-1f29v8g"),Se(e.src,i=t[6])||c(e,"src",i),c(e,"alt","")},m(n,l){E(n,e,l)},p(n,l){l[0]&64&&!Se(e.src,i=n[6])&&c(e,"src",i)},d(n){n&&C(e)}}}function tn(t){let e,i,n,l,o,s,a,r,u,f,d;return{c(){e=p("li"),i=p("img"),l=T(),o=p("div"),o.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",s=T(),a=p("div"),r=de(t[10]),u=de("x"),c(i,"class","menu-icon v-1f29v8g"),Se(i.src,n=Io)||c(i,"src",n),c(i,"alt",""),c(o,"class","menu-title v-1f29v8g"),c(a,"class","menu-value v-1f29v8g"),c(e,"class","item v-1f29v8g"),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(w,v){E(w,e,v),m(e,i),m(e,l),m(e,o),m(e,s),m(e,a),m(a,r),m(a,u),f||(d=oe(e,"click",t[26]),f=!0)},p(w,v){v[0]&1024&&Ee(r,w[10]),v[0]&1&&A(e,"item-mobile",w[0])},d(w){w&&C(e),f=!1,d()}}}function nn(t){let e,i,n,l,o,s,a,r,u,f,d,w,v,b,h,z,M,_,P;return{c(){e=p("li"),i=p("img"),l=T(),o=p("div"),o.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",s=T(),a=p("li"),r=p("img"),f=T(),d=p("div"),d.textContent="\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",w=T(),v=p("li"),b=p("img"),z=T(),M=p("div"),M.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(i,"class","menu-icon v-1f29v8g"),Se(i.src,n=Do)||c(i,"src",n),c(i,"alt",""),c(o,"class","menu-title v-1f29v8g"),c(e,"class","item item-mobile v-1f29v8g"),c(e,"role","menuitemradio"),c(e,"tabindex","0"),c(r,"class","menu-icon v-1f29v8g"),Se(r.src,u=jo)||c(r,"src",u),c(r,"alt",""),c(d,"class","menu-title v-1f29v8g"),c(a,"class","item item-mobile v-1f29v8g"),c(a,"role","menuitemradio"),c(a,"tabindex","0"),c(b,"class","menu-icon v-1f29v8g"),Se(b.src,h=Oo)||c(b,"src",h),c(b,"alt",""),c(M,"class","menu-title v-1f29v8g"),c(v,"class","item item-mobile v-1f29v8g"),c(v,"role","menuitemradio"),c(v,"tabindex","0")},m(B,L){E(B,e,L),m(e,i),m(e,l),m(e,o),E(B,s,L),E(B,a,L),m(a,r),m(a,f),m(a,d),E(B,w,L),E(B,v,L),m(v,b),m(v,z),m(v,M),_||(P=[oe(e,"click",t[28]),oe(a,"click",t[29]),oe(v,"click",t[30])],_=!0)},p:I,d(B){B&&C(e),B&&C(s),B&&C(a),B&&C(w),B&&C(v),_=!1,Ze(P)}}}function ln(t){let e,i;return{c(){e=p("img"),c(e,"class","itemIcon v-1f29v8g"),Se(e.src,i=zl)||c(e,"src",i),c(e,"alt","")},m(n,l){E(n,e,l)},p:I,d(n){n&&C(e)}}}function on(t){let e,i;return{c(){e=p("img"),c(e,"class","menu-valueIcon-list v-1f29v8g"),Se(e.src,i=t[31](t[45].value))||c(e,"src",i),c(e,"alt","")},m(n,l){E(n,e,l)},p(n,l){l[0]&2&&!Se(e.src,i=n[31](n[45].value))&&c(e,"src",i)},d(n){n&&C(e)}}}function sn(t){let e,i,n,l=t[45].displayValue+"",o,s,a,r,u,f,d=t[45].selected&&ln(),w=!t[0]&&on(t);function v(){return t[37](t[45])}return{c(){e=p("li"),d&&d.c(),i=T(),n=p("div"),o=de(l),s=T(),w&&w.c(),a=T(),c(n,"class","v-1f29v8g"),A(n,"quality-title-mobile",t[0]),c(e,"class","item item-quality v-1f29v8g"),c(e,"data-value",r=t[45].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(b,h){E(b,e,h),d&&d.m(e,null),m(e,i),m(e,n),m(n,o),m(e,s),w&&w.m(e,null),m(e,a),u||(f=oe(e,"click",v),u=!0)},p(b,h){t=b,t[45].selected?d?d.p(t,h):(d=ln(),d.c(),d.m(e,i)):d&&(d.d(1),d=null),h[0]&2&&l!==(l=t[45].displayValue+"")&&Ee(o,l),h[0]&1&&A(n,"quality-title-mobile",t[0]),t[0]?w&&(w.d(1),w=null):w?w.p(t,h):(w=on(t),w.c(),w.m(e,a)),h[0]&2&&r!==(r=t[45].value)&&c(e,"data-value",r),h[0]&1&&A(e,"item-mobile",t[0])},d(b){b&&C(e),d&&d.d(),w&&w.d(),u=!1,f()}}}function an(t){let e,i;return{c(){e=p("img"),c(e,"class","itemIcon v-1f29v8g"),Se(e.src,i=zl)||c(e,"src",i),c(e,"alt","")},m(n,l){E(n,e,l)},p:I,d(n){n&&C(e)}}}function rn(t){let e,i,n,l=t[42].displayValue+"",o,s,a,r,u,f=t[42].selected&&an();function d(){return t[38](t[42])}return{c(){e=p("li"),f&&f.c(),i=T(),n=p("div"),o=de(l),s=T(),c(n,"class","v-1f29v8g"),A(n,"quality-title-mobile",t[0]),c(e,"class","item item-quality v-1f29v8g"),c(e,"data-value",a=t[42].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(w,v){E(w,e,v),f&&f.m(e,null),m(e,i),m(e,n),m(n,o),m(e,s),r||(u=oe(e,"click",d),r=!0)},p(w,v){t=w,t[42].selected?f?f.p(t,v):(f=an(),f.c(),f.m(e,i)):f&&(f.d(1),f=null),v[0]&2048&&l!==(l=t[42].displayValue+"")&&Ee(o,l),v[0]&1&&A(n,"quality-title-mobile",t[0]),v[0]&2048&&a!==(a=t[42].value)&&c(e,"data-value",a),v[0]&1&&A(e,"item-mobile",t[0])},d(w){w&&C(e),f&&f.d(),r=!1,u()}}}function Qo(t){let e,i,n,l,o,s,a,r,u,f,d,w,v,b,h,z,M,_,P,B,L,F,R,S,q,N,Y,Z,j,U,J,ue,G,D,ie,Ae,ge,he,Qe,pe=t[0]&&$i(t),ne=t[6]&&!t[0]&&en(t),fe=!t[9]&&tn(t),me=t[0]&&nn(t),ye=t[1],K=[];for(let H=0;H<ye.length;H+=1)K[H]=sn(xi(t,ye,H));let ke=t[11],ce=[];for(let H=0;H<ke.length;H+=1)ce[H]=rn(Zi(t,ke,H));return{c(){e=p("div"),i=p("div"),pe&&pe.c(),n=T(),l=p("ul"),o=p("li"),s=p("img"),r=T(),u=p("div"),u.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",f=T(),d=p("div"),w=de(t[7]),v=T(),ne&&ne.c(),b=T(),fe&&fe.c(),h=T(),me&&me.c(),z=T(),M=p("div"),_=p("div"),P=p("img"),L=T(),F=p("div"),F.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",R=T(),S=p("div"),q=T(),N=p("ul");for(let H=0;H<K.length;H+=1)K[H].c();Y=T(),Z=p("div"),j=p("div"),U=p("img"),ue=T(),G=p("div"),G.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",D=T(),ie=p("div"),Ae=T(),ge=p("ul");for(let H=0;H<ce.length;H+=1)ce[H].c();c(s,"class","menu-icon v-1f29v8g"),Se(s.src,a=Ni)||c(s,"src",a),c(s,"alt",""),c(u,"class","menu-title v-1f29v8g"),c(d,"class","menu-value v-1f29v8g"),c(o,"class","item v-1f29v8g"),c(o,"role","menuitemradio"),c(o,"tabindex","0"),A(o,"item-mobile",t[0]),c(l,"class","items v-1f29v8g"),A(l,"items-mobile",t[0]),c(i,"class","menu v-1f29v8g"),c(i,"role","menu"),A(i,"menu-desktop",!t[0]),A(i,"menu-mobile",t[0]),A(i,"hidden",!t[3]),Se(P.src,B=Ji)||c(P,"src",B),c(P,"class","menu-header-back-icon v-1f29v8g"),c(P,"alt",""),c(_,"class","item menu-header v-1f29v8g"),A(_,"item-mobile",t[0]),c(S,"class","menu-divider v-1f29v8g"),c(N,"class","items v-1f29v8g"),c(N,"style",t[8]),A(N,"items-mobile",t[0]),c(M,"class","menu menu-subList v-1f29v8g"),A(M,"menu-desktop",!t[0]),A(M,"menu-mobile",t[0]),A(M,"hidden",!t[4]),Se(U.src,J=Ji)||c(U,"src",J),c(U,"class","menu-header-back-icon v-1f29v8g"),c(U,"alt",""),c(j,"class","item menu-header v-1f29v8g"),A(j,"item-mobile",t[0]),c(ie,"class","menu-divider v-1f29v8g"),c(ge,"class","items v-1f29v8g"),A(ge,"items-mobile",t[0]),c(Z,"class","menu menu-subList v-1f29v8g"),A(Z,"menu-desktop",!t[0]),A(Z,"menu-mobile",t[0]),A(Z,"hidden",!t[5]),c(e,"class","v-1f29v8g"),A(e,"hidden",!t[2]),A(e,"container-mobile",t[0])},m(H,O){E(H,e,O),m(e,i),pe&&pe.m(i,null),m(i,n),m(i,l),m(l,o),m(o,s),m(o,r),m(o,u),m(o,f),m(o,d),m(d,w),m(d,v),ne&&ne.m(d,null),m(l,b),fe&&fe.m(l,null),m(l,h),me&&me.m(l,null),m(e,z),m(e,M),m(M,_),m(_,P),m(_,L),m(_,F),m(M,R),m(M,S),m(M,q),m(M,N);for(let x=0;x<K.length;x+=1)K[x].m(N,null);m(e,Y),m(e,Z),m(Z,j),m(j,U),m(j,ue),m(j,G),m(Z,D),m(Z,ie),m(Z,Ae),m(Z,ge);for(let x=0;x<ce.length;x+=1)ce[x].m(ge,null);he||(Qe=[oe(o,"click",t[23]),oe(_,"click",t[27]),oe(j,"click",t[27])],he=!0)},p(H,O){if(H[0]?pe?pe.p(H,O):(pe=$i(H),pe.c(),pe.m(i,n)):pe&&(pe.d(1),pe=null),O[0]&128&&Ee(w,H[7]),H[6]&&!H[0]?ne?ne.p(H,O):(ne=en(H),ne.c(),ne.m(d,null)):ne&&(ne.d(1),ne=null),O[0]&1&&A(o,"item-mobile",H[0]),H[9]?fe&&(fe.d(1),fe=null):fe?fe.p(H,O):(fe=tn(H),fe.c(),fe.m(l,h)),H[0]?me?me.p(H,O):(me=nn(H),me.c(),me.m(l,null)):me&&(me.d(1),me=null),O[0]&1&&A(l,"items-mobile",H[0]),O[0]&1&&A(i,"menu-desktop",!H[0]),O[0]&1&&A(i,"menu-mobile",H[0]),O[0]&8&&A(i,"hidden",!H[3]),O[0]&1&&A(_,"item-mobile",H[0]),O[0]&16777219|O[1]&1){ye=H[1];let x;for(x=0;x<ye.length;x+=1){const qe=xi(H,ye,x);K[x]?K[x].p(qe,O):(K[x]=sn(qe),K[x].c(),K[x].m(N,null))}for(;x<K.length;x+=1)K[x].d(1);K.length=ye.length}if(O[0]&256&&c(N,"style",H[8]),O[0]&1&&A(N,"items-mobile",H[0]),O[0]&1&&A(M,"menu-desktop",!H[0]),O[0]&1&&A(M,"menu-mobile",H[0]),O[0]&16&&A(M,"hidden",!H[4]),O[0]&1&&A(j,"item-mobile",H[0]),O[0]&33556481){ke=H[11];let x;for(x=0;x<ke.length;x+=1){const qe=Zi(H,ke,x);ce[x]?ce[x].p(qe,O):(ce[x]=rn(qe),ce[x].c(),ce[x].m(ge,null))}for(;x<ce.length;x+=1)ce[x].d(1);ce.length=ke.length}O[0]&1&&A(ge,"items-mobile",H[0]),O[0]&1&&A(Z,"menu-desktop",!H[0]),O[0]&1&&A(Z,"menu-mobile",H[0]),O[0]&32&&A(Z,"hidden",!H[5]),O[0]&4&&A(e,"hidden",!H[2]),O[0]&1&&A(e,"container-mobile",H[0])},i:I,o:I,d(H){H&&C(e),pe&&pe.d(),ne&&ne.d(),fe&&fe.d(),me&&me.d(),Qi(K,H),Qi(ce,H),he=!1,Ze(Qe)}}}function Wo(t,e,i){let n,l,o,s,a,r,u,f,d,w,{supportLink:v}=e;const b=Oe(),h=b.state.currentQuality$;Q(t,h,K=>i(36,r=K));const z=b.state.availableQualities$;Q(t,z,K=>i(1,a=K));const M=b.state.isAutoQualityEnabled$;Q(t,M,K=>i(35,s=K));const _=b.state.currentPlaybackRate$;Q(t,_,K=>i(10,d=K));const P=b.state.availablePlaybackRates$;Q(t,P,K=>i(11,w=K));const B=b.ui.settingsMenuVisible;Q(t,B,K=>i(2,u=K));const L=b.ui.isMobile;Q(t,L,K=>i(0,o=K));const F=b.ui.isFullscreen;Q(t,F,K=>i(34,l=K));const R=b.state.isLive$;Q(t,R,K=>i(9,f=K));const S=b.ui.playerSize;Q(t,S,K=>i(33,n=K));const q=b.ui.debugPanelVisible;let N=!0,Y=!1,Z=!1;function j(){B.set(!1)}function U(){i(3,N=!1),i(4,Y=!0)}function J(K){b.actions.internal.setQuality(K),j()}function ue(K){b.actions.internal.setPlaybackRate(K),j()}function G(){i(3,N=!1),i(5,Z=!0)}function D(){i(3,N=!0),i(4,Y=!1),i(5,Z=!1)}function ie(){window.open(v,"_blank"),j(),b.actions.internal.pause()}function Ae(){Tl(b.actions.internal.getDebugTextData()),j()}function ge(){q.set(!0),j()}function he(K){switch(K){case Ce.VideoQuality.Q_720P:return Bo;case Ce.VideoQuality.Q_1080P:return Ho;case Ce.VideoQuality.Q_1440P:return Ro;case Ce.VideoQuality.Q_2160P:return Fo;case Ce.VideoQuality.Q_4320P:return qo}}function Qe(K,ke,ce){if(!K)return"...";const H=ke.find(x=>x.value===K),O=H?H.displayValue:K;return ce?K===Ce.VideoQuality.INVARIANT?fi:`${fi} ${O}`:O}let pe,ne,fe;const me=K=>J(K.value),ye=K=>ue(K.value);return t.$$set=K=>{"supportLink"in K&&i(32,v=K.supportLink)},t.$$.update=()=>{t.$$.dirty[0]&4&&u&&(i(3,N=!0),i(4,Y=!1),i(5,Z=!1)),t.$$.dirty[1]&32&&i(6,pe=he(r)),t.$$.dirty[0]&2|t.$$.dirty[1]&48&&i(7,ne=Qe(r,a,s)),t.$$.dirty[0]&1|t.$$.dirty[1]&12&&i(8,fe=o&&l?`max-height: ${Math.round(n.height*.6)}px`:"")},[o,a,u,N,Y,Z,pe,ne,fe,f,d,w,h,z,M,_,P,B,L,F,R,S,j,U,J,ue,G,D,ie,Ae,ge,he,v,n,l,s,r,me,ye]}class Nl extends we{constructor(e){super(),be(this,e,Wo,Qo,ve,{supportLink:32},Uo,[-1,-1])}}var Yo="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.516 11h1.107C27.103 11 28 10.066 28 8.5S27.103 6 25.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM19.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S19 6.198 19 6.54v3.989c0 .338.191.472.516.472z' fill='white'/%3e%3c/svg%3e",Ko="data:image/svg+xml,%3csvg width='40' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3cpath d='M15 8.5A5.5 5.5 0 0 1 20.5 3h12a5.5 5.5 0 1 1 0 11h-12A5.5 5.5 0 0 1 15 8.5z' fill='%23689FF8'/%3e%3cpath d='M30.516 11h1.107C33.103 11 34 10.066 34 8.5S33.103 6 31.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM25.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S25 6.198 25 6.54v3.989c0 .338.191.472.516.472z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.338 10.909c-.254.06-.58.091-.838.091-1.463 0-2.5-.865-2.5-2.447C19 6.983 20.037 6 21.5 6c1.46 0 2.5.984 2.5 2.553 0 .863-.274 1.46-.777 1.88l.193.29a.5.5 0 1 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 0 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-.02z' fill='white'/%3e%3c/svg%3e",Xo="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.517 11c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.284.516.284a.491.491 0 0 0 .499-.5c0-.14-.068-.287-.222-.478l-1.47-1.73 1.51-1.425c.13-.137.182-.25.182-.393A.474.474 0 0 0 27.515 6c-.171 0-.301.065-.445.222L25.064 8.25h-.03V6.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.537.516.537z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='m21.551 7.052-1.51 2.052h1.51V7.052zm.949 2.052V6.832c0-.81-1.089-1.14-1.556-.48l-1.805 2.469a.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 1 0 0-.9H22.5z' fill='white'/%3e%3c/svg%3e",Go="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.513 11c.323 0 .513-.198.513-.537v-.97l.49-.516 1.475 1.738c.16.205.302.284.513.284A.49.49 0 0 0 28 10.5c0-.14-.068-.287-.22-.478l-1.486-1.729 1.526-1.425c.129-.137.18-.25.18-.393A.473.473 0 0 0 27.517 6c-.17 0-.299.065-.441.222l-2.02 2.027h-.03V6.54c0-.342-.19-.54-.513-.54S24 6.198 24 6.54v3.923c0 .339.19.537.513.537z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M21 6c-.353 0-.671.057-.952.173a1.493 1.493 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.777l.001.002c.173.224.412.398.712.523.302.125.647.186 1.035.186.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.428 2.428 0 0 0 21 6zm-.573.964c.136-.105.323-.16.573-.16.25 0 .434.055.564.16h.001a.512.512 0 0 1 .203.43c0 .19-.07.333-.203.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.188a.636.636 0 0 1-.234-.523z' fill='white'/%3e%3c/svg%3e",Jo="data:image/svg+xml,%3csvg width='38' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='21' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M28.516 11h1.107C31.103 11 32 10.066 32 8.5S31.103 6 29.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM23.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S23 6.198 23 6.54v3.989c0 .338.191.472.516.472zm-4 0c.325 0 .516-.198.516-.537V9h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407h-1.333V6.854h1.5c.28 0 .468-.16.468-.427 0-.266-.185-.427-.468-.427h-2.016c-.325 0-.516.198-.516.537v3.926c0 .339.191.537.516.537z' fill='white'/%3e%3c/svg%3e";function Zo(t){_e(t,"v-1qf7s4g",".settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}")}function xo(t){let e,i,n,l,o,s,a;return{c(){e=p("div"),i=p("div"),n=p("img"),Se(n.src,l=t[7](t[2],t[1]))||c(n,"src",l),c(n,"alt",""),c(i,"class","settingsButton-icon v-1qf7s4g"),A(i,"mobile",t[1]),c(e,"class",o=yt(t[0])+" v-1qf7s4g"),c(e,"aria-label","\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"),c(e,"tabindex","-1"),c(e,"role","button")},m(r,u){E(r,e,u),m(e,i),m(i,n),s||(a=oe(e,"click",t[6]),s=!0)},p(r,[u]){u&6&&!Se(n.src,l=r[7](r[2],r[1]))&&c(n,"src",l),u&2&&A(i,"mobile",r[1]),u&1&&o!==(o=yt(r[0])+" v-1qf7s4g")&&c(e,"class",o)},i:I,o:I,d(r){r&&C(e),s=!1,a()}}}function $o(t,e,i){let n,l,o,{className:s=""}=e;const a=Oe(),r=a.state.currentQuality$;Q(t,r,v=>i(2,o=v));const u=a.ui.settingsMenuVisible;Q(t,u,v=>i(8,n=v));const f=a.ui.isMobile;Q(t,f,v=>i(1,l=v));function d(){u.set(!n)}function w(v,b){if(b)return Ni;switch(v){case Ce.VideoQuality.Q_720P:return Yo;case Ce.VideoQuality.Q_1080P:return Jo;case Ce.VideoQuality.Q_1440P:return Ko;case Ce.VideoQuality.Q_2160P:return Xo;case Ce.VideoQuality.Q_4320P:return Go;default:return Ni}}return t.$$set=v=>{"className"in v&&i(0,s=v.className)},[s,l,o,r,u,f,d,w]}class Ll extends we{constructor(e){super(),be(this,e,$o,xo,ve,{className:0},Zo)}}const _t=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t);const i=Math.floor(e/(60*60));e-=i*(60*60);const n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(o=>o>9?String(o):`0${o}`).join(":")};function es(t){_e(t,"v-1bjfp5n",".time.v-1bjfp5n{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums}.current.v-1bjfp5n{position:relative}.duration.v-1bjfp5n{opacity:0.7}.duration.v-1bjfp5n:before{content:' / ';white-space:pre}")}function cn(t){let e,i;return{c(){e=p("span"),i=de(t[2]),c(e,"class","duration v-1bjfp5n")},m(n,l){E(n,e,l),m(e,i)},p(n,l){l&4&&Ee(i,n[2])},d(n){n&&C(e)}}}function ts(t){let e,i,n,l,o,s=t[0]&&cn(t);return{c(){e=p("div"),i=p("span"),n=de(t[3]),l=T(),s&&s.c(),c(i,"class","current v-1bjfp5n"),c(e,"class",o="time "+t[1]+" v-1bjfp5n")},m(a,r){E(a,e,r),m(e,i),m(i,n),m(e,l),s&&s.m(e,null)},p(a,[r]){r&8&&Ee(n,a[3]),a[0]?s?s.p(a,r):(s=cn(a),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&2&&o!==(o="time "+a[1]+" v-1bjfp5n")&&c(e,"class",o)},i:I,o:I,d(a){a&&C(e),s&&s.d()}}}function is(t,e,i){let{duration:n}=e,{position:l}=e,{showDuration:o=!0}=e,{className:s=""}=e,a,r;return t.$$set=u=>{"duration"in u&&i(4,n=u.duration),"position"in u&&i(5,l=u.position),"showDuration"in u&&i(0,o=u.showDuration),"className"in u&&i(1,s=u.className)},t.$$.update=()=>{t.$$.dirty&16&&i(2,a=_t(n)),t.$$.dirty&32&&i(3,r=_t(l))},[o,s,a,r,n,l]}class ns extends we{constructor(e){super(),be(this,e,is,ts,ve,{duration:4,position:5,showDuration:0,className:1},es)}}function ls(t){_e(t,"v-mgwd2i",".slider.v-mgwd2i.v-mgwd2i{position:relative;height:var(--videoplayer-slider-height);border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-bg);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.v-mgwd2i.v-mgwd2i{cursor:default}.slider.v-mgwd2i.v-mgwd2i:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--videoplayer-controls-height) - var(--videoplayer-slider-height)) / 2);height:var(--videoplayer-controls-height)}.bars.v-mgwd2i.v-mgwd2i{position:absolute;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);overflow:hidden}.loaded.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-loaded-bg);transition:transform 0.2s}.filled.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background-color:var(--videoplayer-slider-filled-bg)}.slider.square.v-mgwd2i.v-mgwd2i,.slider.square.v-mgwd2i>.bars.v-mgwd2i,.slider.square.v-mgwd2i .loaded.v-mgwd2i,.slider.square.v-mgwd2i .filled.v-mgwd2i{border-radius:unset}.filled.active-live.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.filled.ads.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-ads)}.handleWrap.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%}.handle.v-mgwd2i.v-mgwd2i{position:absolute;width:var(--videoplayer-slider-handle-size);height:var(--videoplayer-slider-handle-size);right:calc(-1 * var(--videoplayer-slider-handle-size) / 2);top:calc((var(--videoplayer-slider-height) - var(--videoplayer-slider-handle-size)) / 2);border-radius:50%;background-color:var(--videoplayer-slider-filled-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.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.slider.v-mgwd2i:hover .handle.v-mgwd2i,.slider-dragging.v-mgwd2i .handle.v-mgwd2i{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-mgwd2i .handle.v-mgwd2i{transform:scale(1.3)}.slider-vertical.v-mgwd2i.v-mgwd2i{position:absolute;left:-26px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.hidden.v-mgwd2i.v-mgwd2i{visibility:hidden;opacity:0}")}function os(t){let e,i,n,l,o,s,a,r,u,f,d,w,v,b;return{c(){e=p("div"),i=p("div"),n=p("div"),o=T(),s=p("div"),r=T(),u=p("div"),f=p("div"),c(n,"class","loaded v-mgwd2i"),c(n,"style",l=`transform: translateX(${t[6]*100}%);`),c(s,"class","filled v-mgwd2i"),c(s,"style",a=`transform: translateX(${t[7]*100}%);`),A(s,"active-live",t[3]),A(s,"ads",t[4]),c(i,"class","bars v-mgwd2i"),c(f,"class","handle v-mgwd2i"),A(f,"active-live",t[3]),c(u,"class","handleWrap v-mgwd2i"),c(u,"style",d=`transform: translateX(${t[8]*100}%);`),A(u,"hidden",t[4]),c(e,"class",w="slider "+t[0]+" v-mgwd2i"),c(e,"aria-label",t[9]),c(e,"aria-valuemin",t[10]),c(e,"aria-valuemax",t[11]),c(e,"aria-valuenow",t[12]),c(e,"aria-valuetext",t[13]),c(e,"role","slider"),c(e,"tabindex","0"),A(e,"slider-dragging",t[15]),A(e,"hidden",t[1]),A(e,"slider-vertical",t[2]),A(e,"no-handle",t[4]),A(e,"square",t[5])},m(h,z){E(h,e,z),m(e,i),m(i,n),m(i,o),m(i,s),m(e,r),m(e,u),m(u,f),t[27](e),v||(b=[oe(e,"pointerdown",zt(t[16])),oe(e,"pointermove",zt(t[17])),oe(e,"pointerup",zt(t[18])),oe(e,"pointerenter",zt(t[19])),oe(e,"pointerleave",zt(t[20]))],v=!0)},p(h,[z]){z&64&&l!==(l=`transform: translateX(${h[6]*100}%);`)&&c(n,"style",l),z&128&&a!==(a=`transform: translateX(${h[7]*100}%);`)&&c(s,"style",a),z&8&&A(s,"active-live",h[3]),z&16&&A(s,"ads",h[4]),z&8&&A(f,"active-live",h[3]),z&256&&d!==(d=`transform: translateX(${h[8]*100}%);`)&&c(u,"style",d),z&16&&A(u,"hidden",h[4]),z&1&&w!==(w="slider "+h[0]+" v-mgwd2i")&&c(e,"class",w),z&512&&c(e,"aria-label",h[9]),z&1024&&c(e,"aria-valuemin",h[10]),z&2048&&c(e,"aria-valuemax",h[11]),z&4096&&c(e,"aria-valuenow",h[12]),z&8192&&c(e,"aria-valuetext",h[13]),z&32769&&A(e,"slider-dragging",h[15]),z&3&&A(e,"hidden",h[1]),z&5&&A(e,"slider-vertical",h[2]),z&17&&A(e,"no-handle",h[4]),z&33&&A(e,"square",h[5])},i:I,o:I,d(h){h&&C(e),t[27](null),v=!1,Ze(b)}}}function ss(t,e,i){let{className:n=""}=e,{isHidden:l=!1}=e,{isVertical:o=!1}=e,{isActiveLive:s=!1}=e,{isAds:a=!1}=e,{squareBorders:r=!1}=e,u,f,{onPointerDown:d=I}=e,{onHandleMove:w=I}=e,{onPointerUp:v=I}=e,{onPointerEnter:b=I}=e,{onPointerMove:h=I}=e,{onPointerLeave:z=I}=e,{loadedProgress:M=0}=e,{filledProgress:_=0}=e,{handleProgress:P=0}=e,{ariaLabel:B=""}=e,{ariaValueMin:L=void 0}=e,{ariaValueMax:F=void 0}=e,{ariaValueNow:R=void 0}=e,{ariaValueText:S=""}=e,q=!1;function N(D){if(q)return;i(15,q=!0),f=u.getBoundingClientRect();const ie=J(D.clientX,D.clientY);d(ie),u.setPointerCapture(D.pointerId)}function Y(D){const ie=J(D.clientX,D.clientY),Ae=ue(D.clientX);h(ie,Ae),q&&w(ie)}function Z(D){if(!q)return;i(15,q=!1);const ie=J(D.clientX,D.clientY);v(ie)}function j(D){f=u.getBoundingClientRect();const ie=J(D.clientX,D.clientY),Ae=ue(D.clientX);b(ie,Ae)}function U(){z()}function J(D,ie){return o?Math.max(0,Math.min(1,(f.height-(ie-f.top))/f.height)):Math.min(Math.max(D-f.x,0),f.width)/f.width}function ue(D){return Math.min(Math.max(D-f.x,0),f.width)}function G(D){Je[D?"unshift":"push"](()=>{u=D,i(14,u)})}return t.$$set=D=>{"className"in D&&i(0,n=D.className),"isHidden"in D&&i(1,l=D.isHidden),"isVertical"in D&&i(2,o=D.isVertical),"isActiveLive"in D&&i(3,s=D.isActiveLive),"isAds"in D&&i(4,a=D.isAds),"squareBorders"in D&&i(5,r=D.squareBorders),"onPointerDown"in D&&i(21,d=D.onPointerDown),"onHandleMove"in D&&i(22,w=D.onHandleMove),"onPointerUp"in D&&i(23,v=D.onPointerUp),"onPointerEnter"in D&&i(24,b=D.onPointerEnter),"onPointerMove"in D&&i(25,h=D.onPointerMove),"onPointerLeave"in D&&i(26,z=D.onPointerLeave),"loadedProgress"in D&&i(6,M=D.loadedProgress),"filledProgress"in D&&i(7,_=D.filledProgress),"handleProgress"in D&&i(8,P=D.handleProgress),"ariaLabel"in D&&i(9,B=D.ariaLabel),"ariaValueMin"in D&&i(10,L=D.ariaValueMin),"ariaValueMax"in D&&i(11,F=D.ariaValueMax),"ariaValueNow"in D&&i(12,R=D.ariaValueNow),"ariaValueText"in D&&i(13,S=D.ariaValueText)},[n,l,o,s,a,r,M,_,P,B,L,F,R,S,u,q,N,Y,Z,j,U,d,w,v,b,h,z,G]}class Ri extends we{constructor(e){super(),be(this,e,ss,os,ve,{className:0,isHidden:1,isVertical:2,isActiveLive:3,isAds:4,squareBorders:5,onPointerDown:21,onHandleMove:22,onPointerUp:23,onPointerEnter:24,onPointerMove:25,onPointerLeave:26,loadedProgress:6,filledProgress:7,handleProgress:8,ariaLabel:9,ariaValueMin:10,ariaValueMax:11,ariaValueNow:12,ariaValueText:13},ls)}}function as(t){_e(t,"v-t7t1oe",".icon.v-t7t1oe.v-t7t1oe{display:block;width:24px;height:24px}.icon.v-t7t1oe .cross.v-t7t1oe{visibility:hidden}.icon[data-value='off'].v-t7t1oe .wave1.v-t7t1oe,.icon[data-value='off'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.icon[data-value='off'].v-t7t1oe .cross.v-t7t1oe{visibility:visible}.icon[data-value='mid'].v-t7t1oe .wave2.v-t7t1oe,.icon[data-value='min'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.volumeBar.v-t7t1oe.v-t7t1oe{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-t7t1oe.v-t7t1oe{padding:0;width:0}")}function rs(t){let e,i,n,l,o,s,a,r,u,f,d,w;return u=new Ri({props:{className:t[0]?"volumeBar-slider-vertical":"",isHidden:t[0]&&!t[1],isVertical:t[0],onPointerDown:t[6],onHandleMove:t[7],onPointerUp:t[8],onPointerEnter:t[0]?t[9]:I,onPointerLeave:t[0]?t[10]:I,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(t[3]*100),ariaValueText:`${Math.round(t[3]*100)}%`,filledProgress:t[3],handleProgress:t[3]}}),{c(){e=p("div"),i=Me("svg"),n=Me("g"),l=Me("path"),o=Me("path"),s=Me("path"),a=T(),r=p("div"),te(u.$$.fragment),c(l,"class","wave2 v-t7t1oe"),c(l,"d","M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032zm3-1.99999997c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0 .2637116.26371158.6207023.73969919.9665078 1.43131016.5167785 1.03355701.842501 2.25503497.8892639 3.71655167-.0467629 1.4032299-.3724854 2.6247079-.8892639 3.6582649-.3458055.6916109-.7027962 1.1675985-.9665078 1.4313101-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.1375896-.1375897.3825507-.4642045.638697-.9764971.4071252-.8142505.6673665-1.7901701.7054825-2.8756411-.038116-1.1437578-.2983573-2.11967743-.7054825-2.93392787-.2561463-.51229266-.5011074-.83890747-.638697-.9764971z"),c(o,"class","wave1 v-t7t1oe"),c(o,"d","M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032z"),c(s,"class","cross v-t7t1oe"),c(s,"d","M20 10.7625631l2.3812816-2.38128153c.3417087-.34170876.8957281-.34170876 1.2374368 0 .3417088.34170875.3417088.89572811 0 1.23743686L21.2374369 12l2.3812815 2.3812816c.3417088.3417087.3417088.8957281 0 1.2374368-.3417087.3417088-.8957281.3417088-1.2374368 0L20 13.2374369l-2.3812816 2.3812815c-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368L18.7625631 12l-2.3812815-2.38128157c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0zm-7.019157 8.060199c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545z"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(i,"xmlns","http://www.w3.org/2000/svg"),c(i,"class","icon v-t7t1oe"),c(i,"data-value",t[2]),c(e,"tabindex","0"),c(e,"role","button"),c(r,"class","volumeBar v-t7t1oe"),A(r,"volumeBar-vertical",t[0])},m(v,b){E(v,e,b),m(e,i),m(i,n),m(n,l),m(n,o),m(n,s),E(v,a,b),E(v,r,b),$(u,r,null),f=!0,d||(w=[oe(e,"mouseenter",function(){He(t[0]?t[11]:I)&&(t[0]?t[11]:I).apply(this,arguments)}),oe(e,"mouseleave",function(){He(t[0]?t[12]:I)&&(t[0]?t[12]:I).apply(this,arguments)}),oe(e,"click",t[15])],d=!0)},p(v,[b]){t=v,(!f||b&4)&&c(i,"data-value",t[2]);const h={};b&1&&(h.className=t[0]?"volumeBar-slider-vertical":""),b&3&&(h.isHidden=t[0]&&!t[1]),b&1&&(h.isVertical=t[0]),b&1&&(h.onPointerEnter=t[0]?t[9]:I),b&1&&(h.onPointerLeave=t[0]?t[10]:I),b&8&&(h.ariaValueNow=Math.round(t[3]*100)),b&8&&(h.ariaValueText=`${Math.round(t[3]*100)}%`),b&8&&(h.filledProgress=t[3]),b&8&&(h.handleProgress=t[3]),u.$set(h),(!f||b&1)&&A(r,"volumeBar-vertical",t[0])},i(v){f||(g(u.$$.fragment,v),f=!0)},o(v){k(u.$$.fragment,v),f=!1},d(v){v&&C(e),v&&C(a),v&&C(r),ee(u),d=!1,Ze(w)}}}function cs(t,e){return e?"off":t>.5?"max":t>.2?"mid":t>0?"min":"off"}function us(t,e,i){let n,l,{isVerticalVolume:o=!1}=e;const s=Oe(),a=s.state.volume$;Q(t,a,q=>i(13,n=q));const r=s.state.muted$;Q(t,r,q=>i(14,l=q));const u=s.actions.internal.setVolume;let f=!1,d,w,v,b=1,h=!1;function z(q){b=n,u(q)}function M(q){u(q)}function _(q){const N=q;u(N,N===0?b:N)}function P(){h=!0}function B(){h=!1,R()}function L(){clearTimeout(d),i(1,f=!0)}function F(){R()}function R(){d=window.setTimeout(()=>{h||i(1,f=!1)},zo)}function S(q){it.call(this,t,q)}return t.$$set=q=>{"isVerticalVolume"in q&&i(0,o=q.isVerticalVolume)},t.$$.update=()=>{t.$$.dirty&24576&&i(2,w=cs(n,l)),t.$$.dirty&24576&&i(3,v=l?0:n)},[o,f,w,v,a,r,z,M,_,P,B,L,F,n,l,S]}class ds extends we{constructor(e){super(),be(this,e,us,rs,ve,{isVerticalVolume:0},as)}}function fs(t){_e(t,"v-1fkqq1h",".container.v-1fkqq1h{display:flex;align-items:center;height:100%;transition:var(--videoplayer-button-hover-transition);will-change:opacity;cursor:pointer;-webkit-tap-highlight-color:transparent}.container.v-1fkqq1h:hover{opacity:0.8}.disabled.v-1fkqq1h{pointer-events:none}")}function ms(t){let e,i,n;const l=t[3].default,o=oo(l,t,t[2],null);return{c(){e=p("div"),o&&o.c(),c(e,"class",i="container "+t[0]+" v-1fkqq1h"),A(e,"disabled",t[1])},m(s,a){E(s,e,a),o&&o.m(e,null),n=!0},p(s,[a]){o&&o.p&&(!n||a&4)&&ao(o,l,s,s[2],n?so(l,s[2],a,null):ro(s[2]),null),(!n||a&1&&i!==(i="container "+s[0]+" v-1fkqq1h"))&&c(e,"class",i),(!n||a&3)&&A(e,"disabled",s[1])},i(s){n||(g(o,s),n=!0)},o(s){k(o,s),n=!1},d(s){s&&C(e),o&&o.d(s)}}}function vs(t,e,i){let{$$slots:n={},$$scope:l}=e,{className:o=""}=e,{disabled:s=!1}=e;return t.$$set=a=>{"className"in a&&i(0,o=a.className),"disabled"in a&&i(1,s=a.disabled),"$$scope"in a&&i(2,l=a.$$scope)},[o,s,l,n]}class ft extends we{constructor(e){super(),be(this,e,vs,ms,ve,{className:0,disabled:1},fs)}}function gs(t){_e(t,"v-daygaf",".icon.v-daygaf{display:block;width:24px;height:24px}")}function hs(t){let e;return{c(){e=Me("path"),c(e,"class","_enter"),c(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(i,n){E(i,e,n)},d(i){i&&C(e)}}}function ps(t){let e;return{c(){e=Me("path"),c(e,"class","_exit"),c(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(i,n){E(i,e,n)},d(i){i&&C(e)}}}function bs(t){let e,i,n,l,o;function s(u,f){return u[0]?ps:hs}let a=s(t),r=a(t);return{c(){e=p("div"),i=Me("svg"),n=Me("g"),r.c(),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(i,"class","icon v-daygaf"),c(i,"xmlns","http://www.w3.org/2000/svg"),c(e,"role","button"),c(e,"tabindex","0")},m(u,f){E(u,e,f),m(e,i),m(i,n),r.m(n,null),l||(o=oe(e,"click",t[2]),l=!0)},p(u,[f]){a!==(a=s(u))&&(r.d(1),r=a(u),r&&(r.c(),r.m(n,null)))},i:I,o:I,d(u){u&&C(e),r.d(),l=!1,o()}}}function ws(t,e,i){let n;const o=Oe().ui.isFullscreen;Q(t,o,a=>i(0,n=a));function s(a){it.call(this,t,a)}return[n,o,s]}class _s extends we{constructor(e){super(),be(this,e,ws,bs,ve,{},gs)}}var Li="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e",un="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e",ys="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6v3.096z' fill='white'/%3e%3c/svg%3e";function wt(t,e,i,n){function l(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function a(f){try{u(n.next(f))}catch(d){s(d)}}function r(f){try{u(n.throw(f))}catch(d){s(d)}}function u(f){f.done?o(f.value):l(f.value).then(a,r)}u((n=n.apply(t,e||[])).next())})}class Il{constructor(){this.isRequested=!1,this.videoElement=void 0,this.externalEventHandlers={},this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:_l(this.onResize.bind(this),El)}}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}revealPictureInPicture(){return wt(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}hidePictureInPicture(){return wt(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.remove(),this.registryEventHandlers())})}request(){var e;return wt(this,void 0,void 0,function*(){if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return wt(this,void 0,void 0,function*(){!this.isSupported()||!this.isActive||(yield document.exitPictureInPicture())})}updateVideoElement(e){this.isSupported()&&(this.videoElement=e)}registryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Object.assign({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}onEnterPictureInPicture(e){var i,n;this.isRequested=!0,e.pictureInPictureWindow.addEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(i,e)}onLeavePictureInPicture(e){var i,n;this.isRequested=!1,e.pictureInPictureWindow.removeEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(i,e)}onResize(e){var i,n;(n=(i=this.externalEventHandlers).resize)===null||n===void 0||n.call(i,e)}}const ks=460,Ps=280;class Vs{isSupported(){return"documentPictureInPicture"in window}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}request(){var e,i;return wt(this,void 0,void 0,function*(){!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot||(this.pipWindow=yield documentPictureInPicture.requestWindow({width:ks,height:Ps,copyStyleSheets:!0}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(this.playerDomElement),(i=this.pipWindow)===null||i===void 0||i.addEventListener("unload",n=>{!this.playerDomElement||!this.playerParentShadowRoot||this.playerParentShadowRoot.append(this.playerDomElement)}))})}remove(){return wt(this,void 0,void 0,function*(){return new Promise(e=>{documentPictureInPicture.window.close(),e()})})}}var ei;(function(t){t.AUTO="auto"})(ei||(ei={}));var Ve;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed"})(Ve||(Ve={}));var dt;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(dt||(dt={}));var Fe;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Fe||(Fe={}));function Ii(t){return t instanceof Il}function Ss(t){return t instanceof Vs}function As(t){_e(t,"v-1kcq5gq",".container-mobile.v-1kcq5gq{width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center;position:relative}.icon.v-1kcq5gq{display:block;width:24px;height:24px}.icon-mobile.v-1kcq5gq{position:relative;width:48px;height:48px}.icon-background-mobile.v-1kcq5gq{position:absolute;top:0;left:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);width:100%;height:100%}")}function Cs(t){let e,i,n,l,o,s;return{c(){e=p("div"),i=p("img"),Se(i.src,n=t[2])||c(i,"src",n),c(i,"class","icon v-1kcq5gq"),c(i,"alt",""),c(e,"class",l=yt(t[0])+" v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(a,r){E(a,e,r),m(e,i),o||(s=oe(e,"click",function(){He(t[1])&&t[1].apply(this,arguments)}),o=!0)},p(a,r){t=a,r&4&&!Se(i.src,n=t[2])&&c(i,"src",n),r&1&&l!==(l=yt(t[0])+" v-1kcq5gq")&&c(e,"class",l)},d(a){a&&C(e),o=!1,s()}}}function Ms(t){let e,i,n,l,o,s,a;return{c(){e=p("div"),i=p("div"),n=T(),l=p("img"),c(i,"class","icon-background-mobile v-1kcq5gq"),Se(l.src,o=t[2])||c(l,"src",o),c(l,"class","icon-mobile v-1kcq5gq"),c(l,"alt",""),c(e,"class","container-mobile v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(r,u){E(r,e,u),m(e,i),m(e,n),m(e,l),s||(a=oe(e,"click",function(){He(t[1])&&t[1].apply(this,arguments)}),s=!0)},p(r,u){t=r,u&4&&!Se(l.src,o=t[2])&&c(l,"src",o)},d(r){r&&C(e),s=!1,a()}}}function Es(t){let e;function i(o,s){return o[3]?Ms:Cs}let n=i(t),l=n(t);return{c(){l.c(),e=$e()},m(o,s){l.m(o,s),E(o,e,s)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:I,o:I,d(o){l.d(o),o&&C(e)}}}function zs(t,e,i){let n,l,o,{isEnded:s}=e,{isAds:a}=e,{playbackState:r}=e,{adPlaybackState:u}=e,{className:f=""}=e,{handlePlayClick:d}=e,{repeatPlaylist:w}=e,{isOneVideoPlaylist:v}=e;const h=Oe().ui.isMobile;Q(t,h,_=>i(3,o=_));function z(_,P){return P?ys:_===Ce.PlaybackState.PLAYING?un:Li}function M(_){return _===Fe.PLAYING?un:Li}return t.$$set=_=>{"isEnded"in _&&i(5,s=_.isEnded),"isAds"in _&&i(6,a=_.isAds),"playbackState"in _&&i(7,r=_.playbackState),"adPlaybackState"in _&&i(8,u=_.adPlaybackState),"className"in _&&i(0,f=_.className),"handlePlayClick"in _&&i(9,d=_.handlePlayClick),"repeatPlaylist"in _&&i(10,w=_.repeatPlaylist),"isOneVideoPlaylist"in _&&i(11,v=_.isOneVideoPlaylist)},t.$$.update=()=>{t.$$.dirty&480&&i(2,n=a?M(u):z(r,s)),t.$$.dirty&3680&&i(1,l=!a&&s&&!v?w:d)},[f,l,n,o,h,s,a,r,u,d,w,v]}class Fi extends we{constructor(e){super(),be(this,e,zs,Es,ve,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},As)}}var Bl="data:image/svg+xml,%3csvg width='26' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e";function Ts(t){_e(t,"v-1tmb7ku",".container-mobile-prev.v-1tmb7ku{margin-right:12px}.container-mobile-next.v-1tmb7ku{margin-right:12px}.disabled.v-1tmb7ku{opacity:0.4;pointer-events:none}.icon.v-1tmb7ku{display:block;height:24px}.icon-mobile.v-1tmb7ku{height:32px}.icon-prev.v-1tmb7ku{transform:scaleX(-1)}")}function Ns(t){let e,i,n,l,o;return{c(){e=p("div"),i=p("img"),c(i,"class","icon v-1tmb7ku"),Se(i.src,n=Bl)||c(i,"src",n),c(i,"alt",""),A(i,"icon-prev",t[1]==="prev"),c(e,"role","button"),c(e,"tabindex","0"),c(e,"class","v-1tmb7ku"),A(e,"disabled",t[0])},m(s,a){E(s,e,a),m(e,i),l||(o=oe(e,"click",t[5]),l=!0)},p(s,a){a&2&&A(i,"icon-prev",s[1]==="prev"),a&1&&A(e,"disabled",s[0])},d(s){s&&C(e),l=!1,o()}}}function Ls(t){let e,i,n,l,o;return{c(){e=p("div"),i=p("img"),c(i,"class","icon-mobile v-1tmb7ku"),Se(i.src,n=Bl)||c(i,"src",n),c(i,"alt",""),A(i,"icon-prev",t[1]==="prev"),c(e,"role","button"),c(e,"tabindex","0"),c(e,"class","v-1tmb7ku"),A(e,"container-mobile-prev",t[1]==="prev"),A(e,"container-mobile-next",t[1]==="next"),A(e,"disabled",t[0])},m(s,a){E(s,e,a),m(e,i),l||(o=oe(e,"click",t[4]),l=!0)},p(s,a){a&2&&A(i,"icon-prev",s[1]==="prev"),a&2&&A(e,"container-mobile-prev",s[1]==="prev"),a&2&&A(e,"container-mobile-next",s[1]==="next"),a&1&&A(e,"disabled",s[0])},d(s){s&&C(e),l=!1,o()}}}function Is(t){let e;function i(o,s){return o[2]?Ls:Ns}let n=i(t),l=n(t);return{c(){l.c(),e=$e()},m(o,s){l.m(o,s),E(o,e,s)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:I,o:I,d(o){l.d(o),o&&C(e)}}}function Bs(t,e,i){let n,{disabled:l=!1}=e,{type:o}=e;const a=Oe().ui.isMobile;Q(t,a,f=>i(2,n=f));function r(f){it.call(this,t,f)}function u(f){it.call(this,t,f)}return t.$$set=f=>{"disabled"in f&&i(0,l=f.disabled),"type"in f&&i(1,o=f.type)},[l,o,n,a,r,u]}class hi extends we{constructor(e){super(),be(this,e,Bs,Is,ve,{disabled:0,type:1},Ts)}}var Rl="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.265zM6 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.197H6z' fill='white'/%3e%3c/svg%3e";function Rs(t){_e(t,"v-j4644b",".no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}")}function Fs(t){let e,i;return{c(){e=p("img"),Se(e.src,i=Rl)||c(e,"src",i),c(e,"class","icon v-j4644b"),c(e,"alt","")},m(n,l){E(n,e,l)},p:I,d(n){n&&C(e)}}}function qs(t){let e,i,n,l,o;return{c(){e=p("a"),i=p("img"),Se(i.src,n=Rl)||c(i,"src",n),c(i,"class","icon v-j4644b"),c(i,"alt",""),c(e,"href","https://vk.com/video"),c(e,"target","_blank"),c(e,"rel","noreferrer")},m(s,a){E(s,e,a),m(e,i),l||(o=oe(e,"click",t[2]),l=!0)},p:I,d(s){s&&C(e),l=!1,o()}}}function Hs(t){let e,i;function n(s,a){return s[1]?qs:Fs}let l=n(t),o=l(t);return{c(){e=p("div"),o.c(),c(e,"class",i=yt(t[0])+" v-j4644b"),c(e,"role","button"),c(e,"tabindex","0"),A(e,"no-hover",!t[1])},m(s,a){E(s,e,a),o.m(e,null)},p(s,[a]){l===(l=n(s))&&o?o.p(s,a):(o.d(1),o=l(s),o&&(o.c(),o.m(e,null))),a&1&&i!==(i=yt(s[0])+" v-j4644b")&&c(e,"class",i),a&3&&A(e,"no-hover",!s[1])},i:I,o:I,d(s){s&&C(e),o.d()}}}function Ds(t,e,i){let{className:n=""}=e,{logoClickable:l=!1}=e;function o(s){it.call(this,t,s)}return t.$$set=s=>{"className"in s&&i(0,n=s.className),"logoClickable"in s&&i(1,l=s.logoClickable)},[n,l,o]}class Fl extends we{constructor(e){super(),be(this,e,Ds,Hs,ve,{className:0,logoClickable:1},Rs)}}function js(t){_e(t,"v-1gdbwrb",".icon.v-1gdbwrb{display:block;width:24px;height:24px}.wave.v-1gdbwrb{animation-duration:1s;animation-iteration-count:infinite}.wave1.v-1gdbwrb{animation-name:v-1gdbwrb-wave1}.wave2.v-1gdbwrb{animation-name:v-1gdbwrb-wave2}.wave3.v-1gdbwrb{animation-name:v-1gdbwrb-wave3}@keyframes v-1gdbwrb-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function dn(t){let e,i,n,l;function o(r,u){if(r[1]===Ce.ChromecastState.AVAILABLE)return Qs;if(r[1]===Ce.ChromecastState.CONNECTED)return Us;if(r[1]===Ce.ChromecastState.CONNECTING)return Os}let s=o(t),a=s&&s(t);return{c(){e=p("div"),a&&a.c(),c(e,"class",i=yt(t[0])+" v-1gdbwrb"),c(e,"role","button"),c(e,"tabindex","0")},m(r,u){E(r,e,u),a&&a.m(e,null),n||(l=oe(e,"click",t[4]),n=!0)},p(r,u){s!==(s=o(r))&&(a&&a.d(1),a=s&&s(r),a&&(a.c(),a.m(e,null))),u&1&&i!==(i=yt(r[0])+" v-1gdbwrb")&&c(e,"class",i)},d(r){r&&C(e),a&&a.d(),n=!1,l()}}}function Os(t){let e,i,n,l,o,s,a;return{c(){e=Me("svg"),i=Me("g"),n=Me("path"),l=Me("path"),o=Me("path"),s=Me("path"),a=Me("path"),c(n,"class","wave wave1 v-1gdbwrb"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"opacity",".3"),c(n,"fill","#fff"),c(l,"class","wave wave2 v-1gdbwrb"),c(l,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(l,"opacity",".3"),c(l,"fill","#fff"),c(o,"class","wave wave3 v-1gdbwrb"),c(o,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(o,"opacity",".3"),c(o,"fill","#fff"),c(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(s,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(r,u){E(r,e,u),m(e,i),m(i,n),m(i,l),m(i,o),m(i,s),m(i,a)},d(r){r&&C(e)}}}function Us(t){let e,i,n,l;return{c(){e=Me("svg"),i=Me("g"),n=Me("path"),l=Me("path"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2a9 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"),c(n,"fill","#fff"),c(l,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){E(o,e,s),m(e,i),m(i,n),m(i,l)},d(o){o&&C(e)}}}function Qs(t){let e,i,n,l;return{c(){e=Me("svg"),i=Me("g"),n=Me("path"),l=Me("path"),c(n,"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"),c(n,"fill","#fff"),c(l,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){E(o,e,s),m(e,i),m(i,n),m(i,l)},d(o){o&&C(e)}}}function Ws(t){let e,i=t[1]!==Ce.ChromecastState.NOT_AVAILABLE&&dn(t);return{c(){i&&i.c(),e=$e()},m(n,l){i&&i.m(n,l),E(n,e,l)},p(n,[l]){n[1]!==Ce.ChromecastState.NOT_AVAILABLE?i?i.p(n,l):(i=dn(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:I,o:I,d(n){i&&i.d(n),n&&C(e)}}}function Ys(t,e,i){let n,{className:l=""}=e;const s=Oe().state.chromecastState$;Q(t,s,u=>i(3,n=u));let a;function r(u){it.call(this,t,u)}return t.$$set=u=>{"className"in u&&i(0,l=u.className)},t.$$.update=()=>{t.$$.dirty&8&&i(1,a=n)},[l,a,s,n,r]}class Ks extends we{constructor(e){super(),be(this,e,Ys,Ws,ve,{className:0},js)}}var Xs="data:image/svg+xml,%3csvg viewBox='0 0 42 20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 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.52 3.52 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.52 3.52 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.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z' fill='none' stroke='white' stroke-width='2'/%3e%3cpath 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.49.49 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.49.49 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.89.89 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.89.89 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-.9z' fill='%23f0f2f5' fill-rule='evenodd'/%3e%3c/svg%3e",Gs="data:image/svg+xml,%3csvg width='42' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='42' height='20' rx='5' fill='%23FF3347'/%3e%3cpath fill-rule='evenodd' clip-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-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-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-2h-4zm-8.325 9.31-2.55-7.824a.993.993 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.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z' fill='%23F2F3F5'/%3e%3c/svg%3e";function Js(t){_e(t,"v-rwtbzf",".icon.v-rwtbzf{display:block;width:42px;height:20px}")}function Zs(t){let e,i,n,l,o;return{c(){e=p("div"),i=p("img"),Se(i.src,n=t[0])||c(i,"src",n),c(i,"class","icon v-rwtbzf"),c(i,"alt",""),c(e,"role","button"),c(e,"tabindex","0")},m(s,a){E(s,e,a),m(e,i),l||(o=oe(e,"click",t[2]),l=!0)},p(s,[a]){a&1&&!Se(i.src,n=s[0])&&c(i,"src",n)},i:I,o:I,d(s){s&&C(e),l=!1,o()}}}function xs(t,e,i){let{isActiveLive:n=!1}=e,l="";function o(s){it.call(this,t,s)}return t.$$set=s=>{"isActiveLive"in s&&i(1,n=s.isActiveLive)},t.$$.update=()=>{t.$$.dirty&2&&i(0,l=n?Gs:Xs)},[l,n,o]}class $s extends we{constructor(e){super(),be(this,e,xs,Zs,ve,{isActiveLive:1},Js)}}var fn="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath fill='white' 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.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z'/%3e%3c/g%3e%3c/svg%3e",mn="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath fill='white' fill-rule='nonzero' d='M21.657 17.657a.9.9 0 1 1-1.273-1.273 6.2 6.2 0 0 0 0-8.768.9.9 0 1 1 1.273-1.273 8 8 0 0 1 0 11.314ZM19.11 15.11a.9.9 0 0 1-1.273-1.273 2.6 2.6 0 0 0 0-3.676.9.9 0 1 1 1.273-1.273 4.4 4.4 0 0 1 0 6.222ZM5 15a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l5.514-5.307A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5Z'/%3e%3c/g%3e%3c/svg%3e";function ea(t){_e(t,"v-dsbe5p",".container.v-dsbe5p{display:flex;height:32px;align-items:center;padding:0 8px}.expanded.v-dsbe5p{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.icon.v-dsbe5p{width:24px;height:24px}.text.v-dsbe5p{font-size:15px;margin-left:8px}")}function vn(t){let e;return{c(){e=p("span"),e.textContent="\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",c(e,"class","text v-dsbe5p")},m(i,n){E(i,e,n)},d(i){i&&C(e)}}}function ta(t){let e,i,n,l,o,s,a=t[0]&&vn();return{c(){e=p("div"),i=p("img"),l=T(),a&&a.c(),Se(i.src,n=t[0]?mn:fn)||c(i,"src",n),c(i,"class","icon v-dsbe5p"),c(i,"alt",""),c(e,"class","container v-dsbe5p"),A(e,"expanded",t[0])},m(r,u){E(r,e,u),m(e,i),m(e,l),a&&a.m(e,null),o||(s=oe(e,"click",t[1]),o=!0)},p(r,[u]){u&1&&!Se(i.src,n=r[0]?mn:fn)&&c(i,"src",n),r[0]?a||(a=vn(),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&A(e,"expanded",r[0])},i:I,o:I,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function ia(t,e,i){let{expanded:n=!1}=e;function l(o){it.call(this,t,o)}return t.$$set=o=>{"expanded"in o&&i(0,n=o.expanded)},[n,l]}class ql extends we{constructor(e){super(),be(this,e,ia,ta,ve,{expanded:0},ea)}}function na(t){_e(t,"v-1bwjmdb",'.tooltip-wrapper.v-1bwjmdb{position:relative;display:block}.tooltip.v-1bwjmdb{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.tooltip.v-1bwjmdb: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)}.content.v-1bwjmdb{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1bwjmdb{opacity:1;visibility:visible}')}function la(t){let e,i,n,l,o;return{c(){e=p("div"),i=p("div"),n=p("div"),l=de(t[0]),c(n,"class","content v-1bwjmdb"),c(i,"class","tooltip v-1bwjmdb"),A(i,"active",t[1]),c(e,"class","tooltip-wrapper v-1bwjmdb"),c(e,"style",o=`transform: translate(${t[2]}px, ${t[3]}px);`)},m(s,a){E(s,e,a),m(e,i),m(i,n),m(n,l)},p(s,[a]){a&1&&Ee(l,s[0]),a&2&&A(i,"active",s[1]),a&12&&o!==(o=`transform: translate(${s[2]}px, ${s[3]}px);`)&&c(e,"style",o)},i:I,o:I,d(s){s&&C(e)}}}function oa(t,e,i){let{content:n=""}=e,{active:l=!1}=e,{translateXPx:o=0}=e,{translateYPx:s=0}=e;return t.$$set=a=>{"content"in a&&i(0,n=a.content),"active"in a&&i(1,l=a.active),"translateXPx"in a&&i(2,o=a.translateXPx),"translateYPx"in a&&i(3,s=a.translateYPx)},[n,l,o,s]}class sa extends we{constructor(e){super(),be(this,e,oa,la,ve,{content:0,active:1,translateXPx:2,translateYPx:3},na)}}function gn(t){let e,i;return e=new sa({props:{content:t[5],active:t[4],translateXPx:t[6],translateYPx:-16}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&32&&(o.content=n[5]),l&16&&(o.active=n[4]),l&64&&(o.translateXPx=n[6]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function aa(t){let e,i,n,l=(!t[8]||t[8]&&t[7])&&gn(t);return i=new Ri({props:{isActiveLive:t[9],ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:`${t[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${t[1]})`,loadedProgress:t[10],filledProgress:t[3],handleProgress:t[3],onPointerDown:t[17],onHandleMove:t[18],onPointerMove:t[21],onPointerUp:t[19],onPointerEnter:t[20],onPointerLeave:t[22]}}),{c(){l&&l.c(),e=T(),te(i.$$.fragment)},m(o,s){l&&l.m(o,s),E(o,e,s),$(i,o,s),n=!0},p(o,[s]){!o[8]||o[8]&&o[7]?l?(l.p(o,s),s&384&&g(l,1)):(l=gn(o),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(se(),k(l,1,1,()=>{l=null}),ae());const a={};s&512&&(a.isActiveLive=o[9]),s&1&&(a.ariaValueMax=o[0]),s&8&&(a.ariaValueNow=Math.round(o[3]*100)),s&6&&(a.ariaValueText=`${o[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${o[1]})`),s&1024&&(a.loadedProgress=o[10]),s&8&&(a.filledProgress=o[3]),s&8&&(a.handleProgress=o[3]),i.$set(a)},i(o){n||(g(l),g(i.$$.fragment,o),n=!0)},o(o){k(l),k(i.$$.fragment,o),n=!1},d(o){l&&l.d(o),o&&C(e),ee(i,o)}}}function ra(t,e,i){let n,l,o,s,a,r;const u=Oe(),f=u.state.bufferedProgress$;Q(t,f,U=>i(10,r=U));const d=u.state.positionWithScrubbing$;Q(t,d,U=>i(23,o=U));const w=u.state.duration$;Q(t,w,U=>i(0,l=U));const v=u.state.isLive$;Q(t,v,U=>i(7,n=U));const b=u.state.isActiveLive$;Q(t,b,U=>i(9,a=U));const h=u.ui.isMobile;Q(t,h,U=>i(8,s=U));let z,M,_,P=!1,B="",L=0;function F(U){u.actions.internal.startScrubbing(U)}function R(U){u.actions.internal.progressScrubbing(U)}function S(U){u.actions.internal.completeScrubbing(U)}function q(U,J){Z(U,J),i(4,P=!0)}function N(U,J){Z(U,J)}function Y(){i(4,P=!1)}function Z(U,J){i(6,L=J),i(5,B=j(U))}function j(U){const J=_t((n?1-U:U)*l);return n?`-${J}`:J}return t.$$.update=()=>{t.$$.dirty&1&&i(1,z=_t(l)),t.$$.dirty&8388608&&i(2,M=_t(o)),t.$$.dirty&8388609&&i(3,_=o/l)},[l,z,M,_,P,B,L,n,s,a,r,f,d,w,v,b,h,F,R,S,q,N,Y,o]}let ca=class extends we{constructor(e){super(),be(this,e,ra,aa,ve,{})}};function ua(t){let e,i;return e=new Ri({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:`${t[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${t[1]})`,filledProgress:t[3],isAds:!0,squareBorders:t[4]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,[l]){const o={};l&1&&(o.ariaValueMax=n[0]),l&8&&(o.ariaValueNow=Math.round(n[3]*100)),l&6&&(o.ariaValueText=`${n[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${n[1]})`),l&8&&(o.filledProgress=n[3]),l&16&&(o.squareBorders=n[4]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function da(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=Oe().ui.isMobile;Q(t,a,d=>i(4,n=d));let r,u,f;return t.$$set=d=>{"position"in d&&i(6,l=d.position),"duration"in d&&i(0,o=d.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,r=_t(o)),t.$$.dirty&64&&i(2,u=_t(l)),t.$$.dirty&65&&i(3,f=l/o)},[o,r,u,f,n,a,l]}class Hl extends we{constructor(e){super(),be(this,e,da,ua,ve,{position:6,duration:0})}}function fa(t){_e(t,"v-17msmwz",".timeline.v-17msmwz{display:flex;align-items:center;width:100%;min-width:86px;margin:0 6px}.timeline-stub.v-17msmwz{width:100%;min-width:20px}")}function ma(t){let e;return{c(){e=p("div"),c(e,"class","timeline-stub v-17msmwz")},m(i,n){E(i,e,n)},p:I,i:I,o:I,d(i){i&&C(e)}}}function va(t){let e,i,n,l,o;const s=[ha,ga],a=[];function r(u,f){return u[0]?0:1}return i=r(t),n=a[i]=s[i](t),{c(){e=p("div"),n.c(),c(e,"class",l="timeline "+t[1]+" v-17msmwz")},m(u,f){E(u,e,f),a[i].m(e,null),o=!0},p(u,f){let d=i;i=r(u),i===d?a[i].p(u,f):(se(),k(a[d],1,1,()=>{a[d]=null}),ae(),n=a[i],n?n.p(u,f):(n=a[i]=s[i](u),n.c()),g(n,1),n.m(e,null)),(!o||f&2&&l!==(l="timeline "+u[1]+" v-17msmwz"))&&c(e,"class",l)},i(u){o||(g(n),o=!0)},o(u){k(n),o=!1},d(u){u&&C(e),a[i].d()}}}function ga(t){let e,i;return e=new ca({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ha(t){let e,i;return e=new Hl({props:{position:t[3],duration:t[4]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&8&&(o.position=n[3]),l&16&&(o.duration=n[4]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function pa(t){let e,i,n,l;const o=[va,ma],s=[];function a(r,u){return r[2]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=$e()},m(r,u){s[e].m(r,u),E(r,n,u),l=!0},p(r,[u]){let f=e;e=a(r),e===f?s[e].p(r,u):(se(),k(s[f],1,1,()=>{s[f]=null}),ae(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),g(i,1),i.m(n.parentNode,n))},i(r){l||(g(i),l=!0)},o(r){k(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function ba(t,e,i){let n,l,o,{isAds:s=!1}=e,{canRewindLive:a}=e,{isHidden:r=!1}=e,{className:u=""}=e;const f=Oe(),d=f.state.isLive$;Q(t,d,h=>i(10,n=h));const w=f.ads.duration;Q(t,w,h=>i(4,o=h));const v=f.ads.position;Q(t,v,h=>i(3,l=h));let b;return t.$$set=h=>{"isAds"in h&&i(0,s=h.isAds),"canRewindLive"in h&&i(8,a=h.canRewindLive),"isHidden"in h&&i(9,r=h.isHidden),"className"in h&&i(1,u=h.className)},t.$$.update=()=>{t.$$.dirty&1793&&i(2,b=!r&&(!n||n&&a||s))},[s,u,b,l,o,d,w,v,a,r,n]}class Dl extends we{constructor(e){super(),be(this,e,ba,pa,ve,{isAds:0,canRewindLive:8,isHidden:9,className:1},fa)}}function wa(t){_e(t,"v-1qfxnal",`.wrapper-bottom.v-1qfxnal.v-1qfxnal{position:absolute;width:100%;bottom:0;left:0;height:var(--videoplayer-controls-gradient-height);background:linear-gradient(
6
+ "use strict";var Ve=require("@vkontakte/videoplayer-core/es2015.cjs.js"),Do=require("lodash/debounce.js"),de=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),Rn=require("@vkontakte/videoplayer-statistics/es2015.cjs.js"),$r=require("lodash/cloneDeepWith.js");function B(){}function es(t,e){for(const i in e)t[i]=e[i];return t}function Ho(t){return t()}function Bn(){return Object.create(null)}function lt(t){t.forEach(Ho)}function Ue(t){return typeof t=="function"}function me(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Ei;function Ee(t,e){return Ei||(Ei=document.createElement("a")),Ei.href=e,t===Ei.href}function ts(t){return Object.keys(t).length===0}function Vn(t,...e){if(t==null)return B;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Oe(t){let e;return Vn(t,i=>e=i)(),e}function Q(t,e,i){t.$$.on_destroy.push(Vn(e,i))}function is(t,e,i,n){if(t){const l=qo(t,e,i,n);return t[0](l)}}function qo(t,e,i,n){return t[1]&&n?es(i.ctx.slice(),t[1](n(e))):i.ctx}function ns(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const o=[],r=Math.max(e.dirty.length,l.length);for(let s=0;s<r;s+=1)o[s]=e.dirty[s]|l[s];return o}return e.dirty|l}return e.dirty}function ls(t,e,i,n,l,o){if(l){const r=qo(e,i,n,o);t.p(r,l)}}function os(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function Nt(t){return t==null?"":t}function v(t,e){t.appendChild(e)}function Se(t,e,i){const n=rs(t);if(!n.getElementById(e)){const l=g("style");l.id=e,l.textContent=i,ss(n,l)}}function rs(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function ss(t,e){return v(t.head||t,e),e.sheet}function M(t,e,i){t.insertBefore(e,i||null)}function T(t){t.parentNode&&t.parentNode.removeChild(t)}function On(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function g(t){return document.createElement(t)}function Me(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _e(t){return document.createTextNode(t)}function L(){return _e(" ")}function ct(){return _e("")}function oe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Ht(t){return function(e){return e.preventDefault(),t.call(this,e)}}function as(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function cs(t){return Array.from(t.childNodes)}function Le(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function li(t,e,i,n){i===null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}function E(t,e,i){t.classList[i?"add":"remove"](e)}let fi;function ui(t){fi=t}function ji(){if(!fi)throw new Error("Function called outside component initialization");return fi}function Wt(t){ji().$$.on_mount.push(t)}function Uo(t){ji().$$.on_destroy.push(t)}function us(t,e){return ji().$$.context.set(t,e),e}function ds(t){return ji().$$.context.get(t)}function ft(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const ni=[],nt=[],zi=[],mn=[],fs=Promise.resolve();let pn=!1;function vs(){pn||(pn=!0,fs.then(Qo))}function hn(t){zi.push(t)}function ms(t){mn.push(t)}const Ki=new Set;let xt=0;function Qo(){if(xt!==0)return;const t=fi;do{try{for(;xt<ni.length;){const e=ni[xt];xt++,ui(e),ps(e.$$)}}catch(e){throw ni.length=0,xt=0,e}for(ui(null),ni.length=0,xt=0;nt.length;)nt.pop()();for(let e=0;e<zi.length;e+=1){const i=zi[e];Ki.has(i)||(Ki.add(i),i())}zi.length=0}while(ni.length);for(;mn.length;)mn.pop()();pn=!1,Ki.clear(),ui(t)}function ps(t){if(t.fragment!==null){t.update(),lt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(hn)}}const Ii=new Set;let Ut;function se(){Ut={r:0,c:[],p:Ut}}function ae(){Ut.r||lt(Ut.c),Ut=Ut.p}function h(t,e){t&&t.i&&(Ii.delete(t),t.i(e))}function P(t,e,i,n){if(t&&t.o){if(Ii.has(t))return;Ii.add(t),Ut.c.push(()=>{Ii.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}const hs=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function gs(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function x(t){t&&t.c()}function J(t,e,i,n){const{fragment:l,after_update:o}=t.$$;l&&l.m(e,i),n||hn(()=>{const r=t.$$.on_mount.map(Ho).filter(Ue);t.$$.on_destroy?t.$$.on_destroy.push(...r):lt(r),t.$$.on_mount=[]}),o.forEach(hn)}function Z(t,e){const i=t.$$;i.fragment!==null&&(lt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function bs(t,e){t.$$.dirty[0]===-1&&(ni.push(t),vs(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ge(t,e,i,n,l,o,r,s=[-1]){const c=fi;ui(t);const a=t.$$={fragment:null,ctx:[],props:o,update:B,not_equal:l,bound:Bn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Bn(),dirty:s,skip_bound:!1,root:e.target||c.$$.root};r&&r(a.root);let d=!1;if(a.ctx=i?i(t,e.props||{},(m,f,...p)=>{const w=p.length?p[0]:f;return a.ctx&&l(a.ctx[m],a.ctx[m]=w)&&(!a.skip_bound&&a.bound[m]&&a.bound[m](w),d&&bs(t,m)),f}):[],a.update(),d=!0,lt(a.before_update),a.fragment=n?n(a.ctx):!1,e.target){if(e.hydrate){const m=cs(e.target);a.fragment&&a.fragment.l(m),m.forEach(T)}else a.fragment&&a.fragment.c();e.intro&&h(t.$$.fragment),J(t,e.target,e.anchor,e.customElement),Qo()}ui(c)}class be{$destroy(){Z(this,1),this.$destroy=B}$on(e,i){if(!Ue(i))return B;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!ts(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const $t=[];function qt(t,e){return{subscribe:je(t,e).subscribe}}function je(t,e=B){let i;const n=new Set;function l(s){if(me(t,s)&&(t=s,i)){const c=!$t.length;for(const a of n)a[1](),$t.push(a,t);if(c){for(let a=0;a<$t.length;a+=2)$t[a][0]($t[a+1]);$t.length=0}}}function o(s){l(s(t))}function r(s,c=B){const a=[s,c];return n.add(a),n.size===1&&(i=e(l)||B),s(t),()=>{n.delete(a),n.size===0&&(i(),i=null)}}return{set:l,update:o,subscribe:r}}function wt(t,e,i){const n=!Array.isArray(t),l=n?[t]:t,o=e.length<2;return qt(i,r=>{let s=!1;const c=[];let a=0,d=B;const m=()=>{if(a)return;d();const p=e(n?c[0]:c,r);o?r(p):d=Ue(p)?p:B},f=l.map((p,w)=>Vn(p,b=>{c[w]=b,a&=~(1<<w),s&&m()},()=>{a|=1<<w}));return s=!0,m(),function(){lt(f),d()}})}const Wo="1.1.21",ws="es2015.cjs.js",Yo=Symbol("storeContext"),_s=t=>{us(Yo,t)},Qe=()=>{const t=ds(Yo);return de.assertNonNullable(t,"Store context is empty!"),t},He=(t,e)=>qt(t.getValue(),i=>{const n=t.subscribe(l=>{i(l),e==null||e(l)});return()=>n.unsubscribe()}),ys=(t,e,i)=>{var n,l,o,r;const s=t.info,{width:c,height:a}=Oe(i.ui.playerSize),d=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(r=(o=s.rttEstimation$.getValue())===null||o===void 0?void 0:o.toFixed(0))!==null&&r!==void 0?r:0,f=s.isAutoQualityEnabled$.getValue()?"auto":"manual",p={Version:`${ws}@${Wo}`,Browser:navigator.userAgent,"United video id":i.videoId,"Content host":s.hostname$.getValue(),"Connection type":s.httpConnectionType$.getValue()+(s.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${m}ms RTT`,Format:s.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${f} ${s.currentQuality$.getValue()}`,"Available qualities":s.availableQualities$.getValue().join(", "),Position:`${Oe(i.state.positionExact$)}s`,State:`${Oe(i.playerPhase)} ${s.playbackState$.getValue()}`,"Player size":`${c}x${a}`,URL:window.location.href,Errors:Oe(i.state.errorLog$).map(({id:w})=>w).join(", ")};return Object.entries(p).map(([w,b])=>`${w}: ${b}`).join(`
7
+ `)},ks=(t,e,i)=>{const n=t.info,{width:l,height:o}=Oe(i.ui.playerSize),r={version:Wo,viewport:`${l}x${o}`,volume:Math.round(Oe(i.state.volume$)*100)},s=i.videoId;s&&(r.id=s),n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());const d=n.intrinsicVideoSize$.getValue();d&&(r.videoSize=`${d.width}x${d.height}`);const m=n.currentBuffer$.getValue();m&&(r.buffer=Math.max(m.end-Oe(i.state.positionExact$),0));const f=n.throughputEstimation$.getValue();f&&(r.speed=f);const p=n.videoBitrate$.getValue();return p&&(r.bitrate=p),r};var jn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ti=function(t){return t&&t.Math==Math&&t},Yt=Ti(typeof globalThis=="object"&&globalThis)||Ti(typeof window=="object"&&window)||Ti(typeof self=="object"&&self)||Ti(typeof jn=="object"&&jn)||function(){return this}()||Function("return this")(),Kt=function(t){try{return!!t()}catch(e){return!0}},Ps=Kt,Fi=!Ps(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Ss=Fi,Ko=Function.prototype,Fn=Ko.apply,Dn=Ko.call,Vs=typeof Reflect=="object"&&Reflect.apply||(Ss?Dn.bind(Fn):function(){return Dn.apply(Fn,arguments)}),Go=Fi,Xo=Function.prototype,gn=Xo.call,As=Go&&Xo.bind.bind(gn,gn),zt=Go?As:function(t){return function(){return gn.apply(t,arguments)}},Jo=zt,Cs=Jo({}.toString),Es=Jo("".slice),Di=function(t){return Es(Cs(t),8,-1)},Ts=Di,Ms=zt,Zo=function(t){if(Ts(t)==="Function")return Ms(t)},bn=typeof document=="object"&&document.all,Ls=typeof bn=="undefined"&&bn!==void 0,xo={all:bn,IS_HTMLDDA:Ls},$o=xo,Ns=$o.all,yt=$o.IS_HTMLDDA?function(t){return typeof t=="function"||t===Ns}:function(t){return typeof t=="function"},er={},zs=Kt,vi=!zs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Is=Fi,Mi=Function.prototype.call,mi=Is?Mi.bind(Mi):function(){return Mi.apply(Mi,arguments)},tr={},ir={}.propertyIsEnumerable,nr=Object.getOwnPropertyDescriptor,Rs=nr&&!ir.call({1:2},1);tr.f=Rs?function(e){var i=nr(this,e);return!!i&&i.enumerable}:ir;var lr=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},Bs=zt,Os=Kt,js=Di,Gi=Object,Fs=Bs("".split),Ds=Os(function(){return!Gi("z").propertyIsEnumerable(0)})?function(t){return js(t)=="String"?Fs(t,""):Gi(t)}:Gi,An=function(t){return t==null},Hs=An,qs=TypeError,Cn=function(t){if(Hs(t))throw qs("Can't call method on "+t);return t},Us=Ds,Qs=Cn,Ws=function(t){return Us(Qs(t))},Hn=yt,or=xo,Ys=or.all,pi=or.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Hn(t)||t===Ys}:function(t){return typeof t=="object"?t!==null:Hn(t)},rr={},Xi=rr,Ji=Yt,Ks=yt,qn=function(t){return Ks(t)?t:void 0},sr=function(t,e){return arguments.length<2?qn(Xi[t])||qn(Ji[t]):Xi[t]&&Xi[t][e]||Ji[t]&&Ji[t][e]},Gs=zt,ar=Gs({}.isPrototypeOf),Xs=typeof navigator!="undefined"&&String(navigator.userAgent)||"",cr=Yt,Zi=Xs,Un=cr.process,Qn=cr.Deno,Wn=Un&&Un.versions||Qn&&Qn.version,Yn=Wn&&Wn.v8,ut,Bi;Yn&&(ut=Yn.split("."),Bi=ut[0]>0&&ut[0]<4?1:+(ut[0]+ut[1]));!Bi&&Zi&&(ut=Zi.match(/Edge\/(\d+)/),(!ut||ut[1]>=74)&&(ut=Zi.match(/Chrome\/(\d+)/),ut&&(Bi=+ut[1])));var Js=Bi,Kn=Js,Zs=Kt,ur=!!Object.getOwnPropertySymbols&&!Zs(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Kn&&Kn<41}),xs=ur,dr=xs&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$s=sr,ea=yt,ta=ar,ia=dr,na=Object,fr=ia?function(t){return typeof t=="symbol"}:function(t){var e=$s("Symbol");return ea(e)&&ta(e.prototype,na(t))},la=String,oa=function(t){try{return la(t)}catch(e){return"Object"}},ra=yt,sa=oa,aa=TypeError,vr=function(t){if(ra(t))return t;throw aa(sa(t)+" is not a function")},ca=vr,ua=An,mr=function(t,e){var i=t[e];return ua(i)?void 0:ca(i)},xi=mi,$i=yt,en=pi,da=TypeError,fa=function(t,e){var i,n;if(e==="string"&&$i(i=t.toString)&&!en(n=xi(i,t))||$i(i=t.valueOf)&&!en(n=xi(i,t))||e!=="string"&&$i(i=t.toString)&&!en(n=xi(i,t)))return n;throw da("Can't convert object to primitive value")},wn={},va={get exports(){return wn},set exports(t){wn=t}},ma=!0,Gn=Yt,pa=Object.defineProperty,ha=function(t,e){try{pa(Gn,t,{value:e,configurable:!0,writable:!0})}catch(i){Gn[t]=e}return e},ga=Yt,ba=ha,Xn="__core-js_shared__",wa=ga[Xn]||ba(Xn,{}),_a=wa,Jn=_a;(va.exports=function(t,e){return Jn[t]||(Jn[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.27.2",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"});var ya=Cn,ka=Object,pr=function(t){return ka(ya(t))},Pa=zt,Sa=pr,Va=Pa({}.hasOwnProperty),Hi=Object.hasOwn||function(e,i){return Va(Sa(e),i)},Aa=zt,Ca=0,Ea=Math.random(),Ta=Aa(1 .toString),Ma=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Ta(++Ca+Ea,36)},La=Yt,Na=wn,Zn=Hi,za=Ma,Ia=ur,Ra=dr,oi=La.Symbol,tn=Na("wks"),Ba=Ra?oi.for||oi:oi&&oi.withoutSetter||za,hi=function(t){return Zn(tn,t)||(tn[t]=Ia&&Zn(oi,t)?oi[t]:Ba("Symbol."+t)),tn[t]},Oa=mi,xn=pi,$n=fr,ja=mr,Fa=fa,Da=hi,Ha=TypeError,qa=Da("toPrimitive"),Ua=function(t,e){if(!xn(t)||$n(t))return t;var i=ja(t,qa),n;if(i){if(e===void 0&&(e="default"),n=Oa(i,t,e),!xn(n)||$n(n))return n;throw Ha("Can't convert object to primitive value")}return e===void 0&&(e="number"),Fa(t,e)},Qa=Ua,Wa=fr,hr=function(t){var e=Qa(t,"string");return Wa(e)?e:e+""},Ya=Yt,el=pi,_n=Ya.document,Ka=el(_n)&&el(_n.createElement),Ga=function(t){return Ka?_n.createElement(t):{}},Xa=vi,Ja=Kt,Za=Ga,gr=!Xa&&!Ja(function(){return Object.defineProperty(Za("div"),"a",{get:function(){return 7}}).a!=7}),xa=vi,$a=mi,e1=tr,t1=lr,i1=Ws,n1=hr,l1=Hi,o1=gr,tl=Object.getOwnPropertyDescriptor;er.f=xa?tl:function(e,i){if(e=i1(e),i=n1(i),o1)try{return tl(e,i)}catch(n){}if(l1(e,i))return t1(!$a(e1.f,e,i),e[i])};var r1=Kt,s1=yt,a1=/#|\.prototype\./,gi=function(t,e){var i=u1[c1(t)];return i==f1?!0:i==d1?!1:s1(e)?r1(e):!!e},c1=gi.normalize=function(t){return String(t).replace(a1,".").toLowerCase()},u1=gi.data={},d1=gi.NATIVE="N",f1=gi.POLYFILL="P",v1=gi,il=Zo,m1=vr,p1=Fi,h1=il(il.bind),g1=function(t,e){return m1(t),e===void 0?t:p1?h1(t,e):function(){return t.apply(e,arguments)}},br={},b1=vi,w1=Kt,_1=b1&&w1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),y1=pi,k1=String,P1=TypeError,wr=function(t){if(y1(t))return t;throw P1(k1(t)+" is not an object")},S1=vi,V1=gr,A1=_1,Li=wr,nl=hr,C1=TypeError,nn=Object.defineProperty,E1=Object.getOwnPropertyDescriptor,ln="enumerable",on="configurable",rn="writable";br.f=S1?A1?function(e,i,n){if(Li(e),i=nl(i),Li(n),typeof e=="function"&&i==="prototype"&&"value"in n&&rn in n&&!n[rn]){var l=E1(e,i);l&&l[rn]&&(e[i]=n.value,n={configurable:on in n?n[on]:l[on],enumerable:ln in n?n[ln]:l[ln],writable:!1})}return nn(e,i,n)}:nn:function(e,i,n){if(Li(e),i=nl(i),Li(n),V1)try{return nn(e,i,n)}catch(l){}if("get"in n||"set"in n)throw C1("Accessors not supported");return"value"in n&&(e[i]=n.value),e};var T1=vi,M1=br,L1=lr,N1=T1?function(t,e,i){return M1.f(t,e,L1(1,i))}:function(t,e,i){return t[e]=i,t},Ni=Yt,z1=Vs,I1=Zo,R1=yt,B1=er.f,O1=v1,ei=rr,j1=g1,ti=N1,ll=Hi,F1=function(t){var e=function(i,n,l){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,l)}return z1(t,this,arguments)};return e.prototype=t.prototype,e},D1=function(t,e){var i=t.target,n=t.global,l=t.stat,o=t.proto,r=n?Ni:l?Ni[i]:(Ni[i]||{}).prototype,s=n?ei:ei[i]||ti(ei,i,{})[i],c=s.prototype,a,d,m,f,p,w,b,y,N;for(f in e)a=O1(n?f:i+(l?".":"#")+f,t.forced),d=!a&&r&&ll(r,f),w=s[f],d&&(t.dontCallGetSet?(N=B1(r,f),b=N&&N.value):b=r[f]),p=d&&b?b:e[f],!(d&&typeof w==typeof p)&&(t.bind&&d?y=j1(p,Ni):t.wrap&&d?y=F1(p):o&&R1(p)?y=I1(p):y=p,(t.sham||p&&p.sham||w&&w.sham)&&ti(y,"sham",!0),ti(s,f,y),o&&(m=i+"Prototype",ll(ei,m)||ti(ei,m,{}),ti(ei[m],f,p),t.real&&c&&(a||!c[f])&&ti(c,f,p)))},H1=pi,q1=Di,U1=hi,Q1=U1("match"),W1=function(t){var e;return H1(t)&&((e=t[Q1])!==void 0?!!e:q1(t)=="RegExp")},Y1=hi,K1=Y1("toStringTag"),_r={};_r[K1]="z";var G1=String(_r)==="[object z]",X1=G1,J1=yt,Ri=Di,Z1=hi,x1=Z1("toStringTag"),$1=Object,e0=Ri(function(){return arguments}())=="Arguments",t0=function(t,e){try{return t[e]}catch(i){}},i0=X1?Ri:function(t){var e,i,n;return t===void 0?"Undefined":t===null?"Null":typeof(i=t0(e=$1(t),x1))=="string"?i:e0?Ri(e):(n=Ri(e))=="Object"&&J1(e.callee)?"Arguments":n},n0=i0,l0=String,o0=function(t){if(n0(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return l0(t)},r0=wr,s0=function(){var t=r0(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},a0=mi,c0=Hi,u0=ar,d0=s0,ol=RegExp.prototype,f0=function(t){var e=t.flags;return e===void 0&&!("flags"in ol)&&!c0(t,"flags")&&u0(ol,t)?a0(d0,t):e},En=zt,v0=pr,m0=Math.floor,sn=En("".charAt),p0=En("".replace),an=En("".slice),h0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,g0=/\$([$&'`]|\d{1,2})/g,b0=function(t,e,i,n,l,o){var r=i+t.length,s=n.length,c=g0;return l!==void 0&&(l=v0(l),c=h0),p0(o,c,function(a,d){var m;switch(sn(d,0)){case"$":return"$";case"&":return t;case"`":return an(e,0,i);case"'":return an(e,r);case"<":m=l[an(d,1,-1)];break;default:var f=+d;if(f===0)return a;if(f>s){var p=m0(f/10);return p===0?a:p<=s?n[p-1]===void 0?sn(d,1):n[p-1]+sn(d,1):a}m=n[f-1]}return m===void 0?"":m})},w0=D1,_0=mi,Tn=zt,rl=Cn,y0=yt,k0=An,P0=W1,ii=o0,S0=mr,V0=f0,A0=b0,C0=hi,E0=ma,T0=C0("replace"),M0=TypeError,yr=Tn("".indexOf),L0=Tn("".replace),sl=Tn("".slice),N0=Math.max,al=function(t,e,i){return i>t.length?-1:e===""?i:yr(t,e,i)};w0({target:"String",proto:!0},{replaceAll:function(e,i){var n=rl(this),l,o,r,s,c,a,d,m,f,p=0,w=0,b="";if(!k0(e)){if(l=P0(e),l&&(o=ii(rl(V0(e))),!~yr(o,"g")))throw M0("`.replaceAll` does not allow non-global regexes");if(r=S0(e,T0),r)return _0(r,e,n,i);if(E0&&l)return L0(ii(n),e,i)}for(s=ii(n),c=ii(e),a=y0(i),a||(i=ii(i)),d=c.length,m=N0(1,d),p=al(s,c,0);p!==-1;)f=a?ii(i(c,p,s)):A0(c,s,p,[],void 0,i),b+=sl(s,w,p)+f,w=p+d,p=al(s,c,p+m);return w<s.length&&(b+=sl(s,w)),b}});var z0=sr,I0=z0,R0=I0,B0=R0("String","replaceAll"),O0=B0,j0=O0,F0=j0,D0=F0,H0=D0;exports.InterfaceLanguage=void 0;(function(t){t.RU="ru",t.EN="en"})(exports.InterfaceLanguage||(exports.InterfaceLanguage={}));const q0={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",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_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_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",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",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 \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {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"},U0={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_debug_overlay:"Tech stats",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_settings:"Settings",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {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"},Mn=new Map;Mn.set(exports.InterfaceLanguage.EN,U0);Mn.set(exports.InterfaceLanguage.RU,q0);const kr=(t,e,i)=>{var n;const l=(n=Mn.get(t))===null||n===void 0?void 0:n[e];return de.isNullable(l)?e+Object.values(i!=null?i:{}).join(" "):i?H0(l,/{(\w+?)}/g,(o,r)=>{var s;return(s=i[r])!==null&&s!==void 0?s:""}):l},Te=(t,e)=>{const{interfaceLanguage$:i}=Qe(),n=Oe(i);return kr(n,t,e)};var yn="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z' fill='white'/%3e%3c/svg%3e",Q0="data:image/svg+xml,%3csvg height='24' width='24' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath d='M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 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 12zM10.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-.686z' fill='white' fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",W0="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.3377 4L7.6623 4C6.85427 3.99999 6.19339 3.99998 5.65632 4.04386C5.10041 4.08928 4.59833 4.18617 4.12944 4.42508C3.39561 4.79898 2.79898 5.39561 2.42508 6.12944C2.18617 6.59833 2.08928 7.10041 2.04386 7.65632C1.99998 8.19339 1.99999 8.85426 2 9.66229V12.3837C1.99999 13.1917 1.99998 13.8525 2.04386 14.3896C2.08928 14.9455 2.18617 15.4476 2.42508 15.9165C2.79898 16.6503 3.39561 17.2469 4.12944 17.6208C4.59833 17.8598 5.10041 17.9566 5.65632 18.0021C6.1934 18.0459 6.85424 18.0459 7.66229 18.0459L10.1 18.0459C10.5971 18.0459 11 17.643 11 17.1459C11 16.6489 10.5971 16.2459 10.1 16.2459L7.7 16.2459C6.84507 16.2459 6.258 16.2452 5.80289 16.208C5.3583 16.1717 5.11947 16.1051 4.94662 16.017C4.55148 15.8157 4.23022 15.4944 4.02889 15.0993C3.94082 14.9264 3.87421 14.6876 3.83789 14.243C3.8007 13.7879 3.8 13.2008 3.8 12.3459V9.7C3.8 8.84507 3.8007 8.258 3.83789 7.8029C3.87421 7.3583 3.94082 7.11947 4.02889 6.94662C4.23022 6.55148 4.55148 6.23022 4.94662 6.02889C5.11947 5.94082 5.3583 5.87421 5.8029 5.83789C6.258 5.8007 6.84507 5.8 7.7 5.8L14.3 5.8C15.1549 5.8 15.742 5.8007 16.1971 5.83789C16.6417 5.87421 16.8805 5.94082 17.0534 6.02889C17.4485 6.23022 17.7698 6.55148 17.9711 6.94662C18.0592 7.11947 18.1258 7.3583 18.1621 7.8029C18.1993 8.258 18.2 8.84507 18.2 9.7V11.1C18.2 11.5971 18.6029 12 19.1 12C19.5971 12 20 11.5971 20 11.1V9.6623C20 8.85425 20 8.1934 19.9561 7.65632C19.9107 7.10041 19.8138 6.59833 19.5749 6.12944C19.201 5.39561 18.6044 4.79898 17.8706 4.42508C17.4017 4.18617 16.8996 4.08928 16.3437 4.04386C15.8066 3.99998 15.1457 3.99999 14.3377 4Z' fill='white'/%3e%3cpath d='M13.1907 14.9555C13 15.3299 13 15.8199 13 16.8V17.2C13 18.1801 13 18.6701 13.1907 19.0445C13.3585 19.3738 13.6262 19.6415 13.9555 19.8093C14.3299 20 14.8199 20 15.8 20H19.2C20.1801 20 20.6701 20 21.0445 19.8093C21.3738 19.6415 21.6415 19.3738 21.8093 19.0445C22 18.6701 22 18.1801 22 17.2V16.8C22 15.8199 22 15.3299 21.8093 14.9555C21.6415 14.6262 21.3738 14.3585 21.0445 14.1907C20.6701 14 20.1801 14 19.2 14H15.8C14.8199 14 14.3299 14 13.9555 14.1907C13.6262 14.3585 13.3585 14.6262 13.1907 14.9555Z' fill='white'/%3e%3cpath d='M6.35684 9.62964C6.35908 9.63192 6.36132 9.63418 6.36358 9.63644L8.92721 12.2H7.89998C7.40292 12.2 6.99998 12.6029 6.99998 13.1C6.99998 13.5971 7.40292 14 7.89998 14H11.1C11.5971 14 12 13.5971 12 13.1V9.90005C12 9.40299 11.5971 9.00005 11.1 9.00005C10.6029 9.00005 10.2 9.40299 10.2 9.90005V10.9219L7.6703 8.3975L7.53642 8.26363C7.18495 7.91216 6.6151 7.91216 6.26363 8.26363C5.91216 8.6151 5.91216 9.18495 6.26363 9.53642L6.35684 9.62964Z' fill='white'/%3e%3c/svg%3e",Y0="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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.54zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468zM.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 5z' fill='%2370C1FF'/%3e%3c/svg%3e",K0="data:image/svg+xml,%3csvg width='15' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.516 5h1.107C14.103 5 15 4.065 15 2.5S14.103 0 12.623 0h-1.107C11.191 0 11 .2 11 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM6.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S10 4.802 10 4.464V.54C10 .198 9.809 0 9.484 0s-.516.198-.516.54v1.531H7.032V.54c0-.342-.191-.54-.516-.54S6 .198 6 .54v3.989c0 .338.191.471.516.471z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.338 4.909A3.9 3.9 0 0 1 2.5 5C1.037 5 0 4.135 0 2.553 0 .983 1.037 0 2.5 0 3.96 0 5 .984 5 2.553c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037C3.947 1.517 3.307.9 2.5.9c-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z' fill='%2370C1FF'/%3e%3c/svg%3e",G0="data:image/svg+xml,%3csvg width='15' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 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.536z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='m2.551 1.052-1.51 2.052h1.51V1.052zM3.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-.9H3.5z' fill='%2370C1FF'/%3e%3c/svg%3e",X0="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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.537z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524z' fill='%2370C1FF'/%3e%3c/svg%3e",J0="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM4.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.471zm-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 5z' fill='%2370C1FF'/%3e%3c/svg%3e",Pr="data:image/svg+xml,%3csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e",cl="data:image/svg+xml,%3csvg width='12' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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.272L5.773 8z' fill='white'/%3e%3c/svg%3e",Z0="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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-.697zm-.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.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z' fill='white'/%3e%3c/svg%3e",x0="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 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 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-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.057 17.057 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-.492z' fill='white'/%3e%3c/svg%3e",$0="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z' fill='white'/%3e%3c/svg%3e";const Sr=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const 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)}}};function ec(t){Se(t,"v-1gdbwrb",".icon.v-1gdbwrb{display:block;width:24px;height:24px}.wave.v-1gdbwrb{animation-duration:1s;animation-iteration-count:infinite}.wave1.v-1gdbwrb{animation-name:v-1gdbwrb-wave1}.wave2.v-1gdbwrb{animation-name:v-1gdbwrb-wave2}.wave3.v-1gdbwrb{animation-name:v-1gdbwrb-wave3}@keyframes v-1gdbwrb-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function ul(t){let e,i,n,l;function o(c,a){if(c[1]===Ve.ChromecastState.AVAILABLE)return nc;if(c[1]===Ve.ChromecastState.CONNECTED)return ic;if(c[1]===Ve.ChromecastState.CONNECTING)return tc}let r=o(t),s=r&&r(t);return{c(){e=g("div"),s&&s.c(),u(e,"class",i=Nt(t[0])+" v-1gdbwrb"),u(e,"role","button"),u(e,"tabindex","0")},m(c,a){M(c,e,a),s&&s.m(e,null),n||(l=oe(e,"click",t[4]),n=!0)},p(c,a){r!==(r=o(c))&&(s&&s.d(1),s=r&&r(c),s&&(s.c(),s.m(e,null))),a&1&&i!==(i=Nt(c[0])+" v-1gdbwrb")&&u(e,"class",i)},d(c){c&&T(e),s&&s.d(),n=!1,l()}}}function tc(t){let e,i,n,l,o,r,s;return{c(){e=Me("svg"),i=Me("g"),n=Me("path"),l=Me("path"),o=Me("path"),r=Me("path"),s=Me("path"),u(n,"class","wave wave1 v-1gdbwrb"),u(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),u(n,"opacity",".3"),u(n,"fill","#fff"),u(l,"class","wave wave2 v-1gdbwrb"),u(l,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),u(l,"opacity",".3"),u(l,"fill","#fff"),u(o,"class","wave wave3 v-1gdbwrb"),u(o,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(o,"opacity",".3"),u(o,"fill","#fff"),u(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),u(r,"fill","#fff"),u(s,"d","M0 0h24v24H0z"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"class","icon v-1gdbwrb"),u(e,"width","22"),u(e,"height","22"),u(e,"viewBox","0 0 24 24"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(c,a){M(c,e,a),v(e,i),v(i,n),v(i,l),v(i,o),v(i,r),v(i,s)},d(c){c&&T(e)}}}function ic(t){let e,i,n,l;return{c(){e=Me("svg"),i=Me("g"),n=Me("path"),l=Me("path"),u(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2a9 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"),u(n,"fill","#fff"),u(l,"d","M0 0h24v24H0z"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"class","icon v-1gdbwrb"),u(e,"width","22"),u(e,"height","22"),u(e,"viewBox","0 0 24 24"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,r){M(o,e,r),v(e,i),v(i,n),v(i,l)},d(o){o&&T(e)}}}function nc(t){let e,i,n,l;return{c(){e=Me("svg"),i=Me("g"),n=Me("path"),l=Me("path"),u(n,"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"),u(n,"fill","#fff"),u(l,"d","M0 0h24v24H0z"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"class","icon v-1gdbwrb"),u(e,"width","22"),u(e,"height","22"),u(e,"viewBox","0 0 24 24"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,r){M(o,e,r),v(e,i),v(i,n),v(i,l)},d(o){o&&T(e)}}}function lc(t){let e,i=t[1]!==Ve.ChromecastState.NOT_AVAILABLE&&ul(t);return{c(){i&&i.c(),e=ct()},m(n,l){i&&i.m(n,l),M(n,e,l)},p(n,[l]){n[1]!==Ve.ChromecastState.NOT_AVAILABLE?i?i.p(n,l):(i=ul(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:B,o:B,d(n){i&&i.d(n),n&&T(e)}}}function oc(t,e,i){let n,{className:l=""}=e;const r=Qe().state.chromecastState$;Q(t,r,a=>i(3,n=a));let s;function c(a){ft.call(this,t,a)}return t.$$set=a=>{"className"in a&&i(0,l=a.className)},t.$$.update=()=>{t.$$.dirty&8&&i(1,s=n)},[l,s,r,n,c]}class Vr extends be{constructor(e){super(),ge(this,e,oc,lc,me,{className:0},ec)}}function rc(t){Se(t,"v-w3pect","ul.v-w3pect.v-w3pect{margin:0;padding:0}.menu.v-w3pect.v-w3pect{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.container-mobile.v-w3pect.v-w3pect{width:100%}.menu-desktop.v-w3pect.v-w3pect{position:absolute;right:0;bottom:0}.menu-mobile.v-w3pect.v-w3pect{width:100%;background:var(--videplayer-mobile-settings-bg);font-size:15px;line-height:50px}.hidden.v-w3pect.v-w3pect{visibility:hidden;opacity:0}.menu-mobile.hidden.v-w3pect.v-w3pect{display:none}.menu-subList.v-w3pect.v-w3pect{min-width:134px;padding-bottom:0}.item.v-w3pect.v-w3pect{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.v-w3pect.v-w3pect{padding:0 14px}.item-quality.item-mobile.v-w3pect.v-w3pect{flex-direction:row-reverse}.quality-title-mobile.v-w3pect.v-w3pect{flex-grow:1}.item.v-w3pect.v-w3pect:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-w3pect.v-w3pect:hover{background:var(--videplayer-mobile-settings-bg)}.menu-subList.v-w3pect .item.v-w3pect{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-w3pect .item.v-w3pect:last-child{margin-bottom:4px}.menu-icon.v-w3pect.v-w3pect{margin-right:16px}.chromecast-item{padding-right:16px}.menu-title.v-w3pect.v-w3pect{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-w3pect.v-w3pect{position:relative;opacity:0.7}.menu-valueIcon.v-w3pect.v-w3pect{position:absolute;top:10px;margin-left:4px;width:15px}.menu-valueIcon-list.v-w3pect.v-w3pect{position:absolute;top:12px;width:15px;right:6px}.menu-divider.v-w3pect.v-w3pect{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-w3pect.v-w3pect{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.menu-header-back-icon.v-w3pect.v-w3pect{width:16px;height:24px}.menu-header.v-w3pect:hover .menu-header-back-icon.v-w3pect{opacity:0.8;transition:opacity 0.2s}.itemIcon.v-w3pect.v-w3pect{margin-right:auto;opacity:0.9}.items.v-w3pect.v-w3pect::-webkit-scrollbar{width:8px}.items.v-w3pect.v-w3pect::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-w3pect.v-w3pect::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-w3pect.v-w3pect::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-w3pect.v-w3pect{overflow-y:auto;max-height:160px;text-align:left}.close.v-w3pect.v-w3pect{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-w3pect.v-w3pect:before,.close.v-w3pect.v-w3pect:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.v-w3pect.v-w3pect:before{transform:rotate(45deg)}.close.v-w3pect.v-w3pect:after{transform:rotate(-45deg)}")}function dl(t,e,i){const n=t.slice();return n[49]=e[i],n}function fl(t,e,i){const n=t.slice();return n[52]=e[i],n}function vl(t){let e,i,n,l,o,r,s,c;return{c(){e=g("div"),i=g("div"),i.textContent=`${Te("submenu_settings")}`,n=L(),l=g("div"),o=L(),r=g("div"),u(l,"class","close v-w3pect"),u(e,"class","item menu-header v-w3pect"),E(e,"item-mobile",t[0]),u(r,"class","menu-divider v-w3pect")},m(a,d){M(a,e,d),v(e,i),v(e,n),v(e,l),M(a,o,d),M(a,r,d),s||(c=oe(l,"click",t[26]),s=!0)},p(a,d){d[0]&1&&E(e,"item-mobile",a[0])},d(a){a&&T(e),a&&T(o),a&&T(r),s=!1,c()}}}function ml(t){let e,i;return{c(){e=g("img"),u(e,"class","menu-valueIcon v-w3pect"),Ee(e.src,i=t[7])||u(e,"src",i),u(e,"alt","")},m(n,l){M(n,e,l)},p(n,l){l[0]&128&&!Ee(e.src,i=n[7])&&u(e,"src",i)},d(n){n&&T(e)}}}function pl(t){let e,i,n,l,o,r,s,c,a,d,m;return{c(){e=g("li"),i=g("img"),l=L(),o=g("div"),o.textContent=`${Te("menu_playback_rate")}`,r=L(),s=g("div"),c=_e(t[11]),a=_e("x"),u(i,"class","menu-icon v-w3pect"),Ee(i.src,n=Q0)||u(i,"src",n),u(i,"alt",""),u(o,"class","menu-title v-w3pect"),u(s,"class","menu-value v-w3pect"),u(e,"class","item v-w3pect"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",t[0])},m(f,p){M(f,e,p),v(e,i),v(e,l),v(e,o),v(e,r),v(e,s),v(s,c),v(s,a),d||(m=oe(e,"click",t[30]),d=!0)},p(f,p){p[0]&2048&&Le(c,f[11]),p[0]&1&&E(e,"item-mobile",f[0])},d(f){f&&T(e),d=!1,m()}}}function hl(t){let e,i,n,l,o,r,s,c,a,d,m,f,p,w,b,y,N,_,S,D,R,j,I=t[23]&&sc(t),k=t[3]&&gl(t);return{c(){I&&I.c(),e=L(),k&&k.c(),i=L(),n=g("li"),l=g("img"),r=L(),s=g("div"),s.textContent=`${Te("menu_report")}`,c=L(),a=g("li"),d=g("img"),f=L(),p=g("div"),p.textContent=`${Te("menu_copy_debug")}`,w=L(),b=g("li"),y=g("img"),_=L(),S=g("div"),S.textContent=`${Te("menu_debug_overlay")}`,u(l,"class","menu-icon v-w3pect"),Ee(l.src,o=Z0)||u(l,"src",o),u(l,"alt",""),u(s,"class","menu-title v-w3pect"),u(n,"class","item item-mobile v-w3pect"),u(n,"role","menuitemradio"),u(n,"tabindex","0"),u(d,"class","menu-icon v-w3pect"),Ee(d.src,m=x0)||u(d,"src",m),u(d,"alt",""),u(p,"class","menu-title v-w3pect"),u(a,"class","item item-mobile v-w3pect"),u(a,"role","menuitemradio"),u(a,"tabindex","0"),u(y,"class","menu-icon v-w3pect"),Ee(y.src,N=$0)||u(y,"src",N),u(y,"alt",""),u(S,"class","menu-title v-w3pect"),u(b,"class","item item-mobile v-w3pect"),u(b,"role","menuitemradio"),u(b,"tabindex","0")},m(O,C){I&&I.m(O,C),M(O,e,C),k&&k.m(O,C),M(O,i,C),M(O,n,C),v(n,l),v(n,r),v(n,s),M(O,c,C),M(O,a,C),v(a,d),v(a,f),v(a,p),M(O,w,C),M(O,b,C),v(b,y),v(b,_),v(b,S),D=!0,R||(j=[oe(n,"click",t[33]),oe(a,"click",t[34]),oe(b,"click",t[35])],R=!0)},p(O,C){O[23]&&I.p(O,C),O[3]?k?(k.p(O,C),C[0]&8&&h(k,1)):(k=gl(O),k.c(),h(k,1),k.m(i.parentNode,i)):k&&(se(),P(k,1,1,()=>{k=null}),ae())},i(O){D||(h(k),D=!0)},o(O){P(k),D=!1},d(O){I&&I.d(O),O&&T(e),k&&k.d(O),O&&T(i),O&&T(n),O&&T(c),O&&T(a),O&&T(w),O&&T(b),R=!1,lt(j)}}}function sc(t){let e,i,n,l,o,r,s;return{c(){e=g("li"),i=g("img"),l=L(),o=g("div"),o.textContent=`${Te("menu_pip")}`,u(i,"class","menu-icon v-w3pect"),Ee(i.src,n=W0)||u(i,"src",n),u(i,"alt",""),u(o,"class","menu-title v-w3pect"),u(e,"class","item item-mobile v-w3pect"),u(e,"role","menuitemradio"),u(e,"tabindex","0")},m(c,a){M(c,e,a),v(e,i),v(e,l),v(e,o),r||(s=oe(e,"click",t[32]),r=!0)},p:B,d(c){c&&T(e),r=!1,s()}}}function gl(t){let e,i,n,l,o,r,s;return i=new Vr({props:{className:"chromecast-item"}}),{c(){e=g("li"),x(i.$$.fragment),n=L(),l=g("div"),l.textContent=`${Te("menu_chromecast")}`,u(l,"class","menu-title v-w3pect"),u(e,"class","item item-mobile v-w3pect"),u(e,"role","menuitemradio"),u(e,"tabindex","0")},m(c,a){M(c,e,a),J(i,e,null),v(e,n),v(e,l),o=!0,r||(s=oe(e,"click",t[25]),r=!0)},p:B,i(c){o||(h(i.$$.fragment,c),o=!0)},o(c){P(i.$$.fragment,c),o=!1},d(c){c&&T(e),Z(i),r=!1,s()}}}function bl(t){let e,i;return{c(){e=g("img"),u(e,"class","itemIcon v-w3pect"),Ee(e.src,i=Pr)||u(e,"src",i),u(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&T(e)}}}function wl(t){let e,i;return{c(){e=g("img"),u(e,"class","menu-valueIcon-list v-w3pect"),Ee(e.src,i=t[36](t[52].value))||u(e,"src",i),u(e,"alt","")},m(n,l){M(n,e,l)},p(n,l){l[0]&2&&!Ee(e.src,i=n[36](n[52].value))&&u(e,"src",i)},d(n){n&&T(e)}}}function _l(t){let e,i,n,l=t[52].displayValue+"",o,r,s,c,a,d,m=t[52].selected&&bl(),f=!t[0]&&wl(t);function p(){return t[43](t[52])}return{c(){e=g("li"),m&&m.c(),i=L(),n=g("div"),o=_e(l),r=L(),f&&f.c(),s=L(),u(n,"class","v-w3pect"),E(n,"quality-title-mobile",t[0]),u(e,"class","item item-quality v-w3pect"),u(e,"data-value",c=t[52].value),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",t[0])},m(w,b){M(w,e,b),m&&m.m(e,null),v(e,i),v(e,n),v(n,o),v(e,r),f&&f.m(e,null),v(e,s),a||(d=oe(e,"click",p),a=!0)},p(w,b){t=w,t[52].selected?m?m.p(t,b):(m=bl(),m.c(),m.m(e,i)):m&&(m.d(1),m=null),b[0]&2&&l!==(l=t[52].displayValue+"")&&Le(o,l),b[0]&1&&E(n,"quality-title-mobile",t[0]),t[0]?f&&(f.d(1),f=null):f?f.p(t,b):(f=wl(t),f.c(),f.m(e,s)),b[0]&2&&c!==(c=t[52].value)&&u(e,"data-value",c),b[0]&1&&E(e,"item-mobile",t[0])},d(w){w&&T(e),m&&m.d(),f&&f.d(),a=!1,d()}}}function yl(t){let e,i;return{c(){e=g("img"),u(e,"class","itemIcon v-w3pect"),Ee(e.src,i=Pr)||u(e,"src",i),u(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&T(e)}}}function kl(t){let e,i,n,l=t[49].displayValue+"",o,r,s,c,a,d=t[49].selected&&yl();function m(){return t[44](t[49])}return{c(){e=g("li"),d&&d.c(),i=L(),n=g("div"),o=_e(l),r=L(),u(n,"class","v-w3pect"),E(n,"quality-title-mobile",t[0]),u(e,"class","item item-quality v-w3pect"),u(e,"data-value",s=t[49].value),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",t[0])},m(f,p){M(f,e,p),d&&d.m(e,null),v(e,i),v(e,n),v(n,o),v(e,r),c||(a=oe(e,"click",m),c=!0)},p(f,p){t=f,t[49].selected?d?d.p(t,p):(d=yl(),d.c(),d.m(e,i)):d&&(d.d(1),d=null),p[0]&4096&&l!==(l=t[49].displayValue+"")&&Le(o,l),p[0]&1&&E(n,"quality-title-mobile",t[0]),p[0]&4096&&s!==(s=t[49].value)&&u(e,"data-value",s),p[0]&1&&E(e,"item-mobile",t[0])},d(f){f&&T(e),d&&d.d(),c=!1,a()}}}function ac(t){let e,i,n,l,o,r,s,c,a,d,m,f,p,w,b,y,N,_,S,D,R,j,I,k,O,C,Y,q,H,U,X,fe,K,F,te,Ne,ke,ie,Ke,ne,ce=t[0]&&vl(t),we=t[7]&&!t[0]&&ml(t),pe=!t[10]&&pl(t),ve=t[0]&&hl(t),Pe=t[1],he=[];for(let z=0;z<Pe.length;z+=1)he[z]=_l(fl(t,Pe,z));let ye=t[12],ue=[];for(let z=0;z<ye.length;z+=1)ue[z]=kl(dl(t,ye,z));return{c(){e=g("div"),i=g("div"),ce&&ce.c(),n=L(),l=g("ul"),o=g("li"),r=g("img"),c=L(),a=g("div"),a.textContent=`${Te("menu_quality")}`,d=L(),m=g("div"),f=_e(t[8]),p=L(),we&&we.c(),w=L(),pe&&pe.c(),b=L(),ve&&ve.c(),y=L(),N=g("div"),_=g("div"),S=g("img"),R=L(),j=g("div"),j.textContent=`${Te("submenu_quality")}`,I=L(),k=g("div"),O=L(),C=g("ul");for(let z=0;z<he.length;z+=1)he[z].c();Y=L(),q=g("div"),H=g("div"),U=g("img"),fe=L(),K=g("div"),K.textContent=`${Te("submenu_playback_rate")}`,F=L(),te=g("div"),Ne=L(),ke=g("ul");for(let z=0;z<ue.length;z+=1)ue[z].c();u(r,"class","menu-icon v-w3pect"),Ee(r.src,s=yn)||u(r,"src",s),u(r,"alt",""),u(a,"class","menu-title v-w3pect"),u(m,"class","menu-value v-w3pect"),u(o,"class","item v-w3pect"),u(o,"role","menuitemradio"),u(o,"tabindex","0"),E(o,"item-mobile",t[0]),u(l,"class","items v-w3pect"),E(l,"items-mobile",t[0]),u(i,"class","menu v-w3pect"),u(i,"role","menu"),E(i,"menu-desktop",!t[0]),E(i,"menu-mobile",t[0]),E(i,"hidden",!t[4]),Ee(S.src,D=cl)||u(S,"src",D),u(S,"class","menu-header-back-icon v-w3pect"),u(S,"alt",""),u(_,"class","item menu-header v-w3pect"),E(_,"item-mobile",t[0]),u(k,"class","menu-divider v-w3pect"),u(C,"class","items v-w3pect"),u(C,"style",t[9]),E(C,"items-mobile",t[0]),u(N,"class","menu menu-subList v-w3pect"),E(N,"menu-desktop",!t[0]),E(N,"menu-mobile",t[0]),E(N,"hidden",!t[5]),Ee(U.src,X=cl)||u(U,"src",X),u(U,"class","menu-header-back-icon v-w3pect"),u(U,"alt",""),u(H,"class","item menu-header v-w3pect"),E(H,"item-mobile",t[0]),u(te,"class","menu-divider v-w3pect"),u(ke,"class","items v-w3pect"),E(ke,"items-mobile",t[0]),u(q,"class","menu menu-subList v-w3pect"),E(q,"menu-desktop",!t[0]),E(q,"menu-mobile",t[0]),E(q,"hidden",!t[6]),u(e,"class","v-w3pect"),E(e,"hidden",!t[2]),E(e,"container-mobile",t[0])},m(z,$){M(z,e,$),v(e,i),ce&&ce.m(i,null),v(i,n),v(i,l),v(l,o),v(o,r),v(o,c),v(o,a),v(o,d),v(o,m),v(m,f),v(m,p),we&&we.m(m,null),v(l,w),pe&&pe.m(l,null),v(l,b),ve&&ve.m(l,null),v(e,y),v(e,N),v(N,_),v(_,S),v(_,R),v(_,j),v(N,I),v(N,k),v(N,O),v(N,C);for(let le=0;le<he.length;le+=1)he[le].m(C,null);v(e,Y),v(e,q),v(q,H),v(H,U),v(H,fe),v(H,K),v(q,F),v(q,te),v(q,Ne),v(q,ke);for(let le=0;le<ue.length;le+=1)ue[le].m(ke,null);ie=!0,Ke||(ne=[oe(o,"click",t[27]),oe(_,"click",t[31]),oe(H,"click",t[31])],Ke=!0)},p(z,$){if(z[0]?ce?ce.p(z,$):(ce=vl(z),ce.c(),ce.m(i,n)):ce&&(ce.d(1),ce=null),(!ie||$[0]&256)&&Le(f,z[8]),z[7]&&!z[0]?we?we.p(z,$):(we=ml(z),we.c(),we.m(m,null)):we&&(we.d(1),we=null),(!ie||$[0]&1)&&E(o,"item-mobile",z[0]),z[10]?pe&&(pe.d(1),pe=null):pe?pe.p(z,$):(pe=pl(z),pe.c(),pe.m(l,b)),z[0]?ve?(ve.p(z,$),$[0]&1&&h(ve,1)):(ve=hl(z),ve.c(),h(ve,1),ve.m(l,null)):ve&&(se(),P(ve,1,1,()=>{ve=null}),ae()),(!ie||$[0]&1)&&E(l,"items-mobile",z[0]),(!ie||$[0]&1)&&E(i,"menu-desktop",!z[0]),(!ie||$[0]&1)&&E(i,"menu-mobile",z[0]),(!ie||$[0]&16)&&E(i,"hidden",!z[4]),(!ie||$[0]&1)&&E(_,"item-mobile",z[0]),$[0]&268435459|$[1]&32){Pe=z[1];let le;for(le=0;le<Pe.length;le+=1){const ee=fl(z,Pe,le);he[le]?he[le].p(ee,$):(he[le]=_l(ee),he[le].c(),he[le].m(C,null))}for(;le<he.length;le+=1)he[le].d(1);he.length=Pe.length}if((!ie||$[0]&512)&&u(C,"style",z[9]),(!ie||$[0]&1)&&E(C,"items-mobile",z[0]),(!ie||$[0]&1)&&E(N,"menu-desktop",!z[0]),(!ie||$[0]&1)&&E(N,"menu-mobile",z[0]),(!ie||$[0]&32)&&E(N,"hidden",!z[5]),(!ie||$[0]&1)&&E(H,"item-mobile",z[0]),$[0]&536875009){ye=z[12];let le;for(le=0;le<ye.length;le+=1){const ee=dl(z,ye,le);ue[le]?ue[le].p(ee,$):(ue[le]=kl(ee),ue[le].c(),ue[le].m(ke,null))}for(;le<ue.length;le+=1)ue[le].d(1);ue.length=ye.length}(!ie||$[0]&1)&&E(ke,"items-mobile",z[0]),(!ie||$[0]&1)&&E(q,"menu-desktop",!z[0]),(!ie||$[0]&1)&&E(q,"menu-mobile",z[0]),(!ie||$[0]&64)&&E(q,"hidden",!z[6]),(!ie||$[0]&4)&&E(e,"hidden",!z[2]),(!ie||$[0]&1)&&E(e,"container-mobile",z[0])},i(z){ie||(h(ve),ie=!0)},o(z){P(ve),ie=!1},d(z){z&&T(e),ce&&ce.d(),we&&we.d(),pe&&pe.d(),ve&&ve.d(),On(he,z),On(ue,z),Ke=!1,lt(ne)}}}function cc(t,e,i){let n,l,o,r,s,c,a,d,m,f,p;var w=this&&this.__awaiter||function(ee,ot,Ge,We){function rt(Ze){return Ze instanceof Ge?Ze:new Ge(function(Xe){Xe(Ze)})}return new(Ge||(Ge=Promise))(function(Ze,Xe){function dt(Re){try{it(We.next(Re))}catch($e){Xe($e)}}function vt(Re){try{it(We.throw(Re))}catch($e){Xe($e)}}function it(Re){Re.done?Ze(Re.value):rt(Re.value).then(dt,vt)}it((We=We.apply(ee,ot||[])).next())})};let{supportLink:b}=e;const y=Qe(),N=y.state.currentQuality$;Q(t,N,ee=>i(41,c=ee));const _=y.state.availableQualities$;Q(t,_,ee=>i(1,s=ee));const S=y.state.isAutoQualityEnabled$;Q(t,S,ee=>i(40,r=ee));const D=y.state.currentPlaybackRate$;Q(t,D,ee=>i(11,f=ee));const R=y.state.availablePlaybackRates$;Q(t,R,ee=>i(12,p=ee));const j=y.ui.settingsMenuVisible;Q(t,j,ee=>i(2,a=ee));const I=y.ui.isMobile;Q(t,I,ee=>i(0,o=ee));const k=y.ui.isFullscreen;Q(t,k,ee=>i(39,l=ee));const O=y.state.isLive$;Q(t,O,ee=>i(10,m=ee));const C=y.ui.playerSize;Q(t,C,ee=>i(38,n=ee));const Y=y.ui.debugPanelVisible,q=y.webApi.pictureInPictureApi,H=y.state.chromecastState$;Q(t,H,ee=>i(42,d=ee));let U;const X=()=>y.actions.internal.toggleChromecast();let fe=!0,K=!1,F=!1;function te(){j.set(!1)}function Ne(){i(4,fe=!1),i(5,K=!0)}function ke(ee){y.actions.internal.setQuality(ee),te()}function ie(ee){y.actions.internal.setPlaybackRate(ee),te()}function Ke(){i(4,fe=!1),i(6,F=!0)}function ne(){i(4,fe=!0),i(5,K=!1),i(6,F=!1)}const ce=()=>w(void 0,void 0,void 0,function*(){q!=null&&q.isActive()?yield q==null?void 0:q.remove():yield q==null?void 0:q.request(),te()});function we(){window.open(b,"_blank"),te(),y.actions.internal.pause()}function pe(){Sr(y.actions.internal.getDebugTextData()),te()}function ve(){Y.set(!0),te()}function Pe(ee){switch(ee){case Ve.VideoQuality.Q_720P:return Y0;case Ve.VideoQuality.Q_1080P:return J0;case Ve.VideoQuality.Q_1440P:return K0;case Ve.VideoQuality.Q_2160P:return G0;case Ve.VideoQuality.Q_4320P:return X0}}function he(ee,ot,Ge){if(!ee)return"...";const We=ot.find(Ze=>Ze.value===ee),rt=We?We.displayValue:ee;return Ge?ee===Ve.VideoQuality.INVARIANT?Te("auto_quality_invariant"):Te("auto_quality",{actual:rt}):rt}let ye,ue,z;const $=ee=>ke(ee.value),le=ee=>ie(ee.value);return t.$$set=ee=>{"supportLink"in ee&&i(37,b=ee.supportLink)},t.$$.update=()=>{t.$$.dirty[1]&2048&&i(3,U=d!==Ve.ChromecastState.NOT_AVAILABLE),t.$$.dirty[0]&4&&a&&(i(4,fe=!0),i(5,K=!1),i(6,F=!1)),t.$$.dirty[1]&1024&&i(7,ye=Pe(c)),t.$$.dirty[0]&2|t.$$.dirty[1]&1536&&i(8,ue=he(c,s,r)),t.$$.dirty[0]&1|t.$$.dirty[1]&384&&i(9,z=o&&l?`max-height: ${Math.round(n.height*.6)}px`:"")},[o,s,a,U,fe,K,F,ye,ue,z,m,f,p,N,_,S,D,R,j,I,k,O,C,q,H,X,te,Ne,ke,ie,Ke,ne,ce,we,pe,ve,Pe,b,n,l,r,c,d,$,le]}class Ar extends be{constructor(e){super(),ge(this,e,cc,ac,me,{supportLink:37},rc,[-1,-1])}}var uc="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.516 11h1.107C27.103 11 28 10.066 28 8.5S27.103 6 25.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM19.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S19 6.198 19 6.54v3.989c0 .338.191.472.516.472z' fill='white'/%3e%3c/svg%3e",dc="data:image/svg+xml,%3csvg width='40' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3cpath d='M15 8.5A5.5 5.5 0 0 1 20.5 3h12a5.5 5.5 0 1 1 0 11h-12A5.5 5.5 0 0 1 15 8.5z' fill='%23689FF8'/%3e%3cpath d='M30.516 11h1.107C33.103 11 34 10.066 34 8.5S33.103 6 31.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM25.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S25 6.198 25 6.54v3.989c0 .338.191.472.516.472z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.338 10.909c-.254.06-.58.091-.838.091-1.463 0-2.5-.865-2.5-2.447C19 6.983 20.037 6 21.5 6c1.46 0 2.5.984 2.5 2.553 0 .863-.274 1.46-.777 1.88l.193.29a.5.5 0 1 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 0 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-.02z' fill='white'/%3e%3c/svg%3e",fc="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.517 11c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.284.516.284a.491.491 0 0 0 .499-.5c0-.14-.068-.287-.222-.478l-1.47-1.73 1.51-1.425c.13-.137.182-.25.182-.393A.474.474 0 0 0 27.515 6c-.171 0-.301.065-.445.222L25.064 8.25h-.03V6.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.537.516.537z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='m21.551 7.052-1.51 2.052h1.51V7.052zm.949 2.052V6.832c0-.81-1.089-1.14-1.556-.48l-1.805 2.469a.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 1 0 0-.9H22.5z' fill='white'/%3e%3c/svg%3e",vc="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.513 11c.323 0 .513-.198.513-.537v-.97l.49-.516 1.475 1.738c.16.205.302.284.513.284A.49.49 0 0 0 28 10.5c0-.14-.068-.287-.22-.478l-1.486-1.729 1.526-1.425c.129-.137.18-.25.18-.393A.473.473 0 0 0 27.517 6c-.17 0-.299.065-.441.222l-2.02 2.027h-.03V6.54c0-.342-.19-.54-.513-.54S24 6.198 24 6.54v3.923c0 .339.19.537.513.537z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M21 6c-.353 0-.671.057-.952.173a1.493 1.493 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.777l.001.002c.173.224.412.398.712.523.302.125.647.186 1.035.186.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.428 2.428 0 0 0 21 6zm-.573.964c.136-.105.323-.16.573-.16.25 0 .434.055.564.16h.001a.512.512 0 0 1 .203.43c0 .19-.07.333-.203.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.188a.636.636 0 0 1-.234-.523z' fill='white'/%3e%3c/svg%3e",mc="data:image/svg+xml,%3csvg width='38' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='21' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M28.516 11h1.107C31.103 11 32 10.066 32 8.5S31.103 6 29.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM23.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S23 6.198 23 6.54v3.989c0 .338.191.472.516.472zm-4 0c.325 0 .516-.198.516-.537V9h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407h-1.333V6.854h1.5c.28 0 .468-.16.468-.427 0-.266-.185-.427-.468-.427h-2.016c-.325 0-.516.198-.516.537v3.926c0 .339.191.537.516.537z' fill='white'/%3e%3c/svg%3e";function pc(t){Se(t,"v-1qf7s4g",".settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}")}function hc(t){let e,i,n,l,o,r,s;return{c(){e=g("div"),i=g("div"),n=g("img"),Ee(n.src,l=t[7](t[2],t[1]))||u(n,"src",l),u(n,"alt",""),u(i,"class","settingsButton-icon v-1qf7s4g"),E(i,"mobile",t[1]),u(e,"class",o=Nt(t[0])+" v-1qf7s4g"),u(e,"aria-label",Te("aria_open_settings")),u(e,"tabindex","-1"),u(e,"role","button")},m(c,a){M(c,e,a),v(e,i),v(i,n),r||(s=oe(e,"click",t[6]),r=!0)},p(c,[a]){a&6&&!Ee(n.src,l=c[7](c[2],c[1]))&&u(n,"src",l),a&2&&E(i,"mobile",c[1]),a&1&&o!==(o=Nt(c[0])+" v-1qf7s4g")&&u(e,"class",o)},i:B,o:B,d(c){c&&T(e),r=!1,s()}}}function gc(t,e,i){let n,l,o,{className:r=""}=e;const s=Qe(),c=s.state.currentQuality$;Q(t,c,p=>i(2,o=p));const a=s.ui.settingsMenuVisible;Q(t,a,p=>i(8,n=p));const d=s.ui.isMobile;Q(t,d,p=>i(1,l=p));function m(){a.set(!n)}function f(p,w){if(w)return yn;switch(p){case Ve.VideoQuality.Q_720P:return uc;case Ve.VideoQuality.Q_1080P:return mc;case Ve.VideoQuality.Q_1440P:return dc;case Ve.VideoQuality.Q_2160P:return fc;case Ve.VideoQuality.Q_4320P:return vc;default:return yn}}return t.$$set=p=>{"className"in p&&i(0,r=p.className)},[r,l,o,c,a,d,m,f]}class Cr extends be{constructor(e){super(),ge(this,e,gc,hc,me,{className:0},pc)}}const Lt=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t);const i=Math.floor(e/(60*60));e-=i*(60*60);const n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(o=>o>9?String(o):`0${o}`).join(":")};function bc(t){Se(t,"v-1bjfp5n",".time.v-1bjfp5n{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums}.current.v-1bjfp5n{position:relative}.duration.v-1bjfp5n{opacity:0.7}.duration.v-1bjfp5n:before{content:' / ';white-space:pre}")}function Pl(t){let e,i;return{c(){e=g("span"),i=_e(t[2]),u(e,"class","duration v-1bjfp5n")},m(n,l){M(n,e,l),v(e,i)},p(n,l){l&4&&Le(i,n[2])},d(n){n&&T(e)}}}function wc(t){let e,i,n,l,o,r=t[0]&&Pl(t);return{c(){e=g("div"),i=g("span"),n=_e(t[3]),l=L(),r&&r.c(),u(i,"class","current v-1bjfp5n"),u(e,"class",o="time "+t[1]+" v-1bjfp5n")},m(s,c){M(s,e,c),v(e,i),v(i,n),v(e,l),r&&r.m(e,null)},p(s,[c]){c&8&&Le(n,s[3]),s[0]?r?r.p(s,c):(r=Pl(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),c&2&&o!==(o="time "+s[1]+" v-1bjfp5n")&&u(e,"class",o)},i:B,o:B,d(s){s&&T(e),r&&r.d()}}}function _c(t,e,i){let{duration:n}=e,{position:l}=e,{showDuration:o=!0}=e,{className:r=""}=e,s,c;return t.$$set=a=>{"duration"in a&&i(4,n=a.duration),"position"in a&&i(5,l=a.position),"showDuration"in a&&i(0,o=a.showDuration),"className"in a&&i(1,r=a.className)},t.$$.update=()=>{t.$$.dirty&16&&i(2,s=Lt(n)),t.$$.dirty&32&&i(3,c=Lt(l))},[o,r,s,c,n,l]}class yc extends be{constructor(e){super(),ge(this,e,_c,wc,me,{duration:4,position:5,showDuration:0,className:1},bc)}}const kc=500,Sl=3e3,Vl=2e3,Pc=3e3,Sc=6e3,Vc=300,Er="vk_player_preferred_volume",Tr="vk_player_prefer_volume_mute",kn="vk_player_debug_panel_opened",qi=1,Ac=.05,Al=1,Cl=.05,El=10,Mr=300,Cc="https://vk.com/support?act=new&from=v",Ec=500;var tt;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ"})(tt||(tt={}));function Tc(t){Se(t,"v-mgwd2i",".slider.v-mgwd2i.v-mgwd2i{position:relative;height:var(--videoplayer-slider-height);border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-bg);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.v-mgwd2i.v-mgwd2i{cursor:default}.slider.v-mgwd2i.v-mgwd2i:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--videoplayer-controls-height) - var(--videoplayer-slider-height)) / 2);height:var(--videoplayer-controls-height)}.bars.v-mgwd2i.v-mgwd2i{position:absolute;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);overflow:hidden}.loaded.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-loaded-bg);transition:transform 0.2s}.filled.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background-color:var(--videoplayer-slider-filled-bg)}.slider.square.v-mgwd2i.v-mgwd2i,.slider.square.v-mgwd2i>.bars.v-mgwd2i,.slider.square.v-mgwd2i .loaded.v-mgwd2i,.slider.square.v-mgwd2i .filled.v-mgwd2i{border-radius:unset}.filled.active-live.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.filled.ads.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-ads)}.handleWrap.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%}.handle.v-mgwd2i.v-mgwd2i{position:absolute;width:var(--videoplayer-slider-handle-size);height:var(--videoplayer-slider-handle-size);right:calc(-1 * var(--videoplayer-slider-handle-size) / 2);top:calc((var(--videoplayer-slider-height) - var(--videoplayer-slider-handle-size)) / 2);border-radius:50%;background-color:var(--videoplayer-slider-filled-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.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.slider.v-mgwd2i:hover .handle.v-mgwd2i,.slider-dragging.v-mgwd2i .handle.v-mgwd2i{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-mgwd2i .handle.v-mgwd2i{transform:scale(1.3)}.slider-vertical.v-mgwd2i.v-mgwd2i{position:absolute;left:-26px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.hidden.v-mgwd2i.v-mgwd2i{visibility:hidden;opacity:0}")}function Mc(t){let e,i,n,l,o,r,s,c,a,d,m,f,p,w;return{c(){e=g("div"),i=g("div"),n=g("div"),o=L(),r=g("div"),c=L(),a=g("div"),d=g("div"),u(n,"class","loaded v-mgwd2i"),u(n,"style",l=`transform: translateX(${t[6]*100}%);`),u(r,"class","filled v-mgwd2i"),u(r,"style",s=`transform: translateX(${t[7]*100}%);`),E(r,"active-live",t[3]),E(r,"ads",t[4]),u(i,"class","bars v-mgwd2i"),u(d,"class","handle v-mgwd2i"),E(d,"active-live",t[3]),u(a,"class","handleWrap v-mgwd2i"),u(a,"style",m=`transform: translateX(${t[8]*100}%);`),E(a,"hidden",t[4]),u(e,"class",f="slider "+t[0]+" v-mgwd2i"),u(e,"aria-label",t[9]),u(e,"aria-valuemin",t[10]),u(e,"aria-valuemax",t[11]),u(e,"aria-valuenow",t[12]),u(e,"aria-valuetext",t[13]),u(e,"role","slider"),u(e,"tabindex","0"),E(e,"slider-dragging",t[15]),E(e,"hidden",t[1]),E(e,"slider-vertical",t[2]),E(e,"no-handle",t[4]),E(e,"square",t[5])},m(b,y){M(b,e,y),v(e,i),v(i,n),v(i,o),v(i,r),v(e,c),v(e,a),v(a,d),t[27](e),p||(w=[oe(e,"pointerdown",Ht(t[16])),oe(e,"pointermove",Ht(t[17])),oe(e,"pointerup",Ht(t[18])),oe(e,"pointerenter",Ht(t[19])),oe(e,"pointerleave",Ht(t[20]))],p=!0)},p(b,[y]){y&64&&l!==(l=`transform: translateX(${b[6]*100}%);`)&&u(n,"style",l),y&128&&s!==(s=`transform: translateX(${b[7]*100}%);`)&&u(r,"style",s),y&8&&E(r,"active-live",b[3]),y&16&&E(r,"ads",b[4]),y&8&&E(d,"active-live",b[3]),y&256&&m!==(m=`transform: translateX(${b[8]*100}%);`)&&u(a,"style",m),y&16&&E(a,"hidden",b[4]),y&1&&f!==(f="slider "+b[0]+" v-mgwd2i")&&u(e,"class",f),y&512&&u(e,"aria-label",b[9]),y&1024&&u(e,"aria-valuemin",b[10]),y&2048&&u(e,"aria-valuemax",b[11]),y&4096&&u(e,"aria-valuenow",b[12]),y&8192&&u(e,"aria-valuetext",b[13]),y&32769&&E(e,"slider-dragging",b[15]),y&3&&E(e,"hidden",b[1]),y&5&&E(e,"slider-vertical",b[2]),y&17&&E(e,"no-handle",b[4]),y&33&&E(e,"square",b[5])},i:B,o:B,d(b){b&&T(e),t[27](null),p=!1,lt(w)}}}function Lc(t,e,i){let{className:n=""}=e,{isHidden:l=!1}=e,{isVertical:o=!1}=e,{isActiveLive:r=!1}=e,{isAds:s=!1}=e,{squareBorders:c=!1}=e,a,d,{onPointerDown:m=B}=e,{onHandleMove:f=B}=e,{onPointerUp:p=B}=e,{onPointerEnter:w=B}=e,{onPointerMove:b=B}=e,{onPointerLeave:y=B}=e,{loadedProgress:N=0}=e,{filledProgress:_=0}=e,{handleProgress:S=0}=e,{ariaLabel:D=""}=e,{ariaValueMin:R=void 0}=e,{ariaValueMax:j=void 0}=e,{ariaValueNow:I=void 0}=e,{ariaValueText:k=""}=e,O=!1;function C(F){if(O)return;i(15,O=!0),d=a.getBoundingClientRect();const te=X(F.clientX,F.clientY);m(te),a.setPointerCapture(F.pointerId)}function Y(F){const te=X(F.clientX,F.clientY),Ne=fe(F.clientX);b(te,Ne),O&&f(te)}function q(F){if(!O)return;i(15,O=!1);const te=X(F.clientX,F.clientY);p(te)}function H(F){d=a.getBoundingClientRect();const te=X(F.clientX,F.clientY),Ne=fe(F.clientX);w(te,Ne)}function U(){y()}function X(F,te){return o?Math.max(0,Math.min(1,(d.height-(te-d.top))/d.height)):Math.min(Math.max(F-d.x,0),d.width)/d.width}function fe(F){return Math.min(Math.max(F-d.x,0),d.width)}function K(F){nt[F?"unshift":"push"](()=>{a=F,i(14,a)})}return t.$$set=F=>{"className"in F&&i(0,n=F.className),"isHidden"in F&&i(1,l=F.isHidden),"isVertical"in F&&i(2,o=F.isVertical),"isActiveLive"in F&&i(3,r=F.isActiveLive),"isAds"in F&&i(4,s=F.isAds),"squareBorders"in F&&i(5,c=F.squareBorders),"onPointerDown"in F&&i(21,m=F.onPointerDown),"onHandleMove"in F&&i(22,f=F.onHandleMove),"onPointerUp"in F&&i(23,p=F.onPointerUp),"onPointerEnter"in F&&i(24,w=F.onPointerEnter),"onPointerMove"in F&&i(25,b=F.onPointerMove),"onPointerLeave"in F&&i(26,y=F.onPointerLeave),"loadedProgress"in F&&i(6,N=F.loadedProgress),"filledProgress"in F&&i(7,_=F.filledProgress),"handleProgress"in F&&i(8,S=F.handleProgress),"ariaLabel"in F&&i(9,D=F.ariaLabel),"ariaValueMin"in F&&i(10,R=F.ariaValueMin),"ariaValueMax"in F&&i(11,j=F.ariaValueMax),"ariaValueNow"in F&&i(12,I=F.ariaValueNow),"ariaValueText"in F&&i(13,k=F.ariaValueText)},[n,l,o,r,s,c,N,_,S,D,R,j,I,k,a,O,C,Y,q,H,U,m,f,p,w,b,y,K]}class Ln extends be{constructor(e){super(),ge(this,e,Lc,Mc,me,{className:0,isHidden:1,isVertical:2,isActiveLive:3,isAds:4,squareBorders:5,onPointerDown:21,onHandleMove:22,onPointerUp:23,onPointerEnter:24,onPointerMove:25,onPointerLeave:26,loadedProgress:6,filledProgress:7,handleProgress:8,ariaLabel:9,ariaValueMin:10,ariaValueMax:11,ariaValueNow:12,ariaValueText:13},Tc)}}function Nc(t){Se(t,"v-7xwnio",".icon.v-7xwnio.v-7xwnio{display:block;width:24px;height:24px}.icon.v-7xwnio .cross.v-7xwnio{visibility:hidden}.icon[data-value='off'].v-7xwnio .wave1.v-7xwnio,.icon[data-value='off'].v-7xwnio .wave2.v-7xwnio{visibility:hidden}.icon[data-value='off'].v-7xwnio .cross.v-7xwnio{visibility:visible}.icon[data-value='mid'].v-7xwnio .wave2.v-7xwnio,.icon[data-value='min'].v-7xwnio .wave2.v-7xwnio{visibility:hidden}.no-volumeBar.v-7xwnio.v-7xwnio{padding-right:8px}.volumeBar.v-7xwnio.v-7xwnio{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-7xwnio.v-7xwnio{padding:0;width:0}")}function Tl(t){let e,i,n;return i=new Ln({props:{className:t[0]?"volumeBar-slider-vertical":"",isHidden:t[0]&&!t[2],isVertical:t[0],onPointerDown:t[7],onHandleMove:t[8],onPointerUp:t[9],onPointerEnter:t[0]?t[10]:B,onPointerLeave:t[0]?t[11]:B,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(t[4]*100),ariaValueText:`${Math.round(t[4]*100)}%`,filledProgress:t[4],handleProgress:t[4]}}),{c(){e=g("div"),x(i.$$.fragment),u(e,"class","volumeBar v-7xwnio"),E(e,"volumeBar-vertical",t[0])},m(l,o){M(l,e,o),J(i,e,null),n=!0},p(l,o){const r={};o&1&&(r.className=l[0]?"volumeBar-slider-vertical":""),o&5&&(r.isHidden=l[0]&&!l[2]),o&1&&(r.isVertical=l[0]),o&1&&(r.onPointerEnter=l[0]?l[10]:B),o&1&&(r.onPointerLeave=l[0]?l[11]:B),o&16&&(r.ariaValueNow=Math.round(l[4]*100)),o&16&&(r.ariaValueText=`${Math.round(l[4]*100)}%`),o&16&&(r.filledProgress=l[4]),o&16&&(r.handleProgress=l[4]),i.$set(r),(!n||o&1)&&E(e,"volumeBar-vertical",l[0])},i(l){n||(h(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function zc(t){let e,i,n,l,o,r,s,c,a,d,m,f=t[1]&&Tl(t);return{c(){e=g("div"),i=Me("svg"),n=Me("g"),l=Me("path"),o=Me("path"),r=Me("path"),s=L(),f&&f.c(),c=ct(),u(l,"class","wave2 v-7xwnio"),u(l,"d","M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032zm3-1.99999997c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0 .2637116.26371158.6207023.73969919.9665078 1.43131016.5167785 1.03355701.842501 2.25503497.8892639 3.71655167-.0467629 1.4032299-.3724854 2.6247079-.8892639 3.6582649-.3458055.6916109-.7027962 1.1675985-.9665078 1.4313101-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.1375896-.1375897.3825507-.4642045.638697-.9764971.4071252-.8142505.6673665-1.7901701.7054825-2.8756411-.038116-1.1437578-.2983573-2.11967743-.7054825-2.93392787-.2561463-.51229266-.5011074-.83890747-.638697-.9764971z"),u(o,"class","wave1 v-7xwnio"),u(o,"d","M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032z"),u(r,"class","cross v-7xwnio"),u(r,"d","M20 10.7625631l2.3812816-2.38128153c.3417087-.34170876.8957281-.34170876 1.2374368 0 .3417088.34170875.3417088.89572811 0 1.23743686L21.2374369 12l2.3812815 2.3812816c.3417088.3417087.3417088.8957281 0 1.2374368-.3417087.3417088-.8957281.3417088-1.2374368 0L20 13.2374369l-2.3812816 2.3812815c-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368L18.7625631 12l-2.3812815-2.38128157c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0zm-7.019157 8.060199c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545z"),u(n,"fill","#fff"),u(n,"fill-rule","evenodd"),u(i,"xmlns","http://www.w3.org/2000/svg"),u(i,"class","icon v-7xwnio"),u(i,"data-value",t[3]),u(e,"tabindex","0"),u(e,"role","button"),u(e,"class","v-7xwnio"),E(e,"no-volumeBar",!t[1])},m(p,w){M(p,e,w),v(e,i),v(i,n),v(n,l),v(n,o),v(n,r),M(p,s,w),f&&f.m(p,w),M(p,c,w),a=!0,d||(m=[oe(e,"mouseenter",function(){Ue(t[0]?t[12]:B)&&(t[0]?t[12]:B).apply(this,arguments)}),oe(e,"mouseleave",function(){Ue(t[0]?t[13]:B)&&(t[0]?t[13]:B).apply(this,arguments)}),oe(e,"click",t[17])],d=!0)},p(p,[w]){t=p,(!a||w&8)&&u(i,"data-value",t[3]),(!a||w&2)&&E(e,"no-volumeBar",!t[1]),t[1]?f?(f.p(t,w),w&2&&h(f,1)):(f=Tl(t),f.c(),h(f,1),f.m(c.parentNode,c)):f&&(se(),P(f,1,1,()=>{f=null}),ae())},i(p){a||(h(f),a=!0)},o(p){P(f),a=!1},d(p){p&&T(e),p&&T(s),f&&f.d(p),p&&T(c),d=!1,lt(m)}}}function Ic(t,e,i){let n,l,{isVerticalVolume:o=!1}=e,{isAudioAvailable:r=!0}=e;const s=Qe(),c=s.state.volume$;Q(t,c,q=>i(15,n=q));const a=s.state.muted$;Q(t,a,q=>i(16,l=q));const d=s.actions.internal.setVolume;let m=!1,f,p,w,b,y=1,N=!1;function _(q){y=n,d(q)}function S(q){d(q)}function D(q){const H=q;d(H,H===0?y:H)}function R(){N=!0}function j(){N=!1,O()}function I(){clearTimeout(f),i(2,m=!0)}function k(){O()}function O(){f=window.setTimeout(()=>{N||i(2,m=!1)},Vc)}function C(q,H){return H?"off":q>.5?"max":q>.2?"mid":q>0?"min":"off"}function Y(q){ft.call(this,t,q)}return t.$$set=q=>{"isVerticalVolume"in q&&i(0,o=q.isVerticalVolume),"isAudioAvailable"in q&&i(1,r=q.isAudioAvailable)},t.$$.update=()=>{t.$$.dirty&65538&&i(14,p=!r||l),t.$$.dirty&49152&&i(3,w=C(n,p)),t.$$.dirty&49152&&i(4,b=p?0:n)},[o,r,m,w,b,c,a,_,S,D,R,j,I,k,p,n,l,Y]}class Rc extends be{constructor(e){super(),ge(this,e,Ic,zc,me,{isVerticalVolume:0,isAudioAvailable:1},Nc)}}function Bc(t){Se(t,"v-1fkqq1h",".container.v-1fkqq1h{display:flex;align-items:center;height:100%;transition:var(--videoplayer-button-hover-transition);will-change:opacity;cursor:pointer;-webkit-tap-highlight-color:transparent}.container.v-1fkqq1h:hover{opacity:0.8}.disabled.v-1fkqq1h{pointer-events:none}")}function Oc(t){let e,i,n;const l=t[3].default,o=is(l,t,t[2],null);return{c(){e=g("div"),o&&o.c(),u(e,"class",i="container "+t[0]+" v-1fkqq1h"),E(e,"disabled",t[1])},m(r,s){M(r,e,s),o&&o.m(e,null),n=!0},p(r,[s]){o&&o.p&&(!n||s&4)&&ls(o,l,r,r[2],n?ns(l,r[2],s,null):os(r[2]),null),(!n||s&1&&i!==(i="container "+r[0]+" v-1fkqq1h"))&&u(e,"class",i),(!n||s&3)&&E(e,"disabled",r[1])},i(r){n||(h(o,r),n=!0)},o(r){P(o,r),n=!1},d(r){r&&T(e),o&&o.d(r)}}}function jc(t,e,i){let{$$slots:n={},$$scope:l}=e,{className:o=""}=e,{disabled:r=!1}=e;return t.$$set=s=>{"className"in s&&i(0,o=s.className),"disabled"in s&&i(1,r=s.disabled),"$$scope"in s&&i(2,l=s.$$scope)},[o,r,l,n]}class kt extends be{constructor(e){super(),ge(this,e,jc,Oc,me,{className:0,disabled:1},Bc)}}function Fc(t){Se(t,"v-daygaf",".icon.v-daygaf{display:block;width:24px;height:24px}")}function Dc(t){let e;return{c(){e=Me("path"),u(e,"class","_enter"),u(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(i,n){M(i,e,n)},d(i){i&&T(e)}}}function Hc(t){let e;return{c(){e=Me("path"),u(e,"class","_exit"),u(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(i,n){M(i,e,n)},d(i){i&&T(e)}}}function qc(t){let e,i,n,l,o;function r(a,d){return a[0]?Hc:Dc}let s=r(t),c=s(t);return{c(){e=g("div"),i=Me("svg"),n=Me("g"),c.c(),u(n,"fill","#fff"),u(n,"fill-rule","evenodd"),u(i,"class","icon v-daygaf"),u(i,"xmlns","http://www.w3.org/2000/svg"),u(e,"role","button"),u(e,"tabindex","0")},m(a,d){M(a,e,d),v(e,i),v(i,n),c.m(n,null),l||(o=oe(e,"click",t[2]),l=!0)},p(a,[d]){s!==(s=r(a))&&(c.d(1),c=s(a),c&&(c.c(),c.m(n,null)))},i:B,o:B,d(a){a&&T(e),c.d(),l=!1,o()}}}function Uc(t,e,i){let n;const o=Qe().ui.isFullscreen;Q(t,o,s=>i(0,n=s));function r(s){ft.call(this,t,s)}return[n,o,r]}class Qc extends be{constructor(e){super(),ge(this,e,Uc,qc,me,{},Fc)}}var Pn="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e",Ml="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e",Wc="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6v3.096z' fill='white'/%3e%3c/svg%3e";function Mt(t,e,i,n){function l(o){return o instanceof i?o:new i(function(r){r(o)})}return new(i||(i=Promise))(function(o,r){function s(d){try{a(n.next(d))}catch(m){r(m)}}function c(d){try{a(n.throw(d))}catch(m){r(m)}}function a(d){d.done?o(d.value):l(d.value).then(s,c)}a((n=n.apply(t,e||[])).next())})}class Lr{constructor(){this.isRequested=!1,this.videoElement=void 0,this.externalEventHandlers={},this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:Do(this.onResize.bind(this),Mr)}}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}revealPictureInPicture(){return Mt(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}hidePictureInPicture(){return Mt(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.remove(),this.registryEventHandlers())})}request(){var e;return Mt(this,void 0,void 0,function*(){if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return Mt(this,void 0,void 0,function*(){!this.isSupported()||!this.isActive||(yield document.exitPictureInPicture())})}updateVideoElement(e){this.isSupported()&&(this.videoElement=e)}registryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Object.assign({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}onEnterPictureInPicture(e){var i,n;this.isRequested=!0,e.pictureInPictureWindow.addEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(i,e)}onLeavePictureInPicture(e){var i,n;this.isRequested=!1,e.pictureInPictureWindow.removeEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(i,e)}onResize(e){var i,n;(n=(i=this.externalEventHandlers).resize)===null||n===void 0||n.call(i,e)}}const Yc=460,Kc=280;class Gc{isSupported(){return"documentPictureInPicture"in window}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}request(){var e,i;return Mt(this,void 0,void 0,function*(){!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot||(this.pipWindow=yield documentPictureInPicture.requestWindow({width:Yc,height:Kc,copyStyleSheets:!0}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(this.playerDomElement),(i=this.pipWindow)===null||i===void 0||i.addEventListener("unload",n=>{!this.playerDomElement||!this.playerParentShadowRoot||this.playerParentShadowRoot.append(this.playerDomElement)}))})}remove(){return Mt(this,void 0,void 0,function*(){return new Promise(e=>{documentPictureInPicture.window.close(),e()})})}}var di;(function(t){t.AUTO="auto"})(di||(di={}));var Ce;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed"})(Ce||(Ce={}));var _t;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(_t||(_t={}));var qe;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(qe||(qe={}));function Sn(t){return t instanceof Lr}function Xc(t){return t instanceof Gc}function Jc(t){Se(t,"v-1kcq5gq",".container-mobile.v-1kcq5gq{width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center;position:relative}.icon.v-1kcq5gq{display:block;width:24px;height:24px}.icon-mobile.v-1kcq5gq{position:relative;width:48px;height:48px}.icon-background-mobile.v-1kcq5gq{position:absolute;top:0;left:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);width:100%;height:100%}")}function Zc(t){let e,i,n,l,o,r;return{c(){e=g("div"),i=g("img"),Ee(i.src,n=t[2])||u(i,"src",n),u(i,"class","icon v-1kcq5gq"),u(i,"alt",""),u(e,"class",l=Nt(t[0])+" v-1kcq5gq"),u(e,"role","button"),u(e,"tabindex","0")},m(s,c){M(s,e,c),v(e,i),o||(r=oe(e,"click",function(){Ue(t[1])&&t[1].apply(this,arguments)}),o=!0)},p(s,c){t=s,c&4&&!Ee(i.src,n=t[2])&&u(i,"src",n),c&1&&l!==(l=Nt(t[0])+" v-1kcq5gq")&&u(e,"class",l)},d(s){s&&T(e),o=!1,r()}}}function xc(t){let e,i,n,l,o,r,s;return{c(){e=g("div"),i=g("div"),n=L(),l=g("img"),u(i,"class","icon-background-mobile v-1kcq5gq"),Ee(l.src,o=t[2])||u(l,"src",o),u(l,"class","icon-mobile v-1kcq5gq"),u(l,"alt",""),u(e,"class","container-mobile v-1kcq5gq"),u(e,"role","button"),u(e,"tabindex","0")},m(c,a){M(c,e,a),v(e,i),v(e,n),v(e,l),r||(s=oe(e,"click",function(){Ue(t[1])&&t[1].apply(this,arguments)}),r=!0)},p(c,a){t=c,a&4&&!Ee(l.src,o=t[2])&&u(l,"src",o)},d(c){c&&T(e),r=!1,s()}}}function $c(t){let e;function i(o,r){return o[3]?xc:Zc}let n=i(t),l=n(t);return{c(){l.c(),e=ct()},m(o,r){l.m(o,r),M(o,e,r)},p(o,[r]){n===(n=i(o))&&l?l.p(o,r):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:B,o:B,d(o){l.d(o),o&&T(e)}}}function eu(t,e,i){let n,l,o,{isEnded:r}=e,{isAds:s}=e,{playbackState:c}=e,{adPlaybackState:a}=e,{className:d=""}=e,{handlePlayClick:m}=e,{repeatPlaylist:f}=e,{isOneVideoPlaylist:p}=e;const b=Qe().ui.isMobile;Q(t,b,_=>i(3,o=_));function y(_,S){return S?Wc:_===Ve.PlaybackState.PLAYING?Ml:Pn}function N(_){return _===qe.PLAYING?Ml:Pn}return t.$$set=_=>{"isEnded"in _&&i(5,r=_.isEnded),"isAds"in _&&i(6,s=_.isAds),"playbackState"in _&&i(7,c=_.playbackState),"adPlaybackState"in _&&i(8,a=_.adPlaybackState),"className"in _&&i(0,d=_.className),"handlePlayClick"in _&&i(9,m=_.handlePlayClick),"repeatPlaylist"in _&&i(10,f=_.repeatPlaylist),"isOneVideoPlaylist"in _&&i(11,p=_.isOneVideoPlaylist)},t.$$.update=()=>{t.$$.dirty&480&&i(2,n=s?N(a):y(c,r)),t.$$.dirty&3680&&i(1,l=!s&&r&&!p?f:m)},[d,l,n,o,b,r,s,c,a,m,f,p]}class Nn extends be{constructor(e){super(),ge(this,e,eu,$c,me,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},Jc)}}var Nr="data:image/svg+xml,%3csvg width='26' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e";function tu(t){Se(t,"v-1tmb7ku",".container-mobile-prev.v-1tmb7ku{margin-right:12px}.container-mobile-next.v-1tmb7ku{margin-right:12px}.disabled.v-1tmb7ku{opacity:0.4;pointer-events:none}.icon.v-1tmb7ku{display:block;height:24px}.icon-mobile.v-1tmb7ku{height:32px}.icon-prev.v-1tmb7ku{transform:scaleX(-1)}")}function iu(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),u(i,"class","icon v-1tmb7ku"),Ee(i.src,n=Nr)||u(i,"src",n),u(i,"alt",""),E(i,"icon-prev",t[1]==="prev"),u(e,"role","button"),u(e,"tabindex","0"),u(e,"class","v-1tmb7ku"),E(e,"disabled",t[0])},m(r,s){M(r,e,s),v(e,i),l||(o=oe(e,"click",t[5]),l=!0)},p(r,s){s&2&&E(i,"icon-prev",r[1]==="prev"),s&1&&E(e,"disabled",r[0])},d(r){r&&T(e),l=!1,o()}}}function nu(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),u(i,"class","icon-mobile v-1tmb7ku"),Ee(i.src,n=Nr)||u(i,"src",n),u(i,"alt",""),E(i,"icon-prev",t[1]==="prev"),u(e,"role","button"),u(e,"tabindex","0"),u(e,"class","v-1tmb7ku"),E(e,"container-mobile-prev",t[1]==="prev"),E(e,"container-mobile-next",t[1]==="next"),E(e,"disabled",t[0])},m(r,s){M(r,e,s),v(e,i),l||(o=oe(e,"click",t[4]),l=!0)},p(r,s){s&2&&E(i,"icon-prev",r[1]==="prev"),s&2&&E(e,"container-mobile-prev",r[1]==="prev"),s&2&&E(e,"container-mobile-next",r[1]==="next"),s&1&&E(e,"disabled",r[0])},d(r){r&&T(e),l=!1,o()}}}function lu(t){let e;function i(o,r){return o[2]?nu:iu}let n=i(t),l=n(t);return{c(){l.c(),e=ct()},m(o,r){l.m(o,r),M(o,e,r)},p(o,[r]){n===(n=i(o))&&l?l.p(o,r):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:B,o:B,d(o){l.d(o),o&&T(e)}}}function ou(t,e,i){let n,{disabled:l=!1}=e,{type:o}=e;const s=Qe().ui.isMobile;Q(t,s,d=>i(2,n=d));function c(d){ft.call(this,t,d)}function a(d){ft.call(this,t,d)}return t.$$set=d=>{"disabled"in d&&i(0,l=d.disabled),"type"in d&&i(1,o=d.type)},[l,o,n,s,c,a]}class Ui extends be{constructor(e){super(),ge(this,e,ou,lu,me,{disabled:0,type:1},tu)}}var zr="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-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.265zM6 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.197H6z' fill='white'/%3e%3c/svg%3e";function ru(t){Se(t,"v-j4644b",".no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}")}function su(t){let e,i;return{c(){e=g("img"),Ee(e.src,i=zr)||u(e,"src",i),u(e,"class","icon v-j4644b"),u(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&T(e)}}}function au(t){let e,i,n,l,o;return{c(){e=g("a"),i=g("img"),Ee(i.src,n=zr)||u(i,"src",n),u(i,"class","icon v-j4644b"),u(i,"alt",""),u(e,"href","https://vk.com/video"),u(e,"target","_blank"),u(e,"rel","noreferrer")},m(r,s){M(r,e,s),v(e,i),l||(o=oe(e,"click",t[2]),l=!0)},p:B,d(r){r&&T(e),l=!1,o()}}}function cu(t){let e,i;function n(r,s){return r[1]?au:su}let l=n(t),o=l(t);return{c(){e=g("div"),o.c(),u(e,"class",i=Nt(t[0])+" v-j4644b"),u(e,"role","button"),u(e,"tabindex","0"),E(e,"no-hover",!t[1])},m(r,s){M(r,e,s),o.m(e,null)},p(r,[s]){l===(l=n(r))&&o?o.p(r,s):(o.d(1),o=l(r),o&&(o.c(),o.m(e,null))),s&1&&i!==(i=Nt(r[0])+" v-j4644b")&&u(e,"class",i),s&3&&E(e,"no-hover",!r[1])},i:B,o:B,d(r){r&&T(e),o.d()}}}function uu(t,e,i){let{className:n=""}=e,{logoClickable:l=!1}=e;function o(r){ft.call(this,t,r)}return t.$$set=r=>{"className"in r&&i(0,n=r.className),"logoClickable"in r&&i(1,l=r.logoClickable)},[n,l,o]}class Ir extends be{constructor(e){super(),ge(this,e,uu,cu,me,{className:0,logoClickable:1},ru)}}var du="data:image/svg+xml,%3csvg viewBox='0 0 42 20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 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.52 3.52 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.52 3.52 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.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z' fill='none' stroke='white' stroke-width='2'/%3e%3cpath 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.49.49 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.49.49 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.89.89 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.89.89 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-.9z' fill='%23f0f2f5' fill-rule='evenodd'/%3e%3c/svg%3e",fu="data:image/svg+xml,%3csvg width='42' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='42' height='20' rx='5' fill='%23FF3347'/%3e%3cpath fill-rule='evenodd' clip-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-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-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-2h-4zm-8.325 9.31-2.55-7.824a.993.993 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.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z' fill='%23F2F3F5'/%3e%3c/svg%3e";function vu(t){Se(t,"v-rwtbzf",".icon.v-rwtbzf{display:block;width:42px;height:20px}")}function mu(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),Ee(i.src,n=t[0])||u(i,"src",n),u(i,"class","icon v-rwtbzf"),u(i,"alt",""),u(e,"role","button"),u(e,"tabindex","0")},m(r,s){M(r,e,s),v(e,i),l||(o=oe(e,"click",t[2]),l=!0)},p(r,[s]){s&1&&!Ee(i.src,n=r[0])&&u(i,"src",n)},i:B,o:B,d(r){r&&T(e),l=!1,o()}}}function pu(t,e,i){let{isActiveLive:n=!1}=e,l="";function o(r){ft.call(this,t,r)}return t.$$set=r=>{"isActiveLive"in r&&i(1,n=r.isActiveLive)},t.$$.update=()=>{t.$$.dirty&2&&i(0,l=n?fu:du)},[l,n,o]}class hu extends be{constructor(e){super(),ge(this,e,pu,mu,me,{isActiveLive:1},vu)}}var Ll="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath fill='white' 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.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z'/%3e%3c/g%3e%3c/svg%3e",Nl="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath fill='white' fill-rule='nonzero' d='M21.657 17.657a.9.9 0 1 1-1.273-1.273 6.2 6.2 0 0 0 0-8.768.9.9 0 1 1 1.273-1.273 8 8 0 0 1 0 11.314ZM19.11 15.11a.9.9 0 0 1-1.273-1.273 2.6 2.6 0 0 0 0-3.676.9.9 0 1 1 1.273-1.273 4.4 4.4 0 0 1 0 6.222ZM5 15a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l5.514-5.307A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5Z'/%3e%3c/g%3e%3c/svg%3e";function gu(t){Se(t,"v-dsbe5p",".container.v-dsbe5p{display:flex;height:32px;align-items:center;padding:0 8px}.expanded.v-dsbe5p{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.icon.v-dsbe5p{width:24px;height:24px}.text.v-dsbe5p{font-size:15px;margin-left:8px}")}function zl(t){let e;return{c(){e=g("span"),e.textContent=`${Te("mobile_unmute")}`,u(e,"class","text v-dsbe5p")},m(i,n){M(i,e,n)},p:B,d(i){i&&T(e)}}}function bu(t){let e,i,n,l,o,r,s=t[0]&&zl();return{c(){e=g("div"),i=g("img"),l=L(),s&&s.c(),Ee(i.src,n=t[0]?Nl:Ll)||u(i,"src",n),u(i,"class","icon v-dsbe5p"),u(i,"alt",""),u(e,"class","container v-dsbe5p"),E(e,"expanded",t[0])},m(c,a){M(c,e,a),v(e,i),v(e,l),s&&s.m(e,null),o||(r=oe(e,"click",t[1]),o=!0)},p(c,[a]){a&1&&!Ee(i.src,n=c[0]?Nl:Ll)&&u(i,"src",n),c[0]?s?s.p(c,a):(s=zl(),s.c(),s.m(e,null)):s&&(s.d(1),s=null),a&1&&E(e,"expanded",c[0])},i:B,o:B,d(c){c&&T(e),s&&s.d(),o=!1,r()}}}function wu(t,e,i){let{expanded:n=!1}=e;function l(o){ft.call(this,t,o)}return t.$$set=o=>{"expanded"in o&&i(0,n=o.expanded)},[n,l]}class Rr extends be{constructor(e){super(),ge(this,e,wu,bu,me,{expanded:0},gu)}}function _u(t){Se(t,"v-1bwjmdb",'.tooltip-wrapper.v-1bwjmdb{position:relative;display:block}.tooltip.v-1bwjmdb{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.tooltip.v-1bwjmdb: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)}.content.v-1bwjmdb{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1bwjmdb{opacity:1;visibility:visible}')}function yu(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("div"),n=g("div"),l=_e(t[0]),u(n,"class","content v-1bwjmdb"),u(i,"class","tooltip v-1bwjmdb"),E(i,"active",t[1]),u(e,"class","tooltip-wrapper v-1bwjmdb"),u(e,"style",o=`transform: translate(${t[2]}px, ${t[3]}px);`)},m(r,s){M(r,e,s),v(e,i),v(i,n),v(n,l)},p(r,[s]){s&1&&Le(l,r[0]),s&2&&E(i,"active",r[1]),s&12&&o!==(o=`transform: translate(${r[2]}px, ${r[3]}px);`)&&u(e,"style",o)},i:B,o:B,d(r){r&&T(e)}}}function ku(t,e,i){let{content:n=""}=e,{active:l=!1}=e,{translateXPx:o=0}=e,{translateYPx:r=0}=e;return t.$$set=s=>{"content"in s&&i(0,n=s.content),"active"in s&&i(1,l=s.active),"translateXPx"in s&&i(2,o=s.translateXPx),"translateYPx"in s&&i(3,r=s.translateYPx)},[n,l,o,r]}class Pu extends be{constructor(e){super(),ge(this,e,ku,yu,me,{content:0,active:1,translateXPx:2,translateYPx:3},_u)}}function Il(t){let e,i;return e=new Pu({props:{content:t[5],active:t[4],translateXPx:t[6],translateYPx:-16}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l&32&&(o.content=n[5]),l&16&&(o.active=n[4]),l&64&&(o.translateXPx=n[6]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Su(t){let e,i,n,l=(!t[8]||t[8]&&t[7])&&Il(t);return i=new Ln({props:{isActiveLive:t[9],ariaLabel:Te("aria_timeline"),ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:Te("aria_timeline_value",{position:t[2],duration:t[1]}),loadedProgress:t[10],filledProgress:t[3],handleProgress:t[3],onPointerDown:t[17],onHandleMove:t[18],onPointerMove:t[21],onPointerUp:t[19],onPointerEnter:t[20],onPointerLeave:t[22]}}),{c(){l&&l.c(),e=L(),x(i.$$.fragment)},m(o,r){l&&l.m(o,r),M(o,e,r),J(i,o,r),n=!0},p(o,[r]){!o[8]||o[8]&&o[7]?l?(l.p(o,r),r&384&&h(l,1)):(l=Il(o),l.c(),h(l,1),l.m(e.parentNode,e)):l&&(se(),P(l,1,1,()=>{l=null}),ae());const s={};r&512&&(s.isActiveLive=o[9]),r&1&&(s.ariaValueMax=o[0]),r&8&&(s.ariaValueNow=Math.round(o[3]*100)),r&6&&(s.ariaValueText=Te("aria_timeline_value",{position:o[2],duration:o[1]})),r&1024&&(s.loadedProgress=o[10]),r&8&&(s.filledProgress=o[3]),r&8&&(s.handleProgress=o[3]),i.$set(s)},i(o){n||(h(l),h(i.$$.fragment,o),n=!0)},o(o){P(l),P(i.$$.fragment,o),n=!1},d(o){l&&l.d(o),o&&T(e),Z(i,o)}}}function Vu(t,e,i){let n,l,o,r,s,c;const a=Qe(),d=a.state.bufferedProgress$;Q(t,d,U=>i(10,c=U));const m=a.state.positionWithScrubbing$;Q(t,m,U=>i(23,o=U));const f=a.state.duration$;Q(t,f,U=>i(0,l=U));const p=a.state.isLive$;Q(t,p,U=>i(7,n=U));const w=a.state.isActiveLive$;Q(t,w,U=>i(9,s=U));const b=a.ui.isMobile;Q(t,b,U=>i(8,r=U));let y,N,_,S=!1,D="",R=0;function j(U){a.actions.internal.startScrubbing(U)}function I(U){a.actions.internal.progressScrubbing(U)}function k(U){a.actions.internal.completeScrubbing(U)}function O(U,X){q(U,X),i(4,S=!0)}function C(U,X){q(U,X)}function Y(){i(4,S=!1)}function q(U,X){i(6,R=X),i(5,D=H(U))}function H(U){const X=Lt((n?1-U:U)*l);return n?`-${X}`:X}return t.$$.update=()=>{t.$$.dirty&1&&i(1,y=Lt(l)),t.$$.dirty&8388608&&i(2,N=Lt(o)),t.$$.dirty&8388609&&i(3,_=o/l)},[l,y,N,_,S,D,R,n,r,s,c,d,m,f,p,w,b,j,I,k,O,C,Y,o]}let Au=class extends be{constructor(e){super(),ge(this,e,Vu,Su,me,{})}};function Cu(t){let e,i;return e=new Ln({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:Te("aria_timeline_value",{position:t[2],duration:t[1]}),filledProgress:t[3],isAds:!0,squareBorders:t[4]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,[l]){const o={};l&1&&(o.ariaValueMax=n[0]),l&8&&(o.ariaValueNow=Math.round(n[3]*100)),l&6&&(o.ariaValueText=Te("aria_timeline_value",{position:n[2],duration:n[1]})),l&8&&(o.filledProgress=n[3]),l&16&&(o.squareBorders=n[4]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Eu(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const s=Qe().ui.isMobile;Q(t,s,m=>i(4,n=m));let c,a,d;return t.$$set=m=>{"position"in m&&i(6,l=m.position),"duration"in m&&i(0,o=m.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,c=Lt(o)),t.$$.dirty&64&&i(2,a=Lt(l)),t.$$.dirty&65&&i(3,d=l/o)},[o,c,a,d,n,s,l]}class Br extends be{constructor(e){super(),ge(this,e,Eu,Cu,me,{position:6,duration:0})}}function Tu(t){Se(t,"v-17msmwz",".timeline.v-17msmwz{display:flex;align-items:center;width:100%;min-width:86px;margin:0 6px}.timeline-stub.v-17msmwz{width:100%;min-width:20px}")}function Mu(t){let e;return{c(){e=g("div"),u(e,"class","timeline-stub v-17msmwz")},m(i,n){M(i,e,n)},p:B,i:B,o:B,d(i){i&&T(e)}}}function Lu(t){let e,i,n,l,o;const r=[zu,Nu],s=[];function c(a,d){return a[0]?0:1}return i=c(t),n=s[i]=r[i](t),{c(){e=g("div"),n.c(),u(e,"class",l="timeline "+t[1]+" v-17msmwz")},m(a,d){M(a,e,d),s[i].m(e,null),o=!0},p(a,d){let m=i;i=c(a),i===m?s[i].p(a,d):(se(),P(s[m],1,1,()=>{s[m]=null}),ae(),n=s[i],n?n.p(a,d):(n=s[i]=r[i](a),n.c()),h(n,1),n.m(e,null)),(!o||d&2&&l!==(l="timeline "+a[1]+" v-17msmwz"))&&u(e,"class",l)},i(a){o||(h(n),o=!0)},o(a){P(n),o=!1},d(a){a&&T(e),s[i].d()}}}function Nu(t){let e,i;return e=new Au({}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p:B,i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function zu(t){let e,i;return e=new Br({props:{position:t[3],duration:t[4]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l&8&&(o.position=n[3]),l&16&&(o.duration=n[4]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Iu(t){let e,i,n,l;const o=[Lu,Mu],r=[];function s(c,a){return c[2]?0:1}return e=s(t),i=r[e]=o[e](t),{c(){i.c(),n=ct()},m(c,a){r[e].m(c,a),M(c,n,a),l=!0},p(c,[a]){let d=e;e=s(c),e===d?r[e].p(c,a):(se(),P(r[d],1,1,()=>{r[d]=null}),ae(),i=r[e],i?i.p(c,a):(i=r[e]=o[e](c),i.c()),h(i,1),i.m(n.parentNode,n))},i(c){l||(h(i),l=!0)},o(c){P(i),l=!1},d(c){r[e].d(c),c&&T(n)}}}function Ru(t,e,i){let n,l,o,{isAds:r=!1}=e,{canRewindLive:s}=e,{isHidden:c=!1}=e,{className:a=""}=e;const d=Qe(),m=d.state.isLive$;Q(t,m,b=>i(10,n=b));const f=d.ads.duration;Q(t,f,b=>i(4,o=b));const p=d.ads.position;Q(t,p,b=>i(3,l=b));let w;return t.$$set=b=>{"isAds"in b&&i(0,r=b.isAds),"canRewindLive"in b&&i(8,s=b.canRewindLive),"isHidden"in b&&i(9,c=b.isHidden),"className"in b&&i(1,a=b.className)},t.$$.update=()=>{t.$$.dirty&1793&&i(2,w=!c&&(!n||n&&s||r))},[r,a,w,l,o,m,f,p,s,c,n]}class Or extends be{constructor(e){super(),ge(this,e,Ru,Iu,me,{isAds:0,canRewindLive:8,isHidden:9,className:1},Tu)}}function Bu(t){Se(t,"v-17mht85",`.wrapper-bottom.v-17mht85.v-17mht85{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--videoplayer-controls-gradient-height);background:linear-gradient(
8
8
  180deg,
9
9
  rgba(0, 0, 0, 0) 0%,
10
10
  rgba(0, 0, 0, 0.02) 19%,
@@ -12,11 +12,10 @@
12
12
  rgba(0, 0, 0, 0.40) 60%,
13
13
  rgba(0, 0, 0, 0.60) 100%
14
14
  );transition:transform var(--videoplayer-controls-transition-duration)
15
- var(--videoplayer-controls-transition-fn)}.wrapper-bottom.ads-timeline-mobile.v-1qfxnal.v-1qfxnal{height:5px}.wrapper-middle.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-1qfxnal.v-1qfxnal{position:absolute;top:16px;right:16px;transition:opacity var(--videoplayer-controls-transition-duration);display:flex}.wrapper-top-left.v-1qfxnal.v-1qfxnal{position:absolute;top:12px;left:12px}.controls.v-1qfxnal.v-1qfxnal{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;height:var(--videoplayer-controls-height);white-space:nowrap;font-size:13px;transition:transform var(--videoplayer-controls-transition-duration)
16
- var(--videoplayer-controls-transition-fn);will-change:transform;padding:0 16px;box-sizing:border-box}.controls-element+.controls-element{padding-left:8px}.hidden.v-1qfxnal.v-1qfxnal{visibility:hidden;opacity:0}.controls-hidden.v-1qfxnal.v-1qfxnal{visibility:visible;transform:translateY(100%)}.settings-desktop.v-1qfxnal.v-1qfxnal{bottom:42px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}.settings-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--videoplayer-controls-transition-duration)}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls.v-1qfxnal{--videoplayer-controls-height:50px;font-size:16px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .ui-time{padding-left:20px;padding-right:15px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls-play-button{padding-left:20px;padding-right:11px}.mobile-top-right-button+.mobile-top-right-button{margin-left:24px}@media screen and (orientation: portrait){.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:36px}.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:32px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{bottom:36px}}@media screen and (orientation: landscape){.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:32px}.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{right:36px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:20px;right:20px;bottom:24px}}`)}function hn(t){let e,i,n,l,o,s,a,r,u,f,d,w,v,b=t[28]&&pn(t);s=new Ll({props:{className:"mobile-top-right-button"}});let h=!t[6]&&bn(t),z=t[7]&&wn(t);d=new Fi({props:{playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[42],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}});let M=t[7]&&_n(t);return{c(){e=p("div"),i=T(),n=p("div"),b&&b.c(),l=T(),o=p("div"),te(s.$$.fragment),a=T(),h&&h.c(),r=T(),u=p("div"),z&&z.c(),f=T(),te(d.$$.fragment),w=T(),M&&M.c(),c(e,"class","overlay-mobile v-1qfxnal"),A(e,"hidden",!t[26]),c(n,"class","wrapper-top-left v-1qfxnal"),A(n,"hidden",!t[2]),A(n,"wrapper-top-fullscreen-mobile",t[27]&&t[18]),c(o,"class","wrapper-top-right v-1qfxnal"),A(o,"hidden",!t[2]),A(o,"wrapper-top-fullscreen-mobile",t[27]&&t[18]),c(u,"class","wrapper-middle v-1qfxnal"),A(u,"hidden",!t[2]||t[30])},m(_,P){E(_,e,P),E(_,i,P),E(_,n,P),b&&b.m(n,null),E(_,l,P),E(_,o,P),$(s,o,null),m(o,a),h&&h.m(o,null),E(_,r,P),E(_,u,P),z&&z.m(u,null),m(u,f),$(d,u,null),m(u,w),M&&M.m(u,null),v=!0},p(_,P){(!v||P[0]&67108864)&&A(e,"hidden",!_[26]),_[28]?b?(b.p(_,P),P[0]&268435456&&g(b,1)):(b=pn(_),b.c(),g(b,1),b.m(n,null)):b&&(se(),k(b,1,1,()=>{b=null}),ae()),(!v||P[0]&4)&&A(n,"hidden",!_[2]),(!v||P[0]&134479872)&&A(n,"wrapper-top-fullscreen-mobile",_[27]&&_[18]),_[6]?h&&(se(),k(h,1,1,()=>{h=null}),ae()):h?(h.p(_,P),P[0]&64&&g(h,1)):(h=bn(_),h.c(),g(h,1),h.m(o,null)),(!v||P[0]&4)&&A(o,"hidden",!_[2]),(!v||P[0]&134479872)&&A(o,"wrapper-top-fullscreen-mobile",_[27]&&_[18]),_[7]?z?(z.p(_,P),P[0]&128&&g(z,1)):(z=wn(_),z.c(),g(z,1),z.m(u,f)):z&&(se(),k(z,1,1,()=>{z=null}),ae());const B={};P[1]&1&&(B.playbackState=_[31]),P[1]&2&&(B.adPlaybackState=_[32]),P[0]&8&&(B.isAds=_[3]),P[0]&16384&&(B.repeatPlaylist=_[14]),P[1]&4&&(B.isEnded=_[33]),P[0]&1024&&(B.isOneVideoPlaylist=_[10]),d.$set(B),_[7]?M?(M.p(_,P),P[0]&128&&g(M,1)):(M=_n(_),M.c(),g(M,1),M.m(u,null)):M&&(se(),k(M,1,1,()=>{M=null}),ae()),(!v||P[0]&1073741828)&&A(u,"hidden",!_[2]||_[30])},i(_){v||(g(b),g(s.$$.fragment,_),g(h),g(z),g(d.$$.fragment,_),g(M),v=!0)},o(_){k(b),k(s.$$.fragment,_),k(h),k(z),k(d.$$.fragment,_),k(M),v=!1},d(_){_&&C(e),_&&C(i),_&&C(n),b&&b.d(),_&&C(l),_&&C(o),ee(s),h&&h.d(),_&&C(r),_&&C(u),z&&z.d(),ee(d),M&&M.d()}}}function pn(t){let e,i;return e=new ql({props:{expanded:t[29]}}),e.$on("click",t[64]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&536870912&&(o.expanded=n[29]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function bn(t){let e,i;return e=new Fl({props:{className:"mobile-top-right-button",logoClickable:t[5]}}),e.$on("click",t[43]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function wn(t){let e,i;return e=new hi({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){He(t[13])&&t[13].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function _n(t){let e,i;return e=new hi({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){He(t[12])&&t[12].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function yn(t){let e,i,n,l,o,s=t[28]&&kn(t),a=t[32]===Fe.PAUSED&&Pn(t);return l=new Hl({props:{position:t[34],duration:t[35]}}),{c(){s&&s.c(),e=T(),a&&a.c(),i=T(),n=p("div"),te(l.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile v-1qfxnal")},m(r,u){s&&s.m(r,u),E(r,e,u),a&&a.m(r,u),E(r,i,u),E(r,n,u),$(l,n,null),o=!0},p(r,u){r[28]?s?(s.p(r,u),u[0]&268435456&&g(s,1)):(s=kn(r),s.c(),g(s,1),s.m(e.parentNode,e)):s&&(se(),k(s,1,1,()=>{s=null}),ae()),r[32]===Fe.PAUSED?a?(a.p(r,u),u[1]&2&&g(a,1)):(a=Pn(r),a.c(),g(a,1),a.m(i.parentNode,i)):a&&(se(),k(a,1,1,()=>{a=null}),ae());const f={};u[1]&8&&(f.position=r[34]),u[1]&16&&(f.duration=r[35]),l.$set(f)},i(r){o||(g(s),g(a),g(l.$$.fragment,r),o=!0)},o(r){k(s),k(a),k(l.$$.fragment,r),o=!1},d(r){s&&s.d(r),r&&C(e),a&&a.d(r),r&&C(i),r&&C(n),ee(l)}}}function kn(t){let e,i,n;return i=new ql({props:{expanded:!1}}),i.$on("click",t[64]),{c(){e=p("div"),te(i.$$.fragment),c(e,"class","wrapper-top-right v-1qfxnal")},m(l,o){E(l,e,o),$(i,e,null),n=!0},p:I,i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){k(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function Pn(t){let e,i,n;return i=new Fi({props:{playbackState:t[31],adPlaybackState:t[32],isAds:!0,handlePlayClick:t[42],repeatPlaylist:I,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){e=p("div"),te(i.$$.fragment),c(e,"class","wrapper-middle v-1qfxnal")},m(l,o){E(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[1]&1&&(s.playbackState=l[31]),o[1]&2&&(s.adPlaybackState=l[32]),i.$set(s)},i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){k(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function Vn(t){let e,i,n,l,o,s=t[7]&&!t[3]&&Sn(t);i=new ft({props:{className:"controls-element",$$slots:{default:[ya]},$$scope:{ctx:t}}});let a=t[7]&&!t[3]&&An(t);return{c(){s&&s.c(),e=T(),te(i.$$.fragment),n=T(),a&&a.c(),l=$e()},m(r,u){s&&s.m(r,u),E(r,e,u),$(i,r,u),E(r,n,u),a&&a.m(r,u),E(r,l,u),o=!0},p(r,u){r[7]&&!r[3]?s?(s.p(r,u),u[0]&136&&g(s,1)):(s=Sn(r),s.c(),g(s,1),s.m(e.parentNode,e)):s&&(se(),k(s,1,1,()=>{s=null}),ae());const f={};u[0]&17416|u[1]&7|u[2]&128&&(f.$$scope={dirty:u,ctx:r}),i.$set(f),r[7]&&!r[3]?a?(a.p(r,u),u[0]&136&&g(a,1)):(a=An(r),a.c(),g(a,1),a.m(l.parentNode,l)):a&&(se(),k(a,1,1,()=>{a=null}),ae())},i(r){o||(g(s),g(i.$$.fragment,r),g(a),o=!0)},o(r){k(s),k(i.$$.fragment,r),k(a),o=!1},d(r){s&&s.d(r),r&&C(e),ee(i,r),r&&C(n),a&&a.d(r),r&&C(l)}}}function Sn(t){let e,i;return e=new ft({props:{className:"controls-element",disabled:!t[9],$$slots:{default:[_a]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&512&&(o.disabled=!n[9]),l[0]&8704|l[2]&128&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function _a(t){let e,i;return e=new hi({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){He(t[13])&&t[13].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ya(t){let e,i;return e=new Fi({props:{className:"controls-play-button",playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[42],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&1&&(o.playbackState=n[31]),l[1]&2&&(o.adPlaybackState=n[32]),l[0]&8&&(o.isAds=n[3]),l[0]&16384&&(o.repeatPlaylist=n[14]),l[1]&4&&(o.isEnded=n[33]),l[0]&1024&&(o.isOneVideoPlaylist=n[10]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function An(t){let e,i;return e=new ft({props:{className:"controls-element",disabled:!t[8],$$slots:{default:[ka]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&256&&(o.disabled=!n[8]),l[0]&4352|l[2]&128&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ka(t){let e,i;return e=new hi({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){He(t[12])&&t[12].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Cn(t){let e,i;return e=new ft({props:{className:"controls-element",$$slots:{default:[Pa]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&32|l[2]&128&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pa(t){let e,i;return e=new $s({props:{isActiveLive:t[36]}}),e.$on("click",t[63]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&32&&(o.isActiveLive=n[36]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Mn(t){let e,i;return e=new Dl({props:{isHidden:!t[23],isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8388608&&(o.isHidden=!n[23]),l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function En(t){let e,i;return e=new ns({props:{className:"ui-time controls-element",showDuration:t[20],position:t[3]?t[34]:t[37],duration:t[3]?t[35]:t[38]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&1048576&&(o.showDuration=n[20]),l[0]&8|l[1]&72&&(o.position=n[3]?n[34]:n[37]),l[0]&8|l[1]&144&&(o.duration=n[3]?n[35]:n[38]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function zn(t){let e,i;return e=new Dl({props:{isHidden:!t[23],isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8388608&&(o.isHidden=!n[23]),l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Tn(t){let e,i,n,l;e=new ft({props:{className:"controls-element",$$slots:{default:[Va]},$$scope:{ctx:t}}});let o=!t[40]&&!t[3]&&Ln(t);return{c(){te(e.$$.fragment),i=T(),o&&o.c(),n=$e()},m(s,a){$(e,s,a),E(s,i,a),o&&o.m(s,a),E(s,n,a),l=!0},p(s,a){const r={};a[0]&524288|a[1]&256|a[2]&128&&(r.$$scope={dirty:a,ctx:s}),e.$set(r),!s[40]&&!s[3]?o?(o.p(s,a),a[0]&8|a[1]&512&&g(o,1)):(o=Ln(s),o.c(),g(o,1),o.m(n.parentNode,n)):o&&(se(),k(o,1,1,()=>{o=null}),ae())},i(s){l||(g(e.$$.fragment,s),g(o),l=!0)},o(s){k(e.$$.fragment,s),k(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function Nn(t){let e,i;return e=new ds({props:{isVerticalVolume:t[19]}}),e.$on("click",t[41]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&524288&&(o.isVerticalVolume=n[19]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Va(t){let e,i,n=t[39]&&Nn(t);return{c(){n&&n.c(),e=$e()},m(l,o){n&&n.m(l,o),E(l,e,o),i=!0},p(l,o){l[39]?n?(n.p(l,o),o[1]&256&&g(n,1)):(n=Nn(l),n.c(),g(n,1),n.m(e.parentNode,e)):n&&(se(),k(n,1,1,()=>{n=null}),ae())},i(l){i||(g(n),i=!0)},o(l){k(n),i=!1},d(l){n&&n.d(l),l&&C(e)}}}function Ln(t){let e,i,n,l,o;i=new Nl({props:{supportLink:t[11]}});let s=t[22]&&In(t);return{c(){e=p("div"),te(i.$$.fragment),n=T(),s&&s.c(),l=$e(),c(e,"class","settings-desktop v-1qfxnal")},m(a,r){E(a,e,r),$(i,e,null),E(a,n,r),s&&s.m(a,r),E(a,l,r),o=!0},p(a,r){const u={};r[0]&2048&&(u.supportLink=a[11]),i.$set(u),a[22]?s?r[0]&4194304&&g(s,1):(s=In(a),s.c(),g(s,1),s.m(l.parentNode,l)):s&&(se(),k(s,1,1,()=>{s=null}),ae())},i(a){o||(g(i.$$.fragment,a),g(s),o=!0)},o(a){k(i.$$.fragment,a),k(s),o=!1},d(a){a&&C(e),ee(i),a&&C(n),s&&s.d(a),a&&C(l)}}}function In(t){let e,i;return e=new ft({props:{className:"controls-element",$$slots:{default:[Sa]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Sa(t){let e,i;return e=new Ll({props:{className:"ui-settings"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Bn(t){let e,i;return e=new ft({props:{className:"controls-element",$$slots:{default:[Aa]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32768|l[2]&128&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Aa(t){let e,i;return e=new _s({}),e.$on("click",function(){He(t[15])&&t[15].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Rn(t){let e,i,n,l=t[21]&&Fn(t),o=!t[6]&&qn(t);return{c(){l&&l.c(),e=T(),o&&o.c(),i=$e()},m(s,a){l&&l.m(s,a),E(s,e,a),o&&o.m(s,a),E(s,i,a),n=!0},p(s,a){s[21]?l?(l.p(s,a),a[0]&2097152&&g(l,1)):(l=Fn(s),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(se(),k(l,1,1,()=>{l=null}),ae()),s[6]?o&&(se(),k(o,1,1,()=>{o=null}),ae()):o?(o.p(s,a),a[0]&64&&g(o,1)):(o=qn(s),o.c(),g(o,1),o.m(i.parentNode,i))},i(s){n||(g(l),g(o),n=!0)},o(s){k(l),k(o),n=!1},d(s){l&&l.d(s),s&&C(e),o&&o.d(s),s&&C(i)}}}function Fn(t){let e,i;return e=new ft({props:{className:"controls-element",$$slots:{default:[Ca]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[2]&128&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ca(t){let e,i;return e=new Ks({props:{className:"ui-chromecast"}}),e.$on("click",t[62]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function qn(t){let e,i;return e=new ft({props:{className:"controls-element",disabled:!t[5],$$slots:{default:[Ma]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.disabled=!n[5]),l[0]&32|l[2]&128&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ma(t){let e,i;return e=new Fl({props:{logoClickable:t[5]}}),e.$on("click",t[43]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Hn(t){let e,i,n;return i=new Nl({props:{supportLink:t[11]}}),{c(){e=p("div"),te(i.$$.fragment),c(e,"class","settings-mobile v-1qfxnal")},m(l,o){E(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[0]&2048&&(s.supportLink=l[11]),i.$set(s)},i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){k(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function Ea(t){let e,i,n,l,o,s,a,r,u,f,d,w,v,b,h=t[18]&&!t[3]&&hn(t),z=t[18]&&t[3]&&t[32]!==Fe.INACTIVE&&yn(t),M=!t[18]&&Vn(t),_=!t[3]&&t[17]&&Cn(t),P=!t[18]&&Mn(t),B=t[25]&&En(t),L=t[18]&&zn(t),F=!t[18]&&Tn(t),R=t[24]&&Bn(t),S=!t[18]&&Rn(t),q=t[18]&&t[16]&&Hn(t);return{c(){h&&h.c(),e=T(),z&&z.c(),i=T(),n=p("div"),l=p("div"),M&&M.c(),o=T(),_&&_.c(),s=T(),P&&P.c(),a=T(),B&&B.c(),r=T(),L&&L.c(),u=T(),F&&F.c(),f=T(),R&&R.c(),d=T(),S&&S.c(),w=T(),q&&q.c(),v=$e(),c(l,"class","controls v-1qfxnal"),A(l,"controls-hidden",!t[2]),A(l,"controls-fullscreen-mobile",t[27]&&t[18]),c(n,"class","wrapper-bottom v-1qfxnal"),A(n,"hidden",t[1]),A(n,"controls-hidden",!t[2]),A(n,"wrapper-bottom-fullscreen-desktop",t[27]&&!t[18])},m(N,Y){h&&h.m(N,Y),E(N,e,Y),z&&z.m(N,Y),E(N,i,Y),E(N,n,Y),m(n,l),M&&M.m(l,null),m(l,o),_&&_.m(l,null),m(l,s),P&&P.m(l,null),m(l,a),B&&B.m(l,null),m(l,r),L&&L.m(l,null),m(l,u),F&&F.m(l,null),m(l,f),R&&R.m(l,null),m(l,d),S&&S.m(l,null),t[67](n),E(N,w,Y),q&&q.m(N,Y),E(N,v,Y),b=!0},p(N,Y){N[18]&&!N[3]?h?(h.p(N,Y),Y[0]&262152&&g(h,1)):(h=hn(N),h.c(),g(h,1),h.m(e.parentNode,e)):h&&(se(),k(h,1,1,()=>{h=null}),ae()),N[18]&&N[3]&&N[32]!==Fe.INACTIVE?z?(z.p(N,Y),Y[0]&262152|Y[1]&2&&g(z,1)):(z=yn(N),z.c(),g(z,1),z.m(i.parentNode,i)):z&&(se(),k(z,1,1,()=>{z=null}),ae()),N[18]?M&&(se(),k(M,1,1,()=>{M=null}),ae()):M?(M.p(N,Y),Y[0]&262144&&g(M,1)):(M=Vn(N),M.c(),g(M,1),M.m(l,o)),!N[3]&&N[17]?_?(_.p(N,Y),Y[0]&131080&&g(_,1)):(_=Cn(N),_.c(),g(_,1),_.m(l,s)):_&&(se(),k(_,1,1,()=>{_=null}),ae()),N[18]?P&&(se(),k(P,1,1,()=>{P=null}),ae()):P?(P.p(N,Y),Y[0]&262144&&g(P,1)):(P=Mn(N),P.c(),g(P,1),P.m(l,a)),N[25]?B?(B.p(N,Y),Y[0]&33554432&&g(B,1)):(B=En(N),B.c(),g(B,1),B.m(l,r)):B&&(se(),k(B,1,1,()=>{B=null}),ae()),N[18]?L?(L.p(N,Y),Y[0]&262144&&g(L,1)):(L=zn(N),L.c(),g(L,1),L.m(l,u)):L&&(se(),k(L,1,1,()=>{L=null}),ae()),N[18]?F&&(se(),k(F,1,1,()=>{F=null}),ae()):F?(F.p(N,Y),Y[0]&262144&&g(F,1)):(F=Tn(N),F.c(),g(F,1),F.m(l,f)),N[24]?R?(R.p(N,Y),Y[0]&16777216&&g(R,1)):(R=Bn(N),R.c(),g(R,1),R.m(l,d)):R&&(se(),k(R,1,1,()=>{R=null}),ae()),N[18]?S&&(se(),k(S,1,1,()=>{S=null}),ae()):S?(S.p(N,Y),Y[0]&262144&&g(S,1)):(S=Rn(N),S.c(),g(S,1),S.m(l,null)),(!b||Y[0]&4)&&A(l,"controls-hidden",!N[2]),(!b||Y[0]&134479872)&&A(l,"controls-fullscreen-mobile",N[27]&&N[18]),(!b||Y[0]&2)&&A(n,"hidden",N[1]),(!b||Y[0]&4)&&A(n,"controls-hidden",!N[2]),(!b||Y[0]&134479872)&&A(n,"wrapper-bottom-fullscreen-desktop",N[27]&&!N[18]),N[18]&&N[16]?q?(q.p(N,Y),Y[0]&327680&&g(q,1)):(q=Hn(N),q.c(),g(q,1),q.m(v.parentNode,v)):q&&(se(),k(q,1,1,()=>{q=null}),ae())},i(N){b||(g(h),g(z),g(M),g(_),g(P),g(B),g(L),g(F),g(R),g(S),g(q),b=!0)},o(N){k(h),k(z),k(M),k(_),k(P),k(B),k(L),k(F),k(R),k(S),k(q),b=!1},d(N){h&&h.d(N),N&&C(e),z&&z.d(N),N&&C(i),N&&C(n),M&&M.d(),_&&_.d(),P&&P.d(),B&&B.d(),L&&L.d(),F&&F.d(),R&&R.d(),S&&S.d(),t[67](null),N&&C(w),q&&q.d(N),N&&C(v)}}}function za(t,e,i){let n,l,o,s,a,r,u,f,d,w,v,b,h,z,M,_,P,B,{hidden:L}=e,{showControls:F}=e,{controlsElementRef:R=void 0}=e,{isAds:S=!1}=e,{canRewindLive:q}=e,{logoClickable:N}=e,{logoHidden:Y}=e,{showNextPrevButtons:Z}=e,{nextButtonActive:j}=e,{prevButtonActive:U}=e,{isOneVideoPlaylist:J=!1}=e,{supportLink:ue}=e,{canShowTimeline:G}=e,{playNextVideo:D}=e,{playPrevVideo:ie}=e,{repeatPlaylist:Ae}=e,{toggleFullscreen:ge}=e;const he=Oe(),Qe=he.actions.internal.toggleMuted,pe=he.actions.internal.togglePlay,ne=he.actions.internal.pause,fe=he.state.duration$;Q(t,fe,W=>i(38,_=W));const me=he.state.positionWithScrubbing$;Q(t,me,W=>i(37,M=W));const ye=he.state.playbackState$;Q(t,ye,W=>i(31,d=W));const K=he.state.chromecastConnected$;Q(t,K,W=>i(40,B=W));const ke=he.state.isAudioAvailable$;Q(t,ke,W=>i(39,P=W));const ce=he.state.isEnded$;Q(t,ce,W=>i(33,v=W));const H=he.state.isLive$;Q(t,H,W=>i(17,o=W));const O=he.state.isActiveLive$;Q(t,O,W=>i(36,z=W));const x=he.ui.scrubbingInProgress;Q(t,x,W=>i(30,f=W));const qe=he.ui.isMobile;Q(t,qe,W=>i(18,s=W));const et=he.ui.mobileUnmuteButtonExpanded;Q(t,et,W=>i(29,u=W));const nt=he.ui.mobileUnmuteButtonVisible;Q(t,nt,W=>i(28,r=W));const It=he.ui.settingsMenuVisible;Q(t,It,W=>i(16,n=W));const Ge=he.ads.duration;Q(t,Ge,W=>i(35,h=W));const mt=he.ads.position;Q(t,mt,W=>i(34,b=W));const kt=he.ads.playbackState;Q(t,kt,W=>i(32,w=W));const vt=he.ui.isFullscreen;Q(t,vt,W=>i(27,a=W));const Pt=he.ui.playerSize;Q(t,Pt,W=>i(66,l=W));const Vt=()=>he.actions.internal.toggleChromecast(),lt=()=>he.actions.internal.switchToActiveLive();let Ye,ot,gt,st,at,ht,St,rt;function Bt(){nt.set(!1),Qe()}function Rt(W){Je[W?"unshift":"push"](()=>{R=W,i(0,R)})}return t.$$set=W=>{"hidden"in W&&i(1,L=W.hidden),"showControls"in W&&i(2,F=W.showControls),"controlsElementRef"in W&&i(0,R=W.controlsElementRef),"isAds"in W&&i(3,S=W.isAds),"canRewindLive"in W&&i(4,q=W.canRewindLive),"logoClickable"in W&&i(5,N=W.logoClickable),"logoHidden"in W&&i(6,Y=W.logoHidden),"showNextPrevButtons"in W&&i(7,Z=W.showNextPrevButtons),"nextButtonActive"in W&&i(8,j=W.nextButtonActive),"prevButtonActive"in W&&i(9,U=W.prevButtonActive),"isOneVideoPlaylist"in W&&i(10,J=W.isOneVideoPlaylist),"supportLink"in W&&i(11,ue=W.supportLink),"canShowTimeline"in W&&i(65,G=W.canShowTimeline),"playNextVideo"in W&&i(12,D=W.playNextVideo),"playPrevVideo"in W&&i(13,ie=W.playPrevVideo),"repeatPlaylist"in W&&i(14,Ae=W.repeatPlaylist),"toggleFullscreen"in W&&i(15,ge=W.toggleFullscreen)},t.$$.update=()=>{t.$$.dirty[2]&16&&i(19,Ye=l.width<600),t.$$.dirty[0]&262144|t.$$.dirty[2]&16&&i(20,ot=s||l.width>550),t.$$.dirty[0]&262144|t.$$.dirty[2]&16&&i(21,gt=s||l.width>450),t.$$.dirty[0]&262144|t.$$.dirty[2]&16&&i(22,st=s||l.width>380),t.$$.dirty[0]&262144|t.$$.dirty[2]&24&&i(23,at=G&&(s||l.width>300)),t.$$.dirty[0]&262144|t.$$.dirty[2]&16&&i(24,ht=s||l.width>220),t.$$.dirty[0]&131080|t.$$.dirty[2]&16&&i(25,St=(!o||S)&&l.width>200),t.$$.dirty[0]&65540&&i(26,rt=n||F)},[R,L,F,S,q,N,Y,Z,j,U,J,ue,D,ie,Ae,ge,n,o,s,Ye,ot,gt,st,at,ht,St,rt,a,r,u,f,d,w,v,b,h,z,M,_,P,B,Qe,pe,ne,fe,me,ye,K,ke,ce,H,O,x,qe,et,nt,It,Ge,mt,kt,vt,Pt,Vt,lt,Bt,G,l,Rt]}class Ta extends we{constructor(e){super(),be(this,e,za,Ea,ve,{hidden:1,showControls:2,controlsElementRef:0,isAds:3,canRewindLive:4,logoClickable:5,logoHidden:6,showNextPrevButtons:7,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:10,supportLink:11,canShowTimeline:65,playNextVideo:12,playPrevVideo:13,repeatPlaylist:14,toggleFullscreen:15},wa,[-1,-1,-1])}}function Na(t){_e(t,"v-y9pij4",".container.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.v-y9pij4.v-y9pij4{opacity:0;visibility:hidden}.playButton.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.v-y9pij4:hover .playButtonBackground.v-y9pij4{background-color:var(--videoplayer-big-play-hover-bg-color);transform:scale(1.15)}.playButtonIcon.v-y9pij4.v-y9pij4{position:relative;width:48px;height:48px}")}function La(t){let e,i,n,l,o,s,a,r,u;return{c(){e=p("div"),i=p("div"),n=p("div"),l=T(),o=p("img"),c(n,"class","playButtonBackground v-y9pij4"),Se(o.src,s=Li)||c(o,"src",s),c(o,"class","playButtonIcon v-y9pij4"),c(o,"alt",""),c(i,"class","playButton v-y9pij4"),c(e,"class","container v-y9pij4"),c(e,"style",a=`background-color: #222; background-image: url('${t[0]||""}')`),A(e,"hidden",t[1])},m(f,d){E(f,e,d),m(e,i),m(i,n),m(i,l),m(i,o),r||(u=oe(e,"click",function(){He(t[2])&&t[2].apply(this,arguments)}),r=!0)},p(f,[d]){t=f,d&1&&a!==(a=`background-color: #222; background-image: url('${t[0]||""}')`)&&c(e,"style",a),d&2&&A(e,"hidden",t[1])},i:I,o:I,d(f){f&&C(e),r=!1,u()}}}function Ia(t,e,i){let{thumbUrl:n}=e,{hidden:l}=e,{startVideo:o}=e;return t.$$set=s=>{"thumbUrl"in s&&i(0,n=s.thumbUrl),"hidden"in s&&i(1,l=s.hidden),"startVideo"in s&&i(2,o=s.startVideo)},[n,l,o]}class Ba extends we{constructor(e){super(),be(this,e,Ia,La,ve,{thumbUrl:0,hidden:1,startVideo:2},Na)}}function Ra(t){_e(t,"v-8nkw5s",".container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}")}function Fa(t){let e;return{c(){e=p("div"),e.innerHTML=`<div class="dot v-8nkw5s"></div>
15
+ var(--videoplayer-controls-transition-fn)}.wrapper-bottom.v-17mht85>.v-17mht85{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.v-17mht85.v-17mht85{height:5px}.wrapper-middle.v-17mht85.v-17mht85{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-17mht85.v-17mht85{position:absolute;top:16px;right:16px;transition:opacity var(--videoplayer-controls-transition-duration);display:flex}.wrapper-top-left.v-17mht85.v-17mht85{position:absolute;top:12px;left:12px}.controls.v-17mht85.v-17mht85{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;height:var(--videoplayer-controls-height);white-space:nowrap;font-size:13px;transition:transform var(--videoplayer-controls-transition-duration)
16
+ var(--videoplayer-controls-transition-fn);will-change:transform;padding:0 16px;box-sizing:border-box}.controls-element+.controls-element{padding-left:8px}.hidden.v-17mht85.v-17mht85{visibility:hidden;opacity:0}.controls-hidden.v-17mht85.v-17mht85{visibility:visible;transform:translateY(100%)}.settings-desktop.v-17mht85.v-17mht85{bottom:42px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}.settings-mobile.v-17mht85.v-17mht85{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.v-17mht85.v-17mht85{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--videoplayer-controls-transition-duration)}.wrapper-bottom-fullscreen-desktop.v-17mht85 .controls.v-17mht85{--videoplayer-controls-height:50px;font-size:16px}.wrapper-bottom-fullscreen-desktop.v-17mht85 .ui-time{padding-left:20px;padding-right:15px}.wrapper-bottom-fullscreen-desktop.v-17mht85 .controls-play-button{padding-left:20px;padding-right:11px}.mobile-top-right-button+.mobile-top-right-button{margin-left:24px}@media screen and (orientation: portrait){.wrapper-top-right.wrapper-top-fullscreen-mobile.v-17mht85.v-17mht85{top:36px}.wrapper-top-left.wrapper-top-fullscreen-mobile.v-17mht85.v-17mht85{top:32px}.controls.controls-fullscreen-mobile.v-17mht85.v-17mht85{bottom:36px}}@media screen and (orientation: landscape){.wrapper-top-left.wrapper-top-fullscreen-mobile.v-17mht85.v-17mht85{left:32px}.wrapper-top-right.wrapper-top-fullscreen-mobile.v-17mht85.v-17mht85{right:36px}.controls.controls-fullscreen-mobile.v-17mht85.v-17mht85{left:20px;right:20px;bottom:24px}}`)}function Rl(t){let e,i,n,l,o,r,s,c,a,d,m,f,p,w=(!t[27]||t[29])&&Bl(t);r=new Cr({props:{className:"mobile-top-right-button"}});let b=!t[6]&&Ol(t),y=t[7]&&jl(t);m=new Nn({props:{playbackState:t[32],adPlaybackState:t[33],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[34],isOneVideoPlaylist:t[10]}});let N=t[7]&&Fl(t);return{c(){e=g("div"),i=L(),n=g("div"),w&&w.c(),l=L(),o=g("div"),x(r.$$.fragment),s=L(),b&&b.c(),c=L(),a=g("div"),y&&y.c(),d=L(),x(m.$$.fragment),f=L(),N&&N.c(),u(e,"class","overlay-mobile v-17mht85"),E(e,"hidden",!t[26]),u(n,"class","wrapper-top-left v-17mht85"),E(n,"hidden",!t[2]),E(n,"wrapper-top-fullscreen-mobile",t[28]&&t[18]),u(o,"class","wrapper-top-right v-17mht85"),E(o,"hidden",!t[2]),E(o,"wrapper-top-fullscreen-mobile",t[28]&&t[18]),u(a,"class","wrapper-middle v-17mht85"),E(a,"hidden",!t[2]||t[31])},m(_,S){M(_,e,S),M(_,i,S),M(_,n,S),w&&w.m(n,null),M(_,l,S),M(_,o,S),J(r,o,null),v(o,s),b&&b.m(o,null),M(_,c,S),M(_,a,S),y&&y.m(a,null),v(a,d),J(m,a,null),v(a,f),N&&N.m(a,null),p=!0},p(_,S){(!p||S[0]&67108864)&&E(e,"hidden",!_[26]),!_[27]||_[29]?w?(w.p(_,S),S[0]&671088640&&h(w,1)):(w=Bl(_),w.c(),h(w,1),w.m(n,null)):w&&(se(),P(w,1,1,()=>{w=null}),ae()),(!p||S[0]&4)&&E(n,"hidden",!_[2]),(!p||S[0]&268697600)&&E(n,"wrapper-top-fullscreen-mobile",_[28]&&_[18]),_[6]?b&&(se(),P(b,1,1,()=>{b=null}),ae()):b?(b.p(_,S),S[0]&64&&h(b,1)):(b=Ol(_),b.c(),h(b,1),b.m(o,null)),(!p||S[0]&4)&&E(o,"hidden",!_[2]),(!p||S[0]&268697600)&&E(o,"wrapper-top-fullscreen-mobile",_[28]&&_[18]),_[7]?y?(y.p(_,S),S[0]&128&&h(y,1)):(y=jl(_),y.c(),h(y,1),y.m(a,d)):y&&(se(),P(y,1,1,()=>{y=null}),ae());const D={};S[1]&2&&(D.playbackState=_[32]),S[1]&4&&(D.adPlaybackState=_[33]),S[0]&8&&(D.isAds=_[3]),S[0]&16384&&(D.repeatPlaylist=_[14]),S[1]&8&&(D.isEnded=_[34]),S[0]&1024&&(D.isOneVideoPlaylist=_[10]),m.$set(D),_[7]?N?(N.p(_,S),S[0]&128&&h(N,1)):(N=Fl(_),N.c(),h(N,1),N.m(a,null)):N&&(se(),P(N,1,1,()=>{N=null}),ae()),(!p||S[0]&4|S[1]&1)&&E(a,"hidden",!_[2]||_[31])},i(_){p||(h(w),h(r.$$.fragment,_),h(b),h(y),h(m.$$.fragment,_),h(N),p=!0)},o(_){P(w),P(r.$$.fragment,_),P(b),P(y),P(m.$$.fragment,_),P(N),p=!1},d(_){_&&T(e),_&&T(i),_&&T(n),w&&w.d(),_&&T(l),_&&T(o),Z(r),b&&b.d(),_&&T(c),_&&T(a),y&&y.d(),Z(m),N&&N.d()}}}function Bl(t){let e,i;return e=new Rr({props:{expanded:!t[48]&&t[30]}}),e.$on("click",t[65]),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&1073741824&&(o.expanded=!n[48]&&n[30]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Ol(t){let e,i;return e=new Ir({props:{className:"mobile-top-right-button",logoClickable:t[5]}}),e.$on("click",t[42]),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function jl(t){let e,i;return e=new Ui({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Ue(t[13])&&t[13].apply(this,arguments)}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Fl(t){let e,i;return e=new Ui({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Ue(t[12])&&t[12].apply(this,arguments)}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Dl(t){let e,i,n,l,o,r=t[29]&&Hl(t),s=t[33]===qe.PAUSED&&ql(t);return l=new Br({props:{position:t[35],duration:t[36]}}),{c(){r&&r.c(),e=L(),s&&s.c(),i=L(),n=g("div"),x(l.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile v-17mht85")},m(c,a){r&&r.m(c,a),M(c,e,a),s&&s.m(c,a),M(c,i,a),M(c,n,a),J(l,n,null),o=!0},p(c,a){c[29]?r?(r.p(c,a),a[0]&536870912&&h(r,1)):(r=Hl(c),r.c(),h(r,1),r.m(e.parentNode,e)):r&&(se(),P(r,1,1,()=>{r=null}),ae()),c[33]===qe.PAUSED?s?(s.p(c,a),a[1]&4&&h(s,1)):(s=ql(c),s.c(),h(s,1),s.m(i.parentNode,i)):s&&(se(),P(s,1,1,()=>{s=null}),ae());const d={};a[1]&16&&(d.position=c[35]),a[1]&32&&(d.duration=c[36]),l.$set(d)},i(c){o||(h(r),h(s),h(l.$$.fragment,c),o=!0)},o(c){P(r),P(s),P(l.$$.fragment,c),o=!1},d(c){r&&r.d(c),c&&T(e),s&&s.d(c),c&&T(i),c&&T(n),Z(l)}}}function Hl(t){let e,i,n;return i=new Rr({props:{expanded:!1}}),i.$on("click",t[65]),{c(){e=g("div"),x(i.$$.fragment),u(e,"class","wrapper-top-right v-17mht85")},m(l,o){M(l,e,o),J(i,e,null),n=!0},p:B,i(l){n||(h(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function ql(t){let e,i,n;return i=new Nn({props:{playbackState:t[32],adPlaybackState:t[33],isAds:!0,handlePlayClick:t[41],repeatPlaylist:B,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){e=g("div"),x(i.$$.fragment),u(e,"class","wrapper-middle v-17mht85")},m(l,o){M(l,e,o),J(i,e,null),n=!0},p(l,o){const r={};o[1]&2&&(r.playbackState=l[32]),o[1]&4&&(r.adPlaybackState=l[33]),i.$set(r)},i(l){n||(h(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function Ul(t){let e,i,n,l,o,r=t[7]&&!t[3]&&Ql(t);i=new kt({props:{className:"controls-element",$$slots:{default:[ju]},$$scope:{ctx:t}}});let s=t[7]&&!t[3]&&Wl(t);return{c(){r&&r.c(),e=L(),x(i.$$.fragment),n=L(),s&&s.c(),l=ct()},m(c,a){r&&r.m(c,a),M(c,e,a),J(i,c,a),M(c,n,a),s&&s.m(c,a),M(c,l,a),o=!0},p(c,a){c[7]&&!c[3]?r?(r.p(c,a),a[0]&136&&h(r,1)):(r=Ql(c),r.c(),h(r,1),r.m(e.parentNode,e)):r&&(se(),P(r,1,1,()=>{r=null}),ae());const d={};a[0]&17416|a[1]&14|a[2]&8192&&(d.$$scope={dirty:a,ctx:c}),i.$set(d),c[7]&&!c[3]?s?(s.p(c,a),a[0]&136&&h(s,1)):(s=Wl(c),s.c(),h(s,1),s.m(l.parentNode,l)):s&&(se(),P(s,1,1,()=>{s=null}),ae())},i(c){o||(h(r),h(i.$$.fragment,c),h(s),o=!0)},o(c){P(r),P(i.$$.fragment,c),P(s),o=!1},d(c){r&&r.d(c),c&&T(e),Z(i,c),c&&T(n),s&&s.d(c),c&&T(l)}}}function Ql(t){let e,i;return e=new kt({props:{className:"controls-element",disabled:!t[9],$$slots:{default:[Ou]},$$scope:{ctx:t}}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&512&&(o.disabled=!n[9]),l[0]&8704|l[2]&8192&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Ou(t){let e,i;return e=new Ui({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Ue(t[13])&&t[13].apply(this,arguments)}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function ju(t){let e,i;return e=new Nn({props:{className:"controls-play-button",playbackState:t[32],adPlaybackState:t[33],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[34],isOneVideoPlaylist:t[10]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[1]&2&&(o.playbackState=n[32]),l[1]&4&&(o.adPlaybackState=n[33]),l[0]&8&&(o.isAds=n[3]),l[0]&16384&&(o.repeatPlaylist=n[14]),l[1]&8&&(o.isEnded=n[34]),l[0]&1024&&(o.isOneVideoPlaylist=n[10]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Wl(t){let e,i;return e=new kt({props:{className:"controls-element",disabled:!t[8],$$slots:{default:[Fu]},$$scope:{ctx:t}}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&256&&(o.disabled=!n[8]),l[0]&4352|l[2]&8192&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Fu(t){let e,i;return e=new Ui({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Ue(t[12])&&t[12].apply(this,arguments)}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Yl(t){let e,i;return e=new kt({props:{className:"controls-element",$$slots:{default:[Du]},$$scope:{ctx:t}}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[1]&64|l[2]&8192&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Du(t){let e,i;return e=new hu({props:{isActiveLive:t[37]}}),e.$on("click",t[63]),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[1]&64&&(o.isActiveLive=n[37]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Kl(t){let e,i;return e=new Or({props:{isHidden:!t[23],isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&8388608&&(o.isHidden=!n[23]),l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Gl(t){let e,i;return e=new yc({props:{className:"ui-time controls-element",showDuration:t[20],position:t[3]?t[35]:t[38],duration:t[3]?t[36]:t[39]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&1048576&&(o.showDuration=n[20]),l[0]&8|l[1]&144&&(o.position=n[3]?n[35]:n[38]),l[0]&8|l[1]&288&&(o.duration=n[3]?n[36]:n[39]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Xl(t){let e,i;return e=new Or({props:{isHidden:!t[23],isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&8388608&&(o.isHidden=!n[23]),l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Jl(t){let e,i,n,l;e=new kt({props:{className:"controls-element",$$slots:{default:[Hu]},$$scope:{ctx:t}}});let o=!t[40]&&!t[3]&&Zl(t);return{c(){x(e.$$.fragment),i=L(),o&&o.c(),n=ct()},m(r,s){J(e,r,s),M(r,i,s),o&&o.m(r,s),M(r,n,s),l=!0},p(r,s){const c={};s[0]&134742016|s[2]&8192&&(c.$$scope={dirty:s,ctx:r}),e.$set(c),!r[40]&&!r[3]?o?(o.p(r,s),s[0]&8|s[1]&512&&h(o,1)):(o=Zl(r),o.c(),h(o,1),o.m(n.parentNode,n)):o&&(se(),P(o,1,1,()=>{o=null}),ae())},i(r){l||(h(e.$$.fragment,r),h(o),l=!0)},o(r){P(e.$$.fragment,r),P(o),l=!1},d(r){Z(e,r),r&&T(i),o&&o.d(r),r&&T(n)}}}function Hu(t){let e,i;return e=new Rc({props:{isAudioAvailable:t[27],isVerticalVolume:t[19]}}),e.$on("click",t[64]),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&134217728&&(o.isAudioAvailable=n[27]),l[0]&524288&&(o.isVerticalVolume=n[19]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Zl(t){let e,i,n,l,o;i=new Ar({props:{supportLink:t[11]}});let r=t[22]&&xl(t);return{c(){e=g("div"),x(i.$$.fragment),n=L(),r&&r.c(),l=ct(),u(e,"class","settings-desktop v-17mht85")},m(s,c){M(s,e,c),J(i,e,null),M(s,n,c),r&&r.m(s,c),M(s,l,c),o=!0},p(s,c){const a={};c[0]&2048&&(a.supportLink=s[11]),i.$set(a),s[22]?r?c[0]&4194304&&h(r,1):(r=xl(s),r.c(),h(r,1),r.m(l.parentNode,l)):r&&(se(),P(r,1,1,()=>{r=null}),ae())},i(s){o||(h(i.$$.fragment,s),h(r),o=!0)},o(s){P(i.$$.fragment,s),P(r),o=!1},d(s){s&&T(e),Z(i),s&&T(n),r&&r.d(s),s&&T(l)}}}function xl(t){let e,i;return e=new kt({props:{className:"controls-element",$$slots:{default:[qu]},$$scope:{ctx:t}}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function qu(t){let e,i;return e=new Cr({props:{className:"ui-settings"}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p:B,i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function $l(t){let e,i;return e=new kt({props:{className:"controls-element",$$slots:{default:[Uu]},$$scope:{ctx:t}}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&32768|l[2]&8192&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Uu(t){let e,i;return e=new Qc({}),e.$on("click",function(){Ue(t[15])&&t[15].apply(this,arguments)}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){t=n},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function eo(t){let e,i,n,l=t[21]&&to(t),o=!t[6]&&io(t);return{c(){l&&l.c(),e=L(),o&&o.c(),i=ct()},m(r,s){l&&l.m(r,s),M(r,e,s),o&&o.m(r,s),M(r,i,s),n=!0},p(r,s){r[21]?l?(l.p(r,s),s[0]&2097152&&h(l,1)):(l=to(r),l.c(),h(l,1),l.m(e.parentNode,e)):l&&(se(),P(l,1,1,()=>{l=null}),ae()),r[6]?o&&(se(),P(o,1,1,()=>{o=null}),ae()):o?(o.p(r,s),s[0]&64&&h(o,1)):(o=io(r),o.c(),h(o,1),o.m(i.parentNode,i))},i(r){n||(h(l),h(o),n=!0)},o(r){P(l),P(o),n=!1},d(r){l&&l.d(r),r&&T(e),o&&o.d(r),r&&T(i)}}}function to(t){let e,i;return e=new kt({props:{className:"controls-element",$$slots:{default:[Qu]},$$scope:{ctx:t}}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[2]&8192&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Qu(t){let e,i;return e=new Vr({props:{className:"ui-chromecast"}}),e.$on("click",t[62]),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p:B,i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function io(t){let e,i;return e=new kt({props:{className:"controls-element",disabled:!t[5],$$slots:{default:[Wu]},$$scope:{ctx:t}}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.disabled=!n[5]),l[0]&32|l[2]&8192&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Wu(t){let e,i;return e=new Ir({props:{logoClickable:t[5]}}),e.$on("click",t[42]),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function no(t){let e,i,n;return i=new Ar({props:{supportLink:t[11]}}),{c(){e=g("div"),x(i.$$.fragment),u(e,"class","settings-mobile v-17mht85")},m(l,o){M(l,e,o),J(i,e,null),n=!0},p(l,o){const r={};o[0]&2048&&(r.supportLink=l[11]),i.$set(r)},i(l){n||(h(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function Yu(t){let e,i,n,l,o,r,s,c,a,d,m,f,p,w,b=t[18]&&!t[3]&&Rl(t),y=t[18]&&t[3]&&t[33]!==qe.INACTIVE&&Dl(t),N=!t[18]&&Ul(t),_=!t[3]&&t[17]&&Yl(t),S=!t[18]&&Kl(t),D=t[25]&&Gl(t),R=t[18]&&Xl(t),j=!t[18]&&Jl(t),I=t[24]&&$l(t),k=!t[18]&&eo(t),O=t[18]&&t[16]&&no(t);return{c(){b&&b.c(),e=L(),y&&y.c(),i=L(),n=g("div"),l=g("div"),N&&N.c(),o=L(),_&&_.c(),r=L(),S&&S.c(),s=L(),D&&D.c(),c=L(),R&&R.c(),a=L(),j&&j.c(),d=L(),I&&I.c(),m=L(),k&&k.c(),f=L(),O&&O.c(),p=ct(),u(l,"class","controls v-17mht85"),E(l,"controls-hidden",!t[2]),E(l,"controls-fullscreen-mobile",t[28]&&t[18]),u(n,"class","wrapper-bottom v-17mht85"),E(n,"hidden",t[1]),E(n,"controls-hidden",!t[2]),E(n,"wrapper-bottom-fullscreen-desktop",t[28]&&!t[18])},m(C,Y){b&&b.m(C,Y),M(C,e,Y),y&&y.m(C,Y),M(C,i,Y),M(C,n,Y),v(n,l),N&&N.m(l,null),v(l,o),_&&_.m(l,null),v(l,r),S&&S.m(l,null),v(l,s),D&&D.m(l,null),v(l,c),R&&R.m(l,null),v(l,a),j&&j.m(l,null),v(l,d),I&&I.m(l,null),v(l,m),k&&k.m(l,null),t[68](n),M(C,f,Y),O&&O.m(C,Y),M(C,p,Y),w=!0},p(C,Y){C[18]&&!C[3]?b?(b.p(C,Y),Y[0]&262152&&h(b,1)):(b=Rl(C),b.c(),h(b,1),b.m(e.parentNode,e)):b&&(se(),P(b,1,1,()=>{b=null}),ae()),C[18]&&C[3]&&C[33]!==qe.INACTIVE?y?(y.p(C,Y),Y[0]&262152|Y[1]&4&&h(y,1)):(y=Dl(C),y.c(),h(y,1),y.m(i.parentNode,i)):y&&(se(),P(y,1,1,()=>{y=null}),ae()),C[18]?N&&(se(),P(N,1,1,()=>{N=null}),ae()):N?(N.p(C,Y),Y[0]&262144&&h(N,1)):(N=Ul(C),N.c(),h(N,1),N.m(l,o)),!C[3]&&C[17]?_?(_.p(C,Y),Y[0]&131080&&h(_,1)):(_=Yl(C),_.c(),h(_,1),_.m(l,r)):_&&(se(),P(_,1,1,()=>{_=null}),ae()),C[18]?S&&(se(),P(S,1,1,()=>{S=null}),ae()):S?(S.p(C,Y),Y[0]&262144&&h(S,1)):(S=Kl(C),S.c(),h(S,1),S.m(l,s)),C[25]?D?(D.p(C,Y),Y[0]&33554432&&h(D,1)):(D=Gl(C),D.c(),h(D,1),D.m(l,c)):D&&(se(),P(D,1,1,()=>{D=null}),ae()),C[18]?R?(R.p(C,Y),Y[0]&262144&&h(R,1)):(R=Xl(C),R.c(),h(R,1),R.m(l,a)):R&&(se(),P(R,1,1,()=>{R=null}),ae()),C[18]?j&&(se(),P(j,1,1,()=>{j=null}),ae()):j?(j.p(C,Y),Y[0]&262144&&h(j,1)):(j=Jl(C),j.c(),h(j,1),j.m(l,d)),C[24]?I?(I.p(C,Y),Y[0]&16777216&&h(I,1)):(I=$l(C),I.c(),h(I,1),I.m(l,m)):I&&(se(),P(I,1,1,()=>{I=null}),ae()),C[18]?k&&(se(),P(k,1,1,()=>{k=null}),ae()):k?(k.p(C,Y),Y[0]&262144&&h(k,1)):(k=eo(C),k.c(),h(k,1),k.m(l,null)),(!w||Y[0]&4)&&E(l,"controls-hidden",!C[2]),(!w||Y[0]&268697600)&&E(l,"controls-fullscreen-mobile",C[28]&&C[18]),(!w||Y[0]&2)&&E(n,"hidden",C[1]),(!w||Y[0]&4)&&E(n,"controls-hidden",!C[2]),(!w||Y[0]&268697600)&&E(n,"wrapper-bottom-fullscreen-desktop",C[28]&&!C[18]),C[18]&&C[16]?O?(O.p(C,Y),Y[0]&327680&&h(O,1)):(O=no(C),O.c(),h(O,1),O.m(p.parentNode,p)):O&&(se(),P(O,1,1,()=>{O=null}),ae())},i(C){w||(h(b),h(y),h(N),h(_),h(S),h(D),h(R),h(j),h(I),h(k),h(O),w=!0)},o(C){P(b),P(y),P(N),P(_),P(S),P(D),P(R),P(j),P(I),P(k),P(O),w=!1},d(C){b&&b.d(C),C&&T(e),y&&y.d(C),C&&T(i),C&&T(n),N&&N.d(),_&&_.d(),S&&S.d(),D&&D.d(),R&&R.d(),j&&j.d(),I&&I.d(),k&&k.d(),t[68](null),C&&T(f),O&&O.d(C),C&&T(p)}}}function Ku(t,e,i){let n,l,o,r,s,c,a,d,m,f,p,w,b,y,N,_,S,D;var R,j;let{hidden:I}=e,{showControls:k}=e,{controlsElementRef:O=void 0}=e,{isAds:C=!1}=e,{canRewindLive:Y}=e,{logoClickable:q}=e,{logoHidden:H}=e,{showNextPrevButtons:U}=e,{nextButtonActive:X}=e,{prevButtonActive:fe}=e,{isOneVideoPlaylist:K=!1}=e,{supportLink:F}=e,{canShowTimeline:te}=e,{playNextVideo:Ne}=e,{playPrevVideo:ke}=e,{repeatPlaylist:ie}=e,{toggleFullscreen:Ke}=e;const ne=Qe(),ce=ne.actions.internal.toggleMuted,we=ne.actions.internal.togglePlay,pe=ne.actions.internal.pause,ve=(R=ne.callbacks)===null||R===void 0?void 0:R.onAudioDoesNotExistHint,Pe=(j=ne.callbacks)===null||j===void 0?void 0:j.onAudioDisabledHint,he=ne.state.duration$;Q(t,he,W=>i(39,S=W));const ye=ne.state.positionWithScrubbing$;Q(t,ye,W=>i(38,_=W));const ue=ne.state.playbackState$;Q(t,ue,W=>i(32,f=W));const z=ne.state.chromecastConnected$;Q(t,z,W=>i(40,D=W));const $=ne.state.isAudioAvailable$;Q(t,$,W=>i(27,n=W));const le=ne.state.isAudioDisabled,ee=ne.state.isEnded$;Q(t,ee,W=>i(34,w=W));const ot=ne.state.isLive$;Q(t,ot,W=>i(17,r=W));const Ge=ne.state.isActiveLive$;Q(t,Ge,W=>i(37,N=W));const We=ne.ui.scrubbingInProgress;Q(t,We,W=>i(31,m=W));const rt=ne.ui.isMobile;Q(t,rt,W=>i(18,s=W));const Ze=ne.ui.mobileUnmuteButtonExpanded;Q(t,Ze,W=>i(30,d=W));const Xe=ne.ui.mobileUnmuteButtonVisible;Q(t,Xe,W=>i(29,a=W));const dt=ne.ui.settingsMenuVisible;Q(t,dt,W=>i(16,l=W));const vt=ne.ads.duration;Q(t,vt,W=>i(36,y=W));const it=ne.ads.position;Q(t,it,W=>i(35,b=W));const Re=ne.ads.playbackState;Q(t,Re,W=>i(33,p=W));const $e=ne.ui.isFullscreen;Q(t,$e,W=>i(28,c=W));const mt=ne.ui.playerSize;Q(t,mt,W=>i(67,o=W));const It=()=>ne.actions.internal.toggleChromecast(),Pt=()=>ne.actions.internal.switchToActiveLive();let pt,St,Rt,Bt,Ot,ht,jt,Gt;function Vt(){le?Pe==null||Pe():n?ce():ve==null||ve()}function Xt(){!le&&n&&Xe.set(!1),Vt()}function Ie(W){nt[W?"unshift":"push"](()=>{O=W,i(0,O)})}return t.$$set=W=>{"hidden"in W&&i(1,I=W.hidden),"showControls"in W&&i(2,k=W.showControls),"controlsElementRef"in W&&i(0,O=W.controlsElementRef),"isAds"in W&&i(3,C=W.isAds),"canRewindLive"in W&&i(4,Y=W.canRewindLive),"logoClickable"in W&&i(5,q=W.logoClickable),"logoHidden"in W&&i(6,H=W.logoHidden),"showNextPrevButtons"in W&&i(7,U=W.showNextPrevButtons),"nextButtonActive"in W&&i(8,X=W.nextButtonActive),"prevButtonActive"in W&&i(9,fe=W.prevButtonActive),"isOneVideoPlaylist"in W&&i(10,K=W.isOneVideoPlaylist),"supportLink"in W&&i(11,F=W.supportLink),"canShowTimeline"in W&&i(66,te=W.canShowTimeline),"playNextVideo"in W&&i(12,Ne=W.playNextVideo),"playPrevVideo"in W&&i(13,ke=W.playPrevVideo),"repeatPlaylist"in W&&i(14,ie=W.repeatPlaylist),"toggleFullscreen"in W&&i(15,Ke=W.toggleFullscreen)},t.$$.update=()=>{t.$$.dirty[2]&32&&i(19,pt=o.width<600),t.$$.dirty[0]&262144|t.$$.dirty[2]&32&&i(20,St=s||o.width>550),t.$$.dirty[0]&262144|t.$$.dirty[2]&32&&i(21,Rt=s||o.width>450),t.$$.dirty[0]&262144|t.$$.dirty[2]&32&&i(22,Bt=s||o.width>380),t.$$.dirty[0]&262144|t.$$.dirty[2]&48&&i(23,Ot=te&&(s||o.width>300)),t.$$.dirty[0]&262144|t.$$.dirty[2]&32&&i(24,ht=s||o.width>220),t.$$.dirty[0]&131080|t.$$.dirty[2]&32&&i(25,jt=(!r||C)&&o.width>200),t.$$.dirty[0]&65540&&i(26,Gt=l||k)},[O,I,k,C,Y,q,H,U,X,fe,K,F,Ne,ke,ie,Ke,l,r,s,pt,St,Rt,Bt,Ot,ht,jt,Gt,n,c,a,d,m,f,p,w,b,y,N,_,S,D,we,pe,he,ye,ue,z,$,le,ee,ot,Ge,We,rt,Ze,Xe,dt,vt,it,Re,$e,mt,It,Pt,Vt,Xt,te,o,Ie]}class Gu extends be{constructor(e){super(),ge(this,e,Ku,Yu,me,{hidden:1,showControls:2,controlsElementRef:0,isAds:3,canRewindLive:4,logoClickable:5,logoHidden:6,showNextPrevButtons:7,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:10,supportLink:11,canShowTimeline:66,playNextVideo:12,playPrevVideo:13,repeatPlaylist:14,toggleFullscreen:15},Bu,[-1,-1,-1])}}function Xu(t){Se(t,"v-y9pij4",".container.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.v-y9pij4.v-y9pij4{opacity:0;visibility:hidden}.playButton.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.v-y9pij4:hover .playButtonBackground.v-y9pij4{background-color:var(--videoplayer-big-play-hover-bg-color);transform:scale(1.15)}.playButtonIcon.v-y9pij4.v-y9pij4{position:relative;width:48px;height:48px}")}function Ju(t){let e,i,n,l,o,r,s,c,a;return{c(){e=g("div"),i=g("div"),n=g("div"),l=L(),o=g("img"),u(n,"class","playButtonBackground v-y9pij4"),Ee(o.src,r=Pn)||u(o,"src",r),u(o,"class","playButtonIcon v-y9pij4"),u(o,"alt",""),u(i,"class","playButton v-y9pij4"),u(e,"class","container v-y9pij4"),u(e,"style",s=`background-color: #222; background-image: url('${t[0]||""}')`),E(e,"hidden",t[1])},m(d,m){M(d,e,m),v(e,i),v(i,n),v(i,l),v(i,o),c||(a=oe(e,"click",function(){Ue(t[2])&&t[2].apply(this,arguments)}),c=!0)},p(d,[m]){t=d,m&1&&s!==(s=`background-color: #222; background-image: url('${t[0]||""}')`)&&u(e,"style",s),m&2&&E(e,"hidden",t[1])},i:B,o:B,d(d){d&&T(e),c=!1,a()}}}function Zu(t,e,i){let{thumbUrl:n}=e,{hidden:l}=e,{startVideo:o}=e;return t.$$set=r=>{"thumbUrl"in r&&i(0,n=r.thumbUrl),"hidden"in r&&i(1,l=r.hidden),"startVideo"in r&&i(2,o=r.startVideo)},[n,l,o]}class xu extends be{constructor(e){super(),ge(this,e,Zu,Ju,me,{thumbUrl:0,hidden:1,startVideo:2},Xu)}}function $u(t){Se(t,"v-8nkw5s",".container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}")}function ed(t){let e;return{c(){e=g("div"),e.innerHTML=`<div class="dot v-8nkw5s"></div>
17
17
  <div class="dot v-8nkw5s"></div>
18
- <div class="dot v-8nkw5s"></div>`,c(e,"class","container v-8nkw5s")},m(i,n){E(i,e,n)},p:I,i:I,o:I,d(i){i&&C(e)}}}class qa extends we{constructor(e){super(),be(this,e,null,Fa,ve,{},Ra)}}function Ha(t){const e=Oe();return Lt(()=>{e.getAdmanWrapper().startPostroll()}),[]}class Da extends we{constructor(e){super(),be(this,e,Ha,null,ve,{})}}function ja(t){_e(t,"v-17pubzn",".container.v-17pubzn{position:absolute;top:14px;left:16px;padding:4px 8px;font-size:13px;color:var(--white);background:rgba(0, 0, 0, 0.35);border-radius:4px}.container-mobile.v-17pubzn{font-size:15px;background:unset;border-radius:unset}")}function Oa(t){let e,i,n;return{c(){e=p("div"),i=de("\u0420\u0435\u043A\u043B\u0430\u043C\u0430 "),n=de(t[0]),c(e,"class","container v-17pubzn"),A(e,"container-mobile",t[1])},m(l,o){E(l,e,o),m(e,i),m(e,n)},p(l,[o]){o&1&&Ee(n,l[0]),o&2&&A(e,"container-mobile",l[1])},i:I,o:I,d(l){l&&C(e)}}}function Ua(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=Oe().ui.isMobile;Q(t,a,u=>i(1,n=u));let r;return t.$$set=u=>{"position"in u&&i(3,l=u.position),"duration"in u&&i(4,o=u.duration)},t.$$.update=()=>{t.$$.dirty&24&&i(0,r=_t(o-l))},[r,n,a,l,o]}class Qa extends we{constructor(e){super(),be(this,e,Ua,Oa,ve,{position:3,duration:4},ja)}}function Wa(t){_e(t,"v-22jj8o",".container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}")}function Ya(t){let e,i=Math.ceil(t[1]-t[0])+"",n,l;return{c(){e=de("\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 "),n=de(i),l=de(" \u0441")},m(o,s){E(o,e,s),E(o,n,s),E(o,l,s)},p(o,s){s&3&&i!==(i=Math.ceil(o[1]-o[0])+"")&&Ee(n,i)},d(o){o&&C(e),o&&C(n),o&&C(l)}}}function Ka(t){let e,i,n;return{c(){e=p("div"),e.innerHTML=`\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443
19
- <svg class="icon v-22jj8o" 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>`,c(e,"class","skip v-22jj8o")},m(l,o){E(l,e,o),i||(n=oe(e,"click",function(){He(t[2])&&t[2].apply(this,arguments)}),i=!0)},p(l,o){t=l},d(l){l&&C(e),i=!1,n()}}}function Xa(t){let e;function i(o,s){return o[3]?Ka:Ya}let n=i(t),l=n(t);return{c(){e=p("div"),l.c(),c(e,"class","container v-22jj8o"),A(e,"container-mobile",t[4]),A(e,"skippable",t[3])},m(o,s){E(o,e,s),l.m(e,null)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e,null))),s&16&&A(e,"container-mobile",o[4]),s&8&&A(e,"skippable",o[3])},i:I,o:I,d(o){o&&C(e),l.d()}}}function Ga(t,e,i){let n,{position:l=0}=e,{secondsToWatchBeforeSkip:o=0}=e,{skipAd:s=I}=e;const r=Oe().ui.isMobile;Q(t,r,f=>i(4,n=f));let u;return t.$$set=f=>{"position"in f&&i(0,l=f.position),"secondsToWatchBeforeSkip"in f&&i(1,o=f.secondsToWatchBeforeSkip),"skipAd"in f&&i(2,s=f.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,u=l>0&&l>=o)},[l,o,s,u,n,r]}class Ja extends we{constructor(e){super(),be(this,e,Ga,Xa,ve,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Wa)}}function Za(t){_e(t,"v-1wy3dql","button.v-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 xa(t){let e;return{c(){e=p("button"),e.textContent="\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",c(e,"class","v-1wy3dql")},m(i,n){E(i,e,n)},p:I,i:I,o:I,d(i){i&&C(e)}}}class $a extends we{constructor(e){super(),be(this,e,null,xa,ve,{},Za)}}function er(t){_e(t,"v-354ajf",`.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
18
+ <div class="dot v-8nkw5s"></div>`,u(e,"class","container v-8nkw5s")},m(i,n){M(i,e,n)},p:B,i:B,o:B,d(i){i&&T(e)}}}class td extends be{constructor(e){super(),ge(this,e,null,ed,me,{},$u)}}function id(t){const e=Qe();return Wt(()=>{e.getAdmanWrapper().startPostroll()}),[]}class nd extends be{constructor(e){super(),ge(this,e,id,null,me,{})}}function ld(t){Se(t,"v-17pubzn",".container.v-17pubzn{position:absolute;top:14px;left:16px;padding:4px 8px;font-size:13px;color:var(--white);background:rgba(0, 0, 0, 0.35);border-radius:4px}.container-mobile.v-17pubzn{font-size:15px;background:unset;border-radius:unset}")}function od(t){let e,i=Te("playing_ads",{timeleft:t[0]})+"",n;return{c(){e=g("div"),n=_e(i),u(e,"class","container v-17pubzn"),E(e,"container-mobile",t[1])},m(l,o){M(l,e,o),v(e,n)},p(l,[o]){o&1&&i!==(i=Te("playing_ads",{timeleft:l[0]})+"")&&Le(n,i),o&2&&E(e,"container-mobile",l[1])},i:B,o:B,d(l){l&&T(e)}}}function rd(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const s=Qe().ui.isMobile;Q(t,s,a=>i(1,n=a));let c;return t.$$set=a=>{"position"in a&&i(3,l=a.position),"duration"in a&&i(4,o=a.duration)},t.$$.update=()=>{t.$$.dirty&24&&i(0,c=Lt(o-l))},[c,n,s,l,o]}class sd extends be{constructor(e){super(),ge(this,e,rd,od,me,{position:3,duration:4},ld)}}function ad(t){Se(t,"v-22jj8o",".container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}")}function cd(t){let e=Te("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=_e(e)},m(n,l){M(n,i,l)},p(n,l){l&3&&e!==(e=Te("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Le(i,e)},d(n){n&&T(i)}}}function ud(t){let e,i=Te("skip_ads_now")+"",n,l,o,r,s,c;return{c(){e=g("div"),n=_e(i),l=L(),o=Me("svg"),r=Me("path"),u(r,"fill-rule","evenodd"),u(r,"clip-rule","evenodd"),u(r,"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"),u(o,"class","icon v-22jj8o"),u(o,"width","7"),u(o,"height","12"),u(o,"viewBox","0 0 7 12"),u(o,"fill","none"),u(o,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","skip v-22jj8o")},m(a,d){M(a,e,d),v(e,n),v(e,l),v(e,o),v(o,r),s||(c=oe(e,"click",function(){Ue(t[2])&&t[2].apply(this,arguments)}),s=!0)},p(a,d){t=a},d(a){a&&T(e),s=!1,c()}}}function dd(t){let e;function i(o,r){return o[3]?ud:cd}let n=i(t),l=n(t);return{c(){e=g("div"),l.c(),u(e,"class","container v-22jj8o"),E(e,"container-mobile",t[4]),E(e,"skippable",t[3])},m(o,r){M(o,e,r),l.m(e,null)},p(o,[r]){n===(n=i(o))&&l?l.p(o,r):(l.d(1),l=n(o),l&&(l.c(),l.m(e,null))),r&16&&E(e,"container-mobile",o[4]),r&8&&E(e,"skippable",o[3])},i:B,o:B,d(o){o&&T(e),l.d()}}}function fd(t,e,i){let n,{position:l=0}=e,{secondsToWatchBeforeSkip:o=0}=e,{skipAd:r=B}=e;const c=Qe().ui.isMobile;Q(t,c,d=>i(4,n=d));let a;return t.$$set=d=>{"position"in d&&i(0,l=d.position),"secondsToWatchBeforeSkip"in d&&i(1,o=d.secondsToWatchBeforeSkip),"skipAd"in d&&i(2,r=d.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,a=l>0&&l>=o)},[l,o,r,a,n,c]}class vd extends be{constructor(e){super(),ge(this,e,fd,dd,me,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},ad)}}function md(t){Se(t,"v-1wy3dql","button.v-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 pd(t){let e;return{c(){e=g("button"),e.textContent=`${Te("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(i,n){M(i,e,n)},p:B,i:B,o:B,d(i){i&&T(e)}}}class hd extends be{constructor(e){super(),ge(this,e,null,pd,me,{},md)}}function gd(t){Se(t,"v-354ajf",`.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
20
19
  360deg,
21
20
  rgba(0, 0, 0, 0) 0%,
22
21
  rgba(0, 0, 0, 0.05) 12%,
@@ -26,12 +25,12 @@
26
25
  rgba(0, 0, 0, 0.5) 77%,
27
26
  rgba(0, 0, 0, 0.55) 88%,
28
27
  rgba(0, 0, 0, 0.65) 100%
29
- )}`)}function Dn(t){let e;return{c(){e=p("div"),c(e,"class","top-gradient-mobile v-354ajf")},m(i,n){E(i,e,n)},d(i){i&&C(e)}}}function jn(t){let e,i;return e=new Qa({props:{position:t[6],duration:t[7]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&128&&(o.duration=n[7]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function On(t){let e,i;return e=new Ja({props:{position:t[6],secondsToWatchBeforeSkip:t[8],skipAd:t[10].actions.internal.skipAd}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&256&&(o.secondsToWatchBeforeSkip=n[8]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Un(t){let e,i;return e=new Da({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Qn(t){let e,i;return e=new $a({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function tr(t){let e,i,n,l,o,s,a,r,u=t[0]&&Dn(),f=t[3]&&jn(t),d=t[4]&&On(t),w=t[9]&&Un(),v=t[5]&&Qn();return{c(){e=p("div"),u&&u.c(),i=T(),n=p("video"),l=T(),f&&f.c(),o=T(),d&&d.c(),s=T(),w&&w.c(),a=T(),v&&v.c(),Ut(n,"width","100%"),Ut(n,"height","100%"),n.playsInline=!0,c(e,"class","container v-354ajf")},m(b,h){E(b,e,h),u&&u.m(e,null),m(e,i),m(e,n),t[22](n),m(e,l),f&&f.m(e,null),m(e,o),d&&d.m(e,null),m(e,s),w&&w.m(e,null),m(e,a),v&&v.m(e,null),t[23](e),r=!0},p(b,[h]){b[0]?u||(u=Dn(),u.c(),u.m(e,i)):u&&(u.d(1),u=null),b[3]?f?(f.p(b,h),h&8&&g(f,1)):(f=jn(b),f.c(),g(f,1),f.m(e,o)):f&&(se(),k(f,1,1,()=>{f=null}),ae()),b[4]?d?(d.p(b,h),h&16&&g(d,1)):(d=On(b),d.c(),g(d,1),d.m(e,s)):d&&(se(),k(d,1,1,()=>{d=null}),ae()),b[9]?w?h&512&&g(w,1):(w=Un(),w.c(),g(w,1),w.m(e,a)):w&&(se(),k(w,1,1,()=>{w=null}),ae()),b[5]?v?h&32&&g(v,1):(v=Qn(),v.c(),g(v,1),v.m(e,null)):v&&(se(),k(v,1,1,()=>{v=null}),ae())},i(b){r||(g(f),g(d),g(w),g(v),r=!0)},o(b){k(f),k(d),k(w),k(v),r=!1},d(b){b&&C(e),u&&u.d(),t[22](null),f&&f.d(),d&&d.d(),w&&w.d(),v&&v.d(),t[23](null)}}}function ir(t,e,i){let n,l,o,s,a,r,{adsSlotId:u=void 0}=e,{adsParams:f=void 0}=e,{adsPreviewParam:d=void 0}=e,{duration:w=0}=e;const v=Oe(),b=v.state.isEnded$;Q(t,b,j=>i(9,r=j));const h=v.ui.isMobile;Q(t,h,j=>i(0,l=j));let z,M,_=!1;const P=v.ads.playbackState;Q(t,P,j=>i(21,n=j));const B=v.ads.canSkip,L=v.ads.duration;Q(t,L,j=>i(7,s=j));const F=v.ads.position;Q(t,F,j=>i(6,o=j));const R=v.ads.secondsToWatchBeforeSkip;Q(t,R,j=>i(8,a=j));let S,q,N;Lt(()=>{const j=new AbortController;let U=()=>{j.abort()};const J=v.getAdmanWrapper();if(!u){J.onAdmanLoadingError();return}const{width:ue,height:G}=Re(v.ui.playerSize),D=Re(v.ui.isFullscreen),ie=Re(v.ui.isAutoplay),Ae={width:ue,height:G,isFullscreen:D,isAutoplay:ie,adsContainer:z,adsVideoElement:M,slotId:u,params:f,previewParam:d,duration:w};return window.AdmanHTML?(J.initAdman(Ae),_=!0):J.loadAdman(j.signal).then(()=>{J.initAdman(Ae),_=!0}).catch(()=>{J.onAdmanLoadingError()}),()=>{!_&&U()}});function Y(j){Je[j?"unshift":"push"](()=>{M=j,i(2,M)})}function Z(j){Je[j?"unshift":"push"](()=>{z=j,i(1,z)})}return t.$$set=j=>{"adsSlotId"in j&&i(17,u=j.adsSlotId),"adsParams"in j&&i(18,f=j.adsParams),"adsPreviewParam"in j&&i(19,d=j.adsPreviewParam),"duration"in j&&i(20,w=j.duration)},t.$$.update=()=>{t.$$.dirty&2097152&&i(3,S=n!==Fe.INACTIVE),t.$$.dirty&2097152&&i(4,q=B&&n!==Fe.INACTIVE),t.$$.dirty&2097153&&i(5,N=l&&n!==Fe.INACTIVE)},[l,z,M,S,q,N,o,s,a,r,v,b,h,P,L,F,R,u,f,d,w,n,Y,Z]}class nr extends we{constructor(e){super(),be(this,e,ir,tr,ve,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},er)}}function lr(t){_e(t,"v-p5rs9b","ul.v-p5rs9b{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);overflow:hidden;transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0}.hidden.v-p5rs9b{visibility:hidden;opacity:0}li.v-p5rs9b{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-p5rs9b:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function or(t){let e,i,n;return{c(){e=p("li"),e.textContent="\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",c(e,"class","v-p5rs9b")},m(l,o){E(l,e,o),i||(n=oe(e,"click",t[8]),i=!0)},p:I,d(l){l&&C(e),i=!1,n()}}}function sr(t){let e,i,n,l,o,s,a,r,u,f=t[4]&&or(t);return{c(){e=p("ul"),f&&f.c(),i=T(),n=p("li"),n.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",l=T(),o=p("li"),o.textContent="\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",s=T(),a=p("li"),a.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(n,"class","v-p5rs9b"),c(o,"class","v-p5rs9b"),c(a,"class","v-p5rs9b"),Ut(e,"top",t[1]+"px"),Ut(e,"left",t[0]+"px"),c(e,"class","v-p5rs9b"),A(e,"hidden",!t[2])},m(d,w){E(d,e,w),f&&f.m(e,null),m(e,i),m(e,n),m(e,l),m(e,o),m(e,s),m(e,a),t[12](e),r||(u=[oe(n,"click",t[5]),oe(o,"click",t[6]),oe(a,"click",t[7])],r=!0)},p(d,[w]){d[4]&&f.p(d,w),w&2&&Ut(e,"top",d[1]+"px"),w&1&&Ut(e,"left",d[0]+"px"),w&4&&A(e,"hidden",!d[2])},i:I,o:I,d(d){d&&C(e),f&&f.d(),t[12](null),r=!1,Ze(u)}}}function ar(t,e,i){var n=this&&this.__awaiter||function(L,F,R,S){function q(N){return N instanceof R?N:new R(function(Y){Y(N)})}return new(R||(R=Promise))(function(N,Y){function Z(J){try{U(S.next(J))}catch(ue){Y(ue)}}function j(J){try{U(S.throw(J))}catch(ue){Y(ue)}}function U(J){J.done?N(J.value):q(J.value).then(Z,j)}U((S=S.apply(L,F||[])).next())})};let{visible:l=!1}=e,{supportLink:o}=e,{x:s=0}=e,{y:a=0}=e,{playerContainerRef:r=void 0}=e,{controlsContainerRef:u=void 0}=e;const f=Oe(),d=f.ui.contextMenuVisible,w=f.ui.debugPanelVisible,v=f.webApi.pictureInPictureApi;let b;const h=(L,F)=>{if(!b||!r||!u)return;const R=b.getBoundingClientRect(),S=r.getBoundingClientRect(),q=u.getBoundingClientRect();i(0,s=L-S.left),i(1,a=F-S.top),s+R.width>S.width&&i(0,s-=R.width),a+R.height>S.height-q.height&&i(1,a-=R.height)},z=L=>{window.open(o,"_blank"),d.set(!1),f.actions.internal.pause(),L.stopPropagation()},M=L=>{Tl(f.actions.internal.getDebugTextData()),d.set(!1),L.stopPropagation()},_=L=>{w.set(!0),d.set(!1),L.stopPropagation()},P=L=>n(void 0,void 0,void 0,function*(){v!=null&&v.isActive()?yield v==null?void 0:v.remove():yield v==null?void 0:v.request(),d.set(!1),L.stopPropagation()});function B(L){Je[L?"unshift":"push"](()=>{b=L,i(3,b)})}return t.$$set=L=>{"visible"in L&&i(2,l=L.visible),"supportLink"in L&&i(9,o=L.supportLink),"x"in L&&i(0,s=L.x),"y"in L&&i(1,a=L.y),"playerContainerRef"in L&&i(10,r=L.playerContainerRef),"controlsContainerRef"in L&&i(11,u=L.controlsContainerRef)},t.$$.update=()=>{t.$$.dirty&3&&h(s,a)},[s,a,l,b,v,z,M,_,P,o,r,u,B]}class rr extends we{constructor(e){super(),be(this,e,ar,sr,ve,{visible:2,supportLink:9,x:0,y:1,playerContainerRef:10,controlsContainerRef:11},lr)}}class cr{constructor(e){this.value=e,this.next=null}}class Pi{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new cr(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(){const e=[];let i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}}function ur(t){_e(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function dr(t){let e,i;return{c(){e=p("div"),i=p("canvas"),c(i,"class","v-1ssl9eb"),c(e,"class","container v-1ssl9eb")},m(n,l){E(n,e,l),m(e,i),t[3](i)},p:I,i:I,o:I,d(n){n&&C(e),t[3](null)}}}const Vi=16,Si=120,Wn=60;function fr(t,e,i,n,l){l===0&&(l=1),t.fillStyle="#fff",t.fillRect(e,i,n,l)}function mr(t,e,i){let{values:n=[]}=e,l,o;const s=Si/Wn;Lt(()=>{i(0,l.width=Si,l),i(0,l.height=Vi,l),i(2,o=l.getContext("2d"))});function a(r){Je[r?"unshift":"push"](()=>{l=r,i(0,l)})}return t.$$set=r=>{"values"in r&&i(1,n=r.values)},t.$$.update=()=>{if(t.$$.dirty&6&&o){let r=n[0];for(let f=1;f<n.length;f++)n[f]>r&&(r=n[f]);o.clearRect(0,0,Si,Vi);let u=Wn-1;for(let f=n.length-1;f>=0;f--){const d=u*s,w=r>0?Vi*(n[f]/r):0;fr(o,d,0,s,w),u--}}},[l,n,o,a]}class qi extends we{constructor(e){super(),be(this,e,mr,dr,ve,{values:1},ur)}}const Nt={set:(t,e)=>{try{localStorage.setItem(t,JSON.stringify(e))}catch(i){}},get:t=>{try{const e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return null}},remove(t){try{localStorage.removeItem(t)}catch(e){}}};function vr(t){_e(t,"v-1gy2e68",".container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}")}function Yn(t){let e,i,n,l,o=t[0].id+"",s;return{c(){e=p("div"),i=p("div"),i.textContent="Video id",n=T(),l=p("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){E(a,e,r),m(e,i),m(e,n),m(e,l),m(l,s)},p(a,r){r&1&&o!==(o=a[0].id+"")&&Ee(s,o)},d(a){a&&C(e)}}}function Kn(t){let e,i,n,l,o=t[0].provider+"",s;return{c(){e=p("div"),i=p("div"),i.textContent="Provider",n=T(),l=p("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){E(a,e,r),m(e,i),m(e,n),m(e,l),m(l,s)},p(a,r){r&1&&o!==(o=a[0].provider+"")&&Ee(s,o)},d(a){a&&C(e)}}}function Xn(t){let e,i,n,l,o=t[0].viewport+"",s;return{c(){e=p("div"),i=p("div"),i.textContent="Viewport",n=T(),l=p("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){E(a,e,r),m(e,i),m(e,n),m(e,l),m(l,s)},p(a,r){r&1&&o!==(o=a[0].viewport+"")&&Ee(s,o)},d(a){a&&C(e)}}}function Gn(t){let e,i,n,l,o=t[0].videoSize+"",s;return{c(){e=p("div"),i=p("div"),i.textContent="Video size",n=T(),l=p("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){E(a,e,r),m(e,i),m(e,n),m(e,l),m(l,s)},p(a,r){r&1&&o!==(o=a[0].videoSize+"")&&Ee(s,o)},d(a){a&&C(e)}}}function Jn(t){let e,i,n,l,o=t[0].cdn+"",s;return{c(){e=p("div"),i=p("div"),i.textContent="CDN host",n=T(),l=p("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){E(a,e,r),m(e,i),m(e,n),m(e,l),m(l,s)},p(a,r){r&1&&o!==(o=a[0].cdn+"")&&Ee(s,o)},d(a){a&&C(e)}}}function Zn(t){let e,i,n,l,o=t[0].volume+"",s,a;return{c(){e=p("div"),i=p("div"),i.textContent="Volume",n=T(),l=p("span"),s=de(o),a=de(" %"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,u){E(r,e,u),m(e,i),m(e,n),m(e,l),m(l,s),m(l,a)},p(r,u){u&1&&o!==(o=r[0].volume+"")&&Ee(s,o)},d(r){r&&C(e)}}}function xn(t){let e,i,n,l,o=t[0].buffer.toFixed(2)+"",s,a;return{c(){e=p("div"),i=p("div"),i.textContent="Buffer",n=T(),l=p("span"),s=de(o),a=de(" s"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,u){E(r,e,u),m(e,i),m(e,n),m(e,l),m(l,s),m(l,a)},p(r,u){u&1&&o!==(o=r[0].buffer.toFixed(2)+"")&&Ee(s,o)},d(r){r&&C(e)}}}function $n(t){let e,i,n,l,o,s,a=t[0].speed.toFixed(2)+"",r,u,f;return l=new qi({props:{values:t[5]}}),{c(){e=p("div"),i=p("div"),i.textContent="Network",n=T(),te(l.$$.fragment),o=T(),s=p("span"),r=de(a),u=de(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(d,w){E(d,e,w),m(e,i),m(e,n),$(l,e,null),m(e,o),m(e,s),m(s,r),m(s,u),f=!0},p(d,w){const v={};w&32&&(v.values=d[5]),l.$set(v),(!f||w&1)&&a!==(a=d[0].speed.toFixed(2)+"")&&Ee(r,a)},i(d){f||(g(l.$$.fragment,d),f=!0)},o(d){k(l.$$.fragment,d),f=!1},d(d){d&&C(e),ee(l)}}}function el(t){let e,i,n,l,o,s,a=t[0].bitrate.toFixed(2)+"",r,u,f;return l=new qi({props:{values:t[6]}}),{c(){e=p("div"),i=p("div"),i.textContent="V bitrate",n=T(),te(l.$$.fragment),o=T(),s=p("span"),r=de(a),u=de(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(d,w){E(d,e,w),m(e,i),m(e,n),$(l,e,null),m(e,o),m(e,s),m(s,r),m(s,u),f=!0},p(d,w){const v={};w&64&&(v.values=d[6]),l.$set(v),(!f||w&1)&&a!==(a=d[0].bitrate.toFixed(2)+"")&&Ee(r,a)},i(d){f||(g(l.$$.fragment,d),f=!0)},o(d){k(l.$$.fragment,d),f=!1},d(d){d&&C(e),ee(l)}}}function gr(t){let e,i,n,l,o,s,a,r,u=t[0].version+"",f,d,w,v,b,h,z,M,_,P,B,L,F,R,S,q,N,Y,Z,j,U,J,ue,G,D,ie,Ae,ge,he,Qe,pe=t[0].id&&Yn(t),ne=t[0].provider&&Kn(t),fe=t[0].viewport&&Xn(t),me=t[0].videoSize&&Gn(t),ye=t[0].cdn&&Jn(t),K=t[0].volume&&Zn(t),ke=t[0].buffer&&xn(t),ce=t[0].speed&&$n(t),H=t[0].bitrate&&el(t);return G=new qi({props:{values:t[4]}}),{c(){e=p("div"),i=p("button"),i.textContent="[x]",n=T(),l=p("div"),o=p("div"),s=p("div"),s.textContent="Version",a=T(),r=p("span"),f=de(u),d=T(),pe&&pe.c(),w=T(),ne&&ne.c(),v=T(),fe&&fe.c(),b=T(),me&&me.c(),h=T(),ye&&ye.c(),z=T(),K&&K.c(),M=T(),ke&&ke.c(),_=T(),P=p("div"),B=p("div"),B.textContent="Dropped",L=T(),F=p("span"),R=de(t[2]),S=de(" / "),q=de(t[1]),N=de(" frames"),Y=T(),ce&&ce.c(),Z=T(),H&&H.c(),j=T(),U=p("div"),J=p("div"),J.textContent="FPS",ue=T(),te(G.$$.fragment),D=T(),ie=p("span"),Ae=de(t[3]),c(i,"class","close v-1gy2e68"),c(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(s,"class","v-1gy2e68"),c(o,"class","v-1gy2e68"),c(B,"class","v-1gy2e68"),c(P,"class","v-1gy2e68"),c(J,"class","v-1gy2e68"),c(U,"class","v-1gy2e68"),c(l,"class","content v-1gy2e68"),c(e,"class","container v-1gy2e68"),A(e,"container-mobile",t[7])},m(O,x){E(O,e,x),m(e,i),m(e,n),m(e,l),m(l,o),m(o,s),m(o,a),m(o,r),m(r,f),m(l,d),pe&&pe.m(l,null),m(l,w),ne&&ne.m(l,null),m(l,v),fe&&fe.m(l,null),m(l,b),me&&me.m(l,null),m(l,h),ye&&ye.m(l,null),m(l,z),K&&K.m(l,null),m(l,M),ke&&ke.m(l,null),m(l,_),m(l,P),m(P,B),m(P,L),m(P,F),m(F,R),m(F,S),m(F,q),m(F,N),m(l,Y),ce&&ce.m(l,null),m(l,Z),H&&H.m(l,null),m(l,j),m(l,U),m(U,J),m(U,ue),$(G,U,null),m(U,D),m(U,ie),m(ie,Ae),ge=!0,he||(Qe=oe(i,"click",t[9]),he=!0)},p(O,[x]){(!ge||x&1)&&u!==(u=O[0].version+"")&&Ee(f,u),O[0].id?pe?pe.p(O,x):(pe=Yn(O),pe.c(),pe.m(l,w)):pe&&(pe.d(1),pe=null),O[0].provider?ne?ne.p(O,x):(ne=Kn(O),ne.c(),ne.m(l,v)):ne&&(ne.d(1),ne=null),O[0].viewport?fe?fe.p(O,x):(fe=Xn(O),fe.c(),fe.m(l,b)):fe&&(fe.d(1),fe=null),O[0].videoSize?me?me.p(O,x):(me=Gn(O),me.c(),me.m(l,h)):me&&(me.d(1),me=null),O[0].cdn?ye?ye.p(O,x):(ye=Jn(O),ye.c(),ye.m(l,z)):ye&&(ye.d(1),ye=null),O[0].volume?K?K.p(O,x):(K=Zn(O),K.c(),K.m(l,M)):K&&(K.d(1),K=null),O[0].buffer?ke?ke.p(O,x):(ke=xn(O),ke.c(),ke.m(l,_)):ke&&(ke.d(1),ke=null),(!ge||x&4)&&Ee(R,O[2]),(!ge||x&2)&&Ee(q,O[1]),O[0].speed?ce?(ce.p(O,x),x&1&&g(ce,1)):(ce=$n(O),ce.c(),g(ce,1),ce.m(l,Z)):ce&&(se(),k(ce,1,1,()=>{ce=null}),ae()),O[0].bitrate?H?(H.p(O,x),x&1&&g(H,1)):(H=el(O),H.c(),g(H,1),H.m(l,j)):H&&(se(),k(H,1,1,()=>{H=null}),ae());const qe={};x&16&&(qe.values=O[4]),G.$set(qe),(!ge||x&8)&&Ee(Ae,O[3]),(!ge||x&128)&&A(e,"container-mobile",O[7])},i(O){ge||(g(ce),g(H),g(G.$$.fragment,O),ge=!0)},o(O){k(ce),k(H),k(G.$$.fragment,O),ge=!1},d(O){O&&C(e),pe&&pe.d(),ne&&ne.d(),fe&&fe.d(),me&&me.d(),ye&&ye.d(),K&&K.d(),ke&&ke.d(),ce&&ce.d(),H&&H.d(),ee(G),he=!1,Qe()}}}function hr(t,e,i){let n;const l=Oe(),o=l.ui.debugPanelVisible,s=l.ui.isMobile;Q(t,s,P=>i(7,n=P));const a=P=>{Nt.set(Ti,!1),o.set(!1),P.stopPropagation()};let r=l.actions.internal.getDebugPanelData(),u=l.actions.internal.getVideoElement(),f=0,d=0,w=0;const v=new Pi(60),b=new Pi(60),h=new Pi(60);let z=[],M=[],_=[];return Lt(()=>{Nt.set(Ti,!0),l.actions.internal.startLogging(),u&&(i(2,d=u.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=u.getVideoPlaybackQuality().totalVideoFrames));const P=window.setInterval(()=>{i(0,r=l.actions.internal.getDebugPanelData())},500);let B;return u&&(B=window.setInterval(()=>{if(u){i(2,d=u.getVideoPlaybackQuality().droppedVideoFrames);const L=u.getVideoPlaybackQuality().totalVideoFrames;i(3,w=L-f),i(1,f=L),v.push(w),r.speed&&b.push(r.speed),r.bitrate&&h.push(r.bitrate),i(4,z=v.getValuesFromBottom()),i(5,M=b.getValuesFromBottom()),i(6,_=h.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(P),B&&clearInterval(B)}}),[r,f,d,w,z,M,_,n,s,a]}class pr extends we{constructor(e){super(),be(this,e,hr,gr,ve,{},vr)}}function br(t){_e(t,"v-1ome55p",".close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}")}function wr(t){let e,i,n;return{c(){e=p("div"),c(e,"class","close v-1ome55p")},m(l,o){E(l,e,o),i||(n=oe(e,"click",t[0]),i=!0)},p:I,i:I,o:I,d(l){l&&C(e),i=!1,n()}}}function _r(t){function e(i){it.call(this,t,i)}return[e]}class yr extends we{constructor(e){super(),be(this,e,_r,wr,ve,{},br)}}function kr(t){_e(t,"v-8jhsry",`.timer.v-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.v-8jhsry:hover{background:rgba(31, 31, 31, .85)
30
- }.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}`)}function Pr(t){let e,i,n,l,o,s,a;return{c(){e=p("div"),i=p("canvas"),n=T(),l=Me("svg"),o=Me("g"),s=Me("g"),a=Me("path"),c(i,"class","timer-canvas v-8jhsry"),c(i,"width","100"),c(i,"height","100"),c(a,"class","_play"),c(a,"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"),c(a,"fill","#fff"),c(s,"fill-rule","nonzero"),c(o,"fill","none"),c(o,"fill-rule","evenodd"),c(l,"class","timer-play-icon v-8jhsry"),c(l,"viewBox","0 0 24 24"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer v-8jhsry")},m(r,u){E(r,e,u),m(e,i),t[2](i),m(e,n),m(e,l),m(l,o),m(o,s),m(s,a)},p:I,i:I,o:I,d(r){r&&C(e),t[2](null)}}}const Vr=5e3;function Sr(t,e,i){let{onTimerEnded:n=I}=e,l;Lt(()=>{let s;const a=l.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";const r=Date.now(),u=()=>{const f=(Date.now()-r)/Vr;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),s=requestAnimationFrame(u)):n()};return s=requestAnimationFrame(u),()=>{cancelAnimationFrame(s)}});function o(s){Je[s?"unshift":"push"](()=>{l=s,i(0,l)})}return t.$$set=s=>{"onTimerEnded"in s&&i(1,n=s.onTimerEnded)},[l,n,o]}class Ar extends we{constructor(e){super(),be(this,e,Sr,Pr,ve,{onTimerEnded:1},kr)}}function Cr(t){_e(t,"v-kisfwc",".overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function tl(t){let e,i;return e=new Ar({props:{onTimerEnded:t[2]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&4&&(o.onTimerEnded=n[2]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Mr(t){let e,i,n,l,o,s,a,r,u,f,d,w,v,b,h,z,M,_,P,B,L;a=new yr({}),a.$on("click",t[4]);let F=t[3]&&tl(t);return{c(){e=p("div"),i=T(),n=p("div"),l=p("div"),o=p("div"),o.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",s=T(),te(a.$$.fragment),r=T(),u=p("div"),f=p("div"),d=p("div"),w=p("div"),v=T(),F&&F.c(),h=T(),z=p("div"),M=p("div"),_=de(t[0]),c(e,"class","overlay v-kisfwc"),c(o,"class","caption v-kisfwc"),c(l,"class","top v-kisfwc"),c(w,"class","thumb-overlay v-kisfwc"),c(d,"class","thumb v-kisfwc"),c(d,"style",b=`background-image: url('${t[1]}')`),c(f,"class","column v-kisfwc"),c(M,"class","title v-kisfwc"),c(z,"class","column v-kisfwc"),c(u,"class","row v-kisfwc"),c(n,"class","next-video v-kisfwc")},m(R,S){E(R,e,S),E(R,i,S),E(R,n,S),m(n,l),m(l,o),m(l,s),$(a,l,null),m(n,r),m(n,u),m(u,f),m(f,d),m(d,w),m(d,v),F&&F.m(d,null),m(u,h),m(u,z),m(z,M),m(M,_),P=!0,B||(L=oe(u,"click",function(){He(t[2])&&t[2].apply(this,arguments)}),B=!0)},p(R,[S]){t=R,t[3]?F?(F.p(t,S),S&8&&g(F,1)):(F=tl(t),F.c(),g(F,1),F.m(d,null)):F&&(se(),k(F,1,1,()=>{F=null}),ae()),(!P||S&2&&b!==(b=`background-image: url('${t[1]}')`))&&c(d,"style",b),(!P||S&1)&&Ee(_,t[0])},i(R){P||(g(a.$$.fragment,R),g(F),P=!0)},o(R){k(a.$$.fragment,R),k(F),P=!1},d(R){R&&C(e),R&&C(i),R&&C(n),ee(a),F&&F.d(),B=!1,L()}}}function Er(t,e,i){let{title:n}=e,{thumb:l}=e,{playNextVideo:o}=e,s=!0;const a=()=>i(3,s=!1);return t.$$set=r=>{"title"in r&&i(0,n=r.title),"thumb"in r&&i(1,l=r.thumb),"playNextVideo"in r&&i(2,o=r.playNextVideo)},[n,l,o,s,a]}class zr extends we{constructor(e){super(),be(this,e,Er,Mr,ve,{title:0,thumb:1,playNextVideo:2},Cr)}}function Tr(t,e,i){let{playNextVideo:n}=e;return Lt(()=>{n()}),t.$$set=l=>{"playNextVideo"in l&&i(0,n=l.playNextVideo)},[n]}class Nr extends we{constructor(e){super(),be(this,e,Tr,null,ve,{playNextVideo:0})}}function Lr(t){_e(t,"v-cus9x4",`.title.v-cus9x4{position:absolute;left:0;top:0;width:100%;height:var(--videoplayer-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(--videoplayer-controls-transition-duration);transition-timing-function:var(--videoplayer-controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
28
+ )}`)}function lo(t){let e;return{c(){e=g("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(i,n){M(i,e,n)},d(i){i&&T(e)}}}function oo(t){let e,i;return e=new sd({props:{position:t[6],duration:t[7]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&128&&(o.duration=n[7]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function ro(t){let e,i;return e=new vd({props:{position:t[6],secondsToWatchBeforeSkip:t[8],skipAd:t[10].actions.internal.skipAd}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&256&&(o.secondsToWatchBeforeSkip=n[8]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function so(t){let e,i;return e=new nd({}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function ao(t){let e,i;return e=new hd({}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function bd(t){let e,i,n,l,o,r,s,c,a=t[0]&&lo(),d=t[3]&&oo(t),m=t[4]&&ro(t),f=t[9]&&so(),p=t[5]&&ao();return{c(){e=g("div"),a&&a.c(),i=L(),n=g("video"),l=L(),d&&d.c(),o=L(),m&&m.c(),r=L(),f&&f.c(),s=L(),p&&p.c(),li(n,"width","100%"),li(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(w,b){M(w,e,b),a&&a.m(e,null),v(e,i),v(e,n),t[22](n),v(e,l),d&&d.m(e,null),v(e,o),m&&m.m(e,null),v(e,r),f&&f.m(e,null),v(e,s),p&&p.m(e,null),t[23](e),c=!0},p(w,[b]){w[0]?a||(a=lo(),a.c(),a.m(e,i)):a&&(a.d(1),a=null),w[3]?d?(d.p(w,b),b&8&&h(d,1)):(d=oo(w),d.c(),h(d,1),d.m(e,o)):d&&(se(),P(d,1,1,()=>{d=null}),ae()),w[4]?m?(m.p(w,b),b&16&&h(m,1)):(m=ro(w),m.c(),h(m,1),m.m(e,r)):m&&(se(),P(m,1,1,()=>{m=null}),ae()),w[9]?f?b&512&&h(f,1):(f=so(),f.c(),h(f,1),f.m(e,s)):f&&(se(),P(f,1,1,()=>{f=null}),ae()),w[5]?p?b&32&&h(p,1):(p=ao(),p.c(),h(p,1),p.m(e,null)):p&&(se(),P(p,1,1,()=>{p=null}),ae())},i(w){c||(h(d),h(m),h(f),h(p),c=!0)},o(w){P(d),P(m),P(f),P(p),c=!1},d(w){w&&T(e),a&&a.d(),t[22](null),d&&d.d(),m&&m.d(),f&&f.d(),p&&p.d(),t[23](null)}}}function wd(t,e,i){let n,l,o,r,s,c,{adsSlotId:a=void 0}=e,{adsParams:d=void 0}=e,{adsPreviewParam:m=void 0}=e,{duration:f=0}=e;const p=Qe(),w=p.state.isEnded$;Q(t,w,H=>i(9,c=H));const b=p.ui.isMobile;Q(t,b,H=>i(0,l=H));let y,N,_=!1;const S=p.ads.playbackState;Q(t,S,H=>i(21,n=H));const D=p.ads.canSkip,R=p.ads.duration;Q(t,R,H=>i(7,r=H));const j=p.ads.position;Q(t,j,H=>i(6,o=H));const I=p.ads.secondsToWatchBeforeSkip;Q(t,I,H=>i(8,s=H));let k,O,C;Wt(()=>{const H=new AbortController;let U=()=>{H.abort()};const X=p.getAdmanWrapper();if(!a){X.onAdmanLoadingError();return}const{width:fe,height:K}=Oe(p.ui.playerSize),F=Oe(p.ui.isFullscreen),te=Oe(p.ui.isAutoplay),Ne={width:fe,height:K,isFullscreen:F,isAutoplay:te,adsContainer:y,adsVideoElement:N,slotId:a,params:d,previewParam:m,duration:f};return window.AdmanHTML?(X.initAdman(Ne),_=!0):X.loadAdman(H.signal).then(()=>{X.initAdman(Ne),_=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!_&&U()}});function Y(H){nt[H?"unshift":"push"](()=>{N=H,i(2,N)})}function q(H){nt[H?"unshift":"push"](()=>{y=H,i(1,y)})}return t.$$set=H=>{"adsSlotId"in H&&i(17,a=H.adsSlotId),"adsParams"in H&&i(18,d=H.adsParams),"adsPreviewParam"in H&&i(19,m=H.adsPreviewParam),"duration"in H&&i(20,f=H.duration)},t.$$.update=()=>{t.$$.dirty&2097152&&i(3,k=n!==qe.INACTIVE),t.$$.dirty&2097152&&i(4,O=D&&n!==qe.INACTIVE),t.$$.dirty&2097153&&i(5,C=l&&n!==qe.INACTIVE)},[l,y,N,k,O,C,o,r,s,c,p,w,b,S,R,j,I,a,d,m,f,n,Y,q]}class _d extends be{constructor(e){super(),ge(this,e,wd,bd,me,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},gd)}}function yd(t){Se(t,"v-p5rs9b","ul.v-p5rs9b{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);overflow:hidden;transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0}.hidden.v-p5rs9b{visibility:hidden;opacity:0}li.v-p5rs9b{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-p5rs9b:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function kd(t){let e,i,n;return{c(){e=g("li"),e.textContent=`${Te("menu_pip")}`,u(e,"class","v-p5rs9b")},m(l,o){M(l,e,o),i||(n=oe(e,"click",t[8]),i=!0)},p:B,d(l){l&&T(e),i=!1,n()}}}function Pd(t){let e,i,n,l,o,r,s,c,a,d=t[4]&&kd(t);return{c(){e=g("ul"),d&&d.c(),i=L(),n=g("li"),n.textContent=`${Te("menu_report")}`,l=L(),o=g("li"),o.textContent=`${Te("menu_copy_debug")}`,r=L(),s=g("li"),s.textContent=`${Te("menu_debug_overlay")}`,u(n,"class","v-p5rs9b"),u(o,"class","v-p5rs9b"),u(s,"class","v-p5rs9b"),li(e,"top",t[1]+"px"),li(e,"left",t[0]+"px"),u(e,"class","v-p5rs9b"),E(e,"hidden",!t[2])},m(m,f){M(m,e,f),d&&d.m(e,null),v(e,i),v(e,n),v(e,l),v(e,o),v(e,r),v(e,s),t[12](e),c||(a=[oe(n,"click",t[5]),oe(o,"click",t[6]),oe(s,"click",t[7])],c=!0)},p(m,[f]){m[4]&&d.p(m,f),f&2&&li(e,"top",m[1]+"px"),f&1&&li(e,"left",m[0]+"px"),f&4&&E(e,"hidden",!m[2])},i:B,o:B,d(m){m&&T(e),d&&d.d(),t[12](null),c=!1,lt(a)}}}function Sd(t,e,i){var n=this&&this.__awaiter||function(R,j,I,k){function O(C){return C instanceof I?C:new I(function(Y){Y(C)})}return new(I||(I=Promise))(function(C,Y){function q(X){try{U(k.next(X))}catch(fe){Y(fe)}}function H(X){try{U(k.throw(X))}catch(fe){Y(fe)}}function U(X){X.done?C(X.value):O(X.value).then(q,H)}U((k=k.apply(R,j||[])).next())})};let{visible:l=!1}=e,{supportLink:o}=e,{x:r=0}=e,{y:s=0}=e,{playerContainerRef:c=void 0}=e,{controlsContainerRef:a=void 0}=e;const d=Qe(),m=d.ui.contextMenuVisible,f=d.ui.debugPanelVisible,p=d.webApi.pictureInPictureApi;let w;const b=(R,j)=>{if(!w||!c||!a)return;const I=w.getBoundingClientRect(),k=c.getBoundingClientRect(),O=a.getBoundingClientRect();i(0,r=R-k.left),i(1,s=j-k.top),r+I.width>k.width&&i(0,r-=I.width),s+I.height>k.height-O.height&&i(1,s-=I.height)},y=R=>{window.open(o,"_blank"),m.set(!1),d.actions.internal.pause(),R.stopPropagation()},N=R=>{Sr(d.actions.internal.getDebugTextData()),m.set(!1),R.stopPropagation()},_=R=>{f.set(!0),m.set(!1),R.stopPropagation()},S=R=>n(void 0,void 0,void 0,function*(){p!=null&&p.isActive()?yield p==null?void 0:p.remove():yield p==null?void 0:p.request(),m.set(!1),R.stopPropagation()});function D(R){nt[R?"unshift":"push"](()=>{w=R,i(3,w)})}return t.$$set=R=>{"visible"in R&&i(2,l=R.visible),"supportLink"in R&&i(9,o=R.supportLink),"x"in R&&i(0,r=R.x),"y"in R&&i(1,s=R.y),"playerContainerRef"in R&&i(10,c=R.playerContainerRef),"controlsContainerRef"in R&&i(11,a=R.controlsContainerRef)},t.$$.update=()=>{t.$$.dirty&3&&b(r,s)},[r,s,l,w,p,y,N,_,S,o,c,a,D]}class Vd extends be{constructor(e){super(),ge(this,e,Sd,Pd,me,{visible:2,supportLink:9,x:0,y:1,playerContainerRef:10,controlsContainerRef:11},yd)}}class Ad{constructor(e){this.value=e,this.next=null}}class cn{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new Ad(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(){const e=[];let i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}}function Cd(t){Se(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Ed(t){let e,i;return{c(){e=g("div"),i=g("canvas"),u(i,"class","v-1ssl9eb"),u(e,"class","container v-1ssl9eb")},m(n,l){M(n,e,l),v(e,i),t[3](i)},p:B,i:B,o:B,d(n){n&&T(e),t[3](null)}}}const un=16,dn=120,co=60;function Td(t,e,i,n,l){l===0&&(l=1),t.fillStyle="#fff",t.fillRect(e,i,n,l)}function Md(t,e,i){let{values:n=[]}=e,l,o;const r=dn/co;Wt(()=>{i(0,l.width=dn,l),i(0,l.height=un,l),i(2,o=l.getContext("2d"))});function s(c){nt[c?"unshift":"push"](()=>{l=c,i(0,l)})}return t.$$set=c=>{"values"in c&&i(1,n=c.values)},t.$$.update=()=>{if(t.$$.dirty&6&&o){let c=n[0];for(let d=1;d<n.length;d++)n[d]>c&&(c=n[d]);o.clearRect(0,0,dn,un);let a=co-1;for(let d=n.length-1;d>=0;d--){const m=a*r,f=c>0?un*(n[d]/c):0;Td(o,m,0,r,f),a--}}},[l,n,o,s]}class zn extends be{constructor(e){super(),ge(this,e,Md,Ed,me,{values:1},Cd)}}const Qt={set:(t,e)=>{try{localStorage.setItem(t,JSON.stringify(e))}catch(i){}},get:t=>{try{const e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return null}},remove(t){try{localStorage.removeItem(t)}catch(e){}}};function Ld(t){Se(t,"v-1gy2e68",".container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}")}function uo(t){let e,i,n,l,o=t[0].id+"",r;return{c(){e=g("div"),i=g("div"),i.textContent="Video id",n=L(),l=g("span"),r=_e(o),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,c){M(s,e,c),v(e,i),v(e,n),v(e,l),v(l,r)},p(s,c){c&1&&o!==(o=s[0].id+"")&&Le(r,o)},d(s){s&&T(e)}}}function fo(t){let e,i,n,l,o=t[0].provider+"",r;return{c(){e=g("div"),i=g("div"),i.textContent="Provider",n=L(),l=g("span"),r=_e(o),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,c){M(s,e,c),v(e,i),v(e,n),v(e,l),v(l,r)},p(s,c){c&1&&o!==(o=s[0].provider+"")&&Le(r,o)},d(s){s&&T(e)}}}function vo(t){let e,i,n,l,o=t[0].viewport+"",r;return{c(){e=g("div"),i=g("div"),i.textContent="Viewport",n=L(),l=g("span"),r=_e(o),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,c){M(s,e,c),v(e,i),v(e,n),v(e,l),v(l,r)},p(s,c){c&1&&o!==(o=s[0].viewport+"")&&Le(r,o)},d(s){s&&T(e)}}}function mo(t){let e,i,n,l,o=t[0].videoSize+"",r;return{c(){e=g("div"),i=g("div"),i.textContent="Video size",n=L(),l=g("span"),r=_e(o),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,c){M(s,e,c),v(e,i),v(e,n),v(e,l),v(l,r)},p(s,c){c&1&&o!==(o=s[0].videoSize+"")&&Le(r,o)},d(s){s&&T(e)}}}function po(t){let e,i,n,l,o=t[0].cdn+"",r;return{c(){e=g("div"),i=g("div"),i.textContent="CDN host",n=L(),l=g("span"),r=_e(o),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,c){M(s,e,c),v(e,i),v(e,n),v(e,l),v(l,r)},p(s,c){c&1&&o!==(o=s[0].cdn+"")&&Le(r,o)},d(s){s&&T(e)}}}function ho(t){let e,i,n,l,o=t[0].volume+"",r,s;return{c(){e=g("div"),i=g("div"),i.textContent="Volume",n=L(),l=g("span"),r=_e(o),s=_e(" %"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(c,a){M(c,e,a),v(e,i),v(e,n),v(e,l),v(l,r),v(l,s)},p(c,a){a&1&&o!==(o=c[0].volume+"")&&Le(r,o)},d(c){c&&T(e)}}}function go(t){let e,i,n,l,o=t[0].buffer.toFixed(2)+"",r,s;return{c(){e=g("div"),i=g("div"),i.textContent="Buffer",n=L(),l=g("span"),r=_e(o),s=_e(" s"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(c,a){M(c,e,a),v(e,i),v(e,n),v(e,l),v(l,r),v(l,s)},p(c,a){a&1&&o!==(o=c[0].buffer.toFixed(2)+"")&&Le(r,o)},d(c){c&&T(e)}}}function bo(t){let e,i,n,l,o,r,s=t[0].speed.toFixed(2)+"",c,a,d;return l=new zn({props:{values:t[5]}}),{c(){e=g("div"),i=g("div"),i.textContent="Network",n=L(),x(l.$$.fragment),o=L(),r=g("span"),c=_e(s),a=_e(" Kbps"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(m,f){M(m,e,f),v(e,i),v(e,n),J(l,e,null),v(e,o),v(e,r),v(r,c),v(r,a),d=!0},p(m,f){const p={};f&32&&(p.values=m[5]),l.$set(p),(!d||f&1)&&s!==(s=m[0].speed.toFixed(2)+"")&&Le(c,s)},i(m){d||(h(l.$$.fragment,m),d=!0)},o(m){P(l.$$.fragment,m),d=!1},d(m){m&&T(e),Z(l)}}}function wo(t){let e,i,n,l,o,r,s=t[0].bitrate.toFixed(2)+"",c,a,d;return l=new zn({props:{values:t[6]}}),{c(){e=g("div"),i=g("div"),i.textContent="V bitrate",n=L(),x(l.$$.fragment),o=L(),r=g("span"),c=_e(s),a=_e(" Kbps"),u(i,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(m,f){M(m,e,f),v(e,i),v(e,n),J(l,e,null),v(e,o),v(e,r),v(r,c),v(r,a),d=!0},p(m,f){const p={};f&64&&(p.values=m[6]),l.$set(p),(!d||f&1)&&s!==(s=m[0].bitrate.toFixed(2)+"")&&Le(c,s)},i(m){d||(h(l.$$.fragment,m),d=!0)},o(m){P(l.$$.fragment,m),d=!1},d(m){m&&T(e),Z(l)}}}function Nd(t){let e,i,n,l,o,r,s,c,a=t[0].version+"",d,m,f,p,w,b,y,N,_,S,D,R,j,I,k,O,C,Y,q,H,U,X,fe,K,F,te,Ne,ke,ie,Ke,ne=t[0].id&&uo(t),ce=t[0].provider&&fo(t),we=t[0].viewport&&vo(t),pe=t[0].videoSize&&mo(t),ve=t[0].cdn&&po(t),Pe=t[0].volume&&ho(t),he=t[0].buffer&&go(t),ye=t[0].speed&&bo(t),ue=t[0].bitrate&&wo(t);return K=new zn({props:{values:t[4]}}),{c(){e=g("div"),i=g("button"),i.textContent="[x]",n=L(),l=g("div"),o=g("div"),r=g("div"),r.textContent="Version",s=L(),c=g("span"),d=_e(a),m=L(),ne&&ne.c(),f=L(),ce&&ce.c(),p=L(),we&&we.c(),w=L(),pe&&pe.c(),b=L(),ve&&ve.c(),y=L(),Pe&&Pe.c(),N=L(),he&&he.c(),_=L(),S=g("div"),D=g("div"),D.textContent="Dropped",R=L(),j=g("span"),I=_e(t[2]),k=_e(" / "),O=_e(t[1]),C=_e(" frames"),Y=L(),ye&&ye.c(),q=L(),ue&&ue.c(),H=L(),U=g("div"),X=g("div"),X.textContent="FPS",fe=L(),x(K.$$.fragment),F=L(),te=g("span"),Ne=_e(t[3]),u(i,"class","close v-1gy2e68"),u(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(r,"class","v-1gy2e68"),u(o,"class","v-1gy2e68"),u(D,"class","v-1gy2e68"),u(S,"class","v-1gy2e68"),u(X,"class","v-1gy2e68"),u(U,"class","v-1gy2e68"),u(l,"class","content v-1gy2e68"),u(e,"class","container v-1gy2e68"),E(e,"container-mobile",t[7])},m(z,$){M(z,e,$),v(e,i),v(e,n),v(e,l),v(l,o),v(o,r),v(o,s),v(o,c),v(c,d),v(l,m),ne&&ne.m(l,null),v(l,f),ce&&ce.m(l,null),v(l,p),we&&we.m(l,null),v(l,w),pe&&pe.m(l,null),v(l,b),ve&&ve.m(l,null),v(l,y),Pe&&Pe.m(l,null),v(l,N),he&&he.m(l,null),v(l,_),v(l,S),v(S,D),v(S,R),v(S,j),v(j,I),v(j,k),v(j,O),v(j,C),v(l,Y),ye&&ye.m(l,null),v(l,q),ue&&ue.m(l,null),v(l,H),v(l,U),v(U,X),v(U,fe),J(K,U,null),v(U,F),v(U,te),v(te,Ne),ke=!0,ie||(Ke=oe(i,"click",t[9]),ie=!0)},p(z,[$]){(!ke||$&1)&&a!==(a=z[0].version+"")&&Le(d,a),z[0].id?ne?ne.p(z,$):(ne=uo(z),ne.c(),ne.m(l,f)):ne&&(ne.d(1),ne=null),z[0].provider?ce?ce.p(z,$):(ce=fo(z),ce.c(),ce.m(l,p)):ce&&(ce.d(1),ce=null),z[0].viewport?we?we.p(z,$):(we=vo(z),we.c(),we.m(l,w)):we&&(we.d(1),we=null),z[0].videoSize?pe?pe.p(z,$):(pe=mo(z),pe.c(),pe.m(l,b)):pe&&(pe.d(1),pe=null),z[0].cdn?ve?ve.p(z,$):(ve=po(z),ve.c(),ve.m(l,y)):ve&&(ve.d(1),ve=null),z[0].volume?Pe?Pe.p(z,$):(Pe=ho(z),Pe.c(),Pe.m(l,N)):Pe&&(Pe.d(1),Pe=null),z[0].buffer?he?he.p(z,$):(he=go(z),he.c(),he.m(l,_)):he&&(he.d(1),he=null),(!ke||$&4)&&Le(I,z[2]),(!ke||$&2)&&Le(O,z[1]),z[0].speed?ye?(ye.p(z,$),$&1&&h(ye,1)):(ye=bo(z),ye.c(),h(ye,1),ye.m(l,q)):ye&&(se(),P(ye,1,1,()=>{ye=null}),ae()),z[0].bitrate?ue?(ue.p(z,$),$&1&&h(ue,1)):(ue=wo(z),ue.c(),h(ue,1),ue.m(l,H)):ue&&(se(),P(ue,1,1,()=>{ue=null}),ae());const le={};$&16&&(le.values=z[4]),K.$set(le),(!ke||$&8)&&Le(Ne,z[3]),(!ke||$&128)&&E(e,"container-mobile",z[7])},i(z){ke||(h(ye),h(ue),h(K.$$.fragment,z),ke=!0)},o(z){P(ye),P(ue),P(K.$$.fragment,z),ke=!1},d(z){z&&T(e),ne&&ne.d(),ce&&ce.d(),we&&we.d(),pe&&pe.d(),ve&&ve.d(),Pe&&Pe.d(),he&&he.d(),ye&&ye.d(),ue&&ue.d(),Z(K),ie=!1,Ke()}}}function zd(t,e,i){let n;const l=Qe(),o=l.ui.debugPanelVisible,r=l.ui.isMobile;Q(t,r,S=>i(7,n=S));const s=S=>{Qt.set(kn,!1),o.set(!1),S.stopPropagation()};let c=l.actions.internal.getDebugPanelData(),a=l.actions.internal.getVideoElement(),d=0,m=0,f=0;const p=new cn(60),w=new cn(60),b=new cn(60);let y=[],N=[],_=[];return Wt(()=>{Qt.set(kn,!0),l.actions.internal.startLogging(),a&&(i(2,m=a.getVideoPlaybackQuality().droppedVideoFrames),i(1,d=a.getVideoPlaybackQuality().totalVideoFrames));const S=window.setInterval(()=>{i(0,c=l.actions.internal.getDebugPanelData())},500);let D;return a&&(D=window.setInterval(()=>{if(a){i(2,m=a.getVideoPlaybackQuality().droppedVideoFrames);const R=a.getVideoPlaybackQuality().totalVideoFrames;i(3,f=R-d),i(1,d=R),p.push(f),c.speed&&w.push(c.speed),c.bitrate&&b.push(c.bitrate),i(4,y=p.getValuesFromBottom()),i(5,N=w.getValuesFromBottom()),i(6,_=b.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(S),D&&clearInterval(D)}}),[c,d,m,f,y,N,_,n,r,s]}class Id extends be{constructor(e){super(),ge(this,e,zd,Nd,me,{},Ld)}}function Rd(t){Se(t,"v-1ome55p",".close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}")}function Bd(t){let e,i,n;return{c(){e=g("div"),u(e,"class","close v-1ome55p")},m(l,o){M(l,e,o),i||(n=oe(e,"click",t[0]),i=!0)},p:B,i:B,o:B,d(l){l&&T(e),i=!1,n()}}}function Od(t){function e(i){ft.call(this,t,i)}return[e]}class jd extends be{constructor(e){super(),ge(this,e,Od,Bd,me,{},Rd)}}function Fd(t){Se(t,"v-8jhsry",`.timer.v-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.v-8jhsry:hover{background:rgba(31, 31, 31, .85)
29
+ }.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}`)}function Dd(t){let e,i,n,l,o,r,s;return{c(){e=g("div"),i=g("canvas"),n=L(),l=Me("svg"),o=Me("g"),r=Me("g"),s=Me("path"),u(i,"class","timer-canvas v-8jhsry"),u(i,"width","100"),u(i,"height","100"),u(s,"class","_play"),u(s,"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"),u(s,"fill","#fff"),u(r,"fill-rule","nonzero"),u(o,"fill","none"),u(o,"fill-rule","evenodd"),u(l,"class","timer-play-icon v-8jhsry"),u(l,"viewBox","0 0 24 24"),u(l,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","timer v-8jhsry")},m(c,a){M(c,e,a),v(e,i),t[2](i),v(e,n),v(e,l),v(l,o),v(o,r),v(r,s)},p:B,i:B,o:B,d(c){c&&T(e),t[2](null)}}}const Hd=5e3;function qd(t,e,i){let{onTimerEnded:n=B}=e,l;Wt(()=>{let r;const s=l.getContext("2d");if(!s)return;s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff";const c=Date.now(),a=()=>{const d=(Date.now()-c)/Hd;d<1?(s.clearRect(0,0,100,100),s.beginPath(),s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*d),s.stroke(),r=requestAnimationFrame(a)):n()};return r=requestAnimationFrame(a),()=>{cancelAnimationFrame(r)}});function o(r){nt[r?"unshift":"push"](()=>{l=r,i(0,l)})}return t.$$set=r=>{"onTimerEnded"in r&&i(1,n=r.onTimerEnded)},[l,n,o]}class Ud extends be{constructor(e){super(),ge(this,e,qd,Dd,me,{onTimerEnded:1},Fd)}}function Qd(t){Se(t,"v-kisfwc",".overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function _o(t){let e,i;return e=new Ud({props:{onTimerEnded:t[2]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l&4&&(o.onTimerEnded=n[2]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Wd(t){let e,i,n,l,o,r,s,c,a,d,m,f,p,w,b,y,N,_,S,D,R;s=new jd({}),s.$on("click",t[4]);let j=t[3]&&_o(t);return{c(){e=g("div"),i=L(),n=g("div"),l=g("div"),o=g("div"),o.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=L(),x(s.$$.fragment),c=L(),a=g("div"),d=g("div"),m=g("div"),f=g("div"),p=L(),j&&j.c(),b=L(),y=g("div"),N=g("div"),_=_e(t[0]),u(e,"class","overlay v-kisfwc"),u(o,"class","caption v-kisfwc"),u(l,"class","top v-kisfwc"),u(f,"class","thumb-overlay v-kisfwc"),u(m,"class","thumb v-kisfwc"),u(m,"style",w=`background-image: url('${t[1]}')`),u(d,"class","column v-kisfwc"),u(N,"class","title v-kisfwc"),u(y,"class","column v-kisfwc"),u(a,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(I,k){M(I,e,k),M(I,i,k),M(I,n,k),v(n,l),v(l,o),v(l,r),J(s,l,null),v(n,c),v(n,a),v(a,d),v(d,m),v(m,f),v(m,p),j&&j.m(m,null),v(a,b),v(a,y),v(y,N),v(N,_),S=!0,D||(R=oe(a,"click",function(){Ue(t[2])&&t[2].apply(this,arguments)}),D=!0)},p(I,[k]){t=I,t[3]?j?(j.p(t,k),k&8&&h(j,1)):(j=_o(t),j.c(),h(j,1),j.m(m,null)):j&&(se(),P(j,1,1,()=>{j=null}),ae()),(!S||k&2&&w!==(w=`background-image: url('${t[1]}')`))&&u(m,"style",w),(!S||k&1)&&Le(_,t[0])},i(I){S||(h(s.$$.fragment,I),h(j),S=!0)},o(I){P(s.$$.fragment,I),P(j),S=!1},d(I){I&&T(e),I&&T(i),I&&T(n),Z(s),j&&j.d(),D=!1,R()}}}function Yd(t,e,i){let{title:n}=e,{thumb:l}=e,{playNextVideo:o}=e,r=!0;const s=()=>i(3,r=!1);return t.$$set=c=>{"title"in c&&i(0,n=c.title),"thumb"in c&&i(1,l=c.thumb),"playNextVideo"in c&&i(2,o=c.playNextVideo)},[n,l,o,r,s]}class Kd extends be{constructor(e){super(),ge(this,e,Yd,Wd,me,{title:0,thumb:1,playNextVideo:2},Qd)}}function Gd(t,e,i){let{playNextVideo:n}=e;return Wt(()=>{n()}),t.$$set=l=>{"playNextVideo"in l&&i(0,n=l.playNextVideo)},[n]}class Xd extends be{constructor(e){super(),ge(this,e,Gd,null,me,{playNextVideo:0})}}function Jd(t){Se(t,"v-6m6jx8",`.title.v-6m6jx8{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--videoplayer-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(--videoplayer-controls-transition-duration);transition-timing-function:var(--videoplayer-controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
31
30
  0deg,
32
31
  rgba(0, 0, 0, 0) 0%,
33
32
  rgba(0, 0, 0, 0.02) 19%,
34
33
  rgba(0, 0, 0, 0.10) 34%,
35
34
  rgba(0, 0, 0, 0.40) 60%,
36
35
  rgba(0, 0, 0, 0.60) 100%
37
- )}.hidden.v-cus9x4{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}`)}function Ir(t){let e,i;return{c(){e=p("div"),i=de(t[0]),c(e,"class","title v-cus9x4"),A(e,"hidden",t[1])},m(n,l){E(n,e,l),m(e,i)},p(n,[l]){l&1&&Ee(i,n[0]),l&2&&A(e,"hidden",n[1])},i:I,o:I,d(n){n&&C(e)}}}function Br(t,e,i){let{title:n=""}=e,{isHidden:l=!1}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"isHidden"in o&&i(1,l=o.isHidden)},[n,l]}class Rr extends we{constructor(e){super(),be(this,e,Br,Ir,ve,{title:0,isHidden:1},Lr)}}function Fr(t){_e(t,"v-1o62kpz",".wrapper.v-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}")}function il(t){let e,i,n;return{c(){e=p("div"),i=de("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=de(t[1]),c(e,"class","text v-1o62kpz")},m(l,o){E(l,e,o),m(e,i),m(e,n)},p(l,o){o&2&&Ee(n,l[1])},d(l){l&&C(e)}}}function qr(t){let e,i,n,l,o,s,a=t[1]&&il(t);return{c(){e=p("div"),i=p("div"),i.innerHTML='<svg class="icon v-1o62kpz" 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="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=T(),a&&a.c(),c(i,"class","icon_wrapper v-1o62kpz"),c(e,"class","wrapper v-1o62kpz"),c(e,"style",l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(r,u){E(r,e,u),m(e,i),m(e,n),a&&a.m(e,null),o||(s=oe(e,"click",t[2]),o=!0)},p(r,[u]){r[1]?a?a.p(r,u):(a=il(r),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&l!==(l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${r[0]||""}')`)&&c(e,"style",l)},i:I,o:I,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function Hr(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function o(s){it.call(this,t,s)}return t.$$set=s=>{"thumbUrl"in s&&i(0,n=s.thumbUrl),"chromecastDeviceName"in s&&i(1,l=s.chromecastDeviceName)},[n,l,o]}class Dr extends we{constructor(e){super(),be(this,e,Hr,qr,ve,{thumbUrl:0,chromecastDeviceName:1},Fr)}}var jr="data:image/svg+xml,%3csvg viewBox='460 190 130 90' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-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.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z' fill='white' fill-rule='evenodd'/%3e%3c/svg%3e";function Or(t){_e(t,"v-zd9h6u",".container.v-zd9h6u{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}.icon.v-zd9h6u{width:200px;height:200px}")}function Ur(t){let e,i,n;return{c(){e=p("div"),i=p("img"),Se(i.src,n=jr)||c(i,"src",n),c(i,"class","icon v-zd9h6u"),c(i,"alt",""),c(e,"class","container v-zd9h6u")},m(l,o){E(l,e,o),m(e,i)},p:I,i:I,o:I,d(l){l&&C(e)}}}class Qr extends we{constructor(e){super(),be(this,e,null,Ur,ve,{},Or)}}function Wr(t,e,i){let n,l,o,s,a,{isAds:r}=e,{hideContextMenu:u}=e,{toggleFullscreen:f}=e;const d=Oe(),w=d.getLogger().createComponentLog("KeyboardControls component"),v=d.state.playbackState$;Q(t,v,P=>i(13,a=P));const b=d.ads.playbackState;Q(t,b,P=>i(12,s=P));const h=d.state.positionExact$;Q(t,h,P=>i(11,o=P));const z=d.state.duration$;Q(t,z,P=>i(10,l=P));const M=d.state.volume$;Q(t,M,P=>i(9,n=P));const _=P=>{u();const B=P.code;if(P.ctrlKey||P.altKey||P.metaKey)return;const L=a===Ce.PlaybackState.PLAYING||a===Ce.PlaybackState.PAUSED,F=r&&(s===Fe.PAUSED||s===Fe.PLAYING);if(L||F)switch(w({message:`key down, code: ${B}`}),B){case Xe.KeyJ:case Xe.ArrowLeft:{if(F)break;const R=Math.max(o-Gi,0);o>0&&d.actions.internal.seekTime(R),P.preventDefault();break}case Xe.KeyL:case Xe.ArrowRight:{if(F)break;const R=Math.min(o+Gi,l);o<l&&d.actions.internal.seekTime(R),P.preventDefault();break}case Xe.ArrowUp:{const R=Math.min(n+Xi,Ki);n<Ki&&d.actions.internal.setVolume(R),P.preventDefault();break}case Xe.ArrowDown:{const R=Math.max(n-Xi,0);n>0&&d.actions.internal.setVolume(R),P.preventDefault();break}case Xe.Comma:{P.shiftKey&&(d.actions.internal.decrementPlaybackRate(),P.preventDefault());break}case Xe.Period:{P.shiftKey&&(d.actions.internal.incrementPlaybackRate(),P.preventDefault());break}case Xe.KeyK:case Xe.Space:d.actions.internal.togglePlay(),P.preventDefault();break;case Xe.KeyM:d.actions.internal.toggleMuted(),P.preventDefault();break;case Xe.KeyF:f(),P.preventDefault();break;default:re.checkNever(B);break}};return t.$$set=P=>{"isAds"in P&&i(5,r=P.isAds),"hideContextMenu"in P&&i(6,u=P.hideContextMenu),"toggleFullscreen"in P&&i(7,f=P.toggleFullscreen)},[v,b,h,z,M,r,u,f,_]}class Yr extends we{constructor(e){super(),be(this,e,Wr,null,ve,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function Kr(t){_e(t,"v-1c30l04",".double-click-area.v-1c30l04{position:absolute;z-index:1;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-1c30l04{left:0}.double-click-area.right.v-1c30l04{right:0}.semicircle.v-1c30l04{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-1c30l04{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-1c30l04{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-1c30l04{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-1c30l04{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-1c30l04{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-1c30l04-blink 500ms infinite;opacity:0}.triangle.right.v-1c30l04:nth-child(1),.triangle.left.v-1c30l04:nth-child(3){animation-delay:0ms}.triangle.right.v-1c30l04:nth-child(2),.triangle.left.v-1c30l04:nth-child(2){animation-delay:100ms}.triangle.right.v-1c30l04:nth-child(3),.triangle.left.v-1c30l04:nth-child(1){animation-delay:200ms}@keyframes v-1c30l04-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-1c30l04{border-right:8px solid var(--white)}.triangle.right.v-1c30l04{border-left:8px solid var(--white)}.triangle.v-1c30l04:not(:last-child){margin-right:5px}.step-caption.v-1c30l04{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function nl(t){let e,i,n,l,o,s,a,r,u,f,d,w,v,b,h,z,M;return{c(){e=p("div"),n=T(),l=p("div"),o=p("div"),s=p("div"),r=T(),u=p("div"),d=T(),w=p("div"),b=T(),h=p("p"),z=de(t[1]),M=de(" \u0441\u0435\u043A\u0443\u043D\u0434"),c(e,"class",i="semicircle "+t[0]+" v-1c30l04"),c(s,"class",a="triangle "+t[0]+" v-1c30l04"),c(u,"class",f="triangle "+t[0]+" v-1c30l04"),c(w,"class",v="triangle "+t[0]+" v-1c30l04"),c(o,"class","triangles-wrapper v-1c30l04"),c(h,"class","step-caption v-1c30l04"),c(l,"class","info v-1c30l04")},m(_,P){E(_,e,P),E(_,n,P),E(_,l,P),m(l,o),m(o,s),m(o,r),m(o,u),m(o,d),m(o,w),m(l,b),m(l,h),m(h,z),m(h,M)},p(_,P){P&1&&i!==(i="semicircle "+_[0]+" v-1c30l04")&&c(e,"class",i),P&1&&a!==(a="triangle "+_[0]+" v-1c30l04")&&c(s,"class",a),P&1&&f!==(f="triangle "+_[0]+" v-1c30l04")&&c(u,"class",f),P&1&&v!==(v="triangle "+_[0]+" v-1c30l04")&&c(w,"class",v),P&2&&Ee(z,_[1])},d(_){_&&C(e),_&&C(n),_&&C(l)}}}function Xr(t){let e,i,n,l,o=t[2]&&nl(t);return{c(){e=p("div"),o&&o.c(),c(e,"class",i="double-click-area "+t[0]+" v-1c30l04")},m(s,a){E(s,e,a),o&&o.m(e,null),n||(l=oe(e,"click",fo(t[3]())),n=!0)},p(s,[a]){s[2]?o?o.p(s,a):(o=nl(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&1&&i!==(i="double-click-area "+s[0]+" v-1c30l04")&&c(e,"class",i)},i:I,o:I,d(s){s&&C(e),o&&o.d(),n=!1,l()}}}function Gr(t,e,i){let{side:n}=e,{seekStep:l}=e,{handleSingleFirstClick:o}=e,{handleSecondClick:s}=e,a=!1,r=0,u=0;const f=()=>{let w=0;return()=>{w+=1,w===1?r=window.setTimeout(()=>{o(),w=0},300):(window.clearTimeout(r),w=0,s(),i(2,a=!0),u=window.setTimeout(()=>{i(2,a=!1)},500))}};return Pl(()=>{window.clearTimeout(r),window.clearTimeout(u)}),t.$$set=d=>{"side"in d&&i(0,n=d.side),"seekStep"in d&&i(1,l=d.seekStep),"handleSingleFirstClick"in d&&i(4,o=d.handleSingleFirstClick),"handleSecondClick"in d&&i(5,s=d.handleSecondClick)},[n,l,a,f,o,s]}class jl extends we{constructor(e){super(),be(this,e,Gr,Xr,ve,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Kr)}}function Jr(t,e){var i,n,l,o,s;return t?((s=(o=(l=(n=(i=t.matches)!==null&&i!==void 0?i:t.matchesSelector)!==null&&n!==void 0?n:t.mozMatchesSelector)!==null&&l!==void 0?l:t.msMatchesSelector)!==null&&o!==void 0?o:t.oMatchesSelector)!==null&&s!==void 0?s:t.webkitMatchesSelector).call(t,e):!1}function Zr(t){return Jr(t,":hover")}const Ol=t=>t>1?gi:t<0?0:t,ll=t=>Nt.set(Cl,Ol(t)),Ul=()=>{const t=parseFloat(Nt.get(Cl));return isNaN(t)?gi:Ol(t)},ol=t=>Nt.set(Ml,t),xr=()=>{const t=Nt.get(Ml);return typeof t=="boolean"?t:!1},$r=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();const e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},e1=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),t1=t=>{const e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},sl=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},i1=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},n1=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},l1=t=>{const e=window.screen;return(l=>wt(void 0,void 0,void 0,function*(){return e.orientation?e.orientation.lock(l):e.mozLockOrientation?e.mozLockOrientation(l):e.msLockOrientation?e.msLockOrientation(l):Promise.reject()}))(((l={width:0,height:0})=>l.width<=l.height?"portrait":"landscape")(t))},{window:o1}=_o;function s1(t){_e(t,"v-phigzb",".player-wrapper.v-phigzb{--white:#fff;--black:#000;--red:#ff3347;--videoplayer-controls-height:45px;--videoplayer-controls-fullscreen-height:50px;--videoplayer-controls-gradient-height:100px;--videoplayer-controls-transition-duration:0.25s;--videoplayer-controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--videoplayer-focused-element-shadow:inset 0 0 0 2px #2a5885;--videoplayer-focused-slider-shadow:0 0 0 2px #2a5885;--videoplayer-big-play-size:75px;--videoplayer-big-play-radius:50%;--videoplayer-big-play-bg-color:rgba(0, 0, 0, 0.5);--videoplayer-big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--videoplayer-big-play-icon-width:38px;--videoplayer-big-play-icon-height:33px;--videoplayer-slider-height:5px;--videoplayer-slider-radius:calc(var(--videoplayer-slider-height) / 2);--videoplayer-slider-handle-size:13px;--videoplayer-slider-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-loaded-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-filled-bg:var(--white);--videoplayer-slider-filled-active-live-bg:var(--red);--videoplayer-slider-filled-ads:rgba(103, 165, 235, 1);--videoplayer-slider-disabled-color:rgba(248, 248, 248, 0.31);--videplayer-mobile-settings-bg:#2C2D2E;--videoplayer-button-hover-transition:opacity 0.2s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-wrapper.v-phigzb .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.video-container.v-phigzb,.ads-container.v-phigzb{position:absolute;width:100%;height:100%;left:0;top:0}.video-container.v-phigzb{z-index:0}.nocursor.v-phigzb{cursor:none}.ads-container.v-phigzb{background:var(--black)}.hidden.v-phigzb{visibility:hidden}div{outline:none}")}function al(t){let e,i,n,l;e=new jl({props:{side:"left",seekStep:mi,handleSingleFirstClick:t[68],handleSecondClick:t[98]}});let o=!t[38]&&rl(t);return{c(){te(e.$$.fragment),i=T(),o&&o.c(),n=$e()},m(s,a){$(e,s,a),E(s,i,a),o&&o.m(s,a),E(s,n,a),l=!0},p(s,a){s[38]?o&&(se(),k(o,1,1,()=>{o=null}),ae()):o?(o.p(s,a),a[1]&128&&g(o,1)):(o=rl(s),o.c(),g(o,1),o.m(n.parentNode,n))},i(s){l||(g(e.$$.fragment,s),g(o),l=!0)},o(s){k(e.$$.fragment,s),k(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function rl(t){let e,i;return e=new jl({props:{side:"right",seekStep:mi,handleSingleFirstClick:t[68],handleSecondClick:t[99]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function cl(t){let e,i,n;return i=new nr({props:{adsSlotId:t[5],adsParams:t[6],adsPreviewParam:t[7],duration:t[8]}}),{c(){e=p("div"),te(i.$$.fragment),c(e,"class","ads-container v-phigzb"),A(e,"hidden",t[25]!==Ve.Ads)},m(l,o){E(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[0]&32&&(s.adsSlotId=l[5]),o[0]&64&&(s.adsParams=l[6]),o[0]&128&&(s.adsPreviewParam=l[7]),o[0]&256&&(s.duration=l[8]),i.$set(s),(!n||o[0]&33554432)&&A(e,"hidden",l[25]!==Ve.Ads)},i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){k(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function ul(t){let e,i,n,l;const o=[r1,a1],s=[];function a(r,u){return r[11]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=$e()},m(r,u){s[e].m(r,u),E(r,n,u),l=!0},p(r,u){let f=e;e=a(r),e===f?s[e].p(r,u):(se(),k(s[f],1,1,()=>{s[f]=null}),ae(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),g(i,1),i.m(n.parentNode,n))},i(r){l||(g(i),l=!0)},o(r){k(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function a1(t){let e,i;return e=new zr({props:{title:t[15],thumb:t[16],playNextVideo:t[18]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32768&&(o.title=n[15]),l[0]&65536&&(o.thumb=n[16]),l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function r1(t){let e,i;return e=new Nr({props:{playNextVideo:t[18]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function dl(t){let e,i;return e=new Rr({props:{title:t[0],isHidden:!t[21]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&1&&(o.title=n[0]),l[0]&2097152&&(o.isHidden=!n[21]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function fl(t){let e,i;return e=new Dr({props:{thumbUrl:t[1],chromecastDeviceName:t[39]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&2&&(o.thumbUrl=n[1]),l[1]&256&&(o.chromecastDeviceName=n[39]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ml(t){let e,i,n={toggleFullscreen:t[65],hideContextMenu:t[66],isAds:t[25]===Ve.Ads};return e=new Yr({props:n}),t[101](e),{c(){te(e.$$.fragment)},m(l,o){$(e,l,o),i=!0},p(l,o){const s={};o[0]&33554432&&(s.isAds=l[25]===Ve.Ads),e.$set(s)},i(l){i||(g(e.$$.fragment,l),i=!0)},o(l){k(e.$$.fragment,l),i=!1},d(l){t[101](null),ee(e,l)}}}function vl(t){let e,i,n,l,o;return i=new Qr({}),{c(){e=p("div"),te(i.$$.fragment)},m(s,a){E(s,e,a),$(i,e,null),n=!0,l||(o=[oe(e,"contextmenu",zt(t[67])),oe(e,"click",t[70])],l=!0)},p:I,i(s){n||(g(i.$$.fragment,s),n=!0)},o(s){k(i.$$.fragment,s),n=!1},d(s){s&&C(e),ee(i),l=!1,Ze(o)}}}function gl(t){let e,i;return e=new rr({props:{supportLink:t[3],visible:t[37],playerContainerRef:t[27],controlsContainerRef:t[29],x:t[31],y:t[32]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8&&(o.supportLink=n[3]),l[1]&64&&(o.visible=n[37]),l[0]&134217728&&(o.playerContainerRef=n[27]),l[0]&536870912&&(o.controlsContainerRef=n[29]),l[1]&1&&(o.x=n[31]),l[1]&2&&(o.y=n[32]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function hl(t){let e,i;return e=new qa({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function pl(t){let e,i;return e=new pr({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){k(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function c1(t){let e,i,n,l,o,s,a,r,u,f,d,w,v,b,h,z,M,_,P;i=new Ba({props:{hidden:t[25]!==Ve.Thumb||t[23],thumbUrl:t[1],startVideo:t[63]}});let B=t[11]&&t[36]&&al(t),L=t[4]&&t[30]&&cl(t),F=t[22]&&t[15]&&t[16]&&ul(t),R=!t[11]&&t[25]===Ve.Video&&dl(t),S=t[24]&&fl(t),q=!t[11]&&ml(t);function N(ue){t[102](ue)}let Y={hidden:t[25]===Ve.Thumb||t[11]&&t[25]===Ve.Ads,showControls:t[21],isAds:t[25]===Ve.Ads,canRewindLive:t[2]&&t[26]!==0,logoClickable:t[9],logoHidden:t[10],showNextPrevButtons:t[12],nextButtonActive:t[13],prevButtonActive:t[14],isOneVideoPlaylist:t[17],supportLink:t[3],canShowTimeline:t[36],playNextVideo:t[18],playPrevVideo:t[19],repeatPlaylist:t[20],toggleFullscreen:t[65]};t[29]!==void 0&&(Y.controlsElementRef=t[29]),d=new Ta({props:Y}),Je.push(()=>yo(d,"controlsElementRef",N));let Z=t[23]&&vl(t),j=!t[11]&&gl(t),U=t[34]&&hl(),J=t[40]&&pl();return{c(){e=p("div"),te(i.$$.fragment),n=T(),l=p("div"),B&&B.c(),o=T(),L&&L.c(),s=T(),F&&F.c(),a=T(),R&&R.c(),r=T(),S&&S.c(),u=T(),q&&q.c(),f=T(),te(d.$$.fragment),v=T(),Z&&Z.c(),b=T(),j&&j.c(),h=T(),U&&U.c(),z=T(),J&&J.c(),c(l,"class","video-container v-phigzb"),A(l,"hidden",t[25]!==Ve.Video),A(l,"nocursor",t[35]),c(e,"class","player-wrapper v-phigzb"),c(e,"tabindex","0")},m(ue,G){E(ue,e,G),$(i,e,null),m(e,n),m(e,l),B&&B.m(l,null),t[100](l),m(e,o),L&&L.m(e,null),m(e,s),F&&F.m(e,null),m(e,a),R&&R.m(e,null),m(e,r),S&&S.m(e,null),m(e,u),q&&q.m(e,null),m(e,f),$(d,e,null),m(e,v),Z&&Z.m(e,null),m(e,b),j&&j.m(e,null),m(e,h),U&&U.m(e,null),m(e,z),J&&J.m(e,null),t[103](e),M=!0,_||(P=[oe(o1,"blur",t[66]),oe(l,"contextmenu",zt(t[67])),oe(l,"click",t[69]),oe(e,"mouseenter",function(){He(t[11]?I:t[60])&&(t[11]?I:t[60]).apply(this,arguments)}),oe(e,"mouseleave",function(){He(t[11]?I:t[61])&&(t[11]?I:t[61]).apply(this,arguments)}),oe(e,"mousemove",function(){He(t[11]?I:t[62])&&(t[11]?I:t[62]).apply(this,arguments)}),oe(e,"keydown",function(){He(t[11]?I:t[71])&&(t[11]?I:t[71]).apply(this,arguments)})],_=!0)},p(ue,G){t=ue;const D={};G[0]&41943040&&(D.hidden=t[25]!==Ve.Thumb||t[23]),G[0]&2&&(D.thumbUrl=t[1]),i.$set(D),t[11]&&t[36]?B?(B.p(t,G),G[0]&2048|G[1]&32&&g(B,1)):(B=al(t),B.c(),g(B,1),B.m(l,null)):B&&(se(),k(B,1,1,()=>{B=null}),ae()),(!M||G[0]&33554432)&&A(l,"hidden",t[25]!==Ve.Video),(!M||G[1]&16)&&A(l,"nocursor",t[35]),t[4]&&t[30]?L?(L.p(t,G),G[0]&1073741840&&g(L,1)):(L=cl(t),L.c(),g(L,1),L.m(e,s)):L&&(se(),k(L,1,1,()=>{L=null}),ae()),t[22]&&t[15]&&t[16]?F?(F.p(t,G),G[0]&4292608&&g(F,1)):(F=ul(t),F.c(),g(F,1),F.m(e,a)):F&&(se(),k(F,1,1,()=>{F=null}),ae()),!t[11]&&t[25]===Ve.Video?R?(R.p(t,G),G[0]&33556480&&g(R,1)):(R=dl(t),R.c(),g(R,1),R.m(e,r)):R&&(se(),k(R,1,1,()=>{R=null}),ae()),t[24]?S?(S.p(t,G),G[0]&16777216&&g(S,1)):(S=fl(t),S.c(),g(S,1),S.m(e,u)):S&&(se(),k(S,1,1,()=>{S=null}),ae()),t[11]?q&&(se(),k(q,1,1,()=>{q=null}),ae()):q?(q.p(t,G),G[0]&2048&&g(q,1)):(q=ml(t),q.c(),g(q,1),q.m(e,f));const ie={};G[0]&33556480&&(ie.hidden=t[25]===Ve.Thumb||t[11]&&t[25]===Ve.Ads),G[0]&2097152&&(ie.showControls=t[21]),G[0]&33554432&&(ie.isAds=t[25]===Ve.Ads),G[0]&67108868&&(ie.canRewindLive=t[2]&&t[26]!==0),G[0]&512&&(ie.logoClickable=t[9]),G[0]&1024&&(ie.logoHidden=t[10]),G[0]&4096&&(ie.showNextPrevButtons=t[12]),G[0]&8192&&(ie.nextButtonActive=t[13]),G[0]&16384&&(ie.prevButtonActive=t[14]),G[0]&131072&&(ie.isOneVideoPlaylist=t[17]),G[0]&8&&(ie.supportLink=t[3]),G[1]&32&&(ie.canShowTimeline=t[36]),G[0]&262144&&(ie.playNextVideo=t[18]),G[0]&524288&&(ie.playPrevVideo=t[19]),G[0]&1048576&&(ie.repeatPlaylist=t[20]),!w&&G[0]&536870912&&(w=!0,ie.controlsElementRef=t[29],bo(()=>w=!1)),d.$set(ie),t[23]?Z?(Z.p(t,G),G[0]&8388608&&g(Z,1)):(Z=vl(t),Z.c(),g(Z,1),Z.m(e,b)):Z&&(se(),k(Z,1,1,()=>{Z=null}),ae()),t[11]?j&&(se(),k(j,1,1,()=>{j=null}),ae()):j?(j.p(t,G),G[0]&2048&&g(j,1)):(j=gl(t),j.c(),g(j,1),j.m(e,h)),t[34]?U?G[1]&8&&g(U,1):(U=hl(),U.c(),g(U,1),U.m(e,z)):U&&(se(),k(U,1,1,()=>{U=null}),ae()),t[40]?J?G[1]&512&&g(J,1):(J=pl(),J.c(),g(J,1),J.m(e,null)):J&&(se(),k(J,1,1,()=>{J=null}),ae())},i(ue){M||(g(i.$$.fragment,ue),g(B),g(L),g(F),g(R),g(S),g(q),g(d.$$.fragment,ue),g(Z),g(j),g(U),g(J),M=!0)},o(ue){k(i.$$.fragment,ue),k(B),k(L),k(F),k(R),k(S),k(q),k(d.$$.fragment,ue),k(Z),k(j),k(U),k(J),M=!1},d(ue){ue&&C(e),ee(i),B&&B.d(),t[100](null),L&&L.d(),F&&F.d(),R&&R.d(),S&&S.d(),q&&q.d(),ee(d),Z&&Z.d(),j&&j.d(),U&&U.d(),J&&J.d(),t[103](null),_=!1,Ze(P)}}}let mi=15;function u1(t,e,i){let n,l,o,s,a,r,u,f,d,w,v,b,h,z,M,_,P,B,L;var F=this&&this.__awaiter||function(y,ze,Ue,Ke){function We(xe){return xe instanceof Ue?xe:new Ue(function(ri){ri(xe)})}return new(Ue||(Ue=Promise))(function(xe,ri){function eo(Et){try{_i(Ke.next(Et))}catch(yi){ri(yi)}}function to(Et){try{_i(Ke.throw(Et))}catch(yi){ri(yi)}}function _i(Et){Et.done?xe(Et.value):We(Et.value).then(eo,to)}_i((Ke=Ke.apply(y,ze||[])).next())})};let{sources:R}=e,{store:S}=e,{title:q}=e,{thumbUrl:N}=e,{preload:Y}=e,{autoplay:Z}=e,{volume:j=void 0}=e,{muted:U=void 0}=e,{fromTime:J}=e,{canRewindLive:ue}=e,{supportLink:G}=e,{showAds:D}=e,{adsSlotId:ie=void 0}=e,{adsParams:Ae=void 0}=e,{adsPreviewParam:ge=void 0}=e,{duration:he=void 0}=e,{logoClickable:Qe}=e,{logoHidden:pe}=e,{isMobile:ne}=e,{showNextPrevButtons:fe=!1}=e,{nextButtonActive:me=!1}=e,{prevButtonActive:ye=!1}=e,{endScreenVideoTitle:K=void 0}=e,{endScreenVideoThumb:ke=void 0}=e,{isOneVideoPlaylist:ce=!1}=e,{outerContainerRef:H=void 0}=e,{playNextVideo:O=I}=e,{playPrevVideo:x=I}=e,{repeatPlaylist:qe=I}=e,{fullScreenTarget:et=void 0}=e,{failoverHosts:nt=void 0}=e;const It=y=>{Ye.set(!0),y?ne&&(pi.set(!0),ii.set(!0),window.setTimeout(()=>{ii.set(!1),X(Yi)},Eo)):X(Yi)};S.setUiCallbacks({onStarted:It}),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});const Ge=S.getLogger().createComponentLog("Root component"),mt=S.state.playbackState$;Q(t,mt,y=>i(107,d=y));const kt=S.ads.playbackState;Q(t,kt,y=>i(96,z=y));const vt=S.state.positionWithScrubbing$;Q(t,vt,y=>i(93,u=y));const Pt=S.state.duration$;Q(t,Pt,y=>i(92,r=y));const Vt=S.playerPhase;Q(t,Vt,y=>i(25,M=y));const lt=S.ui.isFullscreen;Q(t,lt,y=>i(91,s=y));const Ye=S.ui.controlsVisible;Q(t,Ye,y=>i(90,o=y));const ot=S.ui.settingsMenuVisible;Q(t,ot,y=>i(106,f=y));const gt=S.ui.scrubbingInProgress;Q(t,gt,y=>i(94,w=y));const st=S.ui.playerSize,at=S.ui.contextMenuVisible;Q(t,at,y=>i(37,n=y));const ht=S.ui.debugPanelVisible;Q(t,ht,y=>i(40,L=y));const St=S.state.isLoaderVisible;Q(t,St,y=>i(97,_=y));const rt=S.state.isEnded$;Q(t,rt,y=>i(89,l=y));const Bt=S.state.chromecastConnected$;Q(t,Bt,y=>i(24,h=y));const Rt=S.state.chromecastDeviceName$;Q(t,Rt,y=>i(39,B=y));const W=S.ads.postrollPassed;Q(t,W,y=>i(95,b=y));const ii=S.ui.mobileUnmuteButtonExpanded,pi=S.ui.mobileUnmuteButtonVisible,Ft=S.state.isActiveLive$;Q(t,Ft,y=>i(38,P=y));const qt=S.state.crashed$;Q(t,qt,y=>i(23,v=y));const Te=S.webApi.pictureInPictureApi,Wt=S.state.videoSize$;Q(t,Wt,y=>i(105,a=y));let Yt=0;S.state.duration$.subscribe(y=>{i(26,Yt=y)}),Vo(S);let ct,At,Ct,pt,Mt=null,Kt=!1,ni=0,li=0,Ht,oi,Xt,Gt,Jt,Zt=!1,xt;function bi(){clearTimeout(pt),Ye.set(!0)}function Ie(){X(Co)}function V(){clearTimeout(pt),Ye.set(!0),s&&Ct&&!Zr(Ct)&&X(Mo)}function X(y){i(87,pt=window.setTimeout(()=>{if(d===Ce.PlaybackState.PLAYING){if(ne&&f)return;Ye.set(!1),ot.set(!1)}},y))}const le=y=>{if(window.ResizeObserver){let ze,Ue;Mt=new ResizeObserver(_l(Ke=>{const We=Ke[0];if(We){if(We.contentBoxSize){const xe=Array.isArray(We.contentBoxSize)?We.contentBoxSize[0]:We.contentBoxSize;ze=xe.inlineSize,Ue=xe.blockSize}else We.contentRect&&(ze=We.contentRect.width,Ue=We.contentRect.height);st.set({width:ze,height:Ue})}},El)),Mt.observe(y)}st.set({width:y.clientWidth,height:y.clientHeight})},Pe=y=>{const ze=y;st.set({width:ze.target.width,height:ze.target.height})},De=(y=!1)=>{i(30,Kt=!0),y?S.actions.external.firstStart(D):S.actions.internal.firstStart(D)};Lt(()=>{if(i1(Di),le(ct),S.initVideo({container:At,sources:R,failoverHosts:nt}),Ii(Te)){const Ke=ct.querySelector("video");Te==null||Te.updateVideoElement(Ke),Te==null||Te.registryEventHandlers(),Te==null||Te.registryExternalEventHandlers({resize:Pe})}J>0&&S.actions.external.seekTime(J);const y=ne?gi:j!=null?j:Ul(),ze=U!=null?U:xr();S.actions.external.setVolume(y),S.actions.external.setMuted(ze),S.getAdmanWrapper().setInitialVolume(ze?0:y),S.ui.isAutoplay.set(Z),Z?De():Y&&S.actions.internal.preload();const Ue=Boolean(Nt.get(Ti));return ht.set(Ue),()=>{n1(Di),Mt==null||Mt.disconnect(),S.destroy()}}),Pl(()=>F(void 0,void 0,void 0,function*(){Ii(Te)&&(yield Te==null?void 0:Te.hidePictureInPicture(),Te==null||Te.unregistryEventHandlers())}));function Ne(){Kt?S.actions.external.play():De(!0)}function tt(){S.actions.external.pause()}function je(y){ne||S.actions.external.setMuted(y)}function bt(y){ne||y>=0&&y<=1&&S.actions.external.setVolume(y)}function si(y){S.actions.internal.seekTime(y)}const wi=y=>{let ze=u+(y==="forward"?mi:-mi);ze<0?ze=0:ze>r&&(ze=r-1),si(ze)},Hi=()=>{if(sl())e1(document),Ge({message:"exit fullscreen"});else{Ge({message:"request fullscreen"});const y=H!=null?H:ct,ze=y.getRootNode(),Ue=ze instanceof ShadowRoot?ze.host:ze,Ke=et instanceof HTMLElement&&et.contains(Ue);$r(et&&Ke?et:y)}},Di=()=>F(void 0,void 0,void 0,function*(){var y,ze,Ue,Ke;const We=sl();if(We){try{yield Te==null?void 0:Te.remove()}catch(xe){Ge({message:String(xe)})}if(ne)try{yield l1(a)}catch(xe){Ge({message:String(xe)})}}lt.set(We),S.getAdmanWrapper().setFullscreen(We),s?(ze=(y=S.callbacks)===null||y===void 0?void 0:y.onFullscreenEnter)===null||ze===void 0||ze.call(y):(Ke=(Ue=S.callbacks)===null||Ue===void 0?void 0:Ue.onFullscreenExit)===null||Ke===void 0||Ke.call(Ue)}),ai=()=>at.set(!1),Ql=y=>{at.set(!0),i(31,ni=y.clientX),i(32,li=y.clientY)},ji=()=>{o?Ye.set(!1):(Ye.set(!0),clearTimeout(pt),X(Wi))},Wl=y=>{if(ne){ji();return}if(n){ai();return}ai(),!l&&(S.actions.internal.togglePlay(),ot.set(!1),y.detail===2&&(Ge({message:"double click on video"}),Hi()))},Yl=()=>{if(n){ai();return}},Kl=y=>{Ht.keyDownHandler(y)},Xl=()=>wi("backward"),Gl=()=>wi("forward");function Jl(y){Je[y?"unshift":"push"](()=>{At=y,i(28,At)})}function Zl(y){Je[y?"unshift":"push"](()=>{Ht=y,i(33,Ht)})}function xl(y){Ct=y,i(29,Ct)}function $l(y){Je[y?"unshift":"push"](()=>{ct=y,i(27,ct)})}return t.$$set=y=>{"sources"in y&&i(72,R=y.sources),"store"in y&&i(73,S=y.store),"title"in y&&i(0,q=y.title),"thumbUrl"in y&&i(1,N=y.thumbUrl),"preload"in y&&i(74,Y=y.preload),"autoplay"in y&&i(75,Z=y.autoplay),"volume"in y&&i(76,j=y.volume),"muted"in y&&i(77,U=y.muted),"fromTime"in y&&i(78,J=y.fromTime),"canRewindLive"in y&&i(2,ue=y.canRewindLive),"supportLink"in y&&i(3,G=y.supportLink),"showAds"in y&&i(4,D=y.showAds),"adsSlotId"in y&&i(5,ie=y.adsSlotId),"adsParams"in y&&i(6,Ae=y.adsParams),"adsPreviewParam"in y&&i(7,ge=y.adsPreviewParam),"duration"in y&&i(8,he=y.duration),"logoClickable"in y&&i(9,Qe=y.logoClickable),"logoHidden"in y&&i(10,pe=y.logoHidden),"isMobile"in y&&i(11,ne=y.isMobile),"showNextPrevButtons"in y&&i(12,fe=y.showNextPrevButtons),"nextButtonActive"in y&&i(13,me=y.nextButtonActive),"prevButtonActive"in y&&i(14,ye=y.prevButtonActive),"endScreenVideoTitle"in y&&i(15,K=y.endScreenVideoTitle),"endScreenVideoThumb"in y&&i(16,ke=y.endScreenVideoThumb),"isOneVideoPlaylist"in y&&i(17,ce=y.isOneVideoPlaylist),"outerContainerRef"in y&&i(79,H=y.outerContainerRef),"playNextVideo"in y&&i(18,O=y.playNextVideo),"playPrevVideo"in y&&i(19,x=y.playPrevVideo),"repeatPlaylist"in y&&i(20,qe=y.repeatPlaylist),"fullScreenTarget"in y&&i(80,et=y.fullScreenTarget),"failoverHosts"in y&&i(81,nt=y.failoverHosts)},t.$$.update=()=>{t.$$.dirty[0]&41943040|t.$$.dirty[3]&24&&i(34,oi=(M===Ve.Video&&_||M===Ve.Ads&&z===Fe.INACTIVE)&&!v),t.$$.dirty[0]&25165824|t.$$.dirty[2]&402653184&&i(21,Xt=(o||h||l)&&!v),t.$$.dirty[0]&8388624|t.$$.dirty[2]&134217728|t.$$.dirty[3]&4&&i(22,Gt=(D&&b||!D)&&l&&!v),t.$$.dirty[0]&6291456|t.$$.dirty[2]&536870912&&i(35,Jt=s&&!(Xt||Gt)),t.$$.dirty[0]&2048|t.$$.dirty[2]&2048&&S.ui.isMobile.set(ne),t.$$.dirty[0]&2048|t.$$.dirty[2]&100663296|t.$$.dirty[3]&2&&(Zt!==w&&ne&&(clearTimeout(pt),w?Ye.set(!0):X(Wi)),i(88,Zt=w)),t.$$.dirty[2]&1073741824|t.$$.dirty[3]&1&&i(36,xt=isFinite(u)&&isFinite(r))},[q,N,ue,G,D,ie,Ae,ge,he,Qe,pe,ne,fe,me,ye,K,ke,ce,O,x,qe,Xt,Gt,v,h,M,Yt,ct,At,Ct,Kt,ni,li,Ht,oi,Jt,xt,n,P,B,L,mt,kt,vt,Pt,Vt,lt,Ye,ot,gt,at,ht,St,rt,Bt,Rt,W,Ft,qt,Wt,bi,Ie,V,De,wi,Hi,ai,Ql,ji,Wl,Yl,Kl,R,S,Y,Z,j,U,J,H,et,nt,Ne,tt,je,bt,si,pt,Zt,l,o,s,r,u,w,b,z,_,Xl,Gl,Jl,Zl,xl,$l]}class d1 extends we{constructor(e){super(),be(this,e,u1,c1,ve,{sources:72,store:73,title:0,thumbUrl:1,preload:74,autoplay:75,volume:76,muted:77,fromTime:78,canRewindLive:2,supportLink:3,showAds:4,adsSlotId:5,adsParams:6,adsPreviewParam:7,duration:8,logoClickable:9,logoHidden:10,isMobile:11,showNextPrevButtons:12,nextButtonActive:13,prevButtonActive:14,endScreenVideoTitle:15,endScreenVideoThumb:16,isOneVideoPlaylist:17,outerContainerRef:79,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,fullScreenTarget:80,failoverHosts:81,play:82,pause:83,setMuted:84,setVolume:85,seekTime:86},s1,[-1,-1,-1,-1])}get play(){return this.$$.ctx[82]}get pause(){return this.$$.ctx[83]}get setMuted(){return this.$$.ctx[84]}get setVolume(){return this.$$.ctx[85]}get seekTime(){return this.$$.ctx[86]}}var f1="data:image/svg+xml,%3csvg width='57' height='60' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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 6h19.489zm.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.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z' fill='%23909499'/%3e%3c/svg%3e";function m1(t){_e(t,"v-1oqts7t",".playerStub.v-1oqts7t{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}.stubImage.v-1oqts7t{height:60px}.stubImage-white.v-1oqts7t{filter:brightness(0) invert(1)}.title.v-1oqts7t{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 bl(t){let e,i;return{c(){e=p("div"),i=de(t[0]),c(e,"class","title v-1oqts7t")},m(n,l){E(n,e,l),m(e,i)},p(n,l){l&1&&Ee(i,n[0])},d(n){n&&C(e)}}}function wl(t){let e,i;return{c(){e=p("img"),Se(e.src,i=f1)||c(e,"src",i),c(e,"class","stubImage v-1oqts7t"),c(e,"alt",""),A(e,"stubImage-white",t[1]||"")},m(n,l){E(n,e,l)},p(n,l){l&2&&A(e,"stubImage-white",n[1]||"")},d(n){n&&C(e)}}}function v1(t){let e,i,n,l=t[0]&&bl(t),o=(!t[0]||!t[1])&&wl(t);return{c(){e=p("div"),l&&l.c(),i=T(),o&&o.c(),c(e,"class","playerStub v-1oqts7t"),c(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(s,a){E(s,e,a),l&&l.m(e,null),m(e,i),o&&o.m(e,null)},p(s,[a]){s[0]?l?l.p(s,a):(l=bl(s),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!s[0]||!s[1]?o?o.p(s,a):(o=wl(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&2&&n!==(n=s[1]?`background-image: url('${s[1]}')`:"")&&c(e,"style",n)},i:I,o:I,d(s){s&&C(e),l&&l.d(),o&&o.d()}}}function g1(t,e,i){let{title:n}=e,{thumbUrl:l}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"thumbUrl"in o&&i(1,l=o.thumbUrl)},[n,l]}class h1 extends we{constructor(e){super(),be(this,e,g1,v1,ve,{title:0,thumbUrl:1},m1)}}const p1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,b1="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",w1=2e3,_1=2e3;class y1{constructor(e){this.adman=null,this.initialVolume=gi,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new re.Subject,started$:new re.Subject,paused$:new re.Subject,resumed$:new re.Subject,ended$:new re.Subject,skipped$:new re.Subject,clicked$:new re.Subject},this.loadAdman=i=>new Promise((n,l)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?n():l()};re.addScript(b1,i,w1).then(()=>{window.AdmanHTML?n():(window.admanAsyncInit=s,o=window.setTimeout(s,_1))}).catch(()=>{l()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(i,n)=>{re.assertNonNullable(this.adsState),re.assertNonNullable(this.uiState),re.assertNonNullable(this.actions),this.log({message:`ad started, section: ${i}, banner: ${JSON.stringify(n)}`}),this.events.started$.next(i),n.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Re(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(n.duration),this.adsState.playbackState.set(Fe.PLAYING),this.adsState.canSkip.set(n.allowClose),this.adsState.secondsToWatchBeforeSkip.set(n.allowCloseDelay)},this.onAdTimeRemained=({currentTime:i})=>{re.assertNonNullable(this.adsState),this.adsState.position.set(i)},this.onAdPaused=()=>{re.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Fe.PAUSED)},this.onAdPlayed=()=>{re.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Fe.PLAYING)},this.onAdMidrollPoint=()=>{re.assertNonNullable(this.adman),re.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=dt.Midroll,this.adman.start(dt.Midroll)},this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()},this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()},this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()},this.onAdClicked=()=>{var i;this.log({message:"ad clicked"}),(i=this.videoElement)===null||i===void 0||i.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)},this.log=e.createComponentLog("AdmanWrapper")}init(e,i,n){this.actions=e,this.adsState=i,this.uiState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:l,isAutoplay:o,adsContainer:s,adsVideoElement:a,slotId:r,params:u={},duration:f,previewParam:d}=e,w=Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:i,player_height:n,puid10:p1(i,n),puid11:l?0:1,preview:d,duration:f},u),v={slot:r,wrapper:s,videoEl:a,videoQuality:n,params:w,browser:{mobile:!1}},b=new window.AdmanHTML;b.setDebug(!1),b.onReady(this.onAdsReady),b.onStarted(this.onAdStarted),b.onPlayed(this.onAdPlayed),b.onPaused(this.onAdPaused),b.adMidrollPoint(this.onAdMidrollPoint),b.onClosed(this.onAdClosed),b.onSkipped(this.onAdSkipped),b.onClicked(this.onAdClicked),b.onTimeRemained(this.onAdTimeRemained),b.onCompleted(this.onAdCompleted),b.onError(this.onAdError),b.init(v),this.adman=b,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(v)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}re.assertNonNullable(this.actions),re.assertNonNullable(this.adsState),re.assertNonNullable(this.uiState);const i=this.currentAdSection===dt.Postroll;this.adsState.playbackState.set(Fe.INACTIVE),this.currentAdSection=null,this.uiState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){re.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=Re(this.adsState.playbackState);e===Fe.PLAYING?this.pause():e===Fe.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var i;this.log({message:`set volume ${e}`}),(i=this.adman)===null||i===void 0||i.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var i;this.log({message:`set fullscreen ${e}`}),(i=this.adman)===null||i===void 0||i.setFullscreen(e)}startPreroll(){re.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=dt.Preroll,this.adman.start(dt.Preroll)}startPostroll(){re.assertNonNullable(this.adman),re.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=dt.Postroll,this.adman.start(dt.Postroll)}play(){re.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){re.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){re.assertNonNullable(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){var n;(n=this.adman)===null||n===void 0||n.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const k1=()=>/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase()),P1=t=>{const 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:""},V1=(t,e,i)=>{const n=new re.Subscription;return n.add(i.attachTo(t)),n.add(e.slotRequested$.subscribe(()=>{i.logAdSlotRequest()})).add(e.started$.subscribe(l=>{i.logAdStarted(l)})).add(e.paused$.subscribe(()=>{i.logAdPaused()})).add(e.resumed$.subscribe(()=>{i.logAdResumed()})).add(e.ended$.subscribe(()=>{i.logAdEnded()})).add(e.skipped$.subscribe(()=>{i.logAdSkipped()})).add(e.clicked$.subscribe(()=>{i.logAdClicked()})),n},S1=({videoId:t,albumId:e,autoplay:i,isLiveCatchUpMode:n,statPlace:l,statAuthToken:o,isAudioDisabled:s,refreshStatAuthToken:a,callbacks:r,webApi:u})=>{const f={isAudioDisabled:s,live:{isLiveCatchUpMode:!!n}},d=new Ce.Player(f),w=new re.Logger,v=new y1(w),b=u==null?void 0:u.pictureInPictureApi,h=w.createComponentLog("Store");let z,M,_={};const P=Qt([],V=>{let X=[];const le=re.merge(d.events.managedError$,d.events.fatalError$).subscribe(Pe=>{X=[...X,Pe],V(X)});return()=>le.unsubscribe()}),B=Qt(!1,V=>{const X=d.events.fatalError$.subscribe(()=>V(!0));return()=>X.unsubscribe()}),L=Le(Ve.Thumb),F=ut([B,L],([V,X])=>V?Ve.Crashed:X);h({message:"create store"});const R=V=>{h({message:`init video, config: ${JSON.stringify(V)}`}),d.initVideo(V),z=V},S=new Oi.OneStat({movieId:t,albumId:e,place:l,autoplay:i},{apiEnv:Oi.ApiEnv.VK_ALIAS,refreshAuthToken:a}),q=V1(d,v.events,S);S.authorize(o).catch(V=>{h({message:`onestat auth error ${String(V)}`})});const N=()=>{k1()&&M&&t1(M)},Y=new re.Subscription().add(d.experimental.element$.subscribe(V=>{V&&(M=V,V.classList.add("player-media"))})).add(d.events.ended$.subscribe(()=>{var V;N(),(V=r==null?void 0:r.onEnded)===null||V===void 0||V.call(r)})).add(d.events.started$.subscribe(()=>wt(void 0,void 0,void 0,function*(){var V,X;Ii(b)&&(yield b==null?void 0:b.revealPictureInPicture());const le=d.info.muted$.getValue();(V=r==null?void 0:r.onStarted)===null||V===void 0||V.call(r),(X=_.onStarted)===null||X===void 0||X.call(_,le)}))).add(d.events.willSeek$.subscribe(({from:V,to:X})=>{var le;(le=r==null?void 0:r.onSeek)===null||le===void 0||le.call(r,V,X)})).add(d.info.position$.subscribe(V=>{var X;const le=d.info.duration$.getValue();(X=r==null?void 0:r.onTimeupdate)===null||X===void 0||X.call(r,le,V),v.setPosition(V,le)})).add(d.events.fatalError$.subscribe(()=>{var V;(V=r==null?void 0:r.onCrashed)===null||V===void 0||V.call(r)})),Z=new re.Subscription,j=()=>{Z.add(d.events.log$.subscribe(V=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${V.component}`,V.message)})).add(w.log$.subscribe(V=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${V.component}.`,V.message)}))},U=()=>{Z.unsubscribe()},J=Qt(d.info.position$.getValue(),V=>{let X,le;const Pe=()=>{const De=d.info.playbackState$.getValue(),Ne=d.info.isLive$.getValue(),tt=d.info.duration$.getValue(),je=d.info.position$.getValue();if([Ce.PlaybackState.PLAYING,Ce.PlaybackState.PAUSED].includes(De)){const bt=Ne?je-tt:d.getExactTime();bt!==le&&V(bt),le=bt}X=requestAnimationFrame(Pe)};return Pe(),()=>cancelAnimationFrame(X)}),ue=Be(d.info.playbackState$),G=Be(d.info.currentBuffer$),D=Be(d.info.isEnded$),ie=Be(d.info.isLive$),Ae=Be(d.info.volume$),ge=Be(d.info.muted$),he=Be(d.info.availableQualities$),Qe=Be(d.info.availableQualitiesFps$),pe=Be(d.info.isAudioTracksExist$),ne=Be(d.info.chromecastState$),fe=Be(d.info.chromecastDeviceName$),me=Be(d.info.currentFormat$),ye=Be(d.info.throughputEstimation$),K=Be(d.info.videoBitrate$),ke=Be(d.info.intrinsicVideoSize$),ce=Be(d.info.duration$);let H=null;const O=d.info.isBuffering$,x=Qt(O.getValue(),V=>{const X=O.subscribe(le=>{le&&H===null?H=window.setTimeout(()=>{V(O.getValue()),H=null},Lo):V(le)});return()=>{X.unsubscribe(),H&&clearTimeout(H)}}),qe=ut([ce,ie],([V,X])=>X?-V:V),et=Be(d.info.position$),nt=ut([ie,et],([V,X])=>Boolean(V&&X>-re.ACTIVE_LIVE_VALID_DELAY)),It=ut([ne],([V])=>V===Ce.ChromecastState.CONNECTED),Ge=Le(void 0),mt=Be(d.info.isAutoQualityEnabled$,V=>V&&Ge.set(void 0)),kt=Be(d.info.currentQuality$,()=>Ge.set(void 0)),vt=ut([Ge,kt],([V,X])=>V!=null?V:X),Pt=ut([he,Qe,mt,vt,me],([V,X,le,Pe,De])=>{const Ne=[];De!==Ce.VideoFormat.MPEG&&Ne.push({value:ei.AUTO,displayValue:fi,selected:le});const tt=V.filter(je=>je!==Ce.VideoQuality.INVARIANT);for(const je of tt){const bt=X[je],si=je===Ce.VideoQuality.INVARIANT?fi:je;Ne.push({value:je,displayValue:`${si}${bt?P1(bt):""}`,selected:le?!1:je===Pe})}return Ne}),Vt=Be(d.info.currentPlaybackRate$),lt=ut([Vt],([V])=>{const De=[];for(let Ne=.25;Ne<=2;Ne+=.25)De.push({value:Ne,displayValue:Ne===1?"\u041E\u0431\u044B\u0447\u043D\u0430\u044F":Ne+"x",selected:V===Ne});return De}),Ye=ut([G,qe],([V,X],le)=>{var Pe;return le(((Pe=V==null?void 0:V.end)!==null&&Pe!==void 0?Pe:0)/X)}),ot=()=>{h({message:"toggle muted"});const V=d.info.muted$.getValue(),Pe=!(d.info.volume$.getValue()===0||V);st(Pe)},gt=(V,X=V,le=!1)=>{var Pe,De;const Ne=!le,tt=d.info.muted$.getValue();h({message:`set volume, volume: ${V}, preferredVolume: ${X}, internalCall: ${Ne}`}),d.setVolume(V),v.setVolume(V),Ne&&((Pe=r==null?void 0:r.onVolumeChange)===null||Pe===void 0||Pe.call(r,V)),ll(X),tt&&(d.setMuted(!1),Ne&&((De=r==null?void 0:r.onUnmute)===null||De===void 0||De.call(r)),ol(!1))},st=(V,X=!1)=>{var le,Pe,De;const Ne=!X,tt=d.info.volume$.getValue();if(h({message:`set muted, currentVolume: ${tt}, mute: ${V}, internalCall: ${Ne}`}),d.setMuted(V),v.setVolume(V?0:tt),ol(V),Ne&&(V?(le=r==null?void 0:r.onMute)===null||le===void 0||le.call(r):(Pe=r==null?void 0:r.onUnmute)===null||Pe===void 0||Pe.call(r)),tt===0){let je=Ul();je===0&&(je=To,ll(je)),d.setVolume(je),v.setVolume(je),Ne&&((De=r==null?void 0:r.onVolumeChange)===null||De===void 0||De.call(r,je))}},at=()=>{d.prepare()},ht=()=>{var V,X;if(re.assertNonNullable(Ie),h({message:"toggle play"}),Re(Ie.playerPhase)===Ve.Ads){v.togglePlay();return}d.info.playbackState$.getValue()!==Ce.PlaybackState.PLAYING?(d.info.isEnded$.getValue()&&(h({message:"toggle play, video ended, seek to 0"}),d.seekTime(0)),h({message:"toggle play, call player.play"}),d.play(),(V=r==null?void 0:r.onPlay)===null||V===void 0||V.call(r)):(h({message:"toggle play, call player.pause"}),d.pause(),(X=r==null?void 0:r.onPause)===null||X===void 0||X.call(r))},St=V=>{h({message:`set quality, quality: ${V}`}),d.setAutoQuality(V===ei.AUTO),V!==ei.AUTO&&(Ge.set(V),d.setQuality(V))},rt=V=>{d.setPlaybackRate(V)},Bt=()=>{const V=Re(lt),X=V.findIndex(({selected:Pe})=>Pe);if(X===V.length-1)return;const le=V[X+1];rt(le.value)},Rt=()=>{const V=Re(lt),X=V.findIndex(({selected:Pe})=>Pe);if(X===0)return;const le=V[X-1];rt(le.value)},W=(V,X=!0)=>{if(h({message:`seek to time, time: ${V}`}),d.info.isLive$.getValue()){const le=d.info.duration$.getValue(),Pe=Math.min(0,le+V);d.seekTime(Pe,X)}else d.seekTime(V,X)},ii=V=>{h({message:`seek to percent, percent: ${V}`});const X=Math.round(Re(qe)*V);W(X,!1)},pi=V=>{h({message:`seek external, time: ${V}`}),d.seekTime(d.info.isLive$.getValue()?-V:V)},Ft=Le(void 0),qt=Le(!1),Te=V=>{h({message:`start scrubbing, progress: ${V}`}),qt.set(!0),Wt(V)},Wt=V=>{Ft.set(V)};let Yt;const ct=()=>{Ft.set(void 0),qt.set(!1)},At=()=>{clearTimeout(Yt),Yt=window.setTimeout(()=>{ct()},500),M==null||M.removeEventListener("canplay",At)},Ct=V=>{h({message:`complete scrubbing, progress: ${V}`}),ii(V),Re(Ie.ui.isMobile)&&Re(Ie.state.currentFormat$)===Ce.VideoFormat.HLS?M==null||M.addEventListener("canplay",At):ct()},pt=ut([J,qe,Ft],([V,X,le],Pe)=>{Pe(re.isNonNullable(le)?le*X:V)}),Mt=()=>{h({message:"switch to active live"}),d.seekTime(0)},Kt=()=>v.skip(),ni=(V=!0)=>{re.assertNonNullable(Ie),h({message:`switch from ads to video, callPlay: ${V}`}),L.set(Ve.Video),V&&d.play()},li=()=>{re.assertNonNullable(Ie),h({message:"switch from video to ads"}),Ie.actions.internal.pause(),N(),L.set(Ve.Ads)},Ht=()=>(re.assertNonNullable(Ie),So(d,z,Ie)),oi=()=>(re.assertNonNullable(Ie),Ao(d,z,Ie)),Xt=()=>M,Gt=()=>{h({message:"toggle chromecast"}),d.toggleChromecast()},Jt=V=>{var X;re.assertNonNullable(Ie);const le=!V;if(Re(Ie.playerPhase)===Ve.Ads){h({message:`pause ads, internalCall: ${le}`}),v.pause();return}h({message:`pause video, internalCall: ${le}`}),le&&((X=r==null?void 0:r.onPause)===null||X===void 0||X.call(r)),d.pause()},Zt=V=>{var X;re.assertNonNullable(Ie);const le=!V;if(Re(Ie.playerPhase)===Ve.Ads){h({message:`play ads, internalCall: ${le}`}),v.play();return}h({message:`play video, internalCall: ${le}`}),le&&((X=r==null?void 0:r.onPlay)===null||X===void 0||X.call(r)),d.play()},xt=(V,X)=>{re.assertNonNullable(Ie),h({message:`first start, show ads: ${V}, internalCall: ${!X}`}),V?L.set(Ve.Ads):(L.set(Ve.Video),X?d.play():Ie.actions.internal.togglePlay())},bi=()=>{S.destroy(),q.unsubscribe(),Y.unsubscribe(),Z.unsubscribe(),d.destroy(),v.destroy()},Ie={initVideo:R,videoId:t,playerPhase:F,state:{positionExact$:J,positionWithScrubbing$:pt,duration$:qe,playbackState$:ue,isLoaderVisible:x,bufferedProgress$:Ye,isLive$:ie,isActiveLive$:nt,isEnded$:D,muted$:ge,volume$:Ae,currentQuality$:vt,isAutoQualityEnabled$:mt,availableQualities$:Pt,isAudioAvailable$:pe,currentPlaybackRate$:Vt,availablePlaybackRates$:lt,chromecastState$:ne,chromecastDeviceName$:fe,chromecastConnected$:It,currentFormat$:me,throughputEstimation$:ye,videoBitrate$:K,videoSize$:ke,errorLog$:P,crashed$:B},ui:{controlsVisible:Le(!1),isFullscreen:Le(!1),isAutoplay:Le(!1),contextMenuVisible:Le(!1),debugPanelVisible:Le(!1),playerSize:Le({width:0,height:0}),isMobile:Le(!1),mobileUnmuteButtonExpanded:Le(!1),mobileUnmuteButtonVisible:Le(!1),settingsMenuVisible:Le(!1),scrubbingInProgress:qt},ads:{position:Le(0),duration:Le(0),playbackState:Le(Fe.INACTIVE),canSkip:Le(!1),secondsToWatchBeforeSkip:Le(0),postrollPassed:Le(!1)},webApi:{pictureInPictureApi:b},actions:{internal:{preload:at,firstStart:V=>xt(V,!1),pause:()=>Jt(!1),togglePlay:ht,toggleMuted:ot,setVolume:gt,setQuality:St,setPlaybackRate:rt,incrementPlaybackRate:Bt,decrementPlaybackRate:Rt,startScrubbing:Te,progressScrubbing:Wt,completeScrubbing:Ct,toggleChromecast:Gt,switchToActiveLive:Mt,switchFromAdsToVideo:ni,switchFromVideoToAds:li,skipAd:Kt,getDebugTextData:Ht,getDebugPanelData:oi,getVideoElement:Xt,seekTime:V=>W(V),startLogging:j,stopLogging:U},external:{firstStart:V=>xt(V,!0),play:()=>Zt(!0),pause:()=>Jt(!0),seekTime:V=>pi(V),setMuted:V=>st(V,!0),setVolume:V=>gt(V,V,!0)}},callbacks:r,setUiCallbacks:V=>{_=Object.assign({},V)},getAdmanWrapper:()=>v,getLogger:()=>w,destroy:bi};return Ie};class A1{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){const e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(const[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch(l){throw new Error(`The media session action "${i}" is not supported yet.`)}}}class C1{static getLatestSupportedVersion(){const e=new Il;if(e.isSupported())return e}}var Ai,Ci;const M1={preload:!0,autoplay:!1,repeat:!1,muted:!1,fromTime:0,canRewindLive:!0,supportLink:No,showAds:!1,logoClickable:!1,logoHidden:!1,isMobile:(Ci=(Ai=navigator==null?void 0:navigator.userAgentData)===null||Ai===void 0?void 0:Ai.mobile)!==null&&Ci!==void 0?Ci:/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{}};class E1 extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this.pictureInPictureApi=void 0,this.mediaSessionApi=void 0,this.unsubscribePlayerPhaseSubscription=void 0,this._shadowRoot=this.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.logger=new re.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new re.Subscription,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){var e,i;const n=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,l=(i=this.getAttribute("stub-thumb-url"))!==null&&i!==void 0?i:void 0;this.svelteStubComponent=new h1({target:this.playerContainer,props:{title:n,thumbUrl:l}})}disconnectedCallback(){var e,i,n;(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)===null||n===void 0||n.call(this)}needToShowNextPrevButtons(){return this.config?this.config.videos.length>1:!1}isNextButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.config.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}getNextVideoInfo(){if(!this.config)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.config.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={}){if(!this.config)return;const{albumId:n,statPlace:l,statAuthToken:o,refreshStatAuthToken:s,preload:a,autoplay:r,volume:u,muted:f,fromTime:d,canRewindLive:w,supportLink:v,showAds:b,adsSlotId:h,adsParams:z={},adsPreviewParam:M,logoClickable:_,logoHidden:P,isMobile:B,isAudioDisabled:L,isLiveCatchUpMode:F,fullScreenTarget:R,failoverHosts:S,callbacks:q}=Object.assign(Object.assign({},this.config),i),{sources:N,title:Y,thumbUrl:Z,unitedVideoId:j,duration:U,adsParams:J={}}=e,ue=Object.assign(Object.assign({},z),J),G=this.getNextVideoInfo(),D={sources:N,title:Y,thumbUrl:Z,unitedVideoId:j,albumId:n,statPlace:l,autoplay:r,muted:f,volume:u,fromTime:d,canRewindLive:w,supportLink:v,showAds:b,adsSlotId:h,adsParams:ue,adsPreviewParam:M,duration:U,logoClickable:_,logoHidden:P,isMobile:B,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:G.nextVideoTitle,endScreenVideoThumb:G.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ie={pictureInPictureApi:this.pictureInPictureApi};this.log({message:`create player, props: ${JSON.stringify(D)}`}),this.store=S1({videoId:j,albumId:n,autoplay:r,isLiveCatchUpMode:F,statPlace:l,isAudioDisabled:L,statAuthToken:o,refreshStatAuthToken:s,callbacks:q,webApi:ie}),this.store.state.currentFormat$.subscribe(Ae=>{var ge;(ge=q==null?void 0:q.onCurrentFormatChanged)===null||ge===void 0||ge.call(q,Ae)}),this.store.state.throughputEstimation$.subscribe(Ae=>{var ge;(ge=q==null?void 0:q.onThroughputEstimationChanged)===null||ge===void 0||ge.call(q,Ae)}),this.store.state.videoBitrate$.subscribe(Ae=>{var ge;(ge=q==null?void 0:q.onVideoBitrateChanged)===null||ge===void 0||ge.call(q,Ae)}),this.initMediaSession(),this.svelteRootComponent=new d1({target:this.playerContainer,props:{sources:N,store:this.store,title:Y,thumbUrl:Z,preload:a,autoplay:r,muted:f,volume:u,fromTime:d,canRewindLive:w,supportLink:v,showAds:b,adsSlotId:h,adsParams:ue,adsPreviewParam:M,duration:U,logoClickable:_,logoHidden:P,isMobile:B,failoverHosts:S,fullScreenTarget:R,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:G.nextVideoTitle,endScreenVideoThumb:G.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist()}})}playNextVideo(){this.config&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.config.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.config&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.config.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(){var e;if(!this.config)return;const i=this.config.videos[this.currentPlayingVideoIndex];if(!i){this.log({message:"no next video"});return}(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),setTimeout(()=>this.createPlayer(i,{autoplay:!0,fromTime:0}),0)}initPlayer(e){var i,n;if(!Array.isArray(e.videos)||e.videos.length===0)throw new Error("empty videos");this.config=Object.assign(Object.assign({},M1),io(e,l=>l instanceof HTMLElement?l:void 0)),this.currentPlayingVideoIndex=0,this.pictureInPictureApi=this.config.isPictureInPictureEnabled?C1.getLatestSupportedVersion():void 0,this.mediaSessionApi=this.config.isMediaSessionEnabled?new A1:void 0,(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(e.videos[0]),Ss(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.config?this.config.videos.length===1:!1}updateNextVideos(e){var i;if(!this.config)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.config.videos.splice(this.currentPlayingVideoIndex+1),this.config.videos.push(...e);const n=this.getNextVideoInfo();(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(i=this.store)===null||i===void 0?void 0:i.playerPhase.subscribe(n=>{n===Ve.Video?this.setupMediaSessionForVideo():n===Ve.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.config||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}=Object.assign({},this.config.videos[this.currentPlayingVideoIndex]),n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)],["nexttrack",()=>this.playNextVideo()],["previoustrack",()=>this.playPrevVideo()]];this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.config||!this.mediaSessionApi))try{const e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i)}catch(e){this.log({message:e.message})}}play(){var e;this.log({message:"play"}),(e=this.svelteRootComponent)===null||e===void 0||e.play()}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,i;if(!this.config)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.config.videos[0];n&&((i=this.svelteRootComponent)===null||i===void 0||i.$destroy(),this.createPlayer(n))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setMuted(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setVolume(e)}setRepeat(e){var i;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var i;this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.seekTime(e)}}const z1=()=>{window.customElements.define("vk-video-player",E1)};exports.registerPlayerWebComponent=z1;
36
+ )}.hidden.v-6m6jx8{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}`)}function Zd(t){let e,i;return{c(){e=g("div"),i=_e(t[0]),u(e,"class","title v-6m6jx8"),E(e,"hidden",t[1])},m(n,l){M(n,e,l),v(e,i)},p(n,[l]){l&1&&Le(i,n[0]),l&2&&E(e,"hidden",n[1])},i:B,o:B,d(n){n&&T(e)}}}function xd(t,e,i){let{title:n=""}=e,{isHidden:l=!1}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"isHidden"in o&&i(1,l=o.isHidden)},[n,l]}class $d extends be{constructor(e){super(),ge(this,e,xd,Zd,me,{title:0,isHidden:1},Jd)}}function ef(t){Se(t,"v-1o62kpz",".wrapper.v-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}")}function yo(t){let e,i,n;return{c(){e=g("div"),i=_e("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=_e(t[1]),u(e,"class","text v-1o62kpz")},m(l,o){M(l,e,o),v(e,i),v(e,n)},p(l,o){o&2&&Le(n,l[1])},d(l){l&&T(e)}}}function tf(t){let e,i,n,l,o,r,s=t[1]&&yo(t);return{c(){e=g("div"),i=g("div"),i.innerHTML='<svg class="icon v-1o62kpz" 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="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=L(),s&&s.c(),u(i,"class","icon_wrapper v-1o62kpz"),u(e,"class","wrapper v-1o62kpz"),u(e,"style",l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(c,a){M(c,e,a),v(e,i),v(e,n),s&&s.m(e,null),o||(r=oe(e,"click",t[2]),o=!0)},p(c,[a]){c[1]?s?s.p(c,a):(s=yo(c),s.c(),s.m(e,null)):s&&(s.d(1),s=null),a&1&&l!==(l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${c[0]||""}')`)&&u(e,"style",l)},i:B,o:B,d(c){c&&T(e),s&&s.d(),o=!1,r()}}}function nf(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function o(r){ft.call(this,t,r)}return t.$$set=r=>{"thumbUrl"in r&&i(0,n=r.thumbUrl),"chromecastDeviceName"in r&&i(1,l=r.chromecastDeviceName)},[n,l,o]}class lf extends be{constructor(e){super(),ge(this,e,nf,tf,me,{thumbUrl:0,chromecastDeviceName:1},ef)}}var of="data:image/svg+xml,%3csvg viewBox='460 190 130 90' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-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.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z' fill='white' fill-rule='evenodd'/%3e%3c/svg%3e";function rf(t){Se(t,"v-zd9h6u",".container.v-zd9h6u{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}.icon.v-zd9h6u{width:200px;height:200px}")}function sf(t){let e,i,n;return{c(){e=g("div"),i=g("img"),Ee(i.src,n=of)||u(i,"src",n),u(i,"class","icon v-zd9h6u"),u(i,"alt",""),u(e,"class","container v-zd9h6u")},m(l,o){M(l,e,o),v(e,i)},p:B,i:B,o:B,d(l){l&&T(e)}}}class af extends be{constructor(e){super(),ge(this,e,null,sf,me,{},rf)}}function cf(t,e,i){let n,l,o,r,s,{isAds:c}=e,{hideContextMenu:a}=e,{toggleFullscreen:d}=e;const m=Qe(),f=m.getLogger().createComponentLog("KeyboardControls component"),p=m.state.playbackState$;Q(t,p,S=>i(13,s=S));const w=m.ads.playbackState;Q(t,w,S=>i(12,r=S));const b=m.state.positionExact$;Q(t,b,S=>i(11,o=S));const y=m.state.duration$;Q(t,y,S=>i(10,l=S));const N=m.state.volume$;Q(t,N,S=>i(9,n=S));const _=S=>{a();const D=S.code;if(S.ctrlKey||S.altKey||S.metaKey)return;const R=s===Ve.PlaybackState.PLAYING||s===Ve.PlaybackState.PAUSED,j=c&&(r===qe.PAUSED||r===qe.PLAYING);if(R||j)switch(f({message:`key down, code: ${D}`}),D){case tt.KeyJ:case tt.ArrowLeft:{if(j)break;const I=Math.max(o-El,0);o>0&&m.actions.internal.seekTime(I),S.preventDefault();break}case tt.KeyL:case tt.ArrowRight:{if(j)break;const I=Math.min(o+El,l);o<l&&m.actions.internal.seekTime(I),S.preventDefault();break}case tt.ArrowUp:{const I=Math.min(n+Cl,Al);n<Al&&m.actions.internal.setVolume(I),S.preventDefault();break}case tt.ArrowDown:{const I=Math.max(n-Cl,0);n>0&&m.actions.internal.setVolume(I),S.preventDefault();break}case tt.Comma:{S.shiftKey&&(m.actions.internal.decrementPlaybackRate(),S.preventDefault());break}case tt.Period:{S.shiftKey&&(m.actions.internal.incrementPlaybackRate(),S.preventDefault());break}case tt.KeyK:case tt.Space:m.actions.internal.togglePlay(),S.preventDefault();break;case tt.KeyM:m.actions.internal.toggleMuted(),S.preventDefault();break;case tt.KeyF:d(),S.preventDefault();break;default:de.checkNever(D);break}};return t.$$set=S=>{"isAds"in S&&i(5,c=S.isAds),"hideContextMenu"in S&&i(6,a=S.hideContextMenu),"toggleFullscreen"in S&&i(7,d=S.toggleFullscreen)},[p,w,b,y,N,c,a,d,_]}class uf extends be{constructor(e){super(),ge(this,e,cf,null,me,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function df(t){Se(t,"v-1c30l04",".double-click-area.v-1c30l04{position:absolute;z-index:1;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-1c30l04{left:0}.double-click-area.right.v-1c30l04{right:0}.semicircle.v-1c30l04{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-1c30l04{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-1c30l04{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-1c30l04{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-1c30l04{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-1c30l04{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-1c30l04-blink 500ms infinite;opacity:0}.triangle.right.v-1c30l04:nth-child(1),.triangle.left.v-1c30l04:nth-child(3){animation-delay:0ms}.triangle.right.v-1c30l04:nth-child(2),.triangle.left.v-1c30l04:nth-child(2){animation-delay:100ms}.triangle.right.v-1c30l04:nth-child(3),.triangle.left.v-1c30l04:nth-child(1){animation-delay:200ms}@keyframes v-1c30l04-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-1c30l04{border-right:8px solid var(--white)}.triangle.right.v-1c30l04{border-left:8px solid var(--white)}.triangle.v-1c30l04:not(:last-child){margin-right:5px}.step-caption.v-1c30l04{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function ko(t){let e,i,n,l,o,r,s,c,a,d,m,f,p,w,b,y=Te("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",N;return{c(){e=g("div"),n=L(),l=g("div"),o=g("div"),r=g("div"),c=L(),a=g("div"),m=L(),f=g("div"),w=L(),b=g("p"),N=_e(y),u(e,"class",i="semicircle "+t[0]+" v-1c30l04"),u(r,"class",s="triangle "+t[0]+" v-1c30l04"),u(a,"class",d="triangle "+t[0]+" v-1c30l04"),u(f,"class",p="triangle "+t[0]+" v-1c30l04"),u(o,"class","triangles-wrapper v-1c30l04"),u(b,"class","step-caption v-1c30l04"),u(l,"class","info v-1c30l04")},m(_,S){M(_,e,S),M(_,n,S),M(_,l,S),v(l,o),v(o,r),v(o,c),v(o,a),v(o,m),v(o,f),v(l,w),v(l,b),v(b,N)},p(_,S){S&1&&i!==(i="semicircle "+_[0]+" v-1c30l04")&&u(e,"class",i),S&1&&s!==(s="triangle "+_[0]+" v-1c30l04")&&u(r,"class",s),S&1&&d!==(d="triangle "+_[0]+" v-1c30l04")&&u(a,"class",d),S&1&&p!==(p="triangle "+_[0]+" v-1c30l04")&&u(f,"class",p),S&2&&y!==(y=Te("doubletap_seek_step",{seconds:_[1].toFixed(0)})+"")&&Le(N,y)},d(_){_&&T(e),_&&T(n),_&&T(l)}}}function ff(t){let e,i,n,l,o=t[2]&&ko(t);return{c(){e=g("div"),o&&o.c(),u(e,"class",i="double-click-area "+t[0]+" v-1c30l04")},m(r,s){M(r,e,s),o&&o.m(e,null),n||(l=oe(e,"click",as(t[3]())),n=!0)},p(r,[s]){r[2]?o?o.p(r,s):(o=ko(r),o.c(),o.m(e,null)):o&&(o.d(1),o=null),s&1&&i!==(i="double-click-area "+r[0]+" v-1c30l04")&&u(e,"class",i)},i:B,o:B,d(r){r&&T(e),o&&o.d(),n=!1,l()}}}function vf(t,e,i){let{side:n}=e,{seekStep:l}=e,{handleSingleFirstClick:o}=e,{handleSecondClick:r}=e,s=!1,c=0,a=0;const d=()=>{let f=0;return()=>{f+=1,f===1?c=window.setTimeout(()=>{o(),f=0},300):(window.clearTimeout(c),f=0,r(),i(2,s=!0),a=window.setTimeout(()=>{i(2,s=!1)},500))}};return Uo(()=>{window.clearTimeout(c),window.clearTimeout(a)}),t.$$set=m=>{"side"in m&&i(0,n=m.side),"seekStep"in m&&i(1,l=m.seekStep),"handleSingleFirstClick"in m&&i(4,o=m.handleSingleFirstClick),"handleSecondClick"in m&&i(5,r=m.handleSecondClick)},[n,l,s,d,o,r]}class jr extends be{constructor(e){super(),ge(this,e,vf,ff,me,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},df)}}function mf(t,e){var i,n,l,o,r;return t?((r=(o=(l=(n=(i=t.matches)!==null&&i!==void 0?i:t.matchesSelector)!==null&&n!==void 0?n:t.mozMatchesSelector)!==null&&l!==void 0?l:t.msMatchesSelector)!==null&&o!==void 0?o:t.oMatchesSelector)!==null&&r!==void 0?r:t.webkitMatchesSelector).call(t,e):!1}function pf(t){return mf(t,":hover")}const Fr=t=>t>1?qi:t<0?0:t,Po=t=>Qt.set(Er,Fr(t)),Dr=()=>{const t=parseFloat(Qt.get(Er));return isNaN(t)?qi:Fr(t)},So=t=>Qt.set(Tr,t),hf=()=>{const t=Qt.get(Tr);return typeof t=="boolean"?t:!1},gf=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();const e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},bf=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),wf=t=>{const e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Vo=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},_f=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},yf=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},kf=t=>{const e=window.screen;return(l=>Mt(void 0,void 0,void 0,function*(){return e.orientation?e.orientation.lock(l):e.mozLockOrientation?e.mozLockOrientation(l):e.msLockOrientation?e.msLockOrientation(l):Promise.reject()}))(((l={width:0,height:0})=>l.width<=l.height?"portrait":"landscape")(t))},{window:Pf}=hs;function Sf(t){Se(t,"v-phigzb",".player-wrapper.v-phigzb{--white:#fff;--black:#000;--red:#ff3347;--videoplayer-controls-height:45px;--videoplayer-controls-fullscreen-height:50px;--videoplayer-controls-gradient-height:100px;--videoplayer-controls-transition-duration:0.25s;--videoplayer-controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--videoplayer-focused-element-shadow:inset 0 0 0 2px #2a5885;--videoplayer-focused-slider-shadow:0 0 0 2px #2a5885;--videoplayer-big-play-size:75px;--videoplayer-big-play-radius:50%;--videoplayer-big-play-bg-color:rgba(0, 0, 0, 0.5);--videoplayer-big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--videoplayer-big-play-icon-width:38px;--videoplayer-big-play-icon-height:33px;--videoplayer-slider-height:5px;--videoplayer-slider-radius:calc(var(--videoplayer-slider-height) / 2);--videoplayer-slider-handle-size:13px;--videoplayer-slider-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-loaded-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-filled-bg:var(--white);--videoplayer-slider-filled-active-live-bg:var(--red);--videoplayer-slider-filled-ads:rgba(103, 165, 235, 1);--videoplayer-slider-disabled-color:rgba(248, 248, 248, 0.31);--videplayer-mobile-settings-bg:#2C2D2E;--videoplayer-button-hover-transition:opacity 0.2s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-wrapper.v-phigzb .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.video-container.v-phigzb,.ads-container.v-phigzb{position:absolute;width:100%;height:100%;left:0;top:0}.video-container.v-phigzb{z-index:0}.nocursor.v-phigzb{cursor:none}.ads-container.v-phigzb{background:var(--black)}.hidden.v-phigzb{visibility:hidden}div{outline:none}")}function Ao(t){let e,i,n,l;e=new jr({props:{side:"left",seekStep:Oi,handleSingleFirstClick:t[68],handleSecondClick:t[98]}});let o=!t[38]&&Co(t);return{c(){x(e.$$.fragment),i=L(),o&&o.c(),n=ct()},m(r,s){J(e,r,s),M(r,i,s),o&&o.m(r,s),M(r,n,s),l=!0},p(r,s){r[38]?o&&(se(),P(o,1,1,()=>{o=null}),ae()):o?(o.p(r,s),s[1]&128&&h(o,1)):(o=Co(r),o.c(),h(o,1),o.m(n.parentNode,n))},i(r){l||(h(e.$$.fragment,r),h(o),l=!0)},o(r){P(e.$$.fragment,r),P(o),l=!1},d(r){Z(e,r),r&&T(i),o&&o.d(r),r&&T(n)}}}function Co(t){let e,i;return e=new jr({props:{side:"right",seekStep:Oi,handleSingleFirstClick:t[68],handleSecondClick:t[99]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p:B,i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Eo(t){let e,i,n;return i=new _d({props:{adsSlotId:t[5],adsParams:t[6],adsPreviewParam:t[7],duration:t[8]}}),{c(){e=g("div"),x(i.$$.fragment),u(e,"class","ads-container v-phigzb"),E(e,"hidden",t[25]!==Ce.Ads)},m(l,o){M(l,e,o),J(i,e,null),n=!0},p(l,o){const r={};o[0]&32&&(r.adsSlotId=l[5]),o[0]&64&&(r.adsParams=l[6]),o[0]&128&&(r.adsPreviewParam=l[7]),o[0]&256&&(r.duration=l[8]),i.$set(r),(!n||o[0]&33554432)&&E(e,"hidden",l[25]!==Ce.Ads)},i(l){n||(h(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&T(e),Z(i)}}}function To(t){let e,i,n,l;const o=[Af,Vf],r=[];function s(c,a){return c[11]?0:1}return e=s(t),i=r[e]=o[e](t),{c(){i.c(),n=ct()},m(c,a){r[e].m(c,a),M(c,n,a),l=!0},p(c,a){let d=e;e=s(c),e===d?r[e].p(c,a):(se(),P(r[d],1,1,()=>{r[d]=null}),ae(),i=r[e],i?i.p(c,a):(i=r[e]=o[e](c),i.c()),h(i,1),i.m(n.parentNode,n))},i(c){l||(h(i),l=!0)},o(c){P(i),l=!1},d(c){r[e].d(c),c&&T(n)}}}function Vf(t){let e,i;return e=new Kd({props:{title:t[15],thumb:t[16],playNextVideo:t[18]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&32768&&(o.title=n[15]),l[0]&65536&&(o.thumb=n[16]),l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Af(t){let e,i;return e=new Xd({props:{playNextVideo:t[18]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Mo(t){let e,i;return e=new $d({props:{title:t[0],isHidden:!t[21]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&1&&(o.title=n[0]),l[0]&2097152&&(o.isHidden=!n[21]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Lo(t){let e,i;return e=new lf({props:{thumbUrl:t[1],chromecastDeviceName:t[39]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&2&&(o.thumbUrl=n[1]),l[1]&256&&(o.chromecastDeviceName=n[39]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function No(t){let e,i,n={toggleFullscreen:t[65],hideContextMenu:t[66],isAds:t[25]===Ce.Ads};return e=new uf({props:n}),t[101](e),{c(){x(e.$$.fragment)},m(l,o){J(e,l,o),i=!0},p(l,o){const r={};o[0]&33554432&&(r.isAds=l[25]===Ce.Ads),e.$set(r)},i(l){i||(h(e.$$.fragment,l),i=!0)},o(l){P(e.$$.fragment,l),i=!1},d(l){t[101](null),Z(e,l)}}}function zo(t){let e,i,n,l,o;return i=new af({}),{c(){e=g("div"),x(i.$$.fragment)},m(r,s){M(r,e,s),J(i,e,null),n=!0,l||(o=[oe(e,"contextmenu",Ht(t[67])),oe(e,"click",t[70])],l=!0)},p:B,i(r){n||(h(i.$$.fragment,r),n=!0)},o(r){P(i.$$.fragment,r),n=!1},d(r){r&&T(e),Z(i),l=!1,lt(o)}}}function Io(t){let e,i;return e=new Vd({props:{supportLink:t[3],visible:t[37],playerContainerRef:t[27],controlsContainerRef:t[29],x:t[31],y:t[32]}}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},p(n,l){const o={};l[0]&8&&(o.supportLink=n[3]),l[1]&64&&(o.visible=n[37]),l[0]&134217728&&(o.playerContainerRef=n[27]),l[0]&536870912&&(o.controlsContainerRef=n[29]),l[1]&1&&(o.x=n[31]),l[1]&2&&(o.y=n[32]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Ro(t){let e,i;return e=new td({}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Bo(t){let e,i;return e=new Id({}),{c(){x(e.$$.fragment)},m(n,l){J(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){Z(e,n)}}}function Cf(t){let e,i,n,l,o,r,s,c,a,d,m,f,p,w,b,y,N,_,S;i=new xu({props:{hidden:t[25]!==Ce.Thumb||t[23],thumbUrl:t[1],startVideo:t[63]}});let D=t[11]&&t[36]&&Ao(t),R=t[4]&&t[30]&&Eo(t),j=t[22]&&t[15]&&t[16]&&To(t),I=!t[11]&&t[25]===Ce.Video&&Mo(t),k=t[24]&&Lo(t),O=!t[11]&&No(t);function C(fe){t[102](fe)}let Y={hidden:t[25]===Ce.Thumb||t[11]&&t[25]===Ce.Ads,showControls:t[21],isAds:t[25]===Ce.Ads,canRewindLive:t[2]&&t[26]!==0,logoClickable:t[9],logoHidden:t[10],showNextPrevButtons:t[12],nextButtonActive:t[13],prevButtonActive:t[14],isOneVideoPlaylist:t[17],supportLink:t[3],canShowTimeline:t[36],playNextVideo:t[18],playPrevVideo:t[19],repeatPlaylist:t[20],toggleFullscreen:t[65]};t[29]!==void 0&&(Y.controlsElementRef=t[29]),m=new Gu({props:Y}),nt.push(()=>gs(m,"controlsElementRef",C));let q=t[23]&&zo(t),H=!t[11]&&Io(t),U=t[34]&&Ro(),X=t[40]&&Bo();return{c(){e=g("div"),x(i.$$.fragment),n=L(),l=g("div"),D&&D.c(),o=L(),R&&R.c(),r=L(),j&&j.c(),s=L(),I&&I.c(),c=L(),k&&k.c(),a=L(),O&&O.c(),d=L(),x(m.$$.fragment),p=L(),q&&q.c(),w=L(),H&&H.c(),b=L(),U&&U.c(),y=L(),X&&X.c(),u(l,"class","video-container v-phigzb"),E(l,"hidden",t[25]!==Ce.Video),E(l,"nocursor",t[35]),u(e,"class","player-wrapper v-phigzb"),u(e,"tabindex","0")},m(fe,K){M(fe,e,K),J(i,e,null),v(e,n),v(e,l),D&&D.m(l,null),t[100](l),v(e,o),R&&R.m(e,null),v(e,r),j&&j.m(e,null),v(e,s),I&&I.m(e,null),v(e,c),k&&k.m(e,null),v(e,a),O&&O.m(e,null),v(e,d),J(m,e,null),v(e,p),q&&q.m(e,null),v(e,w),H&&H.m(e,null),v(e,b),U&&U.m(e,null),v(e,y),X&&X.m(e,null),t[103](e),N=!0,_||(S=[oe(Pf,"blur",t[66]),oe(l,"contextmenu",Ht(t[67])),oe(l,"click",t[69]),oe(e,"mouseenter",function(){Ue(t[11]?B:t[60])&&(t[11]?B:t[60]).apply(this,arguments)}),oe(e,"mouseleave",function(){Ue(t[11]?B:t[61])&&(t[11]?B:t[61]).apply(this,arguments)}),oe(e,"mousemove",function(){Ue(t[11]?B:t[62])&&(t[11]?B:t[62]).apply(this,arguments)}),oe(e,"keydown",function(){Ue(t[11]?B:t[71])&&(t[11]?B:t[71]).apply(this,arguments)})],_=!0)},p(fe,K){t=fe;const F={};K[0]&41943040&&(F.hidden=t[25]!==Ce.Thumb||t[23]),K[0]&2&&(F.thumbUrl=t[1]),i.$set(F),t[11]&&t[36]?D?(D.p(t,K),K[0]&2048|K[1]&32&&h(D,1)):(D=Ao(t),D.c(),h(D,1),D.m(l,null)):D&&(se(),P(D,1,1,()=>{D=null}),ae()),(!N||K[0]&33554432)&&E(l,"hidden",t[25]!==Ce.Video),(!N||K[1]&16)&&E(l,"nocursor",t[35]),t[4]&&t[30]?R?(R.p(t,K),K[0]&1073741840&&h(R,1)):(R=Eo(t),R.c(),h(R,1),R.m(e,r)):R&&(se(),P(R,1,1,()=>{R=null}),ae()),t[22]&&t[15]&&t[16]?j?(j.p(t,K),K[0]&4292608&&h(j,1)):(j=To(t),j.c(),h(j,1),j.m(e,s)):j&&(se(),P(j,1,1,()=>{j=null}),ae()),!t[11]&&t[25]===Ce.Video?I?(I.p(t,K),K[0]&33556480&&h(I,1)):(I=Mo(t),I.c(),h(I,1),I.m(e,c)):I&&(se(),P(I,1,1,()=>{I=null}),ae()),t[24]?k?(k.p(t,K),K[0]&16777216&&h(k,1)):(k=Lo(t),k.c(),h(k,1),k.m(e,a)):k&&(se(),P(k,1,1,()=>{k=null}),ae()),t[11]?O&&(se(),P(O,1,1,()=>{O=null}),ae()):O?(O.p(t,K),K[0]&2048&&h(O,1)):(O=No(t),O.c(),h(O,1),O.m(e,d));const te={};K[0]&33556480&&(te.hidden=t[25]===Ce.Thumb||t[11]&&t[25]===Ce.Ads),K[0]&2097152&&(te.showControls=t[21]),K[0]&33554432&&(te.isAds=t[25]===Ce.Ads),K[0]&67108868&&(te.canRewindLive=t[2]&&t[26]!==0),K[0]&512&&(te.logoClickable=t[9]),K[0]&1024&&(te.logoHidden=t[10]),K[0]&4096&&(te.showNextPrevButtons=t[12]),K[0]&8192&&(te.nextButtonActive=t[13]),K[0]&16384&&(te.prevButtonActive=t[14]),K[0]&131072&&(te.isOneVideoPlaylist=t[17]),K[0]&8&&(te.supportLink=t[3]),K[1]&32&&(te.canShowTimeline=t[36]),K[0]&262144&&(te.playNextVideo=t[18]),K[0]&524288&&(te.playPrevVideo=t[19]),K[0]&1048576&&(te.repeatPlaylist=t[20]),!f&&K[0]&536870912&&(f=!0,te.controlsElementRef=t[29],ms(()=>f=!1)),m.$set(te),t[23]?q?(q.p(t,K),K[0]&8388608&&h(q,1)):(q=zo(t),q.c(),h(q,1),q.m(e,w)):q&&(se(),P(q,1,1,()=>{q=null}),ae()),t[11]?H&&(se(),P(H,1,1,()=>{H=null}),ae()):H?(H.p(t,K),K[0]&2048&&h(H,1)):(H=Io(t),H.c(),h(H,1),H.m(e,b)),t[34]?U?K[1]&8&&h(U,1):(U=Ro(),U.c(),h(U,1),U.m(e,y)):U&&(se(),P(U,1,1,()=>{U=null}),ae()),t[40]?X?K[1]&512&&h(X,1):(X=Bo(),X.c(),h(X,1),X.m(e,null)):X&&(se(),P(X,1,1,()=>{X=null}),ae())},i(fe){N||(h(i.$$.fragment,fe),h(D),h(R),h(j),h(I),h(k),h(O),h(m.$$.fragment,fe),h(q),h(H),h(U),h(X),N=!0)},o(fe){P(i.$$.fragment,fe),P(D),P(R),P(j),P(I),P(k),P(O),P(m.$$.fragment,fe),P(q),P(H),P(U),P(X),N=!1},d(fe){fe&&T(e),Z(i),D&&D.d(),t[100](null),R&&R.d(),j&&j.d(),I&&I.d(),k&&k.d(),O&&O.d(),Z(m),q&&q.d(),H&&H.d(),U&&U.d(),X&&X.d(),t[103](null),_=!1,lt(S)}}}let Oi=15;function Ef(t,e,i){let n,l,o,r,s,c,a,d,m,f,p,w,b,y,N,_,S,D,R;var j=this&&this.__awaiter||function(V,ze,Ye,et){function xe(at){return at instanceof Ye?at:new Ye(function(Ci){Ci(at)})}return new(Ye||(Ye=Promise))(function(at,Ci){function Zr(Dt){try{Wi(et.next(Dt))}catch(Yi){Ci(Yi)}}function xr(Dt){try{Wi(et.throw(Dt))}catch(Yi){Ci(Yi)}}function Wi(Dt){Dt.done?at(Dt.value):xe(Dt.value).then(Zr,xr)}Wi((et=et.apply(V,ze||[])).next())})};let{sources:I}=e,{store:k}=e,{title:O}=e,{thumbUrl:C}=e,{preload:Y}=e,{autoplay:q}=e,{volume:H=void 0}=e,{muted:U=void 0}=e,{fromTime:X}=e,{canRewindLive:fe}=e,{supportLink:K}=e,{showAds:F}=e,{adsSlotId:te=void 0}=e,{adsParams:Ne=void 0}=e,{adsPreviewParam:ke=void 0}=e,{duration:ie=void 0}=e,{logoClickable:Ke}=e,{logoHidden:ne}=e,{isMobile:ce}=e,{showNextPrevButtons:we=!1}=e,{nextButtonActive:pe=!1}=e,{prevButtonActive:ve=!1}=e,{endScreenVideoTitle:Pe=void 0}=e,{endScreenVideoThumb:he=void 0}=e,{isOneVideoPlaylist:ye=!1}=e,{outerContainerRef:ue=void 0}=e,{playNextVideo:z=B}=e,{playPrevVideo:$=B}=e,{repeatPlaylist:le=B}=e,{fullScreenTarget:ee=void 0}=e,{failoverHosts:ot=void 0}=e;const Ge=V=>{Re.set(!0),V?ce&&(Gt.set(!0),jt.set(!0),window.setTimeout(()=>{jt.set(!1),Tt(Vl)},Sc)):Tt(Vl)};k.setUiCallbacks({onStarted:Ge}),k.getAdmanWrapper().init({switchFromAdsToVideo:k.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:k.actions.internal.switchFromVideoToAds,setMuted:k.actions.external.setMuted},k.ads,{isMobile:k.ui.isMobile,mobileUnmuteButtonVisible:k.ui.mobileUnmuteButtonVisible});const We=k.getLogger().createComponentLog("Root component"),rt=k.state.playbackState$;Q(t,rt,V=>i(107,m=V));const Ze=k.ads.playbackState;Q(t,Ze,V=>i(96,y=V));const Xe=k.state.positionWithScrubbing$;Q(t,Xe,V=>i(93,a=V));const dt=k.state.duration$;Q(t,dt,V=>i(92,c=V));const vt=k.playerPhase;Q(t,vt,V=>i(25,N=V));const it=k.ui.isFullscreen;Q(t,it,V=>i(91,r=V));const Re=k.ui.controlsVisible;Q(t,Re,V=>i(90,o=V));const $e=k.ui.settingsMenuVisible;Q(t,$e,V=>i(106,d=V));const mt=k.ui.scrubbingInProgress;Q(t,mt,V=>i(94,f=V));const It=k.ui.playerSize,Pt=k.ui.contextMenuVisible;Q(t,Pt,V=>i(37,n=V));const pt=k.ui.debugPanelVisible;Q(t,pt,V=>i(40,R=V));const St=k.state.isLoaderVisible;Q(t,St,V=>i(97,_=V));const Rt=k.state.isEnded$;Q(t,Rt,V=>i(89,l=V));const Bt=k.state.chromecastConnected$;Q(t,Bt,V=>i(24,b=V));const Ot=k.state.chromecastDeviceName$;Q(t,Ot,V=>i(39,D=V));const ht=k.ads.postrollPassed;Q(t,ht,V=>i(95,w=V));const jt=k.ui.mobileUnmuteButtonExpanded,Gt=k.ui.mobileUnmuteButtonVisible,Vt=k.state.isActiveLive$;Q(t,Vt,V=>i(38,S=V));const Xt=k.state.crashed$;Q(t,Xt,V=>i(23,p=V));const Ie=k.webApi.pictureInPictureApi,W=k.state.videoSize$;Q(t,W,V=>i(105,s=V));let Jt=0;k.state.duration$.subscribe(V=>{i(26,Jt=V)}),_s(k);let At,Ft,Ct,gt,Et=null,ri=!1,bi=0,wi=0,Zt,_i,si,ai,yi,ci=!1,ki;function Pi(){clearTimeout(gt),Re.set(!0)}function Qi(){Tt(kc)}function Si(){clearTimeout(gt),Re.set(!0),r&&Ct&&!pf(Ct)&&Tt(Pc)}function Tt(V){i(87,gt=window.setTimeout(()=>{if(m===Ve.PlaybackState.PLAYING){if(ce&&d)return;Re.set(!1),$e.set(!1)}},V))}const Fe=V=>{if(window.ResizeObserver){let ze,Ye;Et=new ResizeObserver(Do(et=>{const xe=et[0];if(xe){if(xe.contentBoxSize){const at=Array.isArray(xe.contentBoxSize)?xe.contentBoxSize[0]:xe.contentBoxSize;ze=at.inlineSize,Ye=at.blockSize}else xe.contentRect&&(ze=xe.contentRect.width,Ye=xe.contentRect.height);It.set({width:ze,height:Ye})}},Mr)),Et.observe(V)}It.set({width:V.clientWidth,height:V.clientHeight})},A=V=>{const ze=V;It.set({width:ze.target.width,height:ze.target.height})},G=(V=!1)=>{i(30,ri=!0),V?k.actions.external.firstStart(F):k.actions.internal.firstStart(F)};Wt(()=>{if(_f(Vi),Fe(At),k.initVideo({container:Ft,sources:I,failoverHosts:ot}),Sn(Ie)){const et=At.querySelector("video");Ie==null||Ie.updateVideoElement(et),Ie==null||Ie.registryEventHandlers(),Ie==null||Ie.registryExternalEventHandlers({resize:A})}X>0&&k.actions.external.seekTime(X);const V=ce?qi:H!=null?H:Dr(),ze=U!=null?U:hf();k.actions.external.setVolume(V),k.actions.external.setMuted(ze),k.getAdmanWrapper().setInitialVolume(ze?0:V),k.ui.isAutoplay.set(q),q?G():Y&&k.actions.internal.preload();const Ye=Boolean(Qt.get(kn));return pt.set(Ye),()=>{yf(Vi),Et==null||Et.disconnect(),k.destroy()}}),Uo(()=>j(void 0,void 0,void 0,function*(){Sn(Ie)&&(yield Ie==null?void 0:Ie.hidePictureInPicture(),Ie==null||Ie.unregistryEventHandlers())}));function re(){ri?k.actions.external.play():G(!0)}function Ae(){k.actions.external.pause()}function Je(V){ce||k.actions.external.setMuted(V)}function Be(V){ce||V>=0&&V<=1&&k.actions.external.setVolume(V)}function st(V){k.actions.internal.seekTime(V)}const De=V=>{let ze=a+(V==="forward"?Oi:-Oi);ze<0?ze=0:ze>c&&(ze=c-1),st(ze)},bt=()=>{if(Vo())bf(document),We({message:"exit fullscreen"});else{We({message:"request fullscreen"});const V=ue!=null?ue:At,ze=V.getRootNode(),Ye=ze instanceof ShadowRoot?ze.host:ze,et=ee instanceof HTMLElement&&ee.contains(Ye);gf(ee&&et?ee:V)}},Vi=()=>j(void 0,void 0,void 0,function*(){var V,ze,Ye,et;const xe=Vo();if(xe){try{yield Ie==null?void 0:Ie.remove()}catch(at){We({message:String(at)})}if(ce)try{yield kf(s)}catch(at){We({message:String(at)})}}it.set(xe),k.getAdmanWrapper().setFullscreen(xe),r?(ze=(V=k.callbacks)===null||V===void 0?void 0:V.onFullscreenEnter)===null||ze===void 0||ze.call(V):(et=(Ye=k.callbacks)===null||Ye===void 0?void 0:Ye.onFullscreenExit)===null||et===void 0||et.call(Ye)}),Ai=()=>Pt.set(!1),Hr=V=>{Pt.set(!0),i(31,bi=V.clientX),i(32,wi=V.clientY)},In=()=>{o?Re.set(!1):(Re.set(!0),clearTimeout(gt),Tt(Sl))},qr=V=>{if(ce){In();return}if(n){Ai();return}Ai(),!l&&(k.actions.internal.togglePlay(),$e.set(!1),V.detail===2&&(We({message:"double click on video"}),bt()))},Ur=()=>{if(n){Ai();return}},Qr=V=>{Zt.keyDownHandler(V)},Wr=()=>De("backward"),Yr=()=>De("forward");function Kr(V){nt[V?"unshift":"push"](()=>{Ft=V,i(28,Ft)})}function Gr(V){nt[V?"unshift":"push"](()=>{Zt=V,i(33,Zt)})}function Xr(V){Ct=V,i(29,Ct)}function Jr(V){nt[V?"unshift":"push"](()=>{At=V,i(27,At)})}return t.$$set=V=>{"sources"in V&&i(72,I=V.sources),"store"in V&&i(73,k=V.store),"title"in V&&i(0,O=V.title),"thumbUrl"in V&&i(1,C=V.thumbUrl),"preload"in V&&i(74,Y=V.preload),"autoplay"in V&&i(75,q=V.autoplay),"volume"in V&&i(76,H=V.volume),"muted"in V&&i(77,U=V.muted),"fromTime"in V&&i(78,X=V.fromTime),"canRewindLive"in V&&i(2,fe=V.canRewindLive),"supportLink"in V&&i(3,K=V.supportLink),"showAds"in V&&i(4,F=V.showAds),"adsSlotId"in V&&i(5,te=V.adsSlotId),"adsParams"in V&&i(6,Ne=V.adsParams),"adsPreviewParam"in V&&i(7,ke=V.adsPreviewParam),"duration"in V&&i(8,ie=V.duration),"logoClickable"in V&&i(9,Ke=V.logoClickable),"logoHidden"in V&&i(10,ne=V.logoHidden),"isMobile"in V&&i(11,ce=V.isMobile),"showNextPrevButtons"in V&&i(12,we=V.showNextPrevButtons),"nextButtonActive"in V&&i(13,pe=V.nextButtonActive),"prevButtonActive"in V&&i(14,ve=V.prevButtonActive),"endScreenVideoTitle"in V&&i(15,Pe=V.endScreenVideoTitle),"endScreenVideoThumb"in V&&i(16,he=V.endScreenVideoThumb),"isOneVideoPlaylist"in V&&i(17,ye=V.isOneVideoPlaylist),"outerContainerRef"in V&&i(79,ue=V.outerContainerRef),"playNextVideo"in V&&i(18,z=V.playNextVideo),"playPrevVideo"in V&&i(19,$=V.playPrevVideo),"repeatPlaylist"in V&&i(20,le=V.repeatPlaylist),"fullScreenTarget"in V&&i(80,ee=V.fullScreenTarget),"failoverHosts"in V&&i(81,ot=V.failoverHosts)},t.$$.update=()=>{t.$$.dirty[0]&41943040|t.$$.dirty[3]&24&&i(34,_i=(N===Ce.Video&&_||N===Ce.Ads&&y===qe.INACTIVE)&&!p),t.$$.dirty[0]&25165824|t.$$.dirty[2]&402653184&&i(21,si=(o||b||l)&&!p),t.$$.dirty[0]&8388624|t.$$.dirty[2]&134217728|t.$$.dirty[3]&4&&i(22,ai=(F&&w||!F)&&l&&!p),t.$$.dirty[0]&6291456|t.$$.dirty[2]&536870912&&i(35,yi=r&&!(si||ai)),t.$$.dirty[0]&2048|t.$$.dirty[2]&2048&&k.ui.isMobile.set(ce),t.$$.dirty[0]&2048|t.$$.dirty[2]&100663296|t.$$.dirty[3]&2&&(ci!==f&&ce&&(clearTimeout(gt),f?Re.set(!0):Tt(Sl)),i(88,ci=f)),t.$$.dirty[2]&1073741824|t.$$.dirty[3]&1&&i(36,ki=isFinite(a)&&isFinite(c))},[O,C,fe,K,F,te,Ne,ke,ie,Ke,ne,ce,we,pe,ve,Pe,he,ye,z,$,le,si,ai,p,b,N,Jt,At,Ft,Ct,ri,bi,wi,Zt,_i,yi,ki,n,S,D,R,rt,Ze,Xe,dt,vt,it,Re,$e,mt,Pt,pt,St,Rt,Bt,Ot,ht,Vt,Xt,W,Pi,Qi,Si,G,De,bt,Ai,Hr,In,qr,Ur,Qr,I,k,Y,q,H,U,X,ue,ee,ot,re,Ae,Je,Be,st,gt,ci,l,o,r,c,a,f,w,y,_,Wr,Yr,Kr,Gr,Xr,Jr]}class Tf extends be{constructor(e){super(),ge(this,e,Ef,Cf,me,{sources:72,store:73,title:0,thumbUrl:1,preload:74,autoplay:75,volume:76,muted:77,fromTime:78,canRewindLive:2,supportLink:3,showAds:4,adsSlotId:5,adsParams:6,adsPreviewParam:7,duration:8,logoClickable:9,logoHidden:10,isMobile:11,showNextPrevButtons:12,nextButtonActive:13,prevButtonActive:14,endScreenVideoTitle:15,endScreenVideoThumb:16,isOneVideoPlaylist:17,outerContainerRef:79,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,fullScreenTarget:80,failoverHosts:81,play:82,pause:83,setMuted:84,setVolume:85,seekTime:86},Sf,[-1,-1,-1,-1])}get play(){return this.$$.ctx[82]}get pause(){return this.$$.ctx[83]}get setMuted(){return this.$$.ctx[84]}get setVolume(){return this.$$.ctx[85]}get seekTime(){return this.$$.ctx[86]}}var Mf="data:image/svg+xml,%3csvg width='57' height='60' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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 6h19.489zm.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.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z' fill='%23909499'/%3e%3c/svg%3e";function Lf(t){Se(t,"v-1oqts7t",".playerStub.v-1oqts7t{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}.stubImage.v-1oqts7t{height:60px}.stubImage-white.v-1oqts7t{filter:brightness(0) invert(1)}.title.v-1oqts7t{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 Oo(t){let e,i;return{c(){e=g("div"),i=_e(t[0]),u(e,"class","title v-1oqts7t")},m(n,l){M(n,e,l),v(e,i)},p(n,l){l&1&&Le(i,n[0])},d(n){n&&T(e)}}}function jo(t){let e,i;return{c(){e=g("img"),Ee(e.src,i=Mf)||u(e,"src",i),u(e,"class","stubImage v-1oqts7t"),u(e,"alt",""),E(e,"stubImage-white",t[1]||"")},m(n,l){M(n,e,l)},p(n,l){l&2&&E(e,"stubImage-white",n[1]||"")},d(n){n&&T(e)}}}function Nf(t){let e,i,n,l=t[0]&&Oo(t),o=(!t[0]||!t[1])&&jo(t);return{c(){e=g("div"),l&&l.c(),i=L(),o&&o.c(),u(e,"class","playerStub v-1oqts7t"),u(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(r,s){M(r,e,s),l&&l.m(e,null),v(e,i),o&&o.m(e,null)},p(r,[s]){r[0]?l?l.p(r,s):(l=Oo(r),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!r[0]||!r[1]?o?o.p(r,s):(o=jo(r),o.c(),o.m(e,null)):o&&(o.d(1),o=null),s&2&&n!==(n=r[1]?`background-image: url('${r[1]}')`:"")&&u(e,"style",n)},i:B,o:B,d(r){r&&T(e),l&&l.d(),o&&o.d()}}}function zf(t,e,i){let{title:n}=e,{thumbUrl:l}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"thumbUrl"in o&&i(1,l=o.thumbUrl)},[n,l]}class If extends be{constructor(e){super(),ge(this,e,zf,Nf,me,{title:0,thumbUrl:1},Lf)}}const Rf=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,Bf="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Of=2e3,jf=2e3;class Ff{constructor(e){this.adman=null,this.initialVolume=qi,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new de.Subject,started$:new de.Subject,paused$:new de.Subject,resumed$:new de.Subject,ended$:new de.Subject,skipped$:new de.Subject,clicked$:new de.Subject},this.loadAdman=i=>new Promise((n,l)=>{let o;const r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?n():l()};de.addScript(Bf,i,Of).then(()=>{window.AdmanHTML?n():(window.admanAsyncInit=r,o=window.setTimeout(r,jf))}).catch(()=>{l()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(i,n)=>{de.assertNonNullable(this.adsState),de.assertNonNullable(this.uiState),de.assertNonNullable(this.actions),this.log({message:`ad started, section: ${i}, banner: ${JSON.stringify(n)}`}),this.events.started$.next(i),n.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Oe(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(n.duration),this.adsState.playbackState.set(qe.PLAYING),this.adsState.canSkip.set(n.allowClose),this.adsState.secondsToWatchBeforeSkip.set(n.allowCloseDelay)},this.onAdTimeRemained=({currentTime:i})=>{de.assertNonNullable(this.adsState),this.adsState.position.set(i)},this.onAdPaused=()=>{de.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(qe.PAUSED)},this.onAdPlayed=()=>{de.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(qe.PLAYING)},this.onAdMidrollPoint=()=>{de.assertNonNullable(this.adman),de.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=_t.Midroll,this.adman.start(_t.Midroll)},this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()},this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()},this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()},this.onAdClicked=()=>{var i;this.log({message:"ad clicked"}),(i=this.videoElement)===null||i===void 0||i.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)},this.log=e.createComponentLog("AdmanWrapper")}init(e,i,n){this.actions=e,this.adsState=i,this.uiState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:l,isAutoplay:o,adsContainer:r,adsVideoElement:s,slotId:c,params:a={},duration:d,previewParam:m}=e,f=Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:i,player_height:n,puid10:Rf(i,n),puid11:l?0:1,preview:m,duration:d},a),p={slot:c,wrapper:r,videoEl:s,videoQuality:n,params:f,browser:{mobile:!1}},w=new window.AdmanHTML;w.setDebug(!1),w.onReady(this.onAdsReady),w.onStarted(this.onAdStarted),w.onPlayed(this.onAdPlayed),w.onPaused(this.onAdPaused),w.adMidrollPoint(this.onAdMidrollPoint),w.onClosed(this.onAdClosed),w.onSkipped(this.onAdSkipped),w.onClicked(this.onAdClicked),w.onTimeRemained(this.onAdTimeRemained),w.onCompleted(this.onAdCompleted),w.onError(this.onAdError),w.init(p),this.adman=w,this.videoElement=s,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(p)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}de.assertNonNullable(this.actions),de.assertNonNullable(this.adsState),de.assertNonNullable(this.uiState);const i=this.currentAdSection===_t.Postroll;this.adsState.playbackState.set(qe.INACTIVE),this.currentAdSection=null,this.uiState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){de.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=Oe(this.adsState.playbackState);e===qe.PLAYING?this.pause():e===qe.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var i;this.log({message:`set volume ${e}`}),(i=this.adman)===null||i===void 0||i.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var i;this.log({message:`set fullscreen ${e}`}),(i=this.adman)===null||i===void 0||i.setFullscreen(e)}startPreroll(){de.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=_t.Preroll,this.adman.start(_t.Preroll)}startPostroll(){de.assertNonNullable(this.adman),de.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=_t.Postroll,this.adman.start(_t.Postroll)}play(){de.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){de.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){de.assertNonNullable(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){var n;(n=this.adman)===null||n===void 0||n.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const Df=()=>/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase()),Hf=t=>{const 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:""},qf=(t,e,i)=>{const n=new de.Subscription;return n.add(i.attachTo(t)),n.add(e.slotRequested$.subscribe(()=>{i.logAdSlotRequest()})).add(e.started$.subscribe(l=>{i.logAdStarted(l)})).add(e.paused$.subscribe(()=>{i.logAdPaused()})).add(e.resumed$.subscribe(()=>{i.logAdResumed()})).add(e.ended$.subscribe(()=>{i.logAdEnded()})).add(e.skipped$.subscribe(()=>{i.logAdSkipped()})).add(e.clicked$.subscribe(()=>{i.logAdClicked()})),n},Uf=({interfaceLanguage:t,videoId:e,albumId:i,autoplay:n,isLiveCatchUpMode:l,statPlace:o,statAuthToken:r,isAudioDisabled:s,refreshStatAuthToken:c,callbacks:a,webApi:d})=>{const m={isAudioDisabled:s,live:{isLiveCatchUpMode:!!l}},f=new Ve.Player(m),p=new de.Logger,w=new Ff(p),b=d==null?void 0:d.pictureInPictureApi,y=p.createComponentLog("Store");let N,_,S={};const D=qt([],A=>{let G=[];const re=de.merge(f.events.managedError$,f.events.fatalError$).subscribe(Ae=>{G=[...G,Ae],A(G)});return()=>re.unsubscribe()}),R=qt(!1,A=>{const G=f.events.fatalError$.subscribe(()=>A(!0));return()=>G.unsubscribe()}),j=qt(t),I=(...A)=>{const G=Oe(j);return kr(G,...A)},k=je(Ce.Thumb),O=wt([R,k],([A,G])=>A?Ce.Crashed:G);y({message:"create store"});const C=A=>{y({message:`init video, config: ${JSON.stringify(A)}`}),f.initVideo(A),N=A},Y=new Rn.OneStat({movieId:e,albumId:i,place:o,autoplay:n},{apiEnv:Rn.ApiEnv.VK_ALIAS,refreshAuthToken:c}),q=qf(f,w.events,Y);Y.authorize(r).catch(A=>{y({message:`onestat auth error ${String(A)}`})});const H=()=>{Df()&&_&&wf(_)},U=new de.Subscription().add(f.experimental.element$.subscribe(A=>{A&&(_=A,A.classList.add("player-media"))})).add(f.events.ended$.subscribe(()=>{var A;H(),(A=a==null?void 0:a.onEnded)===null||A===void 0||A.call(a)})).add(f.events.started$.subscribe(()=>Mt(void 0,void 0,void 0,function*(){var A,G;Sn(b)&&(yield b==null?void 0:b.revealPictureInPicture());const re=f.info.muted$.getValue();(A=a==null?void 0:a.onStarted)===null||A===void 0||A.call(a),(G=S.onStarted)===null||G===void 0||G.call(S,re)}))).add(f.events.willSeek$.subscribe(({from:A,to:G})=>{var re;(re=a==null?void 0:a.onSeek)===null||re===void 0||re.call(a,A,G)})).add(f.info.position$.subscribe(A=>{var G;const re=f.info.duration$.getValue();(G=a==null?void 0:a.onTimeupdate)===null||G===void 0||G.call(a,re,A),w.setPosition(A,re)})).add(f.events.fatalError$.subscribe(()=>{var A;(A=a==null?void 0:a.onCrashed)===null||A===void 0||A.call(a)})),X=new de.Subscription,fe=()=>{X.add(f.events.log$.subscribe(A=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${A.component}`,A.message)})).add(p.log$.subscribe(A=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${A.component}.`,A.message)}))},K=()=>{X.unsubscribe()},F=qt(f.info.position$.getValue(),A=>{let G,re;const Ae=()=>{const Je=f.info.playbackState$.getValue(),Be=f.info.isLive$.getValue(),st=f.info.duration$.getValue(),De=f.info.position$.getValue();if([Ve.PlaybackState.PLAYING,Ve.PlaybackState.PAUSED].includes(Je)){const bt=Be?De-st:f.getExactTime();bt!==re&&A(bt),re=bt}G=requestAnimationFrame(Ae)};return Ae(),()=>cancelAnimationFrame(G)}),te=He(f.info.playbackState$),Ne=He(f.info.currentBuffer$),ke=He(f.info.isEnded$),ie=He(f.info.isLive$),Ke=He(f.info.volume$),ne=He(f.info.muted$),ce=He(f.info.availableQualities$),we=He(f.info.availableQualitiesFps$),pe=He(f.info.chromecastState$),ve=He(f.info.chromecastDeviceName$),Pe=He(f.info.currentFormat$),he=He(f.info.throughputEstimation$),ye=He(f.info.videoBitrate$),ue=He(f.info.intrinsicVideoSize$),z=He(f.info.duration$),$=He(f.info.isAudioAvailable$);let le=null;const ee=f.info.isBuffering$,ot=qt(ee.getValue(),A=>{const G=ee.subscribe(re=>{re&&le===null?le=window.setTimeout(()=>{A(ee.getValue()),le=null},Ec):A(re)});return()=>{G.unsubscribe(),le&&clearTimeout(le)}}),Ge=wt([z,ie],([A,G])=>G?-A:A),We=He(f.info.position$),rt=wt([ie,We],([A,G])=>Boolean(A&&G>-de.ACTIVE_LIVE_VALID_DELAY)),Ze=wt([pe],([A])=>A===Ve.ChromecastState.CONNECTED),Xe=je(void 0),dt=He(f.info.isAutoQualityEnabled$,A=>A&&Xe.set(void 0)),vt=He(f.info.currentQuality$,()=>Xe.set(void 0)),it=wt([Xe,vt],([A,G])=>A!=null?A:G),Re=wt([ce,we,dt,it,Pe],([A,G,re,Ae,Je])=>{const Be=[];Je!==Ve.VideoFormat.MPEG&&Be.push({value:di.AUTO,displayValue:I("auto_quality_option"),selected:re});const st=A.filter(De=>De!==Ve.VideoQuality.INVARIANT);for(const De of st){const bt=G[De],Vi=De===Ve.VideoQuality.INVARIANT?I("auto_quality_option"):De;Be.push({value:De,displayValue:`${Vi}${bt?Hf(bt):""}`,selected:re?!1:De===Ae})}return Be}),$e=He(f.info.currentPlaybackRate$),mt=wt([$e],([A])=>{const Je=[];for(let Be=.25;Be<=2;Be+=.25)Je.push({value:Be,displayValue:Be===1?I("playback_rate_1"):I("playback_rate",{multiplier:Be.toString(10)}),selected:A===Be});return Je}),It=wt([Ne,Ge],([A,G],re)=>{var Ae;return re(((Ae=A==null?void 0:A.end)!==null&&Ae!==void 0?Ae:0)/G)}),Pt=()=>{y({message:"toggle muted"});const A=f.info.muted$.getValue(),Ae=!(f.info.volume$.getValue()===0||A);St(Ae)},pt=(A,G=A,re=!1)=>{var Ae,Je;const Be=!re,st=f.info.muted$.getValue();y({message:`set volume, volume: ${A}, preferredVolume: ${G}, internalCall: ${Be}`}),f.setVolume(A),w.setVolume(A),Be&&((Ae=a==null?void 0:a.onVolumeChange)===null||Ae===void 0||Ae.call(a,A)),Po(G),st&&(f.setMuted(!1),Be&&((Je=a==null?void 0:a.onUnmute)===null||Je===void 0||Je.call(a)),So(!1))},St=(A,G=!1)=>{var re,Ae,Je;const Be=!G,st=f.info.volume$.getValue();if(y({message:`set muted, currentVolume: ${st}, mute: ${A}, internalCall: ${Be}`}),f.setMuted(A),w.setVolume(A?0:st),So(A),Be&&(A?(re=a==null?void 0:a.onMute)===null||re===void 0||re.call(a):(Ae=a==null?void 0:a.onUnmute)===null||Ae===void 0||Ae.call(a)),st===0){let De=Dr();De===0&&(De=Ac,Po(De)),f.setVolume(De),w.setVolume(De),Be&&((Je=a==null?void 0:a.onVolumeChange)===null||Je===void 0||Je.call(a,De))}},Rt=()=>{f.prepare()},Bt=()=>{var A,G;if(de.assertNonNullable(Fe),y({message:"toggle play"}),Oe(Fe.playerPhase)===Ce.Ads){w.togglePlay();return}f.info.playbackState$.getValue()!==Ve.PlaybackState.PLAYING?(f.info.isEnded$.getValue()&&(y({message:"toggle play, video ended, seek to 0"}),f.seekTime(0)),y({message:"toggle play, call player.play"}),f.play(),(A=a==null?void 0:a.onPlay)===null||A===void 0||A.call(a)):(y({message:"toggle play, call player.pause"}),f.pause(),(G=a==null?void 0:a.onPause)===null||G===void 0||G.call(a))},Ot=A=>{y({message:`set quality, quality: ${A}`}),f.setAutoQuality(A===di.AUTO),A!==di.AUTO&&(Xe.set(A),f.setQuality(A))},ht=A=>{f.setPlaybackRate(A)},jt=()=>{const A=Oe(mt),G=A.findIndex(({selected:Ae})=>Ae);if(G===A.length-1)return;const re=A[G+1];ht(re.value)},Gt=()=>{const A=Oe(mt),G=A.findIndex(({selected:Ae})=>Ae);if(G===0)return;const re=A[G-1];ht(re.value)},Vt=(A,G=!0)=>{if(y({message:`seek to time, time: ${A}`}),f.info.isLive$.getValue()){const re=f.info.duration$.getValue(),Ae=Math.min(0,re+A);f.seekTime(Ae,G)}else f.seekTime(A,G)},Xt=A=>{y({message:`seek to percent, percent: ${A}`});const G=Math.round(Oe(Ge)*A);Vt(G,!1)},Ie=A=>{y({message:`seek external, time: ${A}`}),f.seekTime(f.info.isLive$.getValue()?-A:A)},W=je(void 0),Jt=je(!1),At=A=>{y({message:`start scrubbing, progress: ${A}`}),Jt.set(!0),Ft(A)},Ft=A=>{W.set(A)};let Ct;const gt=()=>{W.set(void 0),Jt.set(!1)},Et=()=>{clearTimeout(Ct),Ct=window.setTimeout(()=>{gt()},500),_==null||_.removeEventListener("canplay",Et)},ri=A=>{y({message:`complete scrubbing, progress: ${A}`}),Xt(A),Oe(Fe.ui.isMobile)&&Oe(Fe.state.currentFormat$)===Ve.VideoFormat.HLS?_==null||_.addEventListener("canplay",Et):gt()},bi=wt([F,Ge,W],([A,G,re],Ae)=>{Ae(de.isNonNullable(re)?re*G:A)}),wi=()=>{y({message:"switch to active live"}),f.seekTime(0)},Zt=()=>w.skip(),_i=(A=!0)=>{de.assertNonNullable(Fe),y({message:`switch from ads to video, callPlay: ${A}`}),k.set(Ce.Video),A&&f.play()},si=()=>{de.assertNonNullable(Fe),y({message:"switch from video to ads"}),Fe.actions.internal.pause(),H(),k.set(Ce.Ads)},ai=()=>(de.assertNonNullable(Fe),ys(f,N,Fe)),yi=()=>(de.assertNonNullable(Fe),ks(f,N,Fe)),ci=()=>_,ki=()=>{y({message:"toggle chromecast"}),f.toggleChromecast()},Pi=A=>{var G;de.assertNonNullable(Fe);const re=!A;if(Oe(Fe.playerPhase)===Ce.Ads){y({message:`pause ads, internalCall: ${re}`}),w.pause();return}y({message:`pause video, internalCall: ${re}`}),re&&((G=a==null?void 0:a.onPause)===null||G===void 0||G.call(a)),f.pause()},Qi=A=>{var G;de.assertNonNullable(Fe);const re=!A;if(Oe(Fe.playerPhase)===Ce.Ads){y({message:`play ads, internalCall: ${re}`}),w.play();return}y({message:`play video, internalCall: ${re}`}),re&&((G=a==null?void 0:a.onPlay)===null||G===void 0||G.call(a)),f.play()},Si=(A,G)=>{de.assertNonNullable(Fe),y({message:`first start, show ads: ${A}, internalCall: ${!G}`}),A?k.set(Ce.Ads):(k.set(Ce.Video),G?f.play():Fe.actions.internal.togglePlay())},Tt=()=>{Y.destroy(),q.unsubscribe(),U.unsubscribe(),X.unsubscribe(),f.destroy(),w.destroy()},Fe={interfaceLanguage$:j,initVideo:C,videoId:e,playerPhase:O,state:{positionExact$:F,positionWithScrubbing$:bi,duration$:Ge,playbackState$:te,isLoaderVisible:ot,bufferedProgress$:It,isLive$:ie,isActiveLive$:rt,isEnded$:ke,muted$:ne,volume$:Ke,currentQuality$:it,isAutoQualityEnabled$:dt,availableQualities$:Re,currentPlaybackRate$:$e,availablePlaybackRates$:mt,chromecastState$:pe,chromecastDeviceName$:ve,chromecastConnected$:Ze,currentFormat$:Pe,throughputEstimation$:he,videoBitrate$:ye,videoSize$:ue,errorLog$:D,crashed$:R,isAudioAvailable$:$,isAudioDisabled:!!s},ui:{controlsVisible:je(!1),isFullscreen:je(!1),isAutoplay:je(!1),contextMenuVisible:je(!1),debugPanelVisible:je(!1),playerSize:je({width:0,height:0}),isMobile:je(!1),mobileUnmuteButtonExpanded:je(!1),mobileUnmuteButtonVisible:je(!1),settingsMenuVisible:je(!1),scrubbingInProgress:Jt},ads:{position:je(0),duration:je(0),playbackState:je(qe.INACTIVE),canSkip:je(!1),secondsToWatchBeforeSkip:je(0),postrollPassed:je(!1)},webApi:{pictureInPictureApi:b},actions:{internal:{preload:Rt,firstStart:A=>Si(A,!1),pause:()=>Pi(!1),togglePlay:Bt,toggleMuted:Pt,setVolume:pt,setQuality:Ot,setPlaybackRate:ht,incrementPlaybackRate:jt,decrementPlaybackRate:Gt,startScrubbing:At,progressScrubbing:Ft,completeScrubbing:ri,toggleChromecast:ki,switchToActiveLive:wi,switchFromAdsToVideo:_i,switchFromVideoToAds:si,skipAd:Zt,getDebugTextData:ai,getDebugPanelData:yi,getVideoElement:ci,seekTime:A=>Vt(A),startLogging:fe,stopLogging:K},external:{firstStart:A=>Si(A,!0),play:()=>Qi(!0),pause:()=>Pi(!0),seekTime:A=>Ie(A),setMuted:A=>St(A,!0),setVolume:A=>pt(A,A,!0)}},callbacks:a,setUiCallbacks:A=>{S=Object.assign({},A)},getAdmanWrapper:()=>w,getLogger:()=>p,destroy:Tt};return Fe};class Qf{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){const e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(const[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch(l){throw new Error(`The media session action "${i}" is not supported yet.`)}}}class Wf{static getLatestSupportedVersion(){const e=new Lr;if(e.isSupported())return e}}function Fo(t,e){var i,n;const l=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(const r of l)o[r]=(n=(i=e[r])!==null&&i!==void 0?i:t[r])!==null&&n!==void 0?n:void 0;return o}var fn,vn;const Yf={preload:!0,autoplay:!1,repeat:!1,muted:!1,fromTime:0,canRewindLive:!0,supportLink:Cc,showAds:!1,interfaceLanguage:exports.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(vn=(fn=navigator==null?void 0:navigator.userAgentData)===null||fn===void 0?void 0:fn.mobile)!==null&&vn!==void 0?vn:/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{}};class Kf extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this.pictureInPictureApi=void 0,this.mediaSessionApi=void 0,this.unsubscribePlayerPhaseSubscription=void 0,this._shadowRoot=this.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.logger=new de.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new de.Subscription,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){var e,i;if(Boolean(this.store))return;const l=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,o=(i=this.getAttribute("stub-thumb-url"))!==null&&i!==void 0?i:void 0;this.svelteStubComponent=new If({target:this.playerContainer,props:{title:l,thumbUrl:o}})}disconnectedCallback(){var e,i,n;(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)===null||n===void 0||n.call(this)}needToShowNextPrevButtons(){return this.config?this.config.videos.length>1:!1}isNextButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.config.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}getNextVideoInfo(){if(!this.config)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.config.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={}){if(!this.config)return;const{albumId:n,statPlace:l,statAuthToken:o,refreshStatAuthToken:r,preload:s,autoplay:c,volume:a,muted:d,fromTime:m,canRewindLive:f,supportLink:p,showAds:w,adsSlotId:b,adsParams:y={},adsPreviewParam:N,interfaceLanguage:_,logoClickable:S,logoHidden:D,isMobile:R,isAudioDisabled:j,isLiveCatchUpMode:I,fullScreenTarget:k,failoverHosts:O,callbacks:C}=Fo(this.config,i),{sources:Y,title:q,thumbUrl:H,unitedVideoId:U,duration:X,adsParams:fe={}}=e,K=Object.assign(Object.assign({},y),fe),F=this.getNextVideoInfo(),te={sources:Y,title:q,thumbUrl:H,unitedVideoId:U,albumId:n,statPlace:l,autoplay:c,muted:d,volume:a,fromTime:m,canRewindLive:f,supportLink:p,showAds:w,adsSlotId:b,adsParams:K,adsPreviewParam:N,duration:X,logoClickable:S,logoHidden:D,isMobile:R,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:F.nextVideoTitle,endScreenVideoThumb:F.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ne={pictureInPictureApi:this.pictureInPictureApi};this.log({message:`create player, props: ${JSON.stringify(te)}`}),this.store=Uf({interfaceLanguage:_,videoId:U,albumId:n,autoplay:c,isLiveCatchUpMode:I,statPlace:l,isAudioDisabled:j,statAuthToken:o,refreshStatAuthToken:r,callbacks:C,webApi:Ne}),this.store.state.currentFormat$.subscribe(ke=>{var ie;(ie=C==null?void 0:C.onCurrentFormatChanged)===null||ie===void 0||ie.call(C,ke)}),this.store.state.throughputEstimation$.subscribe(ke=>{var ie;(ie=C==null?void 0:C.onThroughputEstimationChanged)===null||ie===void 0||ie.call(C,ke)}),this.store.state.videoBitrate$.subscribe(ke=>{var ie;(ie=C==null?void 0:C.onVideoBitrateChanged)===null||ie===void 0||ie.call(C,ke)}),this.initMediaSession(),this.svelteRootComponent=new Tf({target:this.playerContainer,props:{sources:Y,store:this.store,title:q,thumbUrl:H,preload:s,autoplay:c,muted:d,volume:a,fromTime:m,canRewindLive:f,supportLink:p,showAds:w,adsSlotId:b,adsParams:K,adsPreviewParam:N,duration:X,logoClickable:S,logoHidden:D,isMobile:R,failoverHosts:O,fullScreenTarget:k,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:F.nextVideoTitle,endScreenVideoThumb:F.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist()}})}playNextVideo(){this.config&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.config.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.config&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.config.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(){var e;if(!this.config)return;const i=this.config.videos[this.currentPlayingVideoIndex];if(!i){this.log({message:"no next video"});return}(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),setTimeout(()=>this.createPlayer(i,{autoplay:!0,fromTime:0}),0)}initPlayer(e){var i,n;if(!Array.isArray(e.videos)||e.videos.length===0)throw new Error("empty videos");this.config=Fo(Yf,$r(e,l=>l instanceof HTMLElement?l:void 0)),this.currentPlayingVideoIndex=0,this.pictureInPictureApi=this.config.isPictureInPictureEnabled?Wf.getLatestSupportedVersion():void 0,this.mediaSessionApi=this.config.isMediaSessionEnabled?new Qf:void 0,(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(e.videos[0]),Xc(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.config?this.config.videos.length===1:!1}updateNextVideos(e){var i;if(!this.config)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.config.videos.splice(this.currentPlayingVideoIndex+1),this.config.videos.push(...e);const n=this.getNextVideoInfo();(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(i=this.store)===null||i===void 0?void 0:i.playerPhase.subscribe(n=>{n===Ce.Video?this.setupMediaSessionForVideo():n===Ce.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.config||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}=Object.assign({},this.config.videos[this.currentPlayingVideoIndex]),n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)],["nexttrack",()=>this.playNextVideo()],["previoustrack",()=>this.playPrevVideo()]];this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.config||!this.mediaSessionApi))try{const e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i)}catch(e){this.log({message:e.message})}}play(){var e;this.log({message:"play"}),(e=this.svelteRootComponent)===null||e===void 0||e.play()}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,i;if(!this.config)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.config.videos[0];n&&((i=this.svelteRootComponent)===null||i===void 0||i.$destroy(),this.createPlayer(n))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setMuted(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setVolume(e)}setRepeat(e){var i;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var i;this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.seekTime(e)}}const Gf=()=>{window.customElements.define("vk-video-player",Kf)};Object.defineProperty(exports,"VideoFormat",{enumerable:!0,get:function(){return Ve.VideoFormat}});Object.defineProperty(exports,"VideoQuality",{enumerable:!0,get:function(){return Ve.VideoQuality}});exports.registerPlayerWebComponent=Gf;