@vkontakte/videoplayer 1.1.47-dev.ada35c47.0 → 1.1.47-dev.f2c724ce.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.47-dev.ada35c47.0
3
- * Mon, 14 Oct 2024 11:36:56 GMT
2
+ * @vkontakte/videoplayer v1.1.47-dev.f2c724ce.0
3
+ * Tue, 15 Oct 2024 06:49:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-47/doc/
5
5
  */
6
- "use strict";var ch=Object.create;var ds=Object.defineProperty,fh=Object.defineProperties,dh=Object.getOwnPropertyDescriptor,mh=Object.getOwnPropertyDescriptors,ph=Object.getOwnPropertyNames,Ff=Object.getOwnPropertySymbols,_h=Object.getPrototypeOf,Hf=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable;var ua=(i,e,t)=>e in i?ds(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))Hf.call(e,t)&&ua(i,t,e[t]);if(Ff)for(var t of Ff(e))hh.call(e,t)&&ua(i,t,e[t]);return i},It=(i,e)=>fh(i,mh(e));var gh=(i,e)=>{for(var t in e)ds(i,t,{get:e[t],enumerable:!0})},qf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ph(e))!Hf.call(i,o)&&o!==t&&ds(i,o,{get:()=>e[o],enumerable:!(n=dh(e,o))||n.enumerable});return i};var Uf=(i,e,t)=>(t=i!=null?ch(_h(i)):{},qf(e||!i||!i.__esModule?ds(t,"default",{value:i,enumerable:!0}):t,i)),bh=i=>qf(ds({},"__esModule",{value:!0}),i);var Ei=(i,e,t)=>ua(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});var G8={};gh(G8,{ControlButtonType:()=>ws,GridTypes:()=>Po,InterfaceLanguage:()=>ts.InterfaceLanguage,MenuItemType:()=>vs,VERSION:()=>sr,VKNumericLanguage:()=>ts.VKNumericLanguage,VideoFormat:()=>oa.VideoFormat,VideoQuality:()=>oa.VideoQuality,loadVKLangPack:()=>ts.loadVKLangPack,registerPlayerWebComponent:()=>j8});module.exports=bh(G8);function me(){}function te(i,e){for(let t in e)i[t]=e[t];return i}function ca(i){return i()}function Rs(){return Object.create(null)}function ct(i){i.forEach(ca)}function ii(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Vs;function To(i,e){return i===e?!0:(Vs||(Vs=document.createElement("a")),Vs.href=e,i===Vs.href)}function zf(i){return Object.keys(i).length===0}function ni(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return ni(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ni(e,t))}function Pe(i,e,t,n){if(i){let o=Wf(i,e,t,n);return i[0](o)}}function Wf(i,e,t,n){return i[1]&&n?te(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,r){if(o){let s=Wf(e,t,n,r);i.p(s,o)}}function Me(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _e(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Kf(i){return i==null?"":i}function Sr(i){return i&&ii(i.destroy)?i.destroy:me}var tr=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Bs=class i{constructor(e){Ei(this,"_listeners","WeakMap"in tr?new WeakMap:void 0);Ei(this,"_observer");Ei(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Bs.entries="WeakMap"in tr?new WeakMap:void 0;var xf=!1;function jf(){xf=!0}function Gf(){xf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Yf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,wh(n,o)}}function Yf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function wh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function ui(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Z(){return He(" ")}function Xe(){return He("")}function ye(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ci(i){return function(e){return e.preventDefault(),i.call(this,e)}}function wt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function he(i,e){for(let t in e)f(i,t,e[t])}function Qf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function yi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function Q(i,e,t){i.classList.toggle(e,!!t)}function Zf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ht(i,e){return new i(e)}var Do;function Io(i){Do=i}function Tr(){if(!Do)throw new Error("Function called outside component initialization");return Do}function Bt(i){Tr().$$.on_mount.push(i)}function no(i){Tr().$$.on_destroy.push(i)}function Ir(i,e){return Tr().$$.context.set(i,e),e}function Pr(i){return Tr().$$.context.get(i)}function ms(){return Tr().$$.context}function Wn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var ir=[];var ve=[],Ar=[],da=[],Jf=Promise.resolve(),ma=!1;function pa(){ma||(ma=!0,Jf.then(Ds))}function oo(){return pa(),Jf}function ps(i){Ar.push(i)}function We(i){da.push(i)}var fa=new Set,Er=0;function Ds(){if(Er!==0)return;let i=Do;do{try{for(;Er<ir.length;){let e=ir[Er];Er++,Io(e),Ph(e.$$)}}catch(e){throw ir.length=0,Er=0,e}for(Io(null),ir.length=0,Er=0;ve.length;)ve.pop()();for(let e=0;e<Ar.length;e+=1){let t=Ar[e];fa.has(t)||(fa.add(t),t())}Ar.length=0}while(ir.length);for(;da.length;)da.pop()();ma=!1,fa.clear(),Io(i)}function Ph(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ps)}}function $f(i){let e=[],t=[];Ar.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ar=e}var Ns=new Set,nr;function le(){nr={r:0,c:[],p:nr}}function ae(){nr.r||ct(nr.c),nr=nr.p}function d(i,e){i&&i.i&&(Ns.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ns.has(i))return;Ns.add(i),nr.c.push(()=>{Ns.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function No(i){return typeof i=="object"&&i!==null?i:{}}var Eh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Ah=new Set([...Eh]);function Ke(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function O(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ps(()=>{let r=i.$$.on_mount.map(ca).filter(ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach(ps)}function D(i,e){let t=i.$$;t.fragment!==null&&($f(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Lh(i,e){i.$$.dirty[0]===-1&&(ir.push(i),pa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function H(i,e,t,n,o,r,s=null,a=[-1]){let l=Do;Io(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Rs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Rs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Lh(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){jf();let m=Qf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Gf(),Ds()}Io(l)}var Vh;typeof HTMLElement=="function"&&(Vh=class extends HTMLElement{constructor(e,t,n){super();Ei(this,"$$ctor");Ei(this,"$$s");Ei(this,"$$c");Ei(this,"$$cn",!1);Ei(this,"$$d",{});Ei(this,"$$r",!1);Ei(this,"$$p_d",{});Ei(this,"$$l",{});Ei(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Zf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=_a(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:It(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=_a(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_a(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function _a(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{constructor(){Ei(this,"$$");Ei(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!ii(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!zf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var ed="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ed);var SF=require("@vkontakte/videoplayer-core"),jn=require("@vkontakte/videoplayer-shared"),G_=require("@vkontakte/videoplayer-statistics");var Mr=require("@vkontakte/videoplayer-shared");var Rh={isMobile:void 0,defaultLanguage:Mr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Mr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},td=i=>(0,Mr.fillWithDefault)(i,Rh),id=i=>Ir("ui-config",i),Yt=()=>Pr("ui-config");var _s="vk_player_debug_panel_opened";var nd="videoplayer",od="videoplayer";var _o={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},rd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),sd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ld=new Set(["ShiftRight","ShiftLeft"]);var ad=["TIMELINE"],hs=[...ad,"GRAPH_BUTTON"],ha=[...ad,"PLAY_BUTTON"],Os=[...hs,"PLAY_BUTTON"];var Po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Po||{}),rr={xs:0,s:1,m:2,l:3,xl:4};var Lr=[];function Zn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!Lr.length;for(let u of n)u[1](),Lr.push(u,i);if(l){for(let u=0;u<Lr.length;u+=2)Lr[u][0](Lr[u+1]);Lr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function oi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Zn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ii(g)?g:me},w=o.map((g,I)=>ni(g,b=>{u[I]=b,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ct(w),m(),l=!1}})}var gs=require("@vkontakte/videoplayer-shared"),ud=require("@vkontakte/videoplayer-core"),cd=require("@vkontakte/videoplayer-statistics");var Fs="prod",sr="1.1.47-dev.ada35c47.0";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var fd=Symbol("storeContext"),dd=Symbol("microStoresContext"),md=(i,e)=>{Ir(fd,i),Ir(dd,e),Fs==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=Pr(fd);return(0,gs.assertNonNullable)(i,"Store context is empty!"),i},Kn=()=>{let i=Pr(dd);return(0,gs.assertNonNullable)(i,"MicroStores context is empty!"),i},Pt=(i,e)=>ga(i,i.getValue(),e),ga=(i,e,t)=>Zn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),pd=(i,e,t)=>{var F,T,C,E,j,N;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${sr} (core: ${ud.VERSION}, stat: ${cd.VERSION}, shared: ${gs.VERSION})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ "use strict";var ch=Object.create;var ds=Object.defineProperty,fh=Object.defineProperties,dh=Object.getOwnPropertyDescriptor,mh=Object.getOwnPropertyDescriptors,ph=Object.getOwnPropertyNames,Ff=Object.getOwnPropertySymbols,_h=Object.getPrototypeOf,Hf=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable;var ua=(i,e,t)=>e in i?ds(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))Hf.call(e,t)&&ua(i,t,e[t]);if(Ff)for(var t of Ff(e))hh.call(e,t)&&ua(i,t,e[t]);return i},It=(i,e)=>fh(i,mh(e));var gh=(i,e)=>{for(var t in e)ds(i,t,{get:e[t],enumerable:!0})},qf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ph(e))!Hf.call(i,o)&&o!==t&&ds(i,o,{get:()=>e[o],enumerable:!(n=dh(e,o))||n.enumerable});return i};var Uf=(i,e,t)=>(t=i!=null?ch(_h(i)):{},qf(e||!i||!i.__esModule?ds(t,"default",{value:i,enumerable:!0}):t,i)),bh=i=>qf(ds({},"__esModule",{value:!0}),i);var Ei=(i,e,t)=>ua(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});var G8={};gh(G8,{ControlButtonType:()=>ws,GridTypes:()=>Po,InterfaceLanguage:()=>ts.InterfaceLanguage,MenuItemType:()=>vs,VERSION:()=>sr,VKNumericLanguage:()=>ts.VKNumericLanguage,VideoFormat:()=>oa.VideoFormat,VideoQuality:()=>oa.VideoQuality,loadVKLangPack:()=>ts.loadVKLangPack,registerPlayerWebComponent:()=>j8});module.exports=bh(G8);function me(){}function te(i,e){for(let t in e)i[t]=e[t];return i}function ca(i){return i()}function Rs(){return Object.create(null)}function ct(i){i.forEach(ca)}function ii(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Vs;function To(i,e){return i===e?!0:(Vs||(Vs=document.createElement("a")),Vs.href=e,i===Vs.href)}function zf(i){return Object.keys(i).length===0}function ni(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return ni(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ni(e,t))}function Pe(i,e,t,n){if(i){let o=Wf(i,e,t,n);return i[0](o)}}function Wf(i,e,t,n){return i[1]&&n?te(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,r){if(o){let s=Wf(e,t,n,r);i.p(s,o)}}function Me(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _e(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Kf(i){return i==null?"":i}function Sr(i){return i&&ii(i.destroy)?i.destroy:me}var tr=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Bs=class i{constructor(e){Ei(this,"_listeners","WeakMap"in tr?new WeakMap:void 0);Ei(this,"_observer");Ei(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Bs.entries="WeakMap"in tr?new WeakMap:void 0;var xf=!1;function jf(){xf=!0}function Gf(){xf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Yf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,wh(n,o)}}function Yf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function wh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function ui(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Z(){return He(" ")}function Xe(){return He("")}function ye(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ci(i){return function(e){return e.preventDefault(),i.call(this,e)}}function wt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function he(i,e){for(let t in e)f(i,t,e[t])}function Qf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function yi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function Q(i,e,t){i.classList.toggle(e,!!t)}function Zf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ht(i,e){return new i(e)}var Do;function Io(i){Do=i}function Tr(){if(!Do)throw new Error("Function called outside component initialization");return Do}function Bt(i){Tr().$$.on_mount.push(i)}function no(i){Tr().$$.on_destroy.push(i)}function Ir(i,e){return Tr().$$.context.set(i,e),e}function Pr(i){return Tr().$$.context.get(i)}function ms(){return Tr().$$.context}function Wn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var ir=[];var ve=[],Ar=[],da=[],Jf=Promise.resolve(),ma=!1;function pa(){ma||(ma=!0,Jf.then(Ds))}function oo(){return pa(),Jf}function ps(i){Ar.push(i)}function We(i){da.push(i)}var fa=new Set,Er=0;function Ds(){if(Er!==0)return;let i=Do;do{try{for(;Er<ir.length;){let e=ir[Er];Er++,Io(e),Ph(e.$$)}}catch(e){throw ir.length=0,Er=0,e}for(Io(null),ir.length=0,Er=0;ve.length;)ve.pop()();for(let e=0;e<Ar.length;e+=1){let t=Ar[e];fa.has(t)||(fa.add(t),t())}Ar.length=0}while(ir.length);for(;da.length;)da.pop()();ma=!1,fa.clear(),Io(i)}function Ph(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ps)}}function $f(i){let e=[],t=[];Ar.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ar=e}var Ns=new Set,nr;function le(){nr={r:0,c:[],p:nr}}function ae(){nr.r||ct(nr.c),nr=nr.p}function d(i,e){i&&i.i&&(Ns.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ns.has(i))return;Ns.add(i),nr.c.push(()=>{Ns.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function No(i){return typeof i=="object"&&i!==null?i:{}}var Eh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Ah=new Set([...Eh]);function Ke(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function O(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ps(()=>{let r=i.$$.on_mount.map(ca).filter(ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach(ps)}function D(i,e){let t=i.$$;t.fragment!==null&&($f(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Lh(i,e){i.$$.dirty[0]===-1&&(ir.push(i),pa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function H(i,e,t,n,o,r,s=null,a=[-1]){let l=Do;Io(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Rs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Rs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Lh(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){jf();let m=Qf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Gf(),Ds()}Io(l)}var Vh;typeof HTMLElement=="function"&&(Vh=class extends HTMLElement{constructor(e,t,n){super();Ei(this,"$$ctor");Ei(this,"$$s");Ei(this,"$$c");Ei(this,"$$cn",!1);Ei(this,"$$d",{});Ei(this,"$$r",!1);Ei(this,"$$p_d",{});Ei(this,"$$l",{});Ei(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Zf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=_a(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:It(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=_a(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_a(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function _a(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{constructor(){Ei(this,"$$");Ei(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!ii(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!zf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var ed="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ed);var SF=require("@vkontakte/videoplayer-core"),jn=require("@vkontakte/videoplayer-shared"),G_=require("@vkontakte/videoplayer-statistics");var Mr=require("@vkontakte/videoplayer-shared");var Rh={isMobile:void 0,defaultLanguage:Mr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Mr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},td=i=>(0,Mr.fillWithDefault)(i,Rh),id=i=>Ir("ui-config",i),Yt=()=>Pr("ui-config");var _s="vk_player_debug_panel_opened";var nd="videoplayer",od="videoplayer";var _o={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},rd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),sd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ld=new Set(["ShiftRight","ShiftLeft"]);var ad=["TIMELINE"],hs=[...ad,"GRAPH_BUTTON"],ha=[...ad,"PLAY_BUTTON"],Os=[...hs,"PLAY_BUTTON"];var Po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Po||{}),rr={xs:0,s:1,m:2,l:3,xl:4};var Lr=[];function Zn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!Lr.length;for(let u of n)u[1](),Lr.push(u,i);if(l){for(let u=0;u<Lr.length;u+=2)Lr[u][0](Lr[u+1]);Lr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function oi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Zn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ii(g)?g:me},w=o.map((g,I)=>ni(g,b=>{u[I]=b,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ct(w),m(),l=!1}})}var gs=require("@vkontakte/videoplayer-shared"),ud=require("@vkontakte/videoplayer-core"),cd=require("@vkontakte/videoplayer-statistics");var Fs="prod",sr="1.1.47-dev.f2c724ce.0";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var fd=Symbol("storeContext"),dd=Symbol("microStoresContext"),md=(i,e)=>{Ir(fd,i),Ir(dd,e),Fs==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=Pr(fd);return(0,gs.assertNonNullable)(i,"Store context is empty!"),i},Kn=()=>{let i=Pr(dd);return(0,gs.assertNonNullable)(i,"MicroStores context is empty!"),i},Pt=(i,e)=>ga(i,i.getValue(),e),ga=(i,e,t)=>Zn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),pd=(i,e,t)=>{var F,T,C,E,j,N;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${sr} (core: ${ud.VERSION}, stat: ${cd.VERSION}, shared: ${gs.VERSION})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ie)=>{var re;let ce=`${ie}) Type: ${W.id}
8
8
  `,U=`Message: ${W.message} (${W.thrown})
9
9
  `,J=`Trace: ${(re=W.thrown)==null?void 0:re.stack}
package/es2015.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.47-dev.ada35c47.0
3
- * Mon, 14 Oct 2024 11:36:56 GMT
2
+ * @vkontakte/videoplayer v1.1.47-dev.f2c724ce.0
3
+ * Tue, 15 Oct 2024 06:49:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-47/doc/
5
5
  */
6
- var B_=Object.defineProperty,D_=Object.defineProperties;var N_=Object.getOwnPropertyDescriptors;var Sf=Object.getOwnPropertySymbols;var O_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable;var Zl=(i,e,t)=>e in i?B_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))O_.call(e,t)&&Zl(i,t,e[t]);if(Sf)for(var t of Sf(e))F_.call(e,t)&&Zl(i,t,e[t]);return i},St=(i,e)=>D_(i,N_(e));var Ii=(i,e,t)=>Zl(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function te(i,e){for(let t in e)i[t]=e[t];return i}function Xl(i){return i()}function bs(){return Object.create(null)}function ct(i){i.forEach(Xl)}function ei(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var gs;function wo(i,e){return i===e?!0:(gs||(gs=document.createElement("a")),gs.href=e,i===gs.href)}function Tf(i){return Object.keys(i).length===0}function ti(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return ti(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ti(e,t))}function Pe(i,e,t,n){if(i){let o=If(i,e,t,n);return i[0](o)}}function If(i,e,t,n){return i[1]&&n?te(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,r){if(o){let s=If(e,t,n,r);i.p(s,o)}}function Me(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _e(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Pf(i){return i==null?"":i}function gr(i){return i&&ei(i.destroy)?i.destroy:me}var Xo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var vs=class i{constructor(e){Ii(this,"_listeners","WeakMap"in Xo?new WeakMap:void 0);Ii(this,"_observer");Ii(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};vs.entries="WeakMap"in Xo?new WeakMap:void 0;var Ef=!1;function Af(){Ef=!0}function Mf(){Ef=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Lf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,U_(n,o)}}function Lf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function U_(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Z(){return He(" ")}function Xe(){return He("")}function ye(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ai(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function he(i,e){for(let t in e)f(i,t,e[t])}function Vf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function bi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function Q(i,e,t){i.classList.toggle(e,!!t)}function Rf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ot(i,e){return new i(e)}var Ao;function ko(i){Ao=i}function br(){if(!Ao)throw new Error("Function called outside component initialization");return Ao}function Vt(i){br().$$.on_mount.push(i)}function eo(i){br().$$.on_destroy.push(i)}function vr(i,e){return br().$$.context.set(i,e),e}function yr(i){return br().$$.context.get(i)}function Jr(){return br().$$.context}function qn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Jo=[];var ve=[],kr=[],$l=[],Df=Promise.resolve(),ea=!1;function ta(){ea||(ea=!0,Df.then(ys))}function to(){return ta(),Df}function $r(i){kr.push(i)}function We(i){$l.push(i)}var Jl=new Set,wr=0;function ys(){if(wr!==0)return;let i=Ao;do{try{for(;wr<Jo.length;){let e=Jo[wr];wr++,ko(e),G_(e.$$)}}catch(e){throw Jo.length=0,wr=0,e}for(ko(null),Jo.length=0,wr=0;ve.length;)ve.pop()();for(let e=0;e<kr.length;e+=1){let t=kr[e];Jl.has(t)||(Jl.add(t),t())}kr.length=0}while(Jo.length);for(;$l.length;)$l.pop()();ea=!1,Jl.clear(),ko(i)}function G_(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach($r)}}function Nf(i){let e=[],t=[];kr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),kr=e}var ws=new Set,$o;function le(){$o={r:0,c:[],p:$o}}function ae(){$o.r||ct($o.c),$o=$o.p}function d(i,e){i&&i.i&&(ws.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(ws.has(i))return;ws.add(i),$o.c.push(()=>{ws.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Mo(i){return typeof i=="object"&&i!==null?i:{}}var Y_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Q_=new Set([...Y_]);function Ke(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function O(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),$r(()=>{let r=i.$$.on_mount.map(Xl).filter(ei);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach($r)}function D(i,e){let t=i.$$;t.fragment!==null&&(Nf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function X_(i,e){i.$$.dirty[0]===-1&&(Jo.push(i),ta(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function H(i,e,t,n,o,r,s=null,a=[-1]){let l=Ao;ko(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:bs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:bs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&X_(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Af();let m=Vf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Mf(),ys()}ko(l)}var J_;typeof HTMLElement=="function"&&(J_=class extends HTMLElement{constructor(e,t,n){super();Ii(this,"$$ctor");Ii(this,"$$s");Ii(this,"$$c");Ii(this,"$$cn",!1);Ii(this,"$$d",{});Ii(this,"$$r",!1);Ii(this,"$$p_d",{});Ii(this,"$$l",{});Ii(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Rf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ia(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:St(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ia(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ia(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ia(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{constructor(){Ii(this,"$$");Ii(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!ei(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Tf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Of="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Of);import"@vkontakte/videoplayer-core";import{noop as qr,safeStorage as U8,throttleFn as z8,clientChecker as W8}from"@vkontakte/videoplayer-shared";import{SeekAction as K8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as $_,fillWithDefault as eh,VideoQuality as th}from"@vkontakte/videoplayer-shared";var ih={isMobile:void 0,defaultLanguage:$_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:th.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Ff=i=>eh(i,ih),Hf=i=>vr("ui-config",i),jt=()=>yr("ui-config");var es="vk_player_debug_panel_opened";var qf="videoplayer",Uf="videoplayer";var mo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},zf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Kf=new Set(["ShiftRight","ShiftLeft"]);var xf=["TIMELINE"],ts=[...xf,"GRAPH_BUTTON"],na=[...xf,"PLAY_BUTTON"],ks=[...ts,"PLAY_BUTTON"];var Lo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Lo||{}),tr={xs:0,s:1,m:2,l:3,xl:4};var Cr=[];function Gn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!Cr.length;for(let u of n)u[1](),Cr.push(u,i);if(l){for(let u=0;u<Cr.length;u+=2)Cr[u][0](Cr[u+1]);Cr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ii(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Gn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ei(g)?g:me},w=o.map((g,I)=>ti(g,b=>{u[I]=b,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ct(w),m(),l=!1}})}import{assertNonNullable as jf,VERSION as nh}from"@vkontakte/videoplayer-shared";import{VERSION as oh}from"@vkontakte/videoplayer-core";import{VERSION as rh}from"@vkontakte/videoplayer-statistics";var Cs="prod",Sr="1.1.47-dev.ada35c47.0";var ir=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Gf=Symbol("storeContext"),Yf=Symbol("microStoresContext"),Qf=(i,e)=>{vr(Gf,i),vr(Yf,e),Cs==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=yr(Gf);return jf(i,"Store context is empty!"),i},Un=()=>{let i=yr(Yf);return jf(i,"MicroStores context is empty!"),i},Tt=(i,e)=>oa(i,i.getValue(),e),oa=(i,e,t)=>Gn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Zf=(i,e,t)=>{var F,T,C,E,j,N;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Sr} (core: ${oh}, stat: ${rh}, shared: ${nh})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ var B_=Object.defineProperty,D_=Object.defineProperties;var N_=Object.getOwnPropertyDescriptors;var Sf=Object.getOwnPropertySymbols;var O_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable;var Zl=(i,e,t)=>e in i?B_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))O_.call(e,t)&&Zl(i,t,e[t]);if(Sf)for(var t of Sf(e))F_.call(e,t)&&Zl(i,t,e[t]);return i},St=(i,e)=>D_(i,N_(e));var Ii=(i,e,t)=>Zl(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function te(i,e){for(let t in e)i[t]=e[t];return i}function Xl(i){return i()}function bs(){return Object.create(null)}function ct(i){i.forEach(Xl)}function ei(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var gs;function wo(i,e){return i===e?!0:(gs||(gs=document.createElement("a")),gs.href=e,i===gs.href)}function Tf(i){return Object.keys(i).length===0}function ti(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return ti(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ti(e,t))}function Pe(i,e,t,n){if(i){let o=If(i,e,t,n);return i[0](o)}}function If(i,e,t,n){return i[1]&&n?te(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,r){if(o){let s=If(e,t,n,r);i.p(s,o)}}function Me(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _e(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Pf(i){return i==null?"":i}function gr(i){return i&&ei(i.destroy)?i.destroy:me}var Xo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var vs=class i{constructor(e){Ii(this,"_listeners","WeakMap"in Xo?new WeakMap:void 0);Ii(this,"_observer");Ii(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};vs.entries="WeakMap"in Xo?new WeakMap:void 0;var Ef=!1;function Af(){Ef=!0}function Mf(){Ef=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Lf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,U_(n,o)}}function Lf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function U_(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Z(){return He(" ")}function Xe(){return He("")}function ye(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ai(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function he(i,e){for(let t in e)f(i,t,e[t])}function Vf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function bi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function Q(i,e,t){i.classList.toggle(e,!!t)}function Rf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ot(i,e){return new i(e)}var Ao;function ko(i){Ao=i}function br(){if(!Ao)throw new Error("Function called outside component initialization");return Ao}function Vt(i){br().$$.on_mount.push(i)}function eo(i){br().$$.on_destroy.push(i)}function vr(i,e){return br().$$.context.set(i,e),e}function yr(i){return br().$$.context.get(i)}function Jr(){return br().$$.context}function qn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Jo=[];var ve=[],kr=[],$l=[],Df=Promise.resolve(),ea=!1;function ta(){ea||(ea=!0,Df.then(ys))}function to(){return ta(),Df}function $r(i){kr.push(i)}function We(i){$l.push(i)}var Jl=new Set,wr=0;function ys(){if(wr!==0)return;let i=Ao;do{try{for(;wr<Jo.length;){let e=Jo[wr];wr++,ko(e),G_(e.$$)}}catch(e){throw Jo.length=0,wr=0,e}for(ko(null),Jo.length=0,wr=0;ve.length;)ve.pop()();for(let e=0;e<kr.length;e+=1){let t=kr[e];Jl.has(t)||(Jl.add(t),t())}kr.length=0}while(Jo.length);for(;$l.length;)$l.pop()();ea=!1,Jl.clear(),ko(i)}function G_(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach($r)}}function Nf(i){let e=[],t=[];kr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),kr=e}var ws=new Set,$o;function le(){$o={r:0,c:[],p:$o}}function ae(){$o.r||ct($o.c),$o=$o.p}function d(i,e){i&&i.i&&(ws.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(ws.has(i))return;ws.add(i),$o.c.push(()=>{ws.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Mo(i){return typeof i=="object"&&i!==null?i:{}}var Y_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Q_=new Set([...Y_]);function Ke(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function O(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),$r(()=>{let r=i.$$.on_mount.map(Xl).filter(ei);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach($r)}function D(i,e){let t=i.$$;t.fragment!==null&&(Nf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function X_(i,e){i.$$.dirty[0]===-1&&(Jo.push(i),ta(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function H(i,e,t,n,o,r,s=null,a=[-1]){let l=Ao;ko(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:bs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:bs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&X_(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Af();let m=Vf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Mf(),ys()}ko(l)}var J_;typeof HTMLElement=="function"&&(J_=class extends HTMLElement{constructor(e,t,n){super();Ii(this,"$$ctor");Ii(this,"$$s");Ii(this,"$$c");Ii(this,"$$cn",!1);Ii(this,"$$d",{});Ii(this,"$$r",!1);Ii(this,"$$p_d",{});Ii(this,"$$l",{});Ii(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Rf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ia(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:St(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ia(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ia(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ia(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{constructor(){Ii(this,"$$");Ii(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!ei(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Tf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Of="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Of);import"@vkontakte/videoplayer-core";import{noop as qr,safeStorage as U8,throttleFn as z8,clientChecker as W8}from"@vkontakte/videoplayer-shared";import{SeekAction as K8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as $_,fillWithDefault as eh,VideoQuality as th}from"@vkontakte/videoplayer-shared";var ih={isMobile:void 0,defaultLanguage:$_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:th.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Ff=i=>eh(i,ih),Hf=i=>vr("ui-config",i),jt=()=>yr("ui-config");var es="vk_player_debug_panel_opened";var qf="videoplayer",Uf="videoplayer";var mo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},zf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Kf=new Set(["ShiftRight","ShiftLeft"]);var xf=["TIMELINE"],ts=[...xf,"GRAPH_BUTTON"],na=[...xf,"PLAY_BUTTON"],ks=[...ts,"PLAY_BUTTON"];var Lo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Lo||{}),tr={xs:0,s:1,m:2,l:3,xl:4};var Cr=[];function Gn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!Cr.length;for(let u of n)u[1](),Cr.push(u,i);if(l){for(let u=0;u<Cr.length;u+=2)Cr[u][0](Cr[u+1]);Cr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ii(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Gn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ei(g)?g:me},w=o.map((g,I)=>ti(g,b=>{u[I]=b,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ct(w),m(),l=!1}})}import{assertNonNullable as jf,VERSION as nh}from"@vkontakte/videoplayer-shared";import{VERSION as oh}from"@vkontakte/videoplayer-core";import{VERSION as rh}from"@vkontakte/videoplayer-statistics";var Cs="prod",Sr="1.1.47-dev.f2c724ce.0";var ir=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Gf=Symbol("storeContext"),Yf=Symbol("microStoresContext"),Qf=(i,e)=>{vr(Gf,i),vr(Yf,e),Cs==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=yr(Gf);return jf(i,"Store context is empty!"),i},Un=()=>{let i=yr(Yf);return jf(i,"MicroStores context is empty!"),i},Tt=(i,e)=>oa(i,i.getValue(),e),oa=(i,e,t)=>Gn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Zf=(i,e,t)=>{var F,T,C,E,j,N;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Sr} (core: ${oh}, stat: ${rh}, shared: ${nh})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ie)=>{var re;let ce=`${ie}) Type: ${W.id}
8
8
  `,U=`Message: ${W.message} (${W.thrown})
9
9
  `,J=`Trace: ${(re=W.thrown)==null?void 0:re.stack}
package/es2018.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.47-dev.ada35c47.0
3
- * Mon, 14 Oct 2024 11:36:56 GMT
2
+ * @vkontakte/videoplayer v1.1.47-dev.f2c724ce.0
3
+ * Tue, 15 Oct 2024 06:49:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-47/doc/
5
5
  */
6
- "use strict";var oh=Object.create;var us=Object.defineProperty;var rh=Object.getOwnPropertyDescriptor;var sh=Object.getOwnPropertyNames;var lh=Object.getPrototypeOf,ah=Object.prototype.hasOwnProperty;var uh=(i,e,t)=>e in i?us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var ch=(i,e)=>{for(var t in e)us(i,t,{get:e[t],enumerable:!0})},Bf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of sh(e))!ah.call(i,o)&&o!==t&&us(i,o,{get:()=>e[o],enumerable:!(n=rh(e,o))||n.enumerable});return i};var Df=(i,e,t)=>(t=i!=null?oh(lh(i)):{},Bf(e||!i||!i.__esModule?us(t,"default",{value:i,enumerable:!0}):t,i)),fh=i=>Bf(us({},"__esModule",{value:!0}),i);var Ti=(i,e,t)=>uh(i,typeof e!="symbol"?e+"":e,t);var q8={};ch(q8,{ControlButtonType:()=>bs,GridTypes:()=>So,InterfaceLanguage:()=>Jr.InterfaceLanguage,MenuItemType:()=>hs,VERSION:()=>nr,VKNumericLanguage:()=>Jr.VKNumericLanguage,VideoFormat:()=>ta.VideoFormat,VideoQuality:()=>ta.VideoQuality,loadVKLangPack:()=>Jr.loadVKLangPack,registerPlayerWebComponent:()=>H8});module.exports=fh(q8);function me(){}function te(i,e){for(let t in e)i[t]=e[t];return i}function sa(i){return i()}function Ms(){return Object.create(null)}function ut(i){i.forEach(sa)}function $t(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var As;function ko(i,e){return i===e?!0:(As||(As=document.createElement("a")),As.href=e,i===As.href)}function Nf(i){return Object.keys(i).length===0}function ei(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return ei(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ei(e,t))}function Pe(i,e,t,n){if(i){let o=Of(i,e,t,n);return i[0](o)}}function Of(i,e,t,n){return i[1]&&n?te(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,r){if(o){let s=Of(e,t,n,r);i.p(s,o)}}function Me(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _e(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Ff(i){return i==null?"":i}function wr(i){return i&&$t(i.destroy)?i.destroy:me}var Jo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Ls=class i{constructor(e){Ti(this,"_listeners","WeakMap"in Jo?new WeakMap:void 0);Ti(this,"_observer");Ti(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Ls.entries="WeakMap"in Jo?new WeakMap:void 0;var Hf=!1;function qf(){Hf=!0}function Uf(){Hf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=zf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,ph(n,o)}}function zf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function ph(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function si(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Z(){return He(" ")}function Ze(){return He("")}function ye(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function li(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function he(i,e){for(let t in e)f(i,t,e[t])}function Wf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function Q(i,e,t){i.classList.toggle(e,!!t)}function Kf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Nt(i,e){return new i(e)}var Vo;function Co(i){Vo=i}function kr(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function Lt(i){kr().$$.on_mount.push(i)}function eo(i){kr().$$.on_destroy.push(i)}function Cr(i,e){return kr().$$.context.set(i,e),e}function Sr(i){return kr().$$.context.get(i)}function cs(){return kr().$$.context}function qn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var $o=[];var ve=[],Ir=[],aa=[],jf=Promise.resolve(),ua=!1;function ca(){ua||(ua=!0,jf.then(Vs))}function to(){return ca(),jf}function fs(i){Ir.push(i)}function We(i){aa.push(i)}var la=new Set,Tr=0;function Vs(){if(Tr!==0)return;let i=Vo;do{try{for(;Tr<$o.length;){let e=$o[Tr];Tr++,Co(e),yh(e.$$)}}catch(e){throw $o.length=0,Tr=0,e}for(Co(null),$o.length=0,Tr=0;ve.length;)ve.pop()();for(let e=0;e<Ir.length;e+=1){let t=Ir[e];la.has(t)||(la.add(t),t())}Ir.length=0}while($o.length);for(;aa.length;)aa.pop()();ua=!1,la.clear(),Co(i)}function yh(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(fs)}}function Gf(i){let e=[],t=[];Ir.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ir=e}var Rs=new Set,er;function le(){er={r:0,c:[],p:er}}function ae(){er.r||ut(er.c),er=er.p}function d(i,e){i&&i.i&&(Rs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Rs.has(i))return;Rs.add(i),er.c.push(()=>{Rs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Ro(i){return typeof i=="object"&&i!==null?i:{}}var wh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],kh=new Set([...wh]);function Ke(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function O(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),fs(()=>{let r=i.$$.on_mount.map(sa).filter($t);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(fs)}function D(i,e){let t=i.$$;t.fragment!==null&&(Gf(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Sh(i,e){i.$$.dirty[0]===-1&&($o.push(i),ca(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function H(i,e,t,n,o,r,s=null,a=[-1]){let l=Vo;Co(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ms(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ms(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Sh(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){qf();let m=Wf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Uf(),Vs()}Co(l)}var Th;typeof HTMLElement=="function"&&(Th=class extends HTMLElement{constructor(e,t,n){super();Ti(this,"$$ctor");Ti(this,"$$s");Ti(this,"$$c");Ti(this,"$$cn",!1);Ti(this,"$$d",{});Ti(this,"$$r",!1);Ti(this,"$$p_d",{});Ti(this,"$$l",{});Ti(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Kf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=fa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=fa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=fa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{constructor(){Ti(this,"$$");Ti(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!$t(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Nf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Yf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yf);var $O=require("@vkontakte/videoplayer-core"),Wn=require("@vkontakte/videoplayer-shared"),U_=require("@vkontakte/videoplayer-statistics");var Pr=require("@vkontakte/videoplayer-shared");var Ih={isMobile:void 0,defaultLanguage:Pr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Pr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Qf=i=>(0,Pr.fillWithDefault)(i,Ih),Zf=i=>Cr("ui-config",i),xt=()=>Sr("ui-config");var ds="vk_player_debug_panel_opened";var Xf="videoplayer",Jf="videoplayer";var fo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},$f=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ed=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),td=new Set(["ShiftRight","ShiftLeft"]);var id=["TIMELINE"],ms=[...id,"GRAPH_BUTTON"],da=[...id,"PLAY_BUTTON"],Bs=[...ms,"PLAY_BUTTON"];var So=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(So||{}),ir={xs:0,s:1,m:2,l:3,xl:4};var Er=[];function Gn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!Er.length;for(let u of n)u[1](),Er.push(u,i);if(l){for(let u=0;u<Er.length;u+=2)Er[u][0](Er[u+1]);Er.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ti(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Gn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=$t(g)?g:me},w=o.map((g,I)=>ei(g,b=>{u[I]=b,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(w),m(),l=!1}})}var ps=require("@vkontakte/videoplayer-shared"),nd=require("@vkontakte/videoplayer-core"),od=require("@vkontakte/videoplayer-statistics");var Ds="prod",nr="1.1.47-dev.ada35c47.0";var or=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var rd=Symbol("storeContext"),sd=Symbol("microStoresContext"),ld=(i,e)=>{Cr(rd,i),Cr(sd,e),Ds==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=Sr(rd);return(0,ps.assertNonNullable)(i,"Store context is empty!"),i},Un=()=>{let i=Sr(sd);return(0,ps.assertNonNullable)(i,"MicroStores context is empty!"),i},St=(i,e)=>ma(i,i.getValue(),e),ma=(i,e,t)=>Gn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ad=(i,e,t)=>{var F,T,C,E,j,N;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${nr} (core: ${nd.VERSION}, stat: ${od.VERSION}, shared: ${ps.VERSION})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ "use strict";var oh=Object.create;var us=Object.defineProperty;var rh=Object.getOwnPropertyDescriptor;var sh=Object.getOwnPropertyNames;var lh=Object.getPrototypeOf,ah=Object.prototype.hasOwnProperty;var uh=(i,e,t)=>e in i?us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var ch=(i,e)=>{for(var t in e)us(i,t,{get:e[t],enumerable:!0})},Bf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of sh(e))!ah.call(i,o)&&o!==t&&us(i,o,{get:()=>e[o],enumerable:!(n=rh(e,o))||n.enumerable});return i};var Df=(i,e,t)=>(t=i!=null?oh(lh(i)):{},Bf(e||!i||!i.__esModule?us(t,"default",{value:i,enumerable:!0}):t,i)),fh=i=>Bf(us({},"__esModule",{value:!0}),i);var Ti=(i,e,t)=>uh(i,typeof e!="symbol"?e+"":e,t);var q8={};ch(q8,{ControlButtonType:()=>bs,GridTypes:()=>So,InterfaceLanguage:()=>Jr.InterfaceLanguage,MenuItemType:()=>hs,VERSION:()=>nr,VKNumericLanguage:()=>Jr.VKNumericLanguage,VideoFormat:()=>ta.VideoFormat,VideoQuality:()=>ta.VideoQuality,loadVKLangPack:()=>Jr.loadVKLangPack,registerPlayerWebComponent:()=>H8});module.exports=fh(q8);function me(){}function te(i,e){for(let t in e)i[t]=e[t];return i}function sa(i){return i()}function Ms(){return Object.create(null)}function ut(i){i.forEach(sa)}function $t(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var As;function ko(i,e){return i===e?!0:(As||(As=document.createElement("a")),As.href=e,i===As.href)}function Nf(i){return Object.keys(i).length===0}function ei(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return ei(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ei(e,t))}function Pe(i,e,t,n){if(i){let o=Of(i,e,t,n);return i[0](o)}}function Of(i,e,t,n){return i[1]&&n?te(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,r){if(o){let s=Of(e,t,n,r);i.p(s,o)}}function Me(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _e(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Ff(i){return i==null?"":i}function wr(i){return i&&$t(i.destroy)?i.destroy:me}var Jo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Ls=class i{constructor(e){Ti(this,"_listeners","WeakMap"in Jo?new WeakMap:void 0);Ti(this,"_observer");Ti(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Ls.entries="WeakMap"in Jo?new WeakMap:void 0;var Hf=!1;function qf(){Hf=!0}function Uf(){Hf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=zf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,ph(n,o)}}function zf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function ph(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function si(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Z(){return He(" ")}function Ze(){return He("")}function ye(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function li(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function he(i,e){for(let t in e)f(i,t,e[t])}function Wf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function Q(i,e,t){i.classList.toggle(e,!!t)}function Kf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Nt(i,e){return new i(e)}var Vo;function Co(i){Vo=i}function kr(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function Lt(i){kr().$$.on_mount.push(i)}function eo(i){kr().$$.on_destroy.push(i)}function Cr(i,e){return kr().$$.context.set(i,e),e}function Sr(i){return kr().$$.context.get(i)}function cs(){return kr().$$.context}function qn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var $o=[];var ve=[],Ir=[],aa=[],jf=Promise.resolve(),ua=!1;function ca(){ua||(ua=!0,jf.then(Vs))}function to(){return ca(),jf}function fs(i){Ir.push(i)}function We(i){aa.push(i)}var la=new Set,Tr=0;function Vs(){if(Tr!==0)return;let i=Vo;do{try{for(;Tr<$o.length;){let e=$o[Tr];Tr++,Co(e),yh(e.$$)}}catch(e){throw $o.length=0,Tr=0,e}for(Co(null),$o.length=0,Tr=0;ve.length;)ve.pop()();for(let e=0;e<Ir.length;e+=1){let t=Ir[e];la.has(t)||(la.add(t),t())}Ir.length=0}while($o.length);for(;aa.length;)aa.pop()();ua=!1,la.clear(),Co(i)}function yh(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(fs)}}function Gf(i){let e=[],t=[];Ir.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ir=e}var Rs=new Set,er;function le(){er={r:0,c:[],p:er}}function ae(){er.r||ut(er.c),er=er.p}function d(i,e){i&&i.i&&(Rs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Rs.has(i))return;Rs.add(i),er.c.push(()=>{Rs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Ro(i){return typeof i=="object"&&i!==null?i:{}}var wh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],kh=new Set([...wh]);function Ke(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function O(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),fs(()=>{let r=i.$$.on_mount.map(sa).filter($t);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(fs)}function D(i,e){let t=i.$$;t.fragment!==null&&(Gf(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Sh(i,e){i.$$.dirty[0]===-1&&($o.push(i),ca(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function H(i,e,t,n,o,r,s=null,a=[-1]){let l=Vo;Co(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ms(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ms(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Sh(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){qf();let m=Wf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Uf(),Vs()}Co(l)}var Th;typeof HTMLElement=="function"&&(Th=class extends HTMLElement{constructor(e,t,n){super();Ti(this,"$$ctor");Ti(this,"$$s");Ti(this,"$$c");Ti(this,"$$cn",!1);Ti(this,"$$d",{});Ti(this,"$$r",!1);Ti(this,"$$p_d",{});Ti(this,"$$l",{});Ti(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Kf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=fa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=fa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=fa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{constructor(){Ti(this,"$$");Ti(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!$t(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Nf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Yf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yf);var $O=require("@vkontakte/videoplayer-core"),Wn=require("@vkontakte/videoplayer-shared"),U_=require("@vkontakte/videoplayer-statistics");var Pr=require("@vkontakte/videoplayer-shared");var Ih={isMobile:void 0,defaultLanguage:Pr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Pr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Qf=i=>(0,Pr.fillWithDefault)(i,Ih),Zf=i=>Cr("ui-config",i),xt=()=>Sr("ui-config");var ds="vk_player_debug_panel_opened";var Xf="videoplayer",Jf="videoplayer";var fo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},$f=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ed=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),td=new Set(["ShiftRight","ShiftLeft"]);var id=["TIMELINE"],ms=[...id,"GRAPH_BUTTON"],da=[...id,"PLAY_BUTTON"],Bs=[...ms,"PLAY_BUTTON"];var So=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(So||{}),ir={xs:0,s:1,m:2,l:3,xl:4};var Er=[];function Gn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!Er.length;for(let u of n)u[1](),Er.push(u,i);if(l){for(let u=0;u<Er.length;u+=2)Er[u][0](Er[u+1]);Er.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ti(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Gn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=$t(g)?g:me},w=o.map((g,I)=>ei(g,b=>{u[I]=b,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(w),m(),l=!1}})}var ps=require("@vkontakte/videoplayer-shared"),nd=require("@vkontakte/videoplayer-core"),od=require("@vkontakte/videoplayer-statistics");var Ds="prod",nr="1.1.47-dev.f2c724ce.0";var or=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var rd=Symbol("storeContext"),sd=Symbol("microStoresContext"),ld=(i,e)=>{Cr(rd,i),Cr(sd,e),Ds==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=Sr(rd);return(0,ps.assertNonNullable)(i,"Store context is empty!"),i},Un=()=>{let i=Sr(sd);return(0,ps.assertNonNullable)(i,"MicroStores context is empty!"),i},St=(i,e)=>ma(i,i.getValue(),e),ma=(i,e,t)=>Gn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ad=(i,e,t)=>{var F,T,C,E,j,N;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${nr} (core: ${nd.VERSION}, stat: ${od.VERSION}, shared: ${ps.VERSION})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ie)=>{var re;let ce=`${ie}) Type: ${W.id}
8
8
  `,U=`Message: ${W.message} (${W.thrown})
9
9
  `,J=`Trace: ${(re=W.thrown)==null?void 0:re.stack}
package/es2018.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.47-dev.ada35c47.0
3
- * Mon, 14 Oct 2024 11:36:56 GMT
2
+ * @vkontakte/videoplayer v1.1.47-dev.f2c724ce.0
3
+ * Tue, 15 Oct 2024 06:49:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-47/doc/
5
5
  */
6
- var A_=Object.defineProperty;var M_=(i,e,t)=>e in i?A_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ci=(i,e,t)=>M_(i,typeof e!="symbol"?e+"":e,t);function me(){}function te(i,e){for(let t in e)i[t]=e[t];return i}function Gl(i){return i()}function _s(){return Object.create(null)}function ut(i){i.forEach(Gl)}function Xt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ps;function bo(i,e){return i===e?!0:(ps||(ps=document.createElement("a")),ps.href=e,i===ps.href)}function yf(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return Jt(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Pe(i,e,t,n){if(i){let o=wf(i,e,t,n);return i[0](o)}}function wf(i,e,t,n){return i[1]&&n?te(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,r){if(o){let s=wf(e,t,n,r);i.p(s,o)}}function Me(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _e(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function kf(i){return i==null?"":i}function pr(i){return i&&Xt(i.destroy)?i.destroy:me}var Yo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var hs=class i{constructor(e){Ci(this,"_listeners","WeakMap"in Yo?new WeakMap:void 0);Ci(this,"_observer");Ci(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};hs.entries="WeakMap"in Yo?new WeakMap:void 0;var Cf=!1;function Sf(){Cf=!0}function Tf(){Cf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=If(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,R_(n,o)}}function If(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function R_(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function oi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Z(){return He(" ")}function Ze(){return He("")}function ye(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ri(i){return function(e){return e.preventDefault(),i.call(this,e)}}function gt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function he(i,e){for(let t in e)f(i,t,e[t])}function Pf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function Q(i,e,t){i.classList.toggle(e,!!t)}function Ef(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bt(i,e){return new i(e)}var Io;function vo(i){Io=i}function _r(){if(!Io)throw new Error("Function called outside component initialization");return Io}function At(i){_r().$$.on_mount.push(i)}function Xn(i){_r().$$.on_destroy.push(i)}function hr(i,e){return _r().$$.context.set(i,e),e}function gr(i){return _r().$$.context.get(i)}function Qr(){return _r().$$.context}function On(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Qo=[];var ve=[],vr=[],Ql=[],Mf=Promise.resolve(),Zl=!1;function Xl(){Zl||(Zl=!0,Mf.then(gs))}function Jn(){return Xl(),Mf}function Zr(i){vr.push(i)}function We(i){Ql.push(i)}var Yl=new Set,br=0;function gs(){if(br!==0)return;let i=Io;do{try{for(;br<Qo.length;){let e=Qo[br];br++,vo(e),H_(e.$$)}}catch(e){throw Qo.length=0,br=0,e}for(vo(null),Qo.length=0,br=0;ve.length;)ve.pop()();for(let e=0;e<vr.length;e+=1){let t=vr[e];Yl.has(t)||(Yl.add(t),t())}vr.length=0}while(Qo.length);for(;Ql.length;)Ql.pop()();Zl=!1,Yl.clear(),vo(i)}function H_(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Zr)}}function Lf(i){let e=[],t=[];vr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),vr=e}var bs=new Set,Zo;function le(){Zo={r:0,c:[],p:Zo}}function ae(){Zo.r||ut(Zo.c),Zo=Zo.p}function d(i,e){i&&i.i&&(bs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(bs.has(i))return;bs.add(i),Zo.c.push(()=>{bs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function bt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Po(i){return typeof i=="object"&&i!==null?i:{}}var q_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],U_=new Set([...q_]);function Ke(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function O(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Zr(()=>{let r=i.$$.on_mount.map(Gl).filter(Xt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(Zr)}function D(i,e){let t=i.$$;t.fragment!==null&&(Lf(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function W_(i,e){i.$$.dirty[0]===-1&&(Qo.push(i),Xl(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function H(i,e,t,n,o,r,s=null,a=[-1]){let l=Io;vo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:_s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:_s(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&W_(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Sf();let m=Pf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Tf(),gs()}vo(l)}var K_;typeof HTMLElement=="function"&&(K_=class extends HTMLElement{constructor(e,t,n){super();Ci(this,"$$ctor");Ci(this,"$$s");Ci(this,"$$c");Ci(this,"$$cn",!1);Ci(this,"$$d",{});Ci(this,"$$r",!1);Ci(this,"$$p_d",{});Ci(this,"$$l",{});Ci(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Ef(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Jl(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=Jl(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jl(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jl(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{constructor(){Ci(this,"$$");Ci(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!Xt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!yf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Vf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vf);import"@vkontakte/videoplayer-core";import{noop as Or,safeStorage as R8,throttleFn as B8,clientChecker as D8}from"@vkontakte/videoplayer-shared";import{SeekAction as N8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as x_,fillWithDefault as j_,VideoQuality as G_}from"@vkontakte/videoplayer-shared";var Y_={isMobile:void 0,defaultLanguage:x_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:G_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Rf=i=>j_(i,Y_),Bf=i=>hr("ui-config",i),Wt=()=>gr("ui-config");var Xr="vk_player_debug_panel_opened";var Df="videoplayer",Nf="videoplayer";var uo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Of=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ff=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hf=new Set(["ShiftRight","ShiftLeft"]);var qf=["TIMELINE"],Jr=[...qf,"GRAPH_BUTTON"],$l=[...qf,"PLAY_BUTTON"],vs=[...Jr,"PLAY_BUTTON"];var Eo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Eo||{}),Jo={xs:0,s:1,m:2,l:3,xl:4};var yr=[];function Kn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!yr.length;for(let u of n)u[1](),yr.push(u,i);if(l){for(let u=0;u<yr.length;u+=2)yr[u][0](yr[u+1]);yr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function $t(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Kn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Xt(g)?g:me},w=o.map((g,I)=>Jt(g,b=>{u[I]=b,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(w),m(),l=!1}})}import{assertNonNullable as Uf,VERSION as Q_}from"@vkontakte/videoplayer-shared";import{VERSION as Z_}from"@vkontakte/videoplayer-core";import{VERSION as X_}from"@vkontakte/videoplayer-statistics";var ys="prod",wr="1.1.47-dev.ada35c47.0";var $o=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var zf=Symbol("storeContext"),Wf=Symbol("microStoresContext"),Kf=(i,e)=>{hr(zf,i),hr(Wf,e),ys==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=gr(zf);return Uf(i,"Store context is empty!"),i},Fn=()=>{let i=gr(Wf);return Uf(i,"MicroStores context is empty!"),i},kt=(i,e)=>ea(i,i.getValue(),e),ea=(i,e,t)=>Kn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),xf=(i,e,t)=>{var F,T,C,E,j,N;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${wr} (core: ${Z_}, stat: ${X_}, shared: ${Q_})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ var A_=Object.defineProperty;var M_=(i,e,t)=>e in i?A_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ci=(i,e,t)=>M_(i,typeof e!="symbol"?e+"":e,t);function me(){}function te(i,e){for(let t in e)i[t]=e[t];return i}function Gl(i){return i()}function _s(){return Object.create(null)}function ut(i){i.forEach(Gl)}function Xt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ps;function bo(i,e){return i===e?!0:(ps||(ps=document.createElement("a")),ps.href=e,i===ps.href)}function yf(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return Jt(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Pe(i,e,t,n){if(i){let o=wf(i,e,t,n);return i[0](o)}}function wf(i,e,t,n){return i[1]&&n?te(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,r){if(o){let s=wf(e,t,n,r);i.p(s,o)}}function Me(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function _e(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function kf(i){return i==null?"":i}function pr(i){return i&&Xt(i.destroy)?i.destroy:me}var Yo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var hs=class i{constructor(e){Ci(this,"_listeners","WeakMap"in Yo?new WeakMap:void 0);Ci(this,"_observer");Ci(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};hs.entries="WeakMap"in Yo?new WeakMap:void 0;var Cf=!1;function Sf(){Cf=!0}function Tf(){Cf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=If(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,R_(n,o)}}function If(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function R_(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function oi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function Z(){return He(" ")}function Ze(){return He("")}function ye(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ri(i){return function(e){return e.preventDefault(),i.call(this,e)}}function gt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function he(i,e){for(let t in e)f(i,t,e[t])}function Pf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function Q(i,e,t){i.classList.toggle(e,!!t)}function Ef(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bt(i,e){return new i(e)}var Io;function vo(i){Io=i}function _r(){if(!Io)throw new Error("Function called outside component initialization");return Io}function At(i){_r().$$.on_mount.push(i)}function Xn(i){_r().$$.on_destroy.push(i)}function hr(i,e){return _r().$$.context.set(i,e),e}function gr(i){return _r().$$.context.get(i)}function Qr(){return _r().$$.context}function On(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Qo=[];var ve=[],vr=[],Ql=[],Mf=Promise.resolve(),Zl=!1;function Xl(){Zl||(Zl=!0,Mf.then(gs))}function Jn(){return Xl(),Mf}function Zr(i){vr.push(i)}function We(i){Ql.push(i)}var Yl=new Set,br=0;function gs(){if(br!==0)return;let i=Io;do{try{for(;br<Qo.length;){let e=Qo[br];br++,vo(e),H_(e.$$)}}catch(e){throw Qo.length=0,br=0,e}for(vo(null),Qo.length=0,br=0;ve.length;)ve.pop()();for(let e=0;e<vr.length;e+=1){let t=vr[e];Yl.has(t)||(Yl.add(t),t())}vr.length=0}while(Qo.length);for(;Ql.length;)Ql.pop()();Zl=!1,Yl.clear(),vo(i)}function H_(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Zr)}}function Lf(i){let e=[],t=[];vr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),vr=e}var bs=new Set,Zo;function le(){Zo={r:0,c:[],p:Zo}}function ae(){Zo.r||ut(Zo.c),Zo=Zo.p}function d(i,e){i&&i.i&&(bs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(bs.has(i))return;bs.add(i),Zo.c.push(()=>{bs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function bt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Po(i){return typeof i=="object"&&i!==null?i:{}}var q_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],U_=new Set([...q_]);function Ke(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function O(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Zr(()=>{let r=i.$$.on_mount.map(Gl).filter(Xt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(Zr)}function D(i,e){let t=i.$$;t.fragment!==null&&(Lf(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function W_(i,e){i.$$.dirty[0]===-1&&(Qo.push(i),Xl(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function H(i,e,t,n,o,r,s=null,a=[-1]){let l=Io;vo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:_s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:_s(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&W_(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Sf();let m=Pf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Tf(),gs()}vo(l)}var K_;typeof HTMLElement=="function"&&(K_=class extends HTMLElement{constructor(e,t,n){super();Ci(this,"$$ctor");Ci(this,"$$s");Ci(this,"$$c");Ci(this,"$$cn",!1);Ci(this,"$$d",{});Ci(this,"$$r",!1);Ci(this,"$$p_d",{});Ci(this,"$$l",{});Ci(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Ef(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Jl(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=Jl(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jl(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jl(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{constructor(){Ci(this,"$$");Ci(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!Xt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!yf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Vf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vf);import"@vkontakte/videoplayer-core";import{noop as Or,safeStorage as R8,throttleFn as B8,clientChecker as D8}from"@vkontakte/videoplayer-shared";import{SeekAction as N8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as x_,fillWithDefault as j_,VideoQuality as G_}from"@vkontakte/videoplayer-shared";var Y_={isMobile:void 0,defaultLanguage:x_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:G_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Rf=i=>j_(i,Y_),Bf=i=>hr("ui-config",i),Wt=()=>gr("ui-config");var Xr="vk_player_debug_panel_opened";var Df="videoplayer",Nf="videoplayer";var uo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Of=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ff=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hf=new Set(["ShiftRight","ShiftLeft"]);var qf=["TIMELINE"],Jr=[...qf,"GRAPH_BUTTON"],$l=[...qf,"PLAY_BUTTON"],vs=[...Jr,"PLAY_BUTTON"];var Eo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Eo||{}),Jo={xs:0,s:1,m:2,l:3,xl:4};var yr=[];function Kn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=me){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let l=!yr.length;for(let u of n)u[1](),yr.push(u,i);if(l){for(let u=0;u<yr.length;u+=2)yr[u][0](yr[u+1]);yr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function $t(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Kn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Xt(g)?g:me},w=o.map((g,I)=>Jt(g,b=>{u[I]=b,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(w),m(),l=!1}})}import{assertNonNullable as Uf,VERSION as Q_}from"@vkontakte/videoplayer-shared";import{VERSION as Z_}from"@vkontakte/videoplayer-core";import{VERSION as X_}from"@vkontakte/videoplayer-statistics";var ys="prod",wr="1.1.47-dev.f2c724ce.0";var $o=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var zf=Symbol("storeContext"),Wf=Symbol("microStoresContext"),Kf=(i,e)=>{hr(zf,i),hr(Wf,e),ys==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=gr(zf);return Uf(i,"Store context is empty!"),i},Fn=()=>{let i=gr(Wf);return Uf(i,"MicroStores context is empty!"),i},kt=(i,e)=>ea(i,i.getValue(),e),ea=(i,e,t)=>Kn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),xf=(i,e,t)=>{var F,T,C,E,j,N;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(C=n.rttEstimation$.getValue())==null?void 0:C.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${wr} (core: ${Z_}, stat: ${X_}, shared: ${Q_})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ie)=>{var re;let ce=`${ie}) Type: ${W.id}
8
8
  `,U=`Message: ${W.message} (${W.thrown})
9
9
  `,J=`Trace: ${(re=W.thrown)==null?void 0:re.stack}
package/esnext.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.47-dev.ada35c47.0
3
- * Mon, 14 Oct 2024 11:36:56 GMT
2
+ * @vkontakte/videoplayer v1.1.47-dev.f2c724ce.0
3
+ * Tue, 15 Oct 2024 06:49:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-47/doc/
5
5
  */
6
- "use strict";var eh=Object.create;var Sl=Object.defineProperty;var th=Object.getOwnPropertyDescriptor;var ih=Object.getOwnPropertyNames;var nh=Object.getPrototypeOf,oh=Object.prototype.hasOwnProperty;var rh=(i,e)=>{for(var t in e)Sl(i,t,{get:e[t],enumerable:!0})},Lf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ih(e))!oh.call(i,o)&&o!==t&&Sl(i,o,{get:()=>e[o],enumerable:!(n=th(e,o))||n.enumerable});return i};var Vf=(i,e,t)=>(t=i!=null?eh(nh(i)):{},Lf(e||!i||!i.__esModule?Sl(t,"default",{value:i,enumerable:!0}):t,i)),lh=i=>Lf(Sl({},"__esModule",{value:!0}),i);var D8={};rh(D8,{ControlButtonType:()=>hl,GridTypes:()=>po,InterfaceLanguage:()=>Zr.InterfaceLanguage,MenuItemType:()=>pl,VERSION:()=>$o,VKNumericLanguage:()=>Zr.VKNumericLanguage,VideoFormat:()=>Xs.VideoFormat,VideoQuality:()=>Xs.VideoQuality,loadVKLangPack:()=>Zr.loadVKLangPack,registerPlayerWebComponent:()=>B8});module.exports=lh(D8);function de(){}function $(i,e){for(let t in e)i[t]=e[t];return i}function na(i){return i()}function Il(){return Object.create(null)}function st(i){i.forEach(na)}function Kt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Tl;function fo(i,e){return i===e?!0:(Tl||(Tl=document.createElement("a")),Tl.href=e,i===Tl.href)}function Rf(i){return Object.keys(i).length===0}function xt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return xt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(xt(e,t))}function Ee(i,e,t,n){if(i){let o=Bf(i,e,t,n);return i[0](o)}}function Bf(i,e,t,n){return i[1]&&n?$(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Bf(e,t,n,r);i.p(l,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function pe(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Df(i){return i??""}function vr(i){return i&&Kt(i.destroy)?i.destroy:de}var Yo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Pl=class i{_listeners="WeakMap"in Yo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Pl.entries="WeakMap"in Yo?new WeakMap:void 0;var Nf=!1;function Of(){Nf=!0}function Ff(){Nf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Hf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,uh(n,o)}}function Hf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function uh(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ti(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function Y(){return Ne(" ")}function Qe(){return Ne("")}function Ce(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function _e(i,e){for(let t in e)f(i,t,e[t])}function qf(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Uf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Tt(i,e){return new i(e)}var To;function mo(i){To=i}function yr(){if(!To)throw new Error("Function called outside component initialization");return To}function kt(i){yr().$$.on_mount.push(i)}function Yn(i){yr().$$.on_destroy.push(i)}function wr(i,e){return yr().$$.context.set(i,e),e}function kr(i){return yr().$$.context.get(i)}function al(){return yr().$$.context}function Mn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Qo=[];var ye=[],Sr=[],ra=[],Wf=Promise.resolve(),la=!1;function sa(){la||(la=!0,Wf.then(El))}function Qn(){return sa(),Wf}function ul(i){Sr.push(i)}function Ue(i){ra.push(i)}var oa=new Set,Cr=0;function El(){if(Cr!==0)return;let i=To;do{try{for(;Cr<Qo.length;){let e=Qo[Cr];Cr++,mo(e),_h(e.$$)}}catch(e){throw Qo.length=0,Cr=0,e}for(mo(null),Qo.length=0,Cr=0;ye.length;)ye.pop()();for(let e=0;e<Sr.length;e+=1){let t=Sr[e];oa.has(t)||(oa.add(t),t())}Sr.length=0}while(Qo.length);for(;ra.length;)ra.pop()();la=!1,oa.clear(),mo(i)}function _h(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ul)}}function Kf(i){let e=[],t=[];Sr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Sr=e}var Al=new Set,Zo;function le(){Zo={r:0,c:[],p:Zo}}function se(){Zo.r||st(Zo.c),Zo=Zo.p}function d(i,e){i&&i.i&&(Al.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Al.has(i))return;Al.add(i),Zo.c.push(()=>{Al.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Io(i){return typeof i=="object"&&i!==null?i:{}}var hh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],gh=new Set([...hh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ul(()=>{let r=i.$$.on_mount.map(na).filter(Kt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(ul)}function D(i,e){let t=i.$$;t.fragment!==null&&(Kf(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function vh(i,e){i.$$.dirty[0]===-1&&(Qo.push(i),sa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=To;mo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:Il(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Il(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&vh(i,m)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Of();let m=qf(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Ff(),El()}mo(s)}var yh;typeof HTMLElement=="function"&&(yh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=I("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Uf(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=aa(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=aa(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=aa(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function aa(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{$$=void 0;$$set=void 0;$destroy(){D(this,1),this.$destroy=de}$on(e,t){if(!Kt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Rf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var xf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(xf);var KO=require("@vkontakte/videoplayer-core"),Rn=require("@vkontakte/videoplayer-shared"),F_=require("@vkontakte/videoplayer-statistics");var Tr=require("@vkontakte/videoplayer-shared");var wh={isMobile:void 0,defaultLanguage:Tr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Tr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},jf=i=>(0,Tr.fillWithDefault)(i,wh),Gf=i=>wr("ui-config",i),Dt=()=>kr("ui-config");var cl="vk_player_debug_panel_opened";var Yf="videoplayer",Qf="videoplayer";var io={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Zf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Xf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Jf=new Set(["ShiftRight","ShiftLeft"]);var $f=["TIMELINE"],fl=[...$f,"GRAPH_BUTTON"],ua=[...$f,"PLAY_BUTTON"],Ml=[...fl,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Jo={xs:0,s:1,m:2,l:3,xl:4};var Ir=[];function Hn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=de){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let s=!Ir.length;for(let u of n)u[1](),Ir.push(u,i);if(s){for(let u=0;u<Ir.length;u+=2)Ir[u][0](Ir[u+1]);Ir.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function jt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Hn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Kt(g)?g:de},w=o.map((g,T)=>xt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(w),m(),s=!1}})}var dl=require("@vkontakte/videoplayer-shared"),ed=require("@vkontakte/videoplayer-core"),td=require("@vkontakte/videoplayer-statistics");var Ll="prod",$o="1.1.47-dev.ada35c47.0";var er=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var id=Symbol("storeContext"),nd=Symbol("microStoresContext"),od=(i,e)=>{wr(id,i),wr(nd,e),Ll==="dev"&&(window.app={store:i,microStores:e})},$e=()=>{let i=kr(id);return(0,dl.assertNonNullable)(i,"Store context is empty!"),i},Ln=()=>{let i=kr(nd);return(0,dl.assertNonNullable)(i,"MicroStores context is empty!"),i},bt=(i,e)=>ca(i,i.getValue(),e),ca=(i,e,t)=>Hn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),rd=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${ed.VERSION}, stat: ${td.VERSION}, shared: ${dl.VERSION})`,c=Ge(t.state.errorLog$),m=c.length?`
6
+ "use strict";var eh=Object.create;var Sl=Object.defineProperty;var th=Object.getOwnPropertyDescriptor;var ih=Object.getOwnPropertyNames;var nh=Object.getPrototypeOf,oh=Object.prototype.hasOwnProperty;var rh=(i,e)=>{for(var t in e)Sl(i,t,{get:e[t],enumerable:!0})},Lf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ih(e))!oh.call(i,o)&&o!==t&&Sl(i,o,{get:()=>e[o],enumerable:!(n=th(e,o))||n.enumerable});return i};var Vf=(i,e,t)=>(t=i!=null?eh(nh(i)):{},Lf(e||!i||!i.__esModule?Sl(t,"default",{value:i,enumerable:!0}):t,i)),lh=i=>Lf(Sl({},"__esModule",{value:!0}),i);var D8={};rh(D8,{ControlButtonType:()=>hl,GridTypes:()=>po,InterfaceLanguage:()=>Zr.InterfaceLanguage,MenuItemType:()=>pl,VERSION:()=>$o,VKNumericLanguage:()=>Zr.VKNumericLanguage,VideoFormat:()=>Xs.VideoFormat,VideoQuality:()=>Xs.VideoQuality,loadVKLangPack:()=>Zr.loadVKLangPack,registerPlayerWebComponent:()=>B8});module.exports=lh(D8);function de(){}function $(i,e){for(let t in e)i[t]=e[t];return i}function na(i){return i()}function Il(){return Object.create(null)}function st(i){i.forEach(na)}function Kt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Tl;function fo(i,e){return i===e?!0:(Tl||(Tl=document.createElement("a")),Tl.href=e,i===Tl.href)}function Rf(i){return Object.keys(i).length===0}function xt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return xt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(xt(e,t))}function Ee(i,e,t,n){if(i){let o=Bf(i,e,t,n);return i[0](o)}}function Bf(i,e,t,n){return i[1]&&n?$(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Bf(e,t,n,r);i.p(l,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function pe(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Df(i){return i??""}function vr(i){return i&&Kt(i.destroy)?i.destroy:de}var Yo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Pl=class i{_listeners="WeakMap"in Yo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Pl.entries="WeakMap"in Yo?new WeakMap:void 0;var Nf=!1;function Of(){Nf=!0}function Ff(){Nf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Hf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,uh(n,o)}}function Hf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function uh(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ti(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function Y(){return Ne(" ")}function Qe(){return Ne("")}function Ce(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function _e(i,e){for(let t in e)f(i,t,e[t])}function qf(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Uf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Tt(i,e){return new i(e)}var To;function mo(i){To=i}function yr(){if(!To)throw new Error("Function called outside component initialization");return To}function kt(i){yr().$$.on_mount.push(i)}function Yn(i){yr().$$.on_destroy.push(i)}function wr(i,e){return yr().$$.context.set(i,e),e}function kr(i){return yr().$$.context.get(i)}function al(){return yr().$$.context}function Mn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Qo=[];var ye=[],Sr=[],ra=[],Wf=Promise.resolve(),la=!1;function sa(){la||(la=!0,Wf.then(El))}function Qn(){return sa(),Wf}function ul(i){Sr.push(i)}function Ue(i){ra.push(i)}var oa=new Set,Cr=0;function El(){if(Cr!==0)return;let i=To;do{try{for(;Cr<Qo.length;){let e=Qo[Cr];Cr++,mo(e),_h(e.$$)}}catch(e){throw Qo.length=0,Cr=0,e}for(mo(null),Qo.length=0,Cr=0;ye.length;)ye.pop()();for(let e=0;e<Sr.length;e+=1){let t=Sr[e];oa.has(t)||(oa.add(t),t())}Sr.length=0}while(Qo.length);for(;ra.length;)ra.pop()();la=!1,oa.clear(),mo(i)}function _h(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ul)}}function Kf(i){let e=[],t=[];Sr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Sr=e}var Al=new Set,Zo;function le(){Zo={r:0,c:[],p:Zo}}function se(){Zo.r||st(Zo.c),Zo=Zo.p}function d(i,e){i&&i.i&&(Al.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Al.has(i))return;Al.add(i),Zo.c.push(()=>{Al.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Io(i){return typeof i=="object"&&i!==null?i:{}}var hh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],gh=new Set([...hh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ul(()=>{let r=i.$$.on_mount.map(na).filter(Kt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(ul)}function D(i,e){let t=i.$$;t.fragment!==null&&(Kf(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function vh(i,e){i.$$.dirty[0]===-1&&(Qo.push(i),sa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=To;mo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:Il(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Il(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&vh(i,m)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Of();let m=qf(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Ff(),El()}mo(s)}var yh;typeof HTMLElement=="function"&&(yh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=I("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Uf(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=aa(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=aa(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=aa(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function aa(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{$$=void 0;$$set=void 0;$destroy(){D(this,1),this.$destroy=de}$on(e,t){if(!Kt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Rf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var xf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(xf);var KO=require("@vkontakte/videoplayer-core"),Rn=require("@vkontakte/videoplayer-shared"),F_=require("@vkontakte/videoplayer-statistics");var Tr=require("@vkontakte/videoplayer-shared");var wh={isMobile:void 0,defaultLanguage:Tr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Tr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},jf=i=>(0,Tr.fillWithDefault)(i,wh),Gf=i=>wr("ui-config",i),Dt=()=>kr("ui-config");var cl="vk_player_debug_panel_opened";var Yf="videoplayer",Qf="videoplayer";var io={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Zf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Xf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Jf=new Set(["ShiftRight","ShiftLeft"]);var $f=["TIMELINE"],fl=[...$f,"GRAPH_BUTTON"],ua=[...$f,"PLAY_BUTTON"],Ml=[...fl,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Jo={xs:0,s:1,m:2,l:3,xl:4};var Ir=[];function Hn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=de){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let s=!Ir.length;for(let u of n)u[1](),Ir.push(u,i);if(s){for(let u=0;u<Ir.length;u+=2)Ir[u][0](Ir[u+1]);Ir.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function jt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Hn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Kt(g)?g:de},w=o.map((g,T)=>xt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(w),m(),s=!1}})}var dl=require("@vkontakte/videoplayer-shared"),ed=require("@vkontakte/videoplayer-core"),td=require("@vkontakte/videoplayer-statistics");var Ll="prod",$o="1.1.47-dev.f2c724ce.0";var er=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var id=Symbol("storeContext"),nd=Symbol("microStoresContext"),od=(i,e)=>{wr(id,i),wr(nd,e),Ll==="dev"&&(window.app={store:i,microStores:e})},$e=()=>{let i=kr(id);return(0,dl.assertNonNullable)(i,"Store context is empty!"),i},Ln=()=>{let i=kr(nd);return(0,dl.assertNonNullable)(i,"MicroStores context is empty!"),i},bt=(i,e)=>ca(i,i.getValue(),e),ca=(i,e,t)=>Hn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),rd=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${ed.VERSION}, stat: ${td.VERSION}, shared: ${dl.VERSION})`,c=Ge(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((H,P)=>{let C=`${P}) Type: ${H.id}
8
8
  `,E=`Message: ${H.message} (${H.thrown})
9
9
  `,Z=`Trace: ${H.thrown?.stack}
package/esnext.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.47-dev.ada35c47.0
3
- * Mon, 14 Oct 2024 11:36:56 GMT
2
+ * @vkontakte/videoplayer v1.1.47-dev.f2c724ce.0
3
+ * Tue, 15 Oct 2024 06:49:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-47/doc/
5
5
  */
6
- function de(){}function $(i,e){for(let t in e)i[t]=e[t];return i}function Ks(i){return i()}function fl(){return Object.create(null)}function st(i){i.forEach(Ks)}function zt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var cl;function so(i,e){return i===e?!0:(cl||(cl=document.createElement("a")),cl.href=e,i===cl.href)}function gf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return Wt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Ee(i,e,t,n){if(i){let o=bf(i,e,t,n);return i[0](o)}}function bf(i,e,t,n){return i[1]&&n?$(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=bf(e,t,n,r);i.p(l,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function pe(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function vf(i){return i??""}function dr(i){return i&&zt(i.destroy)?i.destroy:de}var Ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var dl=class i{_listeners="WeakMap"in Ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};dl.entries="WeakMap"in Ko?new WeakMap:void 0;var yf=!1;function wf(){yf=!0}function kf(){yf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Cf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,P_(n,o)}}function Cf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function P_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function $t(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function Y(){return Ne(" ")}function Qe(){return Ne("")}function Ce(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ei(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function _e(i,e){for(let t in e)f(i,t,e[t])}function Sf(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function ai(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Tf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ct(i,e){return new i(e)}var vo;function ao(i){vo=i}function mr(){if(!vo)throw new Error("Function called outside component initialization");return vo}function yt(i){mr().$$.on_mount.push(i)}function xn(i){mr().$$.on_destroy.push(i)}function pr(i,e){return mr().$$.context.set(i,e),e}function _r(i){return mr().$$.context.get(i)}function Yr(){return mr().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var xo=[];var ye=[],gr=[],js=[],Pf=Promise.resolve(),Gs=!1;function Ys(){Gs||(Gs=!0,Pf.then(ml))}function jn(){return Ys(),Pf}function Qr(i){gr.push(i)}function Ue(i){js.push(i)}var xs=new Set,hr=0;function ml(){if(hr!==0)return;let i=vo;do{try{for(;hr<xo.length;){let e=xo[hr];hr++,ao(e),R_(e.$$)}}catch(e){throw xo.length=0,hr=0,e}for(ao(null),xo.length=0,hr=0;ye.length;)ye.pop()();for(let e=0;e<gr.length;e+=1){let t=gr[e];xs.has(t)||(xs.add(t),t())}gr.length=0}while(xo.length);for(;js.length;)js.pop()();Gs=!1,xs.clear(),ao(i)}function R_(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Ef(i){let e=[],t=[];gr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),gr=e}var pl=new Set,jo;function le(){jo={r:0,c:[],p:jo}}function se(){jo.r||st(jo.c),jo=jo.p}function d(i,e){i&&i.i&&(pl.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(pl.has(i))return;pl.add(i),jo.c.push(()=>{pl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function yo(i){return typeof i=="object"&&i!==null?i:{}}var B_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],D_=new Set([...B_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(Ks).filter(zt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(Qr)}function D(i,e){let t=i.$$;t.fragment!==null&&(Ef(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function O_(i,e){i.$$.dirty[0]===-1&&(xo.push(i),Ys(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=vo;ao(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:fl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&O_(i,m)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){wf();let m=Sf(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),kf(),ml()}ao(s)}var F_;typeof HTMLElement=="function"&&(F_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=I("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Tf(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Qs(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=Qs(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Qs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Qs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{$$=void 0;$$set=void 0;$destroy(){D(this,1),this.$destroy=de}$on(e,t){if(!zt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Af="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Af);import"@vkontakte/videoplayer-core";import{noop as Dr,safeStorage as P8,throttleFn as E8,clientChecker as A8}from"@vkontakte/videoplayer-shared";import{SeekAction as M8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as H_,fillWithDefault as q_,VideoQuality as U_}from"@vkontakte/videoplayer-shared";var z_={isMobile:void 0,defaultLanguage:H_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:U_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Mf=i=>q_(i,z_),Lf=i=>pr("ui-config",i),Rt=()=>_r("ui-config");var Zr="vk_player_debug_panel_opened";var Vf="videoplayer",Rf="videoplayer";var eo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Bf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Df=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Nf=new Set(["ShiftRight","ShiftLeft"]);var Of=["TIMELINE"],Xr=[...Of,"GRAPH_BUTTON"],Zs=[...Of,"PLAY_BUTTON"],_l=[...Xr,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),Yo={xs:0,s:1,m:2,l:3,xl:4};var br=[];function Nn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=de){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let s=!br.length;for(let u of n)u[1](),br.push(u,i);if(s){for(let u=0;u<br.length;u+=2)br[u][0](br[u+1]);br.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Kt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Nn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=zt(g)?g:de},w=o.map((g,T)=>Wt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(w),m(),s=!1}})}import{assertNonNullable as Ff,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as K_}from"@vkontakte/videoplayer-core";import{VERSION as x_}from"@vkontakte/videoplayer-statistics";var hl="prod",vr="1.1.47-dev.ada35c47.0";var Qo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Hf=Symbol("storeContext"),qf=Symbol("microStoresContext"),Uf=(i,e)=>{pr(Hf,i),pr(qf,e),hl==="dev"&&(window.app={store:i,microStores:e})},$e=()=>{let i=_r(Hf);return Ff(i,"Store context is empty!"),i},En=()=>{let i=_r(qf);return Ff(i,"MicroStores context is empty!"),i},ht=(i,e)=>Xs(i,i.getValue(),e),Xs=(i,e,t)=>Nn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),zf=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${vr} (core: ${K_}, stat: ${x_}, shared: ${W_})`,c=Ge(t.state.errorLog$),m=c.length?`
6
+ function de(){}function $(i,e){for(let t in e)i[t]=e[t];return i}function Ks(i){return i()}function fl(){return Object.create(null)}function st(i){i.forEach(Ks)}function zt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var cl;function so(i,e){return i===e?!0:(cl||(cl=document.createElement("a")),cl.href=e,i===cl.href)}function gf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return Wt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Ee(i,e,t,n){if(i){let o=bf(i,e,t,n);return i[0](o)}}function bf(i,e,t,n){return i[1]&&n?$(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=bf(e,t,n,r);i.p(l,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function pe(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function vf(i){return i??""}function dr(i){return i&&zt(i.destroy)?i.destroy:de}var Ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var dl=class i{_listeners="WeakMap"in Ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};dl.entries="WeakMap"in Ko?new WeakMap:void 0;var yf=!1;function wf(){yf=!0}function kf(){yf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Cf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,P_(n,o)}}function Cf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function P_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function $t(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function Y(){return Ne(" ")}function Qe(){return Ne("")}function Ce(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ei(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function _e(i,e){for(let t in e)f(i,t,e[t])}function Sf(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function ai(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Tf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ct(i,e){return new i(e)}var vo;function ao(i){vo=i}function mr(){if(!vo)throw new Error("Function called outside component initialization");return vo}function yt(i){mr().$$.on_mount.push(i)}function xn(i){mr().$$.on_destroy.push(i)}function pr(i,e){return mr().$$.context.set(i,e),e}function _r(i){return mr().$$.context.get(i)}function Yr(){return mr().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var xo=[];var ye=[],gr=[],js=[],Pf=Promise.resolve(),Gs=!1;function Ys(){Gs||(Gs=!0,Pf.then(ml))}function jn(){return Ys(),Pf}function Qr(i){gr.push(i)}function Ue(i){js.push(i)}var xs=new Set,hr=0;function ml(){if(hr!==0)return;let i=vo;do{try{for(;hr<xo.length;){let e=xo[hr];hr++,ao(e),R_(e.$$)}}catch(e){throw xo.length=0,hr=0,e}for(ao(null),xo.length=0,hr=0;ye.length;)ye.pop()();for(let e=0;e<gr.length;e+=1){let t=gr[e];xs.has(t)||(xs.add(t),t())}gr.length=0}while(xo.length);for(;js.length;)js.pop()();Gs=!1,xs.clear(),ao(i)}function R_(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Ef(i){let e=[],t=[];gr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),gr=e}var pl=new Set,jo;function le(){jo={r:0,c:[],p:jo}}function se(){jo.r||st(jo.c),jo=jo.p}function d(i,e){i&&i.i&&(pl.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(pl.has(i))return;pl.add(i),jo.c.push(()=>{pl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function yo(i){return typeof i=="object"&&i!==null?i:{}}var B_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],D_=new Set([...B_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(Ks).filter(zt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(Qr)}function D(i,e){let t=i.$$;t.fragment!==null&&(Ef(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function O_(i,e){i.$$.dirty[0]===-1&&(xo.push(i),Ys(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=vo;ao(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:fl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&O_(i,m)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){wf();let m=Sf(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),kf(),ml()}ao(s)}var F_;typeof HTMLElement=="function"&&(F_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=I("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Tf(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Qs(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=Qs(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Qs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Qs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{$$=void 0;$$set=void 0;$destroy(){D(this,1),this.$destroy=de}$on(e,t){if(!zt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Af="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Af);import"@vkontakte/videoplayer-core";import{noop as Dr,safeStorage as P8,throttleFn as E8,clientChecker as A8}from"@vkontakte/videoplayer-shared";import{SeekAction as M8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as H_,fillWithDefault as q_,VideoQuality as U_}from"@vkontakte/videoplayer-shared";var z_={isMobile:void 0,defaultLanguage:H_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:U_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Mf=i=>q_(i,z_),Lf=i=>pr("ui-config",i),Rt=()=>_r("ui-config");var Zr="vk_player_debug_panel_opened";var Vf="videoplayer",Rf="videoplayer";var eo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Bf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Df=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Nf=new Set(["ShiftRight","ShiftLeft"]);var Of=["TIMELINE"],Xr=[...Of,"GRAPH_BUTTON"],Zs=[...Of,"PLAY_BUTTON"],_l=[...Xr,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),Yo={xs:0,s:1,m:2,l:3,xl:4};var br=[];function Nn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=de){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let s=!br.length;for(let u of n)u[1](),br.push(u,i);if(s){for(let u=0;u<br.length;u+=2)br[u][0](br[u+1]);br.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Kt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Nn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=zt(g)?g:de},w=o.map((g,T)=>Wt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(w),m(),s=!1}})}import{assertNonNullable as Ff,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as K_}from"@vkontakte/videoplayer-core";import{VERSION as x_}from"@vkontakte/videoplayer-statistics";var hl="prod",vr="1.1.47-dev.f2c724ce.0";var Qo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Hf=Symbol("storeContext"),qf=Symbol("microStoresContext"),Uf=(i,e)=>{pr(Hf,i),pr(qf,e),hl==="dev"&&(window.app={store:i,microStores:e})},$e=()=>{let i=_r(Hf);return Ff(i,"Store context is empty!"),i},En=()=>{let i=_r(qf);return Ff(i,"MicroStores context is empty!"),i},ht=(i,e)=>Xs(i,i.getValue(),e),Xs=(i,e,t)=>Nn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),zf=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${vr} (core: ${K_}, stat: ${x_}, shared: ${W_})`,c=Ge(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((H,P)=>{let C=`${P}) Type: ${H.id}
8
8
  `,E=`Message: ${H.message} (${H.thrown})
9
9
  `,Z=`Trace: ${H.thrown?.stack}
package/evergreen.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.47-dev.ada35c47.0
3
- * Mon, 14 Oct 2024 11:36:56 GMT
2
+ * @vkontakte/videoplayer v1.1.47-dev.f2c724ce.0
3
+ * Tue, 15 Oct 2024 06:49:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-47/doc/
5
5
  */
6
- function de(){}function $(i,e){for(let t in e)i[t]=e[t];return i}function Ks(i){return i()}function fl(){return Object.create(null)}function st(i){i.forEach(Ks)}function zt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var cl;function so(i,e){return i===e?!0:(cl||(cl=document.createElement("a")),cl.href=e,i===cl.href)}function gf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return Wt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Ee(i,e,t,n){if(i){let o=bf(i,e,t,n);return i[0](o)}}function bf(i,e,t,n){return i[1]&&n?$(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=bf(e,t,n,r);i.p(l,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function pe(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function vf(i){return i??""}function dr(i){return i&&zt(i.destroy)?i.destroy:de}var Ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var dl=class i{_listeners="WeakMap"in Ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};dl.entries="WeakMap"in Ko?new WeakMap:void 0;var yf=!1;function wf(){yf=!0}function kf(){yf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Cf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,P_(n,o)}}function Cf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function P_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function $t(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function Y(){return Ne(" ")}function Qe(){return Ne("")}function Ce(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ei(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function _e(i,e){for(let t in e)f(i,t,e[t])}function Sf(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function ai(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Tf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ct(i,e){return new i(e)}var vo;function ao(i){vo=i}function mr(){if(!vo)throw new Error("Function called outside component initialization");return vo}function yt(i){mr().$$.on_mount.push(i)}function xn(i){mr().$$.on_destroy.push(i)}function pr(i,e){return mr().$$.context.set(i,e),e}function _r(i){return mr().$$.context.get(i)}function Yr(){return mr().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var xo=[];var ye=[],gr=[],js=[],Pf=Promise.resolve(),Gs=!1;function Ys(){Gs||(Gs=!0,Pf.then(ml))}function jn(){return Ys(),Pf}function Qr(i){gr.push(i)}function Ue(i){js.push(i)}var xs=new Set,hr=0;function ml(){if(hr!==0)return;let i=vo;do{try{for(;hr<xo.length;){let e=xo[hr];hr++,ao(e),R_(e.$$)}}catch(e){throw xo.length=0,hr=0,e}for(ao(null),xo.length=0,hr=0;ye.length;)ye.pop()();for(let e=0;e<gr.length;e+=1){let t=gr[e];xs.has(t)||(xs.add(t),t())}gr.length=0}while(xo.length);for(;js.length;)js.pop()();Gs=!1,xs.clear(),ao(i)}function R_(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Ef(i){let e=[],t=[];gr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),gr=e}var pl=new Set,jo;function le(){jo={r:0,c:[],p:jo}}function se(){jo.r||st(jo.c),jo=jo.p}function d(i,e){i&&i.i&&(pl.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(pl.has(i))return;pl.add(i),jo.c.push(()=>{pl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function yo(i){return typeof i=="object"&&i!==null?i:{}}var B_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],D_=new Set([...B_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(Ks).filter(zt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(Qr)}function D(i,e){let t=i.$$;t.fragment!==null&&(Ef(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function O_(i,e){i.$$.dirty[0]===-1&&(xo.push(i),Ys(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=vo;ao(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:fl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&O_(i,m)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){wf();let m=Sf(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),kf(),ml()}ao(s)}var F_;typeof HTMLElement=="function"&&(F_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=I("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Tf(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Qs(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=Qs(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Qs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Qs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{$$=void 0;$$set=void 0;$destroy(){D(this,1),this.$destroy=de}$on(e,t){if(!zt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Af="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Af);import"@vkontakte/videoplayer-core";import{noop as Dr,safeStorage as P8,throttleFn as E8,clientChecker as A8}from"@vkontakte/videoplayer-shared";import{SeekAction as M8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as H_,fillWithDefault as q_,VideoQuality as U_}from"@vkontakte/videoplayer-shared";var z_={isMobile:void 0,defaultLanguage:H_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:U_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Mf=i=>q_(i,z_),Lf=i=>pr("ui-config",i),Rt=()=>_r("ui-config");var Zr="vk_player_debug_panel_opened";var Vf="videoplayer",Rf="videoplayer";var eo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Bf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Df=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Nf=new Set(["ShiftRight","ShiftLeft"]);var Of=["TIMELINE"],Xr=[...Of,"GRAPH_BUTTON"],Zs=[...Of,"PLAY_BUTTON"],_l=[...Xr,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),Yo={xs:0,s:1,m:2,l:3,xl:4};var br=[];function Nn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=de){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let s=!br.length;for(let u of n)u[1](),br.push(u,i);if(s){for(let u=0;u<br.length;u+=2)br[u][0](br[u+1]);br.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Kt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Nn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=zt(g)?g:de},w=o.map((g,T)=>Wt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(w),m(),s=!1}})}import{assertNonNullable as Ff,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as K_}from"@vkontakte/videoplayer-core";import{VERSION as x_}from"@vkontakte/videoplayer-statistics";var hl="prod",vr="1.1.47-dev.ada35c47.0";var Qo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Hf=Symbol("storeContext"),qf=Symbol("microStoresContext"),Uf=(i,e)=>{pr(Hf,i),pr(qf,e),hl==="dev"&&(window.app={store:i,microStores:e})},$e=()=>{let i=_r(Hf);return Ff(i,"Store context is empty!"),i},En=()=>{let i=_r(qf);return Ff(i,"MicroStores context is empty!"),i},ht=(i,e)=>Xs(i,i.getValue(),e),Xs=(i,e,t)=>Nn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),zf=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${vr} (core: ${K_}, stat: ${x_}, shared: ${W_})`,c=Ge(t.state.errorLog$),m=c.length?`
6
+ function de(){}function $(i,e){for(let t in e)i[t]=e[t];return i}function Ks(i){return i()}function fl(){return Object.create(null)}function st(i){i.forEach(Ks)}function zt(i){return typeof i=="function"}function V(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var cl;function so(i,e){return i===e?!0:(cl||(cl=document.createElement("a")),cl.href=e,i===cl.href)}function gf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return Wt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Ee(i,e,t,n){if(i){let o=bf(i,e,t,n);return i[0](o)}}function bf(i,e,t,n){return i[1]&&n?$(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=bf(e,t,n,r);i.p(l,o)}}function Le(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function pe(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function vf(i){return i??""}function dr(i){return i&&zt(i.destroy)?i.destroy:de}var Ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var dl=class i{_listeners="WeakMap"in Ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};dl.entries="WeakMap"in Ko?new WeakMap:void 0;var yf=!1;function wf(){yf=!0}function kf(){yf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Cf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,P_(n,o)}}function Cf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function P_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function $t(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function L(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function Y(){return Ne(" ")}function Qe(){return Ne("")}function Ce(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ei(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function _e(i,e){for(let t in e)f(i,t,e[t])}function Sf(i){return Array.from(i.childNodes)}function We(i,e){e=""+e,i.data!==e&&(i.data=e)}function ai(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Tf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ct(i,e){return new i(e)}var vo;function ao(i){vo=i}function mr(){if(!vo)throw new Error("Function called outside component initialization");return vo}function yt(i){mr().$$.on_mount.push(i)}function xn(i){mr().$$.on_destroy.push(i)}function pr(i,e){return mr().$$.context.set(i,e),e}function _r(i){return mr().$$.context.get(i)}function Yr(){return mr().$$.context}function Pn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var xo=[];var ye=[],gr=[],js=[],Pf=Promise.resolve(),Gs=!1;function Ys(){Gs||(Gs=!0,Pf.then(ml))}function jn(){return Ys(),Pf}function Qr(i){gr.push(i)}function Ue(i){js.push(i)}var xs=new Set,hr=0;function ml(){if(hr!==0)return;let i=vo;do{try{for(;hr<xo.length;){let e=xo[hr];hr++,ao(e),R_(e.$$)}}catch(e){throw xo.length=0,hr=0,e}for(ao(null),xo.length=0,hr=0;ye.length;)ye.pop()();for(let e=0;e<gr.length;e+=1){let t=gr[e];xs.has(t)||(xs.add(t),t())}gr.length=0}while(xo.length);for(;js.length;)js.pop()();Gs=!1,xs.clear(),ao(i)}function R_(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Ef(i){let e=[],t=[];gr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),gr=e}var pl=new Set,jo;function le(){jo={r:0,c:[],p:jo}}function se(){jo.r||st(jo.c),jo=jo.p}function d(i,e){i&&i.i&&(pl.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(pl.has(i))return;pl.add(i),jo.c.push(()=>{pl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function yo(i){return typeof i=="object"&&i!==null?i:{}}var B_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],D_=new Set([...B_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(Ks).filter(zt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(Qr)}function D(i,e){let t=i.$$;t.fragment!==null&&(Ef(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function O_(i,e){i.$$.dirty[0]===-1&&(xo.push(i),Ys(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=vo;ao(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:fl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&O_(i,m)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){wf();let m=Sf(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),kf(),ml()}ao(s)}var F_;typeof HTMLElement=="function"&&(F_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=I("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Tf(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Qs(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=Qs(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Qs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Qs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var R=class{$$=void 0;$$set=void 0;$destroy(){D(this,1),this.$destroy=de}$on(e,t){if(!zt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Af="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Af);import"@vkontakte/videoplayer-core";import{noop as Dr,safeStorage as P8,throttleFn as E8,clientChecker as A8}from"@vkontakte/videoplayer-shared";import{SeekAction as M8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as H_,fillWithDefault as q_,VideoQuality as U_}from"@vkontakte/videoplayer-shared";var z_={isMobile:void 0,defaultLanguage:H_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:U_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Mf=i=>q_(i,z_),Lf=i=>pr("ui-config",i),Rt=()=>_r("ui-config");var Zr="vk_player_debug_panel_opened";var Vf="videoplayer",Rf="videoplayer";var eo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Bf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Df=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Nf=new Set(["ShiftRight","ShiftLeft"]);var Of=["TIMELINE"],Xr=[...Of,"GRAPH_BUTTON"],Zs=[...Of,"PLAY_BUTTON"],_l=[...Xr,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),Yo={xs:0,s:1,m:2,l:3,xl:4};var br=[];function Nn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=de){let t,n=new Set;function o(a){if(V(i,a)&&(i=a,t)){let s=!br.length;for(let u of n)u[1](),br.push(u,i);if(s){for(let u=0;u<br.length;u+=2)br[u][0](br[u+1]);br.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Kt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Nn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=zt(g)?g:de},w=o.map((g,T)=>Wt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(w),m(),s=!1}})}import{assertNonNullable as Ff,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as K_}from"@vkontakte/videoplayer-core";import{VERSION as x_}from"@vkontakte/videoplayer-statistics";var hl="prod",vr="1.1.47-dev.f2c724ce.0";var Qo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Hf=Symbol("storeContext"),qf=Symbol("microStoresContext"),Uf=(i,e)=>{pr(Hf,i),pr(qf,e),hl==="dev"&&(window.app={store:i,microStores:e})},$e=()=>{let i=_r(Hf);return Ff(i,"Store context is empty!"),i},En=()=>{let i=_r(qf);return Ff(i,"MicroStores context is empty!"),i},ht=(i,e)=>Xs(i,i.getValue(),e),Xs=(i,e,t)=>Nn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),zf=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${vr} (core: ${K_}, stat: ${x_}, shared: ${W_})`,c=Ge(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((H,P)=>{let C=`${P}) Type: ${H.id}
8
8
  `,E=`Message: ${H.message} (${H.thrown})
9
9
  `,Z=`Trace: ${H.thrown?.stack}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.47-dev.ada35c47.0",
3
+ "version": "1.1.47-dev.f2c724ce.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -49,9 +49,9 @@
49
49
  "**/*.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@vkontakte/videoplayer-core": "2.0.114-dev.83034545.0",
53
- "@vkontakte/videoplayer-interactive": "1.0.22-dev.71ddf25e.0",
54
- "@vkontakte/videoplayer-shared": "1.0.46-dev.204301ba.0",
55
- "@vkontakte/videoplayer-statistics": "1.0.61-dev.dcffbf99.0"
52
+ "@vkontakte/videoplayer-core": "2.0.114-dev.2690a809.0",
53
+ "@vkontakte/videoplayer-interactive": "1.0.22-dev.bc55de7e.0",
54
+ "@vkontakte/videoplayer-shared": "1.0.46-dev.4d1e356b.0",
55
+ "@vkontakte/videoplayer-statistics": "1.0.61-dev.2de9e9aa.0"
56
56
  }
57
57
  }